サイトまたはプラン ID を基に、プラン内のクォータおよび実際の使用量を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
esa:ListInstanceQuotasWithUsage |
list |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| InstanceId |
string |
任意 |
プラン ID。これは、ListSites 操作を呼び出すことで取得できます。 |
sp-xcdn-96wblslz**** |
| SiteId |
integer |
任意 |
サイト ID。これは、ListSites 操作を呼び出すことで取得できます。 |
1232223**** |
| QuotaNames |
string |
必須 |
プラン内のクォータ名です。複数のクォータ名をカンマ (,) で区切って指定します。1 回の照会で最大 10 個のクォータ名を指定できます。有効な値は以下のとおりです。
|
customHttpCert |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ |
||
| RequestId |
string |
リクエスト ID。 |
85H66C7B-671A-4297-9187-2C4477247A74 |
| InstanceId |
string |
|
sp-xcdn-96wblslz**** |
| Status |
string |
プランのステータス。有効な値は以下のとおりです。
|
online |
| Quotas |
array<object> |
プラン内のクォータおよびその実際の使用量。 |
|
|
array<object> |
プラン内のクォータおよびクォータ使用量の詳細情報。 |
||
| QuotaName |
string |
クォータ名。 |
redirect_rules|rule_quota |
| QuotaValue |
string |
クォータ値。 |
10 |
| Usage |
string |
クォータ使用量。 |
3 |
| SiteUsage |
array<object> |
プランに関連付けられた各サイトにおけるクォータの使用量。 |
|
|
object |
単一のサイトにおけるクォータ使用量の詳細情報。 |
||
| SiteId |
integer |
サイト ID。 |
34818329392**** |
| SiteUsage |
string |
サイトにおけるクォータ使用量。 |
1 |
| SiteName |
string |
サイト名。 |
test.top |
例
成功レスポンス
JSONJSON
{
"RequestId": "85H66C7B-671A-4297-9187-2C4477247A74",
"InstanceId": "sp-xcdn-96wblslz****",
"Status": "online",
"Quotas": [
{
"QuotaName": "redirect_rules|rule_quota",
"QuotaValue": "10",
"Usage": "3",
"SiteUsage": [
{
"SiteId": 0,
"SiteUsage": "1",
"SiteName": "test.top"
}
]
}
]
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | QuotaNotExist | The quota item does not exist or the purchased plan has not taken effect. Confirm and try again. | |
| 400 | InstanceNotExist | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. | |
| 400 | NoPermission | You do not have permissions to access or operate on the resource.Contact your account administrator to attach the AliyunESAFullAccess policy to the current user. | |
| 400 | ErService.HasOpened | You have already activated Edge Routine. | |
| 403 | Site.NotExist | The specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system. | |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | |
| 404 | UnsupportQuota | Unsupported quota is specified. Check and try again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。