Obtient tous les emplacements géographiques disponibles.
Cette opération fournit tous les emplacements disponibles pour les fournisseurs de ressources ; toutefois, chaque fournisseur de ressources peut prendre en charge un sous-ensemble de cette liste.
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01
Avec des paramètres facultatifs:
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01&includeExtendedLocations={includeExtendedLocations}
Paramètres URI
Nom |
Dans |
Obligatoire |
Type |
Description |
subscriptionId
|
path |
True
|
string
|
ID de l’abonnement cible.
|
api-version
|
query |
True
|
string
|
Version de l’API à utiliser pour cette opération.
|
includeExtendedLocations
|
query |
|
boolean
|
Indique s’il faut inclure des emplacements étendus.
|
Réponses
Nom |
Type |
Description |
200 OK
|
LocationListResult
|
OK : retourne un tableau d’emplacements.
|
Other Status Codes
|
CloudError
|
Réponse d’erreur décrivant la raison de l’échec de l’opération.
|
Sécurité
azure_auth
Flux OAuth2 Azure Active Directory
Type:
oauth2
Flux:
implicit
URL d’autorisation:
https://login.microsoftonline.com/common/oauth2/authorize
Étendues
Nom |
Description |
user_impersonation
|
Emprunter l’identité de votre compte d’utilisateur
|
Exemples
GetLocationsWithASubscriptionId
Exemple de requête
GET https://management.azure.com/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations?api-version=2022-12-01
/**
* Samples for Subscriptions ListLocations.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocations.json
*/
/**
* Sample code: GetLocationsWithASubscriptionId.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void getLocationsWithASubscriptionId(com.azure.resourcemanager.AzureResourceManager azure) {
azure.genericResources().manager().subscriptionClient().getSubscriptions()
.listLocations("a1ffc958-d2c7-493e-9f1e-125a0477f536", null, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import SubscriptionClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-resource
# USAGE
python get_locations.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = SubscriptionClient(
credential=DefaultAzureCredential(),
)
response = client.subscriptions.list_locations(
subscription_id="a1ffc958-d2c7-493e-9f1e-125a0477f536",
)
for item in response:
print(item)
# x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocations.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armsubscriptions_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4f4073bdb028bc84bc3e6405c1cbaf8e89b83caf/specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocations.json
func ExampleClient_NewListLocationsPager_getLocationsWithASubscriptionId() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armsubscriptions.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClient().NewListLocationsPager("a1ffc958-d2c7-493e-9f1e-125a0477f536", &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: nil})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.LocationListResult = armsubscriptions.LocationListResult{
// Value: []*armsubscriptions.Location{
// {
// Name: to.Ptr("eastus"),
// Type: to.Ptr(armsubscriptions.LocationTypeRegion),
// AvailabilityZoneMappings: []*armsubscriptions.AvailabilityZoneMappings{
// {
// LogicalZone: to.Ptr("1"),
// PhysicalZone: to.Ptr("eastus-az1"),
// },
// {
// LogicalZone: to.Ptr("2"),
// PhysicalZone: to.Ptr("eastus-az3"),
// },
// {
// LogicalZone: to.Ptr("3"),
// PhysicalZone: to.Ptr("eastus-az2"),
// }},
// DisplayName: to.Ptr("East US"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("37.3719"),
// Longitude: to.Ptr("-79.8164"),
// PairedRegion: []*armsubscriptions.PairedRegion{
// {
// Name: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"),
// }},
// PhysicalLocation: to.Ptr("Virginia"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryRecommended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) East US"),
// },
// {
// Name: to.Ptr("eastus2"),
// Type: to.Ptr(armsubscriptions.LocationTypeRegion),
// AvailabilityZoneMappings: []*armsubscriptions.AvailabilityZoneMappings{
// {
// LogicalZone: to.Ptr("1"),
// PhysicalZone: to.Ptr("eastus2-az1"),
// },
// {
// LogicalZone: to.Ptr("2"),
// PhysicalZone: to.Ptr("eastus2-az3"),
// },
// {
// LogicalZone: to.Ptr("3"),
// PhysicalZone: to.Ptr("eastus2-az2"),
// }},
// DisplayName: to.Ptr("East US 2"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("36.6681"),
// Longitude: to.Ptr("-78.3889"),
// PairedRegion: []*armsubscriptions.PairedRegion{
// {
// Name: to.Ptr("centralus"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"),
// }},
// PhysicalLocation: to.Ptr("Virginia"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryRecommended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) East US 2"),
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { SubscriptionClient } = require("@azure/arm-resources-subscriptions");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
*
* @summary This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocations.json
*/
async function getLocationsWithASubscriptionId() {
const subscriptionId = "a1ffc958-d2c7-493e-9f1e-125a0477f536";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
for await (let item of client.subscriptions.listLocations(subscriptionId)) {
resArray.push(item);
}
console.log(resArray);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocations.json
// this example is just showing the usage of "Subscriptions_ListLocations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "a1ffc958-d2c7-493e-9f1e-125a0477f536";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscription = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation and iterate over the result
await foreach (LocationExpanded item in subscription.GetLocationsAsync())
{
Console.WriteLine($"Succeeded: {item}");
}
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Exemple de réponse
{
"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
Exemple de requête
GET https://management.azure.com/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations?api-version=2022-12-01&includeExtendedLocations=true
/**
* Samples for Subscriptions ListLocations.
*/
public final class Main {
/*
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/
* GetLocationsWithExtendedLocations.json
*/
/**
* Sample code: GetLocationsWithExtendedLocations.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void getLocationsWithExtendedLocations(com.azure.resourcemanager.AzureResourceManager azure) {
azure.genericResources().manager().subscriptionClient().getSubscriptions()
.listLocations("a1ffc958-d2c7-493e-9f1e-125a0477f536", true, com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.resource import SubscriptionClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-resource
# USAGE
python get_locations_with_extended_locations.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = SubscriptionClient(
credential=DefaultAzureCredential(),
)
response = client.subscriptions.list_locations(
subscription_id="a1ffc958-d2c7-493e-9f1e-125a0477f536",
)
for item in response:
print(item)
# x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocationsWithExtendedLocations.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armsubscriptions_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4f4073bdb028bc84bc3e6405c1cbaf8e89b83caf/specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocationsWithExtendedLocations.json
func ExampleClient_NewListLocationsPager_getLocationsWithExtendedLocations() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armsubscriptions.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
pager := clientFactory.NewClient().NewListLocationsPager("a1ffc958-d2c7-493e-9f1e-125a0477f536", &armsubscriptions.ClientListLocationsOptions{IncludeExtendedLocations: to.Ptr(true)})
for pager.More() {
page, err := pager.NextPage(ctx)
if err != nil {
log.Fatalf("failed to advance page: %v", err)
}
for _, v := range page.Value {
// You could use page here. We use blank identifier for just demo purposes.
_ = v
}
// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// page.LocationListResult = armsubscriptions.LocationListResult{
// Value: []*armsubscriptions.Location{
// {
// Name: to.Ptr("eastus"),
// Type: to.Ptr(armsubscriptions.LocationTypeRegion),
// AvailabilityZoneMappings: []*armsubscriptions.AvailabilityZoneMappings{
// {
// LogicalZone: to.Ptr("1"),
// PhysicalZone: to.Ptr("eastus-az1"),
// },
// {
// LogicalZone: to.Ptr("2"),
// PhysicalZone: to.Ptr("eastus-az3"),
// },
// {
// LogicalZone: to.Ptr("3"),
// PhysicalZone: to.Ptr("eastus-az2"),
// }},
// DisplayName: to.Ptr("East US"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("37.3719"),
// Longitude: to.Ptr("-79.8164"),
// PairedRegion: []*armsubscriptions.PairedRegion{
// {
// Name: to.Ptr("westus"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/westus"),
// }},
// PhysicalLocation: to.Ptr("Virginia"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryRecommended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) East US"),
// },
// {
// Name: to.Ptr("eastus2"),
// Type: to.Ptr(armsubscriptions.LocationTypeRegion),
// AvailabilityZoneMappings: []*armsubscriptions.AvailabilityZoneMappings{
// {
// LogicalZone: to.Ptr("1"),
// PhysicalZone: to.Ptr("eastus2-az1"),
// },
// {
// LogicalZone: to.Ptr("2"),
// PhysicalZone: to.Ptr("eastus2-az3"),
// },
// {
// LogicalZone: to.Ptr("3"),
// PhysicalZone: to.Ptr("eastus2-az2"),
// }},
// DisplayName: to.Ptr("East US 2"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus2"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("36.6681"),
// Longitude: to.Ptr("-78.3889"),
// PairedRegion: []*armsubscriptions.PairedRegion{
// {
// Name: to.Ptr("centralus"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/centralus"),
// }},
// PhysicalLocation: to.Ptr("Virginia"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryRecommended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) East US 2"),
// },
// {
// Name: to.Ptr("ezecustomerlabboston1"),
// Type: to.Ptr(armsubscriptions.LocationTypeEdgeZone),
// DisplayName: to.Ptr("EZE Customer Lab Boston 1"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/eastus/edgeZones/ezecustomerlabboston1"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("42.301218"),
// Longitude: to.Ptr("-71.219038"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryExtended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) EZE Customer Lab Boston 1"),
// },
// {
// Name: to.Ptr("ezecustomerlabhouston1"),
// Type: to.Ptr(armsubscriptions.LocationTypeEdgeZone),
// DisplayName: to.Ptr("EZE Customer Lab Houston 1"),
// ID: to.Ptr("/subscriptions/a1ffc958-d2c7-493e-9f1e-125a0477f536/locations/southcentralus/edgeZones/ezecustomerlabhouston1"),
// Metadata: &armsubscriptions.LocationMetadata{
// Geography: to.Ptr("United States"),
// GeographyGroup: to.Ptr("US"),
// Latitude: to.Ptr("29.9411"),
// Longitude: to.Ptr("-95.41452"),
// RegionCategory: to.Ptr(armsubscriptions.RegionCategoryExtended),
// RegionType: to.Ptr(armsubscriptions.RegionTypePhysical),
// },
// RegionalDisplayName: to.Ptr("(US) EZE Customer Lab Houston 1"),
// }},
// }
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { SubscriptionClient } = require("@azure/arm-resources-subscriptions");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
*
* @summary This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
* x-ms-original-file: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocationsWithExtendedLocations.json
*/
async function getLocationsWithExtendedLocations() {
const subscriptionId = "a1ffc958-d2c7-493e-9f1e-125a0477f536";
const includeExtendedLocations = true;
const options = {
includeExtendedLocations,
};
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
for await (let item of client.subscriptions.listLocations(subscriptionId, options)) {
resArray.push(item);
}
console.log(resArray);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/resources/resource-manager/Microsoft.Resources/stable/2022-12-01/examples/GetLocationsWithExtendedLocations.json
// this example is just showing the usage of "Subscriptions_ListLocations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "a1ffc958-d2c7-493e-9f1e-125a0477f536";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscription = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation and iterate over the result
bool? includeExtendedLocations = true;
await foreach (LocationExpanded item in subscription.GetLocationsAsync(includeExtendedLocations: includeExtendedLocations))
{
Console.WriteLine($"Succeeded: {item}");
}
Console.WriteLine($"Succeeded");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Exemple de réponse
{
"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"
}
}
]
}
Définitions
AvailabilityZoneMappings
Mappages de zones de disponibilité pour la région
Nom |
Type |
Description |
logicalZone
|
string
|
ID de zone logique pour la zone de disponibilité
|
physicalZone
|
string
|
ID de zone physique complet de la zone de disponibilité auquel l’ID de zone logique est mappé
|
CloudError
Réponse d’erreur pour une demande de gestion des ressources.
Nom |
Type |
Description |
error
|
ErrorResponse
|
Réponse d’erreur
Réponse d’erreur courante pour toutes les API Azure Resource Manager pour retourner les détails de l’erreur concernant les opérations ayant échoué. (Cela suit également le format de réponse d’erreur OData.).
|
ErrorAdditionalInfo
Informations supplémentaires sur l’erreur de gestion des ressources.
Nom |
Type |
Description |
info
|
object
|
Informations supplémentaires
|
type
|
string
|
Type d’informations supplémentaires.
|
ErrorDetail
Détail de l’erreur.
Nom |
Type |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
Informations supplémentaires sur l’erreur.
|
code
|
string
|
Code d'erreur.
|
details
|
ErrorDetail[]
|
Détails de l’erreur.
|
message
|
string
|
Message d’erreur.
|
target
|
string
|
Cible d’erreur.
|
ErrorResponse
Réponse d’erreur
Location
Informations sur l’emplacement.
Nom |
Type |
Description |
availabilityZoneMappings
|
AvailabilityZoneMappings[]
|
Mappages de zones de disponibilité pour cette région.
|
displayName
|
string
|
Nom d’affichage de l’emplacement.
|
id
|
string
|
ID complet de l’emplacement. Par exemple, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
metadata
|
LocationMetadata
|
Métadonnées de l’emplacement, telles que lat/long, la région jumelée, etc.
|
name
|
string
|
Nom de l’emplacement.
|
regionalDisplayName
|
string
|
Nom d’affichage de l’emplacement et de sa région.
|
subscriptionId
|
string
|
L'ID de l'abonnement.
|
type
|
LocationType
|
Type d’emplacement.
|
LocationListResult
Réponse de l’opération de liste d’emplacements.
Nom |
Type |
Description |
value
|
Location[]
|
Tableau d’emplacements.
|
Informations sur les métadonnées d’emplacement
Nom |
Type |
Description |
geography
|
string
|
Géographie de l’emplacement.
|
geographyGroup
|
string
|
Groupe géographique de l’emplacement.
|
homeLocation
|
string
|
Emplacement d’accueil d’une zone de périphérie.
|
latitude
|
string
|
Latitude de la localisation.
|
longitude
|
string
|
Longitude de la localisation.
|
pairedRegion
|
PairedRegion[]
|
Régions associées à cette région.
|
physicalLocation
|
string
|
Emplacement physique de l’emplacement Azure.
|
regionCategory
|
RegionCategory
|
Catégorie de la région.
|
regionType
|
RegionType
|
Type de la région.
|
LocationType
Type d’emplacement.
Nom |
Type |
Description |
EdgeZone
|
string
|
|
Region
|
string
|
|
PairedRegion
Informations sur la région jumelée.
Nom |
Type |
Description |
id
|
string
|
ID complet de l’emplacement. Par exemple, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
name
|
string
|
Nom de la région jumelée.
|
subscriptionId
|
string
|
L'ID de l'abonnement.
|
RegionCategory
Catégorie de la région.
Nom |
Type |
Description |
Extended
|
string
|
|
Other
|
string
|
|
Recommended
|
string
|
|
RegionType
Type de la région.
Nom |
Type |
Description |
Logical
|
string
|
|
Physical
|
string
|
|