Obtém todas as localizações geográficas disponíveis.
Esta operação fornece todas as localizações disponíveis para os fornecedores de recursos; no entanto, cada fornecedor de recursos pode suportar um subconjunto desta lista.
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01
Com parâmetros opcionais:
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01&includeExtendedLocations={includeExtendedLocations}
Parâmetros do URI
Name |
Em |
Necessário |
Tipo |
Description |
subscriptionId
|
path |
True
|
string
|
O ID da subscrição de destino.
|
api-version
|
query |
True
|
string
|
A versão da API a utilizar para esta operação.
|
includeExtendedLocations
|
query |
|
boolean
|
Se pretende incluir localizações expandidas.
|
Respostas
Name |
Tipo |
Description |
200 OK
|
LocationListResult
|
OK - Devolve uma matriz de localizações.
|
Other Status Codes
|
CloudError
|
Resposta de erro que descreve o motivo pela qual a operação falhou.
|
Segurança
azure_auth
Fluxo OAuth2 do Azure Active Directory
Tipo:
oauth2
Fluxo:
implicit
URL de Autorização:
https://login.microsoftonline.com/common/oauth2/authorize
Âmbitos
Name |
Description |
user_impersonation
|
representar a sua conta de utilizador
|
Exemplos
GetLocationsWithASubscriptionId
Pedido de amostra
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://video2.skills-academy.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
Resposta da amostra
{
"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
Pedido de amostra
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://video2.skills-academy.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
Resposta da amostra
{
"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"
}
}
]
}
Definições
AvailabilityZoneMappings
Mapeamentos de zona de disponibilidade para a região
Name |
Tipo |
Description |
logicalZone
|
string
|
O ID da zona lógica para a zona de disponibilidade
|
physicalZone
|
string
|
O ID de zona física completamente qualificado da zona de disponibilidade para a qual o ID de zona lógica está mapeado
|
CloudError
Uma resposta de erro para um pedido de gestão de recursos.
Name |
Tipo |
Description |
error
|
ErrorResponse
|
Resposta a erros
Resposta de erro comum para todas as APIs do Azure Resource Manager para devolver detalhes do erro para operações com falhas. (Isto também segue o formato de resposta de erro OData.).
|
ErrorAdditionalInfo
Informações adicionais sobre o erro de gestão de recursos.
Name |
Tipo |
Description |
info
|
object
|
As informações adicionais.
|
type
|
string
|
O tipo de informações adicionais.
|
ErrorDetail
O detalhe do erro.
Name |
Tipo |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
As informações adicionais do erro.
|
code
|
string
|
O código de erro.
|
details
|
ErrorDetail[]
|
Os detalhes do erro.
|
message
|
string
|
A mensagem de erro.
|
target
|
string
|
O destino do erro.
|
ErrorResponse
Resposta a erros
Name |
Tipo |
Description |
error
|
ErrorDetail
|
O objeto de erro.
|
Location
Informações de localização.
Name |
Tipo |
Description |
availabilityZoneMappings
|
AvailabilityZoneMappings[]
|
Os mapeamentos de zona de disponibilidade para esta região.
|
displayName
|
string
|
O nome a apresentar da localização.
|
id
|
string
|
O ID completamente qualificado da localização. Por exemplo, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
metadata
|
LocationMetadata
|
Metadados da localização, como lat/long, região emparelhada e outros.
|
name
|
string
|
O nome da localização.
|
regionalDisplayName
|
string
|
O nome a apresentar da localização e da respetiva região.
|
subscriptionId
|
string
|
O ID da subscrição.
|
type
|
LocationType
|
O tipo de localização.
|
LocationListResult
Resposta da operação da lista de localização.
Name |
Tipo |
Description |
value
|
Location[]
|
Uma matriz de localizações.
|
Informações de metadados de localização
Name |
Tipo |
Description |
geography
|
string
|
A geografia da localização.
|
geographyGroup
|
string
|
O grupo geográfico da localização.
|
homeLocation
|
string
|
A localização principal de uma zona de limite.
|
latitude
|
string
|
A latitude da localização.
|
longitude
|
string
|
A longitude da localização.
|
pairedRegion
|
PairedRegion[]
|
As regiões emparelhadas com esta região.
|
physicalLocation
|
string
|
A localização física da localização do Azure.
|
regionCategory
|
RegionCategory
|
A categoria da região.
|
regionType
|
RegionType
|
O tipo da região.
|
LocationType
O tipo de localização.
Name |
Tipo |
Description |
EdgeZone
|
string
|
|
Region
|
string
|
|
PairedRegion
Informações sobre a região emparelhada.
Name |
Tipo |
Description |
id
|
string
|
O ID completamente qualificado da localização. Por exemplo, /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
name
|
string
|
O nome da região emparelhada.
|
subscriptionId
|
string
|
O ID da subscrição.
|
RegionCategory
A categoria da região.
Name |
Tipo |
Description |
Extended
|
string
|
|
Other
|
string
|
|
Recommended
|
string
|
|
RegionType
O tipo da região.
Name |
Tipo |
Description |
Logical
|
string
|
|
Physical
|
string
|
|