Mengkueri izin yang dimiliki instans jaringan pada instans Cloud Enterprise Network (CEN) milik akun Alibaba Cloud lain. Operasi ini mengembalikan detail seperti akun utama pemilik Instans CEN dan pembayar untuk instans jaringan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:DescribeGrantRulesToResource |
get |
*VPC
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID Wilayah instans jaringan. Anda dapat memanggil operasi DescribeChildInstanceRegions untuk mengkueri ID Wilayah. |
cn-hangzhou |
| ResourceId |
string |
Yes |
ID instans jaringan. |
vpc-p0wfut1iqauelpdpb**** |
| ProductType |
string |
Yes |
Tipe instans jaringan. Nilai valid:
|
VPC |
| MaxResults |
integer |
No |
|
20 |
| NextToken |
string |
No |
Token yang digunakan untuk mengambil halaman hasil berikutnya. Nilai valid:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| NextToken |
string |
The token to use in your next request to retrieve a new page of results. Valid values:
|
FFmyTO70tTpLG6I3FmYAXGKPd**** |
| RequestId |
string |
The request ID. |
C6E5992C-A57B-5A6C-9B26-568074DC68BA |
| TotalCount |
integer |
The total number of entries returned. |
1 |
| MaxResults |
integer |
|
1 |
| GrantRules |
array<object> |
A list of permission records. |
|
|
object |
A permission record. |
||
| CenOwnerId |
integer |
The ID of the main account that owns the Cloud Enterprise Network (CEN) instance. |
1250123456123456 |
| OrderType |
string |
The payer for the network instance. Valid values:
|
PayByCenOwner |
| EffectiveOrderType |
string |
PayByCenOwner |
|
| CenId |
string |
The ID of the Cloud Enterprise Network (CEN) instance. |
cen-44m0p68spvlrqq**** |
| CreateTime |
string |
The timestamp when the permission was granted. The value is in UTC and follows the ISO 8601 standard: |
2024-01-24T16:46Z |
Contoh
Respons sukses
JSONformat
{
"NextToken": "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId": "C6E5992C-A57B-5A6C-9B26-568074DC68BA",
"TotalCount": 1,
"MaxResults": 1,
"GrantRules": [
{
"CenOwnerId": 1250123456123456,
"OrderType": "PayByCenOwner",
"EffectiveOrderType": "PayByCenOwner",
"CenId": "cen-44m0p68spvlrqq****",
"CreateTime": "2024-01-24T16:46Z"
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | MissingParameter | Missing parameter. | |
| 400 | InvalidParameter.RegionId | The specified Region Id is invalid. | |
| 400 | MissingParameter.RegionId | Missing RegionId parameter. | |
| 400 | IllegalParam.NextToken | NextToken is illegal | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.