Memanggil operasi DescribeEcGrantRelation untuk mengkueri hubungan otorisasi instans yang terhubung ke VPC ke instans Virtual Border Router (VBR) dalam skenario uplink VBR lintas akun.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceType |
string |
Yes |
Tipe instans yang ingin Anda kueri hubungan otorisasinya. Nilai valid:
|
VBR |
| InstanceId |
string |
Yes |
ID instans yang ingin Anda kueri hubungan otorisasinya.
|
vbr-bp12mw1f8k3jgygk9**** |
| PageNumber |
integer |
No |
Nomor halaman daftar. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman dalam kueri berhalaman. Nilai maksimum: 50. Nilai default: 10. |
10 |
| VbrRegionNo |
string |
No |
ID wilayah instans VBR yang ingin Anda kueri hubungan otorisasinya.
|
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| RequestId |
string |
ID permintaan. |
E6E90F6B-2B41-5AAF-ABEB-236ADBAAD91D |
| EcGrantRelations |
array<object> |
Daftar hubungan otorisasi. |
|
|
object |
Daftar hubungan otorisasi. |
||
| VbrOwnerUid |
integer |
ID akun Alibaba Cloud Pemilik instans VBR. |
1210123456123456 |
| VbrInstanceId |
string |
ID instans VBR dalam hubungan otorisasi. |
vbr-m5ex0xf63xk8s5bob**** |
| InstanceId |
string |
ID instans yang terhubung ke VPC dalam hubungan otorisasi. |
vpc-bp1brjuegjc88v3u9**** |
| AliUid |
integer |
ID akun Alibaba Cloud Pemilik instans VPC. |
1250123456123456 |
| RegionNo |
string |
ID wilayah instans VPC dalam hubungan otorisasi. |
cn-hangzhou |
| Status |
string |
Status hubungan otorisasi. Nilai valid:
|
Created |
| InstanceName |
string |
Nama instans VPC dalam hubungan otorisasi. |
VPCname |
| InstanceRouterId |
string |
ID vRouter instans VPC dalam hubungan otorisasi. |
vrt-bp1i0yzgjd8ra05ec**** |
| VbrRegionNo |
string |
ID wilayah instans VBR dalam hubungan otorisasi. |
cn-hangzhou |
| GmtCreate |
string |
Pengatur waktu ketika instans yang terhubung ke VPC memberikan otorisasi ke instans VBR. |
2022-09-02T11:46Z |
| GrantType |
string |
Cakupan (dalam OAuth) instans VBR yang diberikan otorisasi. Nilai valid:
|
All |
| TotalCount |
integer |
Jumlah total entri dalam daftar. |
10 |
| Count |
integer |
Jumlah entri yang dikembalikan. |
1 |
| Page |
integer |
Nomor halaman daftar. |
1 |
| PageSize |
integer |
Jumlah entri per halaman dalam kueri berhalaman. |
10 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E6E90F6B-2B41-5AAF-ABEB-236ADBAAD91D",
"EcGrantRelations": [
{
"VbrOwnerUid": 1210123456123456,
"VbrInstanceId": "vbr-m5ex0xf63xk8s5bob****",
"InstanceId": "vpc-bp1brjuegjc88v3u9****",
"AliUid": 1250123456123456,
"RegionNo": "cn-hangzhou",
"Status": "Created",
"InstanceName": "VPCname",
"InstanceRouterId": "vrt-bp1i0yzgjd8ra05ec****",
"VbrRegionNo": "cn-hangzhou",
"GmtCreate": "2022-09-02T11:46Z",
"GrantType": "All"
}
],
"TotalCount": 10,
"Count": 1,
"Page": 1,
"PageSize": 10
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.NotNull | The parameter must not be null. | |
| 400 | Parameter.Illegal | The parameter is illegal. | |
| 400 | Instance.StatusError | The status of instance error. | |
| 400 | InvalidRegionId.NotFound | The regionId provided does not exist in ec region list. | |
| 404 | VRouterId.NotFound | The VRouter not found. | |
| 404 | Instance.NotExist | The instance not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.