Mengkueri tag yang dilampirkan ke Sumber daya.
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 berada. |
123xxxx |
| TagOwnerBid |
string |
No |
ID bisnis pemilik tag. |
26842 |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Tetapkan nilai ke DOMAIN. |
DOMAIN |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. |
QpgBAAAAAABsb2dzL2RzLw== |
| ResourceId |
array |
No |
ID Sumber daya. |
|
|
string |
No |
The ID of the instance N. Valid values of N: 1 to 50. |
example.com |
|
| Tag |
array<object> |
No |
Pasangan kunci-nilai tag. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the tag. |
testKey |
| Value |
string |
No |
The value of the tag. |
testValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
QpgBAAAAAABsb2dzL2RzLw== |
| RequestId |
string |
The request ID. |
64D28B53-5902-409B-94F6-FD46680144FE |
| TagResources |
object |
||
| TagResource |
array<object> |
The returned correspondence between the resource and tags. |
|
|
object |
|||
| TagValue |
string |
The value of the tag. |
testValue |
| ResourceType |
string |
The type of the resource. Set the value to DOMAIN. |
DOMAIN |
| ResourceId |
string |
The ID of the resource. |
example.com |
| TagKey |
string |
The key of the 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.