-
Notifications
You must be signed in to change notification settings - Fork 1
/
btp_entitlements_datacenter.md
62 lines (52 loc) · 1.02 KB
/
btp_entitlements_datacenter.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Table: btp_entitlements_datacenter
Get the details of all the data centers where a subaccount can be created in the SAP BTP global account.
## Examples
### List all the allowed data centers
```sql
select
*
from
btp.btp_entitlements_datacenter;
```
### List all the Cloud Foundry data centers
```sql
select
*
from
btp.btp_entitlements_datacenter
WHERE
environment = 'cloudfoundry';
```
### List all the satellite data centers
```sql
select
*
from
btp.btp_entitlements_datacenter
where
is_main_data_center = False;
```
### Subaccount details with datacenter information
```sql
select
sa.guid subaccount_guid,
sa.display_name subaccount_name,
sa.subdomain subaccount_subdomain,
dc.name dc_name,
dc.display_name as dc_location,
sa.region,
environment,
dc.iaas_provider,
supports_trial,
saas_registry_service_url,
domain,
geo_access
from
btp_accounts_subaccount sa
join
btp.btp_entitlements_datacenter dc
on sa.region = dc.region
order by
region,
subaccount_name;
```