ECS インスタンス資産の統計情報を照会します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
yundun-sas:DescribeFieldStatistics |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
任意 |
サーバーが配置されているリージョンの ID です。 |
cn-hangzhou |
| MachineTypes |
string |
任意 |
照会対象の資産タイプです。このパラメーターを省略した場合、本操作はすべての資産タイプについての統計情報を返します。有効な値は以下のとおりです。
|
ecs |
| ResourceDirectoryAccountId |
integer |
任意 |
リソースディレクトリ内の管理アカウントの ID です。 説明
このパラメーターを取得するには、DescribeMonitorAccounts API を呼び出します。 |
1232428423234**** |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答データです。 |
||
| RequestId |
string |
リクエストの ID です。問題の特定およびトラブルシューティングに使用されます。 |
7E0618A9-D5EF-4220-9471-C42B5E92719F |
| GroupedFields |
object |
資産に関する統計情報です。 |
|
| OfflineInstanceCount |
integer |
オフライン状態のインスタンス数です。 |
21 |
| NoRiskInstanceCount |
integer |
リスクのない資産数です。 |
10 |
| UnKnowStatusInstanceCount |
integer |
ステータスが不明な資産数です。 |
1 |
| RegionCount |
integer |
資産が配置されているリージョン数です。 |
11 |
| NewInstanceCount |
integer |
新規インスタンス数です。 |
10 |
| ExposedInstanceCount |
integer |
公開済み資産数です。 |
1 |
| GroupCount |
integer |
サーバーグループ数です。 |
20 |
| TencentInstanceCount |
integer |
Tencent Cloud インスタンス数です。 |
10 |
| GeneralAssetCount |
integer |
一般資産数です。 |
10 |
| InstanceSyncTaskCount |
integer |
指定された資産タイプに対するタスク数です。資産タイプが指定されていない場合は、すべてのサーバーおよびクラウドサービスの合計タスク数を示します。 |
10 |
| UnprotectedInstanceCount |
integer |
保護されていない資産数です。 |
10 |
| ImportantAssetCount |
integer |
重要資産数です。 |
10 |
| TestAssetCount |
integer |
テスト資産数です。 |
10 |
| VpcCount |
integer |
Virtual Private Cloud (VPC) の数です。 |
5 |
| InstanceCount |
integer |
指定された資産タイプの資産総数です。資産タイプが指定されていない場合は、すべてのサーバーおよびクラウドサービスの合計数を示します。 |
100 |
| PauseInstanceCount |
integer |
一時停止中のインスタンス数です。 |
10 |
| IdcInstanceCount |
integer |
データセンターに展開された資産数です。 |
100 |
| NotRunningStatusCount |
integer |
実行中でないインスタンス数です。 |
10 |
| AliYunInstanceCount |
integer |
Alibaba Cloud インスタンス数です。 |
100 |
| RiskInstanceCount |
integer |
リスクのある資産数です。 |
90 |
| HuaweiInstanceCount |
integer |
HUAWEI CLOUD インスタンス数です。 |
0 |
| AwsInstanceCount |
integer |
Amazon Web Services (AWS) インスタンス数です。 |
100 |
| OutMachineInstanceCount |
integer |
Alibaba Cloud 上に展開されていないインスタンス数です。 |
20 |
| TripartiteInstanceCount |
integer |
Simple Application Server インスタンス数です。 |
2 |
| AzureInstanceCount |
integer |
Microsoft Azure インスタンス数です。 |
5 |
| InstanceCoreCount |
integer |
指定された資産タイプの資産における CPU コア総数です。資産タイプが指定されていない場合は、すべてのサーバーおよびクラウドサービスの CPU コア総数を示します。 |
301 |
| RiskInstanceCoreCount |
integer |
リスクのある資産の CPU コア数です。 |
201 |
| ExposedInstanceCoreCount |
integer |
公開済み資産の CPU コア数です。 |
30 |
| UnprotectedInstanceCoreCount |
integer |
保護されていない資産の CPU コア数です。 |
30 |
| NotRunningStatusCoreCount |
integer |
実行中でないインスタンスの CPU コア数です。 |
30 |
| NewInstanceCoreCount |
integer |
新規インスタンスの CPU コア数です。 |
30 |
| NotBindMachineInstanceCount |
integer |
指定された資産タイプのライセンス未適用資産数です。 |
10 |
| VolcengineInstanceCount |
integer |
VolcEngine インスタンス数です。 |
10 |
| GoogleInstanceCount |
integer |
Google Cloud インスタンス数です。 |
10 |
| BaiduInstanceCount |
integer |
Baidu AI Cloud インスタンス数です。 |
5 |
| UcloudInstanceCount |
integer |
UCloud インスタンス数です。 |
5 |
| StateCloudInstanceCount |
integer |
e-Cloud インスタンス数です。 |
5 |
| KingsoftInstanceCount |
integer |
Kingsoft Cloud インスタンス数です。 |
5 |
例
成功レスポンス
JSONJSON
{
"RequestId": "7E0618A9-D5EF-4220-9471-C42B5E92719F",
"GroupedFields": {
"OfflineInstanceCount": 21,
"NoRiskInstanceCount": 10,
"UnKnowStatusInstanceCount": 1,
"RegionCount": 11,
"NewInstanceCount": 10,
"ExposedInstanceCount": 1,
"GroupCount": 20,
"TencentInstanceCount": 10,
"GeneralAssetCount": 10,
"InstanceSyncTaskCount": 10,
"UnprotectedInstanceCount": 10,
"ImportantAssetCount": 10,
"TestAssetCount": 10,
"VpcCount": 5,
"InstanceCount": 100,
"PauseInstanceCount": 10,
"IdcInstanceCount": 100,
"NotRunningStatusCount": 10,
"AliYunInstanceCount": 100,
"RiskInstanceCount": 90,
"HuaweiInstanceCount": 0,
"AwsInstanceCount": 100,
"OutMachineInstanceCount": 20,
"TripartiteInstanceCount": 2,
"AzureInstanceCount": 5,
"InstanceCoreCount": 301,
"RiskInstanceCoreCount": 201,
"ExposedInstanceCoreCount": 30,
"UnprotectedInstanceCoreCount": 30,
"NotRunningStatusCoreCount": 30,
"NewInstanceCoreCount": 30,
"NotBindMachineInstanceCount": 10,
"VolcengineInstanceCount": 10,
"GoogleInstanceCount": 10,
"BaiduInstanceCount": 5,
"UcloudInstanceCount": 5,
"StateCloudInstanceCount": 5,
"KingsoftInstanceCount": 5
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 400 | RdCheckNoPermission | Resource directory account verification has no permission. | |
| 500 | RdCheckInnerError | Resource directory account service internal error. | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。