Subscriptions - List Locations
Ottiene tutte le posizioni geografiche disponibili.
Questa operazione fornisce tutte le posizioni disponibili per i provider di risorse; Tuttavia, ogni provider di risorse può supportare un subset di questo elenco.
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}
Parametri dell'URI
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
subscription
|
path | True |
string |
ID della sottoscrizione di destinazione. |
api-version
|
query | True |
string minLength: 1 |
Versione dell'API da usare per questa operazione. |
include
|
query |
boolean |
Indica se includere posizioni estese. |
Risposte
Nome | Tipo | Descrizione |
---|---|---|
200 OK |
OK: restituisce una matrice di posizioni. |
|
Other Status Codes |
Risposta di errore che descrive il motivo per cui l'operazione non è riuscita. |
Sicurezza
azure_auth
Flusso OAuth2 di Azure Active Directory
Tipo:
oauth2
Flow:
implicit
URL di autorizzazione:
https://login.microsoftonline.com/common/oauth2/authorize
Ambiti
Nome | Descrizione |
---|---|
user_impersonation | rappresentare l'account utente |
Esempio
Get |
Get |
GetLocationsWithASubscriptionId
Esempio di richiesta
Risposta di esempio
{
"value": [
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"name": "eastus",
"type": "Region",
"displayName": "East US",
"regionalDisplayName": "(US) East US",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-79.8164",
"latitude": "37.3719",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"name": "eastus2",
"type": "Region",
"displayName": "East US 2",
"regionalDisplayName": "(US) East US 2",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-78.3889",
"latitude": "36.6681",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
]
}
]
}
GetLocationsWithExtendedLocations
Esempio di richiesta
Risposta di esempio
{
"value": [
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus",
"name": "eastus",
"type": "Region",
"displayName": "East US",
"regionalDisplayName": "(US) East US",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-79.8164",
"latitude": "37.3719",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "westus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2",
"name": "eastus2",
"type": "Region",
"displayName": "East US 2",
"regionalDisplayName": "(US) East US 2",
"metadata": {
"regionType": "Physical",
"regionCategory": "Recommended",
"geography": "United States",
"geographyGroup": "US",
"longitude": "-78.3889",
"latitude": "36.6681",
"physicalLocation": "Virginia",
"pairedRegion": [
{
"name": "centralus",
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"
}
]
},
"availabilityZoneMappings": [
{
"logicalZone": "1",
"physicalZone": "eastus2-az1"
},
{
"logicalZone": "2",
"physicalZone": "eastus2-az3"
},
{
"logicalZone": "3",
"physicalZone": "eastus2-az2"
}
]
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus/edgeZones/ezecustomerlabboston1",
"name": "ezecustomerlabboston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Boston 1",
"regionalDisplayName": "(US) EZE Customer Lab Boston 1",
"metadata": {
"regionType": "Physical",
"regionCategory": "Extended",
"geographyGroup": "US",
"geography": "United States",
"longitude": "-71.219038",
"latitude": "42.301218"
}
},
{
"id": "/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/southcentralus/edgeZones/ezecustomerlabhouston1",
"name": "ezecustomerlabhouston1",
"type": "EdgeZone",
"displayName": "EZE Customer Lab Houston 1",
"regionalDisplayName": "(US) EZE Customer Lab Houston 1",
"metadata": {
"regionType": "Physical",
"regionCategory": "Extended",
"geographyGroup": "US",
"geography": "United States",
"longitude": "-95.41452",
"latitude": "29.9411"
}
}
]
}
Definizioni
Nome | Descrizione |
---|---|
Availability |
Mapping delle zone di disponibilità per l'area |
Cloud |
Risposta di errore per una richiesta di gestione delle risorse. |
Error |
Informazioni aggiuntive sull'errore di gestione delle risorse. |
Error |
Dettagli dell'errore. |
Error |
Risposta di errore |
Location |
Informazioni sulla posizione. |
Location |
Risposta dell'operazione elenco di posizioni. |
Location |
Informazioni sui metadati della posizione |
Location |
Tipo di posizione. |
Paired |
Informazioni relative all'area abbinata. |
Region |
Categoria dell'area. |
Region |
Tipo dell'area. |
AvailabilityZoneMappings
Mapping delle zone di disponibilità per l'area
Nome | Tipo | Descrizione |
---|---|---|
logicalZone |
string |
ID della zona logica per la zona di disponibilità |
physicalZone |
string |
ID zona fisica completa della zona di disponibilità a cui viene mappato l'ID della zona logica |
CloudError
Risposta di errore per una richiesta di gestione delle risorse.
Nome | Tipo | Descrizione |
---|---|---|
error |
Risposta di errore |
ErrorAdditionalInfo
Informazioni aggiuntive sull'errore di gestione delle risorse.
Nome | Tipo | Descrizione |
---|---|---|
info |
object |
Informazioni aggiuntive. |
type |
string |
Tipo di informazioni aggiuntive. |
ErrorDetail
Dettagli dell'errore.
Nome | Tipo | Descrizione |
---|---|---|
additionalInfo |
Informazioni aggiuntive sull'errore. |
|
code |
string |
Codice di errore. |
details |
Dettagli dell'errore. |
|
message |
string |
Messaggio di errore. |
target |
string |
Destinazione dell'errore. |
ErrorResponse
Risposta di errore
Nome | Tipo | Descrizione |
---|---|---|
error |
Oggetto error. |
Location
Informazioni sulla posizione.
Nome | Tipo | Descrizione |
---|---|---|
availabilityZoneMappings |
Mapping delle zone di disponibilità per questa area. |
|
displayName |
string |
Nome visualizzato della posizione. |
id |
string |
ID completo della posizione. Ad esempio, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
metadata |
Metadati della posizione, ad esempio lat/long, area abbinata e altri. |
|
name |
string |
Nome della posizione. |
regionalDisplayName |
string |
Nome visualizzato della posizione e della relativa area. |
subscriptionId |
string |
L'ID della sottoscrizione. |
type |
Tipo di posizione. |
LocationListResult
Risposta dell'operazione elenco di posizioni.
Nome | Tipo | Descrizione |
---|---|---|
value |
Location[] |
Matrice di posizioni. |
LocationMetadata
Informazioni sui metadati della posizione
Nome | Tipo | Descrizione |
---|---|---|
geography |
string |
Area geografica della posizione. |
geographyGroup |
string |
Gruppo geografico della posizione. |
homeLocation |
string |
Posizione principale di una zona perimetrale. |
latitude |
string |
Latitudine della posizione. |
longitude |
string |
Longitudine della posizione. |
pairedRegion |
Le aree associate a questa area. |
|
physicalLocation |
string |
Posizione fisica della posizione di Azure. |
regionCategory |
Categoria dell'area. |
|
regionType |
Tipo dell'area. |
LocationType
Tipo di posizione.
Valore | Descrizione |
---|---|
EdgeZone | |
Region |
PairedRegion
Informazioni relative all'area abbinata.
Nome | Tipo | Descrizione |
---|---|---|
id |
string |
ID completo della posizione. Ad esempio, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus. |
name |
string |
Nome dell'area abbinata. |
subscriptionId |
string |
L'ID della sottoscrizione. |
RegionCategory
Categoria dell'area.
Valore | Descrizione |
---|---|
Extended | |
Other | |
Recommended |
RegionType
Tipo dell'area.
Valore | Descrizione |
---|---|
Logical | |
Physical |