Mengambil statistik untuk aset instans ECS.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeFieldStatistics |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah tempat server berada. |
cn-hangzhou |
| MachineTypes |
string |
No |
Jenis aset yang akan ditanyakan. Jika Anda menghilangkan parameter ini, operasi ini akan mengembalikan statistik untuk semua jenis aset. Nilai yang valid:
|
ecs |
| ResourceDirectoryAccountId |
integer |
No |
ID akun manajemen dalam Resource Directory. Catatan
Anda dapat memanggil API DescribeMonitorAccounts untuk mendapatkan parameter ini. |
1232428423234**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data respons. |
||
| RequestId |
string |
ID permintaan, yang digunakan untuk melacak dan memecahkan masalah. |
7E0618A9-D5EF-4220-9471-C42B5E92719F |
| GroupedFields |
object |
Informasi statistik tentang aset. |
|
| OfflineInstanceCount |
integer |
Jumlah instans offline. |
21 |
| NoRiskInstanceCount |
integer |
Jumlah aset bebas risiko. |
10 |
| UnKnowStatusInstanceCount |
integer |
Jumlah aset dengan status tidak diketahui. |
1 |
| RegionCount |
integer |
Jumlah wilayah tempat aset berada. |
11 |
| NewInstanceCount |
integer |
Jumlah instans baru. |
10 |
| ExposedInstanceCount |
integer |
Jumlah aset yang terpapar. |
1 |
| GroupCount |
integer |
Jumlah kelompok server. |
20 |
| TencentInstanceCount |
integer |
Jumlah instans Tencent Cloud. |
10 |
| GeneralAssetCount |
integer |
Jumlah aset umum. |
10 |
| InstanceSyncTaskCount |
integer |
Jumlah tugas untuk jenis aset tertentu. Jika jenis aset tidak ditentukan, nilai ini menunjukkan jumlah total semua server dan layanan cloud. |
10 |
| UnprotectedInstanceCount |
integer |
Jumlah aset yang tidak dilindungi. |
10 |
| ImportantAssetCount |
integer |
Jumlah aset penting. |
10 |
| TestAssetCount |
integer |
Jumlah aset pengujian. |
10 |
| VpcCount |
integer |
Jumlah Virtual Private Cloud (VPC). |
5 |
| InstanceCount |
integer |
Jumlah total aset dari jenis yang ditentukan. Jika jenis aset tidak ditentukan, nilai ini menunjukkan jumlah total semua server dan layanan cloud. |
100 |
| PauseInstanceCount |
integer |
Jumlah instans yang ditangguhkan. |
10 |
| IdcInstanceCount |
integer |
Jumlah aset yang ditempatkan di pusat data. |
100 |
| NotRunningStatusCount |
integer |
Jumlah instans yang tidak berjalan. |
10 |
| AliYunInstanceCount |
integer |
Jumlah instans Alibaba Cloud. |
100 |
| RiskInstanceCount |
integer |
Jumlah aset yang berisiko. |
90 |
| HuaweiInstanceCount |
integer |
Jumlah instans HUAWEI CLOUD. |
0 |
| AwsInstanceCount |
integer |
Jumlah instans Amazon Web Services (AWS). |
100 |
| OutMachineInstanceCount |
integer |
Jumlah instans yang tidak ditempatkan di Alibaba Cloud. |
20 |
| TripartiteInstanceCount |
integer |
Jumlah instans Simple Application Server. |
2 |
| AzureInstanceCount |
integer |
Jumlah instans Microsoft Azure. |
5 |
| InstanceCoreCount |
integer |
Jumlah total core CPU dari aset jenis yang ditentukan. Jika jenis aset tidak ditentukan, nilai ini menunjukkan jumlah total core CPU dari semua server dan layanan cloud. |
301 |
| RiskInstanceCoreCount |
integer |
Jumlah core CPU dari aset yang berisiko. |
201 |
| ExposedInstanceCoreCount |
integer |
Jumlah core CPU dari aset yang terpapar. |
30 |
| UnprotectedInstanceCoreCount |
integer |
Jumlah core CPU dari aset yang tidak dilindungi. |
30 |
| NotRunningStatusCoreCount |
integer |
Jumlah core CPU dari instans yang tidak berjalan. |
30 |
| NewInstanceCoreCount |
integer |
Jumlah core CPU dari instans baru. |
30 |
| NotBindMachineInstanceCount |
integer |
Jumlah aset tanpa lisensi dari jenis aset yang ditentukan. |
10 |
| VolcengineInstanceCount |
integer |
Jumlah instans VolcEngine. |
10 |
| GoogleInstanceCount |
integer |
Jumlah instans Google Cloud. |
10 |
| BaiduInstanceCount |
integer |
Jumlah instans Baidu AI Cloud. |
5 |
| UcloudInstanceCount |
integer |
Jumlah instans UCloud. |
5 |
| StateCloudInstanceCount |
integer |
Jumlah instans e-Cloud. |
5 |
| KingsoftInstanceCount |
integer |
Jumlah instans Kingsoft Cloud. |
5 |
Contoh
Respons sukses
JSONformat
{
"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
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.