Mengkueri nilai tag yang ditambahkan ke Sumber daya dalam templat atau stack di wilayah Alibaba Cloud.
Deskripsi operasi
In this example, the tag values of TagKey1 that is added to a stack in the China (Hangzhou) region are queried.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListTagValues |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari nilai tag. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Nilai valid:
|
stack |
| NextToken |
string |
No |
Token paginasi yang digunakan pada permintaan berikutnya untuk mengambil halaman hasil baru. |
caeba0bbb2be03f84eb48b699f0***** |
| Key |
string |
Yes |
Kunci tag. |
TagKey1 |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Common parameters.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. |
caeba0bbb2be03f84eb48b699f0***** |
| RequestId |
string |
The ID of the request. |
C429473A-5C66-4661-B5F8-4F900CD4330A |
| Values |
array |
The tag values. |
|
|
string |
The tag value. |
TagValue1 |
Contoh
Respons sukses
JSONformat
{
"NextToken": "caeba0bbb2be03f84eb48b699f0*****",
"RequestId": "C429473A-5C66-4661-B5F8-4F900CD4330A",
"Values": [
"TagValue1"
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.