Descrive le informazioni specifiche dell'area.
Fornisce l'archiviazione alle informazioni sulla prossimità di rete e sul mapping delle zone logiche.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/regionInfo?api-version=2023-07-01
Parametri dell'URI
Nome |
In |
Necessario |
Tipo |
Descrizione |
location
|
path |
True
|
string
|
Nome dell'area di Azure.
|
subscriptionId
|
path |
True
|
string
uuid
|
ID della sottoscrizione di destinazione. Il valore deve essere un UUID.
|
api-version
|
query |
True
|
string
|
Versione dell'API da usare per questa operazione.
|
Risposte
Nome |
Tipo |
Descrizione |
200 OK
|
regionInfo
|
OK
|
Other Status Codes
|
ErrorResponse
|
Risposta di errore che descrive il motivo per cui l'operazione non è riuscita.
|
Sicurezza
azure_auth
Flusso OAuth2 di Azure Active Directory
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Nome |
Descrizione |
user_impersonation
|
rappresentare l'account utente
|
Esempio
RegionInfo_Query
Sample Request
GET https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/regionInfo?api-version=2023-07-01
/**
* Samples for NetAppResource QueryRegionInfo.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json
*/
/**
* Sample code: RegionInfo_Query.
*
* @param manager Entry point to NetAppFilesManager.
*/
public static void regionInfoQuery(com.azure.resourcemanager.netapp.NetAppFilesManager manager) {
manager.netAppResources().queryRegionInfoWithResponse("eastus", 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.netapp import NetAppManagementClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-netapp
# USAGE
python region_info.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 = NetAppManagementClient(
credential=DefaultAzureCredential(),
subscription_id="D633CC2E-722B-4AE1-B636-BBD9E4C60ED9",
)
response = client.net_app_resource.query_region_info(
location="eastus",
)
print(response)
# x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.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 armnetapp_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v6"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/cf5ad1932d00c7d15497705ad6b71171d3d68b1e/specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json
func ExampleResourceClient_QueryRegionInfo() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armnetapp.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewResourceClient().QueryRegionInfo(ctx, "eastus", nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res.RegionInfo = armnetapp.RegionInfo{
// AvailabilityZoneMappings: []*armnetapp.RegionInfoAvailabilityZoneMappingsItem{
// {
// AvailabilityZone: to.Ptr("1"),
// IsAvailable: to.Ptr(true),
// }},
// StorageToNetworkProximity: to.Ptr(armnetapp.RegionStorageToNetworkProximityT2),
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { NetAppManagementClient } = require("@azure/arm-netapp");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Provides storage to network proximity and logical zone mapping information.
*
* @summary Provides storage to network proximity and logical zone mapping information.
* x-ms-original-file: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json
*/
async function regionInfoQuery() {
const subscriptionId =
process.env["NETAPP_SUBSCRIPTION_ID"] || "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
const location = "eastus";
const credential = new DefaultAzureCredential();
const client = new NetAppManagementClient(credential, subscriptionId);
const result = await client.netAppResource.queryRegionInfo(location);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using System;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.NetApp;
using Azure.ResourceManager.NetApp.Models;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/netapp/resource-manager/Microsoft.NetApp/stable/2023-07-01/examples/RegionInfo.json
// this example is just showing the usage of "NetAppResource_QueryRegionInfo" 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 = "D633CC2E-722B-4AE1-B636-BBD9E4C60ED9";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("eastus");
NetAppRegionInfo result = await subscriptionResource.QueryRegionInfoNetAppResourceAsync(location);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Sample Response
{
"storageToNetworkProximity": "T2",
"availabilityZoneMappings": [
{
"availabilityZone": "1",
"isAvailable": true
}
]
}
Definizioni
AvailabilityZoneMappings
Mapping logici delle zone di disponibilità.
Nome |
Tipo |
Descrizione |
availabilityZone
|
string
|
Zona di disponibilità logica.
|
isAvailable
|
boolean
|
Zona di disponibilità disponibile
|
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
|
ErrorAdditionalInfo[]
|
Informazioni aggiuntive sull'errore.
|
code
|
string
|
Codice di errore.
|
details
|
ErrorDetail[]
|
Dettagli dell'errore.
|
message
|
string
|
Messaggio di errore.
|
target
|
string
|
Destinazione dell'errore.
|
ErrorResponse
Risposta di errore
regionInfo
Fornisce informazioni specifiche sull'area geografica.
Nome |
Tipo |
Descrizione |
availabilityZoneMappings
|
AvailabilityZoneMappings[]
|
Mapping logici delle zone di disponibilità.
Fornisce mapping logici delle zone di disponibilità per la sottoscrizione per un'area.
|
storageToNetworkProximity
|
RegionStorageToNetworkProximity
|
Prossimità tra archiviazione e rete
Fornisce l'archiviazione alle informazioni sulla prossimità di rete nell'area.
|
RegionStorageToNetworkProximity
Prossimità tra archiviazione e rete
Nome |
Tipo |
Descrizione |
AcrossT2
|
string
|
Connettività di rete Standard AcrossT2.
|
Default
|
string
|
Connettività di rete di base.
|
T1
|
string
|
Connettività di rete T1 Standard.
|
T1AndAcrossT2
|
string
|
Connettività di rete Standard T1 e AcrossT2.
|
T1AndT2
|
string
|
Connettività di rete T1 e T2 Standard.
|
T1AndT2AndAcrossT2
|
string
|
Connettività di rete Standard T1, T2 e AcrossT2.
|
T2
|
string
|
Connettività di rete T2 Standard.
|
T2AndAcrossT2
|
string
|
Connettività di rete Standard T2 e AcrossT2.
|