Mengambil informasi mengenai layanan yang dipantau di CloudMonitor.
Deskripsi operasi
Informasi yang diperoleh dari operasi ini mencakup deskripsi layanan, namespace, dan tag.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Labels |
string |
No |
Tag. Tag digunakan untuk memfilter layanan. Anda hanya dapat memfilter layanan berdasarkan tag yang memiliki Catatan
Kami menyarankan agar Anda tidak menggunakan tag khusus di Konsol CloudMonitor. |
[{"name":"product","value":"ECS"}] |
| PageNumber |
integer |
No |
Nomor halaman. Nilai yang valid: 1 hingga 100. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai yang valid: 1 hingga 10000. Nilai default: 30. Catatan
Parameter ini tidak dibatasi. Anda dapat melihat jumlah entri yang besar dalam satu halaman. |
30 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
4C2061B2-3B1B-43BF-A4A4-C53426F479C0 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid: true: Permintaan berhasil. false: Permintaan gagal. |
true |
| Code |
string |
Kode status. Catatan
Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| Message |
string |
Pesan kesalahan. |
The Request is not authorization. |
| PageSize |
string |
Jumlah entri per halaman. |
5 |
| PageNumber |
string |
Nomor halaman. |
1 |
| Total |
string |
Total jumlah entri yang dikembalikan. |
12 |
| Resources |
object |
||
| Resource |
array<object> |
Detail layanan cloud. |
|
|
object |
|||
| Namespace |
string |
Namespace layanan cloud. Format: |
acs_cdn |
| Description |
string |
Deskripsi. |
CDN |
| Labels |
string |
Tag. Tag digunakan untuk memfilter layanan. Tag dikembalikan dalam format berikut:
|
[{"metricCategory":ecs}] |
Contoh
Respons sukses
JSONformat
{
"RequestId": "4C2061B2-3B1B-43BF-A4A4-C53426F479C0",
"Success": true,
"Code": "200",
"Message": "The Request is not authorization.",
"PageSize": "5",
"PageNumber": "1",
"Total": "12",
"Resources": {
"Resource": [
{
"Namespace": "acs_cdn",
"Description": "CDN",
"Labels": "[{\"metricCategory\":ecs}]"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.