Subscriptions - List Locations
Kullanılabilir tüm coğrafi konumları alır.
Bu işlem, kaynak sağlayıcıları için kullanılabilen tüm konumları sağlar; ancak her kaynak sağlayıcısı bu listenin bir alt kümesini destekleyemeyebilir.
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01&includeExtendedLocations={includeExtendedLocations}
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
subscription
|
path | True |
string (uuid) |
Hedef aboneliğin kimliği. Değer bir UUID olmalıdır. |
|
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
|
include
|
query |
boolean |
Genişletilmiş konumların dahil edilip edilmeyeceği. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Azure işlemi başarıyla tamamlandı. |
|
| Other Status Codes |
Beklenmeyen bir hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Flow.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
|
Get |
|
Get |
GetLocationsWithASubscriptionId
Örnek isteği
Örnek yanıt
{
"value": [
{
"name": "eastus",
"type": "Region",
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
],
"displayName": "East US",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "37.3719",
"longitude": "-79.8164",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
],
"physicalLocation": "Virginia",
"regionCategory": "Recommended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) East US"
},
{
"name": "eastus2",
"type": "Region",
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
],
"displayName": "East US 2",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "36.6681",
"longitude": "-78.3889",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
],
"physicalLocation": "Virginia",
"regionCategory": "Recommended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) East US 2"
}
]
}
GetLocationsWithExtendedLocations
Örnek isteği
Örnek yanıt
{
"value": [
{
"name": "eastus",
"type": "Region",
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
],
"displayName": "East US",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "37.3719",
"longitude": "-79.8164",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
],
"physicalLocation": "Virginia",
"regionCategory": "Recommended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) East US"
},
{
"name": "eastus2",
"type": "Region",
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
],
"displayName": "East US 2",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "36.6681",
"longitude": "-78.3889",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
],
"physicalLocation": "Virginia",
"regionCategory": "Recommended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) East US 2"
},
{
"name": "ezecustomerlabboston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Boston 1",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus/edgeZones/ezecustomerlabboston1",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "42.301218",
"longitude": "-71.219038",
"regionCategory": "Extended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) EZE Customer Lab Boston 1"
},
{
"name": "ezecustomerlabhouston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Houston 1",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/southcentralus/edgeZones/ezecustomerlabhouston1",
"metadata": {
"geography": "United States",
"geographyGroup": "US",
"latitude": "29.9411",
"longitude": "-95.41452",
"regionCategory": "Extended",
"regionType": "Physical"
},
"regionalDisplayName": "(US) EZE Customer Lab Houston 1"
}
]
}
Tanımlar
| Name | Description |
|---|---|
|
Availability |
Bölge için kullanılabilirlik alanı eşlemeleri |
|
Cloud |
Kaynak yönetimi isteği için hata yanıtı. |
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Error |
Hata ayrıntısı. |
|
Error |
Hata yanıtı |
| Location |
Konum bilgileri. |
|
Location |
Konum listesi işlem yanıtı. |
|
Location |
Konum meta veri bilgileri |
|
Location |
Konum türü. |
|
Paired |
Eşleştirilmiş bölgeyle ilgili bilgiler. |
|
Region |
Bölgenin kategorisi. |
|
Region |
Bölgenin türü. |
AvailabilityZoneMappings
Bölge için kullanılabilirlik alanı eşlemeleri
| Name | Tür | Description |
|---|---|---|
| logicalZone |
string |
Kullanılabilirlik alanı için mantıksal bölge kimliği |
| physicalZone |
string |
Mantıksal bölge kimliğinin eşlendiği kullanılabilirlik alanının tam fiziksel bölge kimliği |
CloudError
Kaynak yönetimi isteği için hata yanıtı.
| Name | Tür | Description |
|---|---|---|
| error |
Hata yanıtı |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
| Name | Tür | Description |
|---|---|---|
| info |
object |
Ek bilgiler. |
| type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
| Name | Tür | Description |
|---|---|---|
| additionalInfo |
Hata ek bilgileri. |
|
| code |
string |
Hata kodu. |
| details |
Hata ayrıntıları. |
|
| message |
string |
Hata iletisi. |
| target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
| Name | Tür | Description |
|---|---|---|
| error |
Hata nesnesi. |
Location
Konum bilgileri.
| Name | Tür | Description |
|---|---|---|
| availabilityZoneMappings |
Bu bölge için kullanılabilirlik alanı eşlemeleri. |
|
| displayName |
string |
Konumun görünen adı. |
| id |
string |
Konumun tam kimliği. Örneğin, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
| metadata |
Lat/long, eşleştirilmiş bölge ve diğerleri gibi konumun meta verileri. |
|
| name |
string |
Konum adı. |
| regionalDisplayName |
string |
Konumun ve bölgesinin görünen adı. |
| subscriptionId |
string |
Abonelik kimliği. |
| type |
Konum türü. |
LocationListResult
Konum listesi işlem yanıtı.
| Name | Tür | Description |
|---|---|---|
| nextLink |
string |
Sonraki sonuç kümesini almak için URL. |
| value |
Location[] |
Konum dizisi. |
LocationMetadata
Konum meta veri bilgileri
| Name | Tür | Description |
|---|---|---|
| geography |
string |
Konumun coğrafyası. |
| geographyGroup |
string |
Konumun coğrafya grubu. |
| homeLocation |
string |
Bir kenar bölgesinin giriş konumu. |
| latitude |
string |
Konumun enlemi. |
| longitude |
string |
Konumun boylamı. |
| pairedRegion |
Bu bölgeyle eşleştirilen bölgeler. |
|
| physicalLocation |
string |
Azure konumunun fiziksel konumu. |
| regionCategory |
Bölgenin kategorisi. |
|
| regionType |
Bölgenin türü. |
LocationType
Konum türü.
| Değer | Description |
|---|---|
| Region |
Bölge |
| EdgeZone |
EdgeZone |
PairedRegion
Eşleştirilmiş bölgeyle ilgili bilgiler.
| Name | Tür | Description |
|---|---|---|
| id |
string |
Konumun tam kimliği. Örneğin, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
| name |
string |
Eşleştirilmiş bölgenin adı. |
| subscriptionId |
string |
Abonelik kimliği. |
RegionCategory
Bölgenin kategorisi.
| Değer | Description |
|---|---|
| Recommended |
Önerilir |
| Extended |
Genişletilmiş |
| Other |
Other |
RegionType
Bölgenin türü.
| Değer | Description |
|---|---|
| Physical |
Fiziksel |
| Logical |
Logical |