Panggil RevokeInstanceFromCen untuk mencabut otorisasi instance jaringan ke instance Cloud Enterprise Network (CEN) yang ditentukan.
Deskripsi operasi
-
RevokeInstanceFromCen adalah operasi API dari VPC. Oleh karena itu, Anda harus menggunakan endpoint
vpc.aliyuncs.comuntuk memanggil operasi ini. Versi API adalah2016-04-28. -
Operasi RevokeInstanceFromCen tidak mendukung pencabutan otorisasi instance jaringan ke instance CEN yang ditentukan secara bersamaan dalam VPC, VBR, atau CCN yang sama.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat instance jaringan berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID region. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instance jaringan. |
vpc-uf6o8d1dj8sjwxi6o**** |
| InstanceType |
string |
Yes |
Jenis instance jaringan. Nilai yang valid:
|
VPC |
| CenId |
string |
Yes |
ID instance CEN tempat Anda ingin mencabut otorisasi. |
cen-7qthudw0ll6jmc**** |
| CenOwnerId |
integer |
Yes |
UID akun pemilik instance CEN tempat Anda ingin mencabut otorisasi. |
123456789 |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilainya, tetapi Anda harus memastikan bahwa nilai tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menetapkan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus | Current Instance status does not support this operation. | |
| 400 | TaskConflict | The operation is too frequent, TaskConflict. | |
| 400 | IncorrectStatus.cbnStatus | Current CBN status does not support this operation. | |
| 400 | OperationDenied.InstanceAttachCen | Operation denied because instance association CEN. | |
| 404 | InvalidInstanceId.NotFound | Specified Instance does not exist. | |
| 404 | InstanceType.Invalid | Specified type is not valid. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.