Anda dapat memanggil operasi ListGrantVSwitchEnis untuk mengkueri elastic network interfaces (ENIs) di dalam virtual private cloud (VPC) yang dapat berfungsi sebagai sumber atau anggota multicast.
Deskripsi operasi
Sebelum memanggil operasi ListGrantVSwitchEnis, pastikan VPC telah terhubung ke instans Cloud Enterprise Network (CEN). Untuk informasi selengkapnya, lihat CreateTransitRouterVpcAttachment.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:ListGrantVSwitchEnis |
get |
*CenInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| CenId |
string |
Yes |
ID instans CEN tempat VPC terhubung. |
cen-a7syd349kne38g**** |
| VpcId |
string |
Yes |
ID VPC. |
vpc-p0w9alkte4w2htrqe**** |
| VSwitchId |
string |
Yes |
ID vSwitch di dalam VPC. Anda hanya dapat mengkueri informasi ENI di satu vSwitch dalam satu waktu. |
vsw-p0w9s2ig1jnwgrbzl**** |
| NextToken |
string |
No |
Token yang digunakan untuk kueri berikutnya. Nilai valid:
|
AAAAAdDWBF2**** |
| MaxResults |
integer |
No |
Jumlah maksimum entri yang dikembalikan per halaman. Nilai valid: 10 hingga 500. Nilai default:
|
20 |
| NetworkInterfaceId |
array |
No |
ID ENI. |
|
|
string |
No |
ID ENI. Sistem hanya mendukung ENI yang terkait dengan instans Elastic Compute Service (ECS) sebagai sumber multicast. Sistem mengirimkan traffic multicast ke grup multicast dari alamat IP pribadi utama ENI tersebut. |
eni-wz9a2sgsskvw69v2**** |
|
| NetworkInterfaceName |
string |
No |
Nama ENI. |
test-eni-name |
| PrimaryIpAddress |
string |
No |
Alamat IPv4 pribadi utama ENI. |
192.168.**.** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Respons. |
||
| RequestId |
string |
ID permintaan. |
DBFE1736-2F33-5309-9954-875B11E9519D |
| TotalCount |
string |
Jumlah total entri. Penting
Parameter ini tidak valid jika Anda menggunakan MaxResults dan NextToken untuk melakukan kueri berhalaman. |
6 |
| GrantVSwitchEnis |
array<object> |
Daftar informasi ENI. |
|
|
object |
Informasi tentang ENI. |
||
| VpcId |
string |
ID VPC. |
vpc-p0w9alkte4w2htrqe**** |
| VSwitchId |
string |
ID vSwitch. |
vsw-p0w9s2ig1jnwgrbzl**** |
| NetworkInterfaceId |
string |
ID ENI. |
eni-p0w172vv82kxzb49**** |
| Description |
string |
Deskripsi ENI. |
created by CBN |
| TransitRouterFlag |
boolean |
Menunjukkan apakah ENI dibuat oleh router transit.
ENI yang dibuat oleh router transit tidak dapat digunakan sebagai sumber atau anggota multicast. |
false |
| NetworkInterfaceName |
string |
Nama ENI. |
my-eni-name |
| PrimaryIpAddress |
string |
Alamat IPv4 pribadi utama ENI. |
192.168.**.** |
| NextToken |
string |
Token yang digunakan untuk kueri berikutnya. |
AAAAAdDWBF2**** |
| MaxResults |
integer |
Jumlah maksimum entri yang dikembalikan. |
20 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "DBFE1736-2F33-5309-9954-875B11E9519D",
"TotalCount": "6",
"GrantVSwitchEnis": [
{
"VpcId": "vpc-p0w9alkte4w2htrqe****",
"VSwitchId": "vsw-p0w9s2ig1jnwgrbzl****",
"NetworkInterfaceId": "eni-p0w172vv82kxzb49****",
"Description": "created by CBN",
"TransitRouterFlag": false,
"NetworkInterfaceName": "my-eni-name",
"PrimaryIpAddress": "192.168.**.**"
}
],
"NextToken": "AAAAAdDWBF2****",
"MaxResults": 20
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidCenId.NotFound | The specified CenId is not found. | The error message returned because the specified CEN instance ID does not exist. |
| 400 | InvalidVpcId.NotFound | The specified VpcId is not found. | The error message returned because the specified VPC ID (VpcId) is invalid. |
| 400 | InvalidOperation.MulticastDomainAssociationNotExist | Operation is invalid because multicast association domain association not exist. | The error message returned because this operation is not supported when the specified multicast domain is not associated with the specified resource. |
| 400 | InvalidParameter | Invalid parameter. | The error message returned because the parameter is set to an invalid value. |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | The error message returned because you do not have the permissions to perform this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.