Mengambil daftar tag yang ditautkan ke suatu resource.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:ListTagResources |
get |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TagOwnerUid |
string |
No |
ID Akun Alibaba Cloud tempat tag tersebut berada. |
123xxxx |
| TagOwnerBid |
string |
No |
ID bisnis pemilik tag. |
26842 |
| ResourceType |
string |
Yes |
Jenis resource. Tetapkan nilainya ke DOMAIN. |
DOMAIN |
| NextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. |
QpgBAAAAAABsb2dzL2RzLw== |
| ResourceId |
array |
No |
ID resource. |
|
|
string |
No |
ID instans N. Nilai N yang valid: 1 hingga 50. |
example.com |
|
| Tag |
array<object> |
No |
Pasangan kunci-nilai dari sebuah tag. |
|
|
object |
No |
|||
| Key |
string |
No |
Kunci tag. |
testKey |
| Value |
string |
No |
Nilai tag. |
testValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. |
QpgBAAAAAABsb2dzL2RzLw== |
| RequestId |
string |
ID permintaan. |
64D28B53-5902-409B-94F6-FD46680144FE |
| TagResources |
object |
||
| TagResource |
array<object> |
Korespondensi yang dikembalikan antara resource dan tag. |
|
|
object |
|||
| TagValue |
string |
Nilai tag. |
testValue |
| ResourceType |
string |
Jenis resource. Tetapkan nilainya ke DOMAIN. |
DOMAIN |
| ResourceId |
string |
ID resource. |
example.com |
| TagKey |
string |
Kunci tag. |
testKey |
Contoh
Respons sukses
JSONformat
{
"NextToken": "QpgBAAAAAABsb2dzL2RzLw==",
"RequestId": "64D28B53-5902-409B-94F6-FD46680144FE",
"TagResources": {
"TagResource": [
{
"TagValue": "testValue",
"ResourceType": "DOMAIN",
"ResourceId": "example.com",
"TagKey": "testKey"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified RegionId is invalid. | |
| 400 | MissParameter.TagOrResourceId | Either Tag or ResourceId must be specified. | |
| 400 | TagIsInvalid | The number of Tag exceeds 20. | |
| 400 | ResourceIdIsInvalid | The number of ResourceId exceeds 50. | The number of resource IDs (ResourceId) cannot exceed 50. |
| 400 | TagKeyIsInvalid | The specified TagKey is invalid. | |
| 400 | TagValueIsInvalid | The specified TagValue is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.