Mengkueri nilai tag resource dalam akun manajemen atau anggota Direktori sumber daya dengan menggunakan akun manajemen Direktori sumber daya atau akun administrator terdelegasi Resource Center.
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 |
No |
Cakupan (dalam OAuth) pencarian. Anda dapat mengatur nilai ke salah satu item berikut:
|
rd-r4**** |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan per halaman. Nilai valid: 1 hingga 100. Nilai default: 20. |
10 |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Jika jumlah total entri yang dikembalikan untuk permintaan saat ini melebihi nilai parameter |
eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd**** |
| TagKey |
string |
Yes |
Kunci tag. |
test_key |
| TagValue |
string |
No |
Nilai tag. |
test_value |
| MatchType |
string |
No |
Mode pencocokan. Nilai valid:
|
Equals |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. |
eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd**** |
| RequestId |
string |
The ID of the request. |
36A3D9BE-B607-5993-B546-7E19EF65DC00 |
| TagValues |
array |
The tag values. |
|
|
string |
A tag value. |
test_value |
Contoh
Respons sukses
JSONformat
{
"NextToken": "eyJzZWFyY2hBZnRlcnMiOlsiMTAwMTU2Nzk4MTU1OSJd****",
"RequestId": "36A3D9BE-B607-5993-B546-7E19EF65DC00",
"TagValues": [
"test_value"
]
}
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.