你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
NetApp Resource - Check Quota Availability
检查配额可用性
检查配额是否可用。
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/locations/{location}/checkQuotaAvailability?api-version=2024-07-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
Azure 区域的名称。 |
subscription
|
path | True |
string uuid |
目标订阅的 ID。 该值必须是 UUID。 |
api-version
|
query | True |
string |
用于此操作的 API 版本。 |
请求正文
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
name | True |
string |
要验证的资源的名称。 |
resourceGroup | True |
string |
资源组名称。 |
type | True |
用于验证的资源类型。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行 |
|
Other Status Codes |
描述操作失败的原因的错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
CheckQuotaAvailability
示例请求
POST https://management.azure.com/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/providers/Microsoft.NetApp/locations/eastus/checkQuotaAvailability?api-version=2024-07-01
{
"name": "resource1",
"type": "Microsoft.NetApp/netAppAccounts",
"resourceGroup": "myRG"
}
示例响应
{
"isAvailable": true
}
定义
名称 | 说明 |
---|---|
Check |
有关资源可用性的信息。 |
Check |
用于验证的资源类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
In |
|
Quota |
配额可用性请求内容。 |
CheckAvailabilityResponse
有关资源可用性的信息。
名称 | 类型 | 说明 |
---|---|---|
isAvailable |
boolean |
|
message |
string |
如果 reason == 无效,请向用户提供给定名称无效的原因,并提供资源命名要求,以便用户可以选择有效的名称。 如果原因 == AlreadyExists,请解释资源名称已在使用中,并指示它们选择其他名称。 |
reason |
|
CheckQuotaNameResourceTypes
用于验证的资源类型。
名称 | 类型 | 说明 |
---|---|---|
Microsoft.NetApp/netAppAccounts |
string |
|
Microsoft.NetApp/netAppAccounts/capacityPools |
string |
|
Microsoft.NetApp/netAppAccounts/capacityPools/volumes |
string |
|
Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
InAvailabilityReasonType
Invalid
指示提供的名称与 Azure 应用服务命名要求不匹配。
AlreadyExists
指示名称已在使用中,因此不可用。
名称 | 类型 | 说明 |
---|---|---|
AlreadyExists |
string |
|
Invalid |
string |
QuotaAvailabilityRequest
配额可用性请求内容。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
要验证的资源的名称。 |
resourceGroup |
string |
资源组名称。 |
type |
用于验证的资源类型。 |