Mengkueri kunci tag dari sumber daya dalam akun manajemen atau anggota direktori sumber daya Anda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:SearchMultiAccountResources |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Scope |
string |
Yes |
Lingkup pencarian. Nilai parameter ini dapat berupa salah satu item berikut:
|
rd-r4**** |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan di setiap halaman. Nilai yang valid: 1 hingga 100. Nilai default: 20. |
10 |
| NextToken |
string |
No |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. Jika jumlah total entri yang dikembalikan untuk permintaan saat ini melebihi nilai parameter |
eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd**** |
| TagKey |
string |
No |
Kunci tag. |
test_key |
| MatchType |
string |
No |
Mode pencocokan. Nilai yang valid:
|
Equals |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| NextToken |
string |
Token paginasi yang digunakan dalam permintaan berikutnya untuk mengambil halaman hasil baru. |
AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P**** |
| RequestId |
string |
ID permintaan. |
FA6086F9-6363-51A5-A507-88E3201EBCCB |
| TagKeys |
array |
Kunci tag. |
|
|
string |
Sebuah kunci tag. |
test_key |
Contoh
Respons sukses
JSONformat
{
"NextToken": "AAAAARfZmVDe9NvRXloR5+8CK9nNJufMdRA7W1miLC1P****",
"RequestId": "FA6086F9-6363-51A5-A507-88E3201EBCCB",
"TagKeys": [
"test_key"
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | The MaxResults parameter is invalid. |
| 400 | MultiAccountServiceNotEnabled | Multi account ResourceCenter service is not enabled. | |
| 403 | NoPermission.AccountScope | The operator is not permitted for this account scope. | The operator is not permitted for this account scope. |
| 404 | NotExists.ResourceDirectory | The resource directory for the account is not enabled. | No resource directory is enabled for the account. |
| 404 | NotExists.ResourceDirectory.FolderId | The specified folder does not exist. | The specified folder does not exist. |
| 409 | NoPermission.ResourceDirectory.MemberAccount | ResourceDirectory Member Account is not authorized to perform this operation. | |
| 409 | InvalidParameter.Scope | The Scope is invalid. | |
| 409 | InvalidParameter.MatchType | The specified parameter MatchType is not valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.