Mengkueri tag yang ditambahkan ke Sumber daya sederhana, seperti Instans, snapshot, disk, image, perintah, dan aturan firewall.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:ListTagResources |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang ingin Anda gunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi lebih lanjut, lihat Memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. |
AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db*** |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Nilai valid:
|
instance |
| ResourceId |
array |
No |
ID Sumber daya. Anda dapat menentukan hingga 50 ID Sumber daya. |
|
|
string |
No |
The resource ID. |
s-bw526m1vi6x20c6g**** |
|
| Tag |
array<object> |
No |
Daftar tag. Anda dapat menentukan hingga 20 tag. |
|
|
object |
No |
The tag that is added to a resource. |
||
| Key |
string |
No |
The key of the tag that you want to add to a resource. The tag key can be 1 to 64 characters in length. |
TestKey |
| Value |
string |
No |
The value of the tag that you want to add to a resource. The tag value can be 1 to 64 characters in length. |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of response. |
||
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. |
AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db*** |
| RequestId |
string |
The request ID. |
20758A-585D-4A41-A9B2-28DA8F4F534F |
| TagResources |
object |
||
| TagResource |
array<object> |
A collection of resources and the tags of the resources. The information includes the resource IDs, resource types, and key-value pairs of tags. |
|
|
object |
The information about the resource and its tag. |
||
| ResourceType |
string |
The type of the resource. Valid values:
|
instance |
| TagValue |
string |
The tag value. |
TestValue |
| ResourceId |
string |
The resource ID. |
s-bw526m1vi6x20c6g**** |
| TagKey |
string |
The tag key. |
TestKey |
Contoh
Respons sukses
JSONformat
{
"NextToken": "AAAAAV3MpHK1AP0pfERHZN5pu6nOc1nj4M9UaAZ/I8db***",
"RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F\t",
"TagResources": {
"TagResource": [
{
"ResourceType": "instance",
"TagValue": "TestValue",
"ResourceId": "s-bw526m1vi6x20c6g****\n",
"TagKey": "TestKey"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.