Mengambil informasi mengenai resource yang terkait dengan prefix list, termasuk ID dan tipe resource tersebut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribePrefixListAssociations |
get |
*PrefixList
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari prefix list. Anda dapat memanggil operasi DescribeRegions untuk menanyakan daftar wilayah terbaru. |
cn-chengdu |
| RegionId |
string |
Yes |
ID wilayah dari prefix list. Anda dapat memanggil operasi DescribeRegions untuk menanyakan daftar wilayah terbaru. |
cn-chengdu |
| PrefixListId |
string |
Yes |
ID dari prefix list. |
pl-x1j1k5ykzqlixdcy**** |
| NextToken |
string |
No |
Token kueri. Tetapkan nilainya ke nilai |
AAAAAdDWBF2**** |
| MaxResults |
integer |
No |
Jumlah maksimum entri per halaman. Nilai yang valid: 1 hingga 100. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
Token kueri yang dikembalikan dalam pemanggilan ini. Jika nilai kembaliannya kosong, tidak ada data tambahan yang dikembalikan. |
AAAAAdDWBF2**** |
| RequestId |
string |
ID permintaan. |
38793DB8-A4B2-4AEC-BFD3-111234E9188D |
| PrefixListAssociations |
object |
||
| PrefixListAssociation |
array<object> |
Detail tentang resource yang terkait dengan prefix list. |
|
|
object |
|||
| ResourceId |
string |
ID resource. |
sg-bp11ujym6xsff6l0**** |
| ResourceType |
string |
Tipe resource. |
securitygroup |
Contoh
Respons sukses
JSONformat
{
"NextToken": "AAAAAdDWBF2****",
"RequestId": "38793DB8-A4B2-4AEC-BFD3-111234E9188D",
"PrefixListAssociations": {
"PrefixListAssociation": [
{
"ResourceId": "sg-bp11ujym6xsff6l0****",
"ResourceType": "securitygroup"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 400 | NotSupported.ResourceType | The specified resource type is not supported. | |
| 404 | InvalidPrefixListId.NotFound | The specified prefix list was not found. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.