Mengkueri tag sumber daya.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:ListTagResources |
get |
LoadBalancer
ServerGroup
SecurityPolicy
Acl
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Nilai valid:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| MaxResults |
integer |
No |
Jumlah entri per halaman. Nilai valid: 1 hingga 100. Nilai default: 20. |
20 |
| ResourceType |
string |
Yes |
Tipe Sumber daya. Nilai valid:
|
loadbalancer |
| ResourceId |
array |
No |
ID sumber daya. |
acl-123 |
|
string |
No |
The resource ID. |
d-2ze1ot4ah7xjyv0d**** |
|
| Tag |
array<object> |
No |
Tag. |
test |
|
object |
No |
The tag. |
||
| Key |
string |
No |
The tag key. The tag key can be up to 128 characters in length and cannot start with |
env |
| Value |
string |
No |
The tag value. The tag value can be up to 128 characters in length and cannot start with |
product |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| MaxResults |
integer |
The number of entries per page. |
20 |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3 |
| TagResources |
array<object> |
The tags that match the specified keys and values. |
|
|
object |
The tag that matches the specified key and value. |
||
| ResourceId |
string |
The resource ID. |
d-2ze1ot4ah7xjyv0d**** |
| ResourceType |
string |
The type of the resource. Valid values:
|
loadbalancer |
| TagKey |
string |
The tag key. |
env |
| TagValue |
string |
The tag value. |
product |
Contoh
Respons sukses
JSONformat
{
"MaxResults": 20,
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3",
"TagResources": [
{
"ResourceId": "d-2ze1ot4ah7xjyv0d****",
"ResourceType": "loadbalancer",
"TagKey": "env",
"TagValue": "product"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | ResourceNotFound.Acl | The specified resource %s is not found. | |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.SecurityPolicy | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.ServerGroup | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.