Lekéri az összes elérhető földrajzi helyet.
Ez a művelet az erőforrás-szolgáltatók számára elérhető összes helyet biztosítja; az egyes erőforrás-szolgáltatók azonban támogathatják a lista egy részét.
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01
Opcionális paraméterekkel:
GET https://management.azure.com/subscriptions/{subscriptionId}/locations?api-version=2022-12-01&includeExtendedLocations={includeExtendedLocations}
URI-paraméterek
Name |
In |
Kötelező |
Típus |
Description |
subscriptionId
|
path |
True
|
string
|
A cél-előfizetés azonosítója.
|
api-version
|
query |
True
|
string
|
A művelethez használandó API-verzió.
|
includeExtendedLocations
|
query |
|
boolean
|
A kiterjesztett helyek is belefoglalandók-e.
|
Válaszok
Name |
Típus |
Description |
200 OK
|
LocationListResult
|
OK – Helytömböt ad vissza.
|
Other Status Codes
|
CloudError
|
Hibaválasz, amely leírja, hogy a művelet miért hiúsult meg.
|
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
Name |
Description |
user_impersonation
|
felhasználói fiók megszemélyesítése
|
Példák
GetLocationsWithASubscriptionId
Mintakérelem
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
Mintaválasz
{
"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
Mintakérelem
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
Mintaválasz
{
"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"
}
}
]
}
Definíciók
AvailabilityZoneMappings
A régió rendelkezésre állási zónaleképezései
Name |
Típus |
Description |
logicalZone
|
string
|
A rendelkezésre állási zóna logikai zónaazonosítója
|
physicalZone
|
string
|
Annak a rendelkezésreállási zónának a teljes fizikai zónaazonosítója, amelyre a logikai zóna azonosítója le van képezve
|
CloudError
Hibaválasz egy erőforrás-kezelési kérelemhez.
Name |
Típus |
Description |
error
|
ErrorResponse
|
Hibaválasz
Az összes Azure Resource Manager API gyakori hibaválasza a sikertelen műveletek hibaadatainak visszaadásához. (Ez az OData hibaválasz formátumát is követi.)
|
ErrorAdditionalInfo
Az erőforrás-kezelési hiba további információi.
Name |
Típus |
Description |
info
|
object
|
A további információk.
|
type
|
string
|
A további információtípus.
|
ErrorDetail
A hiba részletei.
Name |
Típus |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
A hiba további információi.
|
code
|
string
|
A hibakód.
|
details
|
ErrorDetail[]
|
A hiba részletei.
|
message
|
string
|
A hibaüzenet.
|
target
|
string
|
A hibacél.
|
ErrorResponse
Hibaválasz
Name |
Típus |
Description |
error
|
ErrorDetail
|
A hibaobjektum.
|
Location
Helyadatok.
Name |
Típus |
Description |
availabilityZoneMappings
|
AvailabilityZoneMappings[]
|
A régió rendelkezésre állási zónájának leképezései.
|
displayName
|
string
|
A hely megjelenítendő neve.
|
id
|
string
|
A hely teljes azonosítója. Például: /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
metadata
|
LocationMetadata
|
A hely metaadatai, például a lat/long, a párosított régió és mások.
|
name
|
string
|
A hely neve.
|
regionalDisplayName
|
string
|
A hely és a régió megjelenítendő neve.
|
subscriptionId
|
string
|
Az előfizetés azonosítója.
|
type
|
LocationType
|
A hely típusa.
|
LocationListResult
Helylista műveleti válasza.
Name |
Típus |
Description |
value
|
Location[]
|
Helyek tömbje.
|
Hely metaadatai
Name |
Típus |
Description |
geography
|
string
|
A hely földrajzi helye.
|
geographyGroup
|
string
|
A hely földrajzi csoportja.
|
homeLocation
|
string
|
Egy peremhálózati zóna otthoni helye.
|
latitude
|
string
|
A hely szélessége.
|
longitude
|
string
|
A hely hosszúsága.
|
pairedRegion
|
PairedRegion[]
|
Az ehhez a régióhoz párosított régiók.
|
physicalLocation
|
string
|
Az Azure-hely fizikai helye.
|
regionCategory
|
RegionCategory
|
A régió kategóriája.
|
regionType
|
RegionType
|
A régió típusa.
|
LocationType
A hely típusa.
Name |
Típus |
Description |
EdgeZone
|
string
|
|
Region
|
string
|
|
PairedRegion
A párosított régióra vonatkozó információk.
Name |
Típus |
Description |
id
|
string
|
A hely teljes azonosítója. Például: /subscriptions/8d65815f-a5b6-402f-9298-045155da7d74/locations/westus.
|
name
|
string
|
A párosított régió neve.
|
subscriptionId
|
string
|
Az előfizetés azonosítója.
|
RegionCategory
A régió kategóriája.
Name |
Típus |
Description |
Extended
|
string
|
|
Other
|
string
|
|
Recommended
|
string
|
|
RegionType
A régió típusa.
Name |
Típus |
Description |
Logical
|
string
|
|
Physical
|
string
|
|