지정된 Azure 지역(위치)의 경우 리소스 공급자의 리소스에 대한 할당량 요청 ID로 할당량 요청의 세부 정보 및 상태 가져옵니다. 할당량(서비스 제한)에 대한 PUT 요청은 requestId 매개 변수를 사용하여 응답을 반환합니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}?api-version=2020-10-25
URI 매개 변수
Name |
In(다음 안에) |
필수 |
형식 |
Description |
id
|
path |
True
|
string
|
할당량 요청 ID입니다.
|
location
|
path |
True
|
string
|
Azure 지역.
|
providerId
|
path |
True
|
string
|
Azure 리소스 공급자 ID입니다.
|
subscriptionId
|
path |
True
|
string
|
Azure 구독 ID입니다.
|
api-version
|
query |
True
|
string
|
API 버전.
|
응답
보안
azure_auth
Azure Active Directory OAuth2 Flow
형식:
oauth2
Flow:
implicit
권한 부여 URL:
https://login.microsoftonline.com/common/oauth2/authorize
범위
Name |
Description |
user_impersonation
|
사용자 계정 가장
|
예제
QuotaRequestFailed
샘플 요청
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2020-10-25
/**
* Samples for QuotaRequestStatus Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/
* getQuotaRequestStatusFailed.json
*/
/**
* Sample code: QuotaRequestFailed.
*
* @param manager Entry point to ReservationsManager.
*/
public static void quotaRequestFailed(com.azure.resourcemanager.reservations.ReservationsManager manager) {
manager.quotaRequestStatus().getWithResponse("00000000-0000-0000-0000-000000000000", "Microsoft.Compute",
"eastus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.reservations import AzureReservationAPI
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-reservations
# USAGE
python get_quota_request_status_failed.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 = AzureReservationAPI(
credential=DefaultAzureCredential(),
)
response = client.quota_request_status.get(
subscription_id="00000000-0000-0000-0000-000000000000",
provider_id="Microsoft.Compute",
location="eastus",
id="2B5C8515-37D8-4B6A-879B-CD641A2CF605",
)
print(response)
# x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.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 armreservations_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
func ExampleQuotaRequestStatusClient_Get_quotaRequestFailed() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armreservations.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewQuotaRequestStatusClient().Get(ctx, "00000000-0000-0000-0000-000000000000", "Microsoft.Compute", "eastus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{
// Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"),
// ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Properties: &armreservations.QuotaRequestProperties{
// Message: to.Ptr("Request failed, please contatct support."),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()),
// Value: []*armreservations.SubRequest{
// {
// Name: &armreservations.ResourceName{
// LocalizedValue: to.Ptr("Standard HCS Family vCPUs"),
// Value: to.Ptr("standardHCSFamily"),
// },
// Limit: to.Ptr[int32](200),
// Message: to.Ptr("Request completed"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"),
// },
// {
// Name: &armreservations.ResourceName{
// LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"),
// Value: to.Ptr("standardNCPromoFamily"),
// },
// Limit: to.Ptr[int32](50),
// Message: to.Ptr("RRequest failed, please contatct support."),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"),
// }},
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureReservationAPI } = require("@azure/arm-reservations");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
*
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
*/
async function quotaRequestFailed() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const providerId = "Microsoft.Compute";
const location = "eastus";
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
const credential = new DefaultAzureCredential();
const client = new AzureReservationAPI(credential);
const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
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.Reservations;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
// this example is just showing the usage of "QuotaRequestStatus_Get" 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 = "00000000-0000-0000-0000-000000000000";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// get the collection of this QuotaRequestDetailResource
string providerId = "Microsoft.Compute";
AzureLocation location = new AzureLocation("eastus");
QuotaRequestDetailCollection collection = subscriptionResource.GetQuotaRequestDetails(providerId, location);
// invoke the operation
Guid id = Guid.Parse("2B5C8515-37D8-4B6A-879B-CD641A2CF605");
NullableResponse<QuotaRequestDetailResource> response = await collection.GetIfExistsAsync(id);
QuotaRequestDetailResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine($"Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
QuotaRequestDetailData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimitsRequests",
"name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"properties": {
"requestSubmitTime": "2019-08-19T19:23:17.904Z",
"message": "Request failed, please contatct support.",
"provisioningState": "Failed",
"value": [
{
"limit": 200,
"subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C",
"name": {
"value": "standardHCSFamily",
"localizedValue": "Standard HCS Family vCPUs"
},
"message": "Request completed",
"provisioningState": "Succeeded"
},
{
"limit": 50,
"subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C",
"name": {
"value": "standardNCPromoFamily",
"localizedValue": "Standard NC Promo Family vCPUs"
},
"message": "RRequest failed, please contatct support.",
"provisioningState": "Failed"
}
]
}
}
QuotaRequestInProgress
샘플 요청
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/westus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2020-10-25
/**
* Samples for QuotaRequestStatus Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/
* getQuotaRequestStatusInProgress.json
*/
/**
* Sample code: QuotaRequestInProgress.
*
* @param manager Entry point to ReservationsManager.
*/
public static void quotaRequestInProgress(com.azure.resourcemanager.reservations.ReservationsManager manager) {
manager.quotaRequestStatus().getWithResponse("00000000-0000-0000-0000-000000000000", "Microsoft.Compute",
"westus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.reservations import AzureReservationAPI
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-reservations
# USAGE
python get_quota_request_status_in_progress.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 = AzureReservationAPI(
credential=DefaultAzureCredential(),
)
response = client.quota_request_status.get(
subscription_id="00000000-0000-0000-0000-000000000000",
provider_id="Microsoft.Compute",
location="eastus",
id="2B5C8515-37D8-4B6A-879B-CD641A2CF605",
)
print(response)
# x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.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 armreservations_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
func ExampleQuotaRequestStatusClient_Get_quotaRequestInProgress() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armreservations.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewQuotaRequestStatusClient().Get(ctx, "00000000-0000-0000-0000-000000000000", "Microsoft.Compute", "eastus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{
// Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"),
// ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Properties: &armreservations.QuotaRequestProperties{
// Message: to.Ptr("Request processing"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()),
// Value: []*armreservations.SubRequest{
// {
// Name: &armreservations.ResourceName{
// LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"),
// Value: to.Ptr("standardNCPromoFamily"),
// },
// Limit: to.Ptr[int32](50),
// Message: to.Ptr("Request processing"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"),
// }},
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureReservationAPI } = require("@azure/arm-reservations");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
*
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
*/
async function quotaRequestInProgress() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const providerId = "Microsoft.Compute";
const location = "eastus";
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
const credential = new DefaultAzureCredential();
const client = new AzureReservationAPI(credential);
const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
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.Reservations;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
// this example is just showing the usage of "QuotaRequestStatus_Get" 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 = "00000000-0000-0000-0000-000000000000";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// get the collection of this QuotaRequestDetailResource
string providerId = "Microsoft.Compute";
AzureLocation location = new AzureLocation("eastus");
QuotaRequestDetailCollection collection = subscriptionResource.GetQuotaRequestDetails(providerId, location);
// invoke the operation
Guid id = Guid.Parse("2B5C8515-37D8-4B6A-879B-CD641A2CF605");
NullableResponse<QuotaRequestDetailResource> response = await collection.GetIfExistsAsync(id);
QuotaRequestDetailResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine($"Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
QuotaRequestDetailData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimitsRequests",
"name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"properties": {
"requestSubmitTime": "2019-08-19T19:23:17.904Z",
"message": "Request processing",
"provisioningState": "InProgress",
"value": [
{
"limit": 50,
"subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C",
"name": {
"value": "standardNCPromoFamily",
"localizedValue": "Standard NC Promo Family vCPUs"
},
"message": "Request processing",
"provisioningState": "InProgress"
}
]
}
}
QuotaRequestStatus
샘플 요청
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605?api-version=2020-10-25
/**
* Samples for QuotaRequestStatus Get.
*/
public final class Main {
/*
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/
* getQuotaRequestStatusById.json
*/
/**
* Sample code: QuotaRequestStatus.
*
* @param manager Entry point to ReservationsManager.
*/
public static void quotaRequestStatus(com.azure.resourcemanager.reservations.ReservationsManager manager) {
manager.quotaRequestStatus().getWithResponse("00000000-0000-0000-0000-000000000000", "Microsoft.Compute",
"eastus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.reservations import AzureReservationAPI
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-reservations
# USAGE
python get_quota_request_status_by_id.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 = AzureReservationAPI(
credential=DefaultAzureCredential(),
)
response = client.quota_request_status.get(
subscription_id="00000000-0000-0000-0000-000000000000",
provider_id="Microsoft.Compute",
location="eastus",
id="2B5C8515-37D8-4B6A-879B-CD641A2CF605",
)
print(response)
# x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.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 armreservations_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
func ExampleQuotaRequestStatusClient_Get_quotaRequestStatus() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armreservations.NewClientFactory(cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewQuotaRequestStatusClient().Get(ctx, "00000000-0000-0000-0000-000000000000", "Microsoft.Compute", "eastus", "2B5C8515-37D8-4B6A-879B-CD641A2CF605", 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{
// Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"),
// ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"),
// Properties: &armreservations.QuotaRequestProperties{
// Message: to.Ptr("Request completed"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()),
// Value: []*armreservations.SubRequest{
// {
// Name: &armreservations.ResourceName{
// LocalizedValue: to.Ptr("Standard HCS Family vCPUs"),
// Value: to.Ptr("standardHCSFamily"),
// },
// Limit: to.Ptr[int32](200),
// Message: to.Ptr("Request completed"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"),
// },
// {
// Name: &armreservations.ResourceName{
// LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"),
// Value: to.Ptr("standardNCPromoFamily"),
// },
// Limit: to.Ptr[int32](50),
// Message: to.Ptr("Request completed"),
// ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded),
// }},
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { AzureReservationAPI } = require("@azure/arm-reservations");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
*
* @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
* x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
*/
async function quotaRequestStatus() {
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const providerId = "Microsoft.Compute";
const location = "eastus";
const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
const credential = new DefaultAzureCredential();
const client = new AzureReservationAPI(credential);
const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
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.Reservations;
using Azure.ResourceManager.Resources;
// Generated from example definition: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
// this example is just showing the usage of "QuotaRequestStatus_Get" 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 = "00000000-0000-0000-0000-000000000000";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// get the collection of this QuotaRequestDetailResource
string providerId = "Microsoft.Compute";
AzureLocation location = new AzureLocation("eastus");
QuotaRequestDetailCollection collection = subscriptionResource.GetQuotaRequestDetails(providerId, location);
// invoke the operation
Guid id = Guid.Parse("2B5C8515-37D8-4B6A-879B-CD641A2CF605");
NullableResponse<QuotaRequestDetailResource> response = await collection.GetIfExistsAsync(id);
QuotaRequestDetailResource result = response.HasValue ? response.Value : null;
if (result == null)
{
Console.WriteLine($"Succeeded with null as result");
}
else
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
QuotaRequestDetailData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
샘플 응답
{
"id": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimitsRequests",
"name": "00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"properties": {
"requestSubmitTime": "2019-08-19T19:23:17.904Z",
"message": "Request completed",
"provisioningState": "Succeeded",
"value": [
{
"limit": 200,
"subRequestId": "AD07450A-DE86-4FD3-859B-107BEF218C4C",
"name": {
"value": "standardHCSFamily",
"localizedValue": "Standard HCS Family vCPUs"
},
"message": "Request completed",
"provisioningState": "Succeeded"
},
{
"limit": 50,
"name": {
"value": "standardNCPromoFamily",
"localizedValue": "Standard NC Promo Family vCPUs"
},
"message": "Request completed",
"provisioningState": "Succeeded"
}
]
}
}
정의
ExceptionResponse
API 오류입니다.
QuotaRequestDetails
할당량 요청 세부 정보입니다.
Name |
형식 |
Description |
id
|
string
|
할당량 요청 ID입니다.
|
name
|
string
|
할당량 요청 이름입니다.
|
properties.message
|
string
|
사용자에게 친숙한 상태 메시지입니다.
|
properties.provisioningState
|
QuotaRequestState
|
할당량 요청 상태.
|
properties.requestSubmitTime
|
string
|
ISO 8601 표준에 지정된 yyyy-MM-ddTHH:mm:ssZ 형식을 사용하여 할당량 요청을 제출한 시간입니다.
|
properties.value
|
SubRequest[]
|
quotaRequests입니다.
|
type
|
string
|
리소스 유형
|
QuotaRequestState
할당량 요청 상태.
Name |
형식 |
Description |
Accepted
|
string
|
|
Failed
|
string
|
|
InProgress
|
string
|
|
Invalid
|
string
|
|
Succeeded
|
string
|
|
ResourceName
리소스 공급자가 제공하는 리소스 이름입니다. quotaRequest 매개 변수에 이 속성을 사용합니다.
Name |
형식 |
Description |
localizedValue
|
string
|
리소스 표시 지역화된 이름입니다.
|
value
|
string
|
리소스 이름입니다.
|
ServiceError
API 오류 세부 정보입니다.
Name |
형식 |
Description |
code
|
string
|
오류 코드입니다.
|
details
|
ServiceErrorDetail[]
|
오류 세부 정보 목록입니다.
|
message
|
string
|
오류 메시지 텍스트입니다.
|
ServiceErrorDetail
오류 세부 정보입니다.
Name |
형식 |
Description |
code
|
string
|
오류 코드입니다.
|
message
|
string
|
오류 메시지입니다.
|
SubRequest
할당량 요청과 함께 제출된 하위 요청입니다.
Name |
형식 |
Description |
limit
|
integer
|
할당량(리소스 제한).
|
message
|
string
|
사용자에게 친숙한 상태 메시지입니다.
|
name
|
ResourceName
|
리소스 이름입니다.
|
provisioningState
|
QuotaRequestState
|
할당량 요청 상태.
|
resourceType
|
string
|
할당량이 검사 리소스 종류입니다.
|
subRequestId
|
string
|
개별 요청에 대한 하위 요청 ID입니다.
|
unit
|
string
|
개수 및 바이트와 같은 제한 단위입니다. GET 할당량 작업의 응답에 제공된 단위 필드를 사용합니다.
|