Mengkueri semua tag di Wilayah tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeTags |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID Wilayah Instans. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar Wilayah terbaru. |
cn-hangzhou |
| ResourceType |
string |
No |
Tipe sumber daya. Tetapkan nilai ke INSTANCE. |
INSTANCE |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya. |
dds-bp17e7a04960**** |
| NextToken |
string |
No |
Token yang digunakan untuk memulai kueri berikutnya untuk mengambil lebih banyak hasil. Catatan
Parameter ini tidak diperlukan di kueri pertama. Jika tidak semua hasil dikembalikan dalam satu kueri, Anda dapat meneruskan nilai NextToken yang dikembalikan di kueri sebelumnya untuk menjalankan kueri lagi. |
212db86**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The token used to start the next query. Catatan
If not all results are returned in the first query, this parameter is returned. You can pass in the value of this parameter in the next query. |
212db86**** |
| RequestId |
string |
The ID of the request. |
EEDBE38F-5CF5-4316-AAC2-35817BA60D68 |
| Tags |
array<object> |
Details about the tags. |
|
|
object |
|||
| TagValues |
array |
The values of the tags. |
|
|
string |
The value of the tag. |
3.4环境 |
|
| TagKey |
string |
The key of the tag. |
测试组 |
Contoh
Respons sukses
JSONformat
{
"NextToken": "212db86****",
"RequestId": "EEDBE38F-5CF5-4316-AAC2-35817BA60D68",
"Tags": [
{
"TagValues": [
"3.4环境"
],
"TagKey": "测试组"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidTagKey.Malformed | The specified parameter 'Tag.n.Key' or 'TagKey.n' is not valid. | |
| 400 | InvalidTagValue.Malformed | The specified parameter 'Tag.n.Value' is not valid. | |
| 400 | InvalidParameter.ResourceId | The specified parameter 'ResourceId.n' is not valid. | |
| 400 | MissParameter.TagOrResourceId | The parameter 'Tag.n'' or 'ResourceId.n' is needed. | |
| 400 | InvalidParameter.Scope | The specified parameter 'Scope' is not valid. | |
| 400 | NumberExceed.ResourceIds | The ResourceIds parameter's number is exceed. | |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed. | |
| 400 | Duplicate.TagKey | The specified parameter 'Tag.n.Key' is duplicated. | |
| 400 | InvalidParameter.ResourceType | The specified parameter 'ResourceType' is not valid. | |
| 404 | InvalidDbInstanceId.NotFound | Specified instance does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.