Memanggil DetachClassicLinkVpc untuk melepaskan Instance ECS tipe jaringan klasik dari virtual private cloud (VPC). Operasi ini juga membatalkan koneksi ClassicLink. Setelah koneksi ClassicLink dibatalkan, instans tipe jaringan klasik tidak dapat lagi berkomunikasi dengan instans di VPC.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DetachClassicLinkVpc |
update |
*Instance
*VPC
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| InstanceId |
string |
Yes |
ID instans tipe jaringan klasik. |
i-bp67acfmxazb4p**** |
| VpcId |
string |
Yes |
ID VPC tempat instans terhubung. |
vpc-bp67acfmxazb4p**** |
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"
}
Respons error
JSONformat
{
"RequestId": "C0003E8B-B930-4F59-ADC0-0E209A9012A8"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | InvalidInstanceId.NotFound | The InstanceId provided does not exist in our records. | |
| 403 | InvalidRegionId.Malformed | The specified parameter ?RegionId? is not valid. | |
| 403 | InvalidVpcId.Malformed | The specified parameter ?VpcId? is not valid. | |
| 403 | InvalidInstanceId.MalFormed | The specified instance is not a classic network instance. | |
| 403 | OperationDenied | The instances are not allowed to detach from the linked vpc. | |
| 403 | InvalidParameter.InvalidInstanceIdAndVpcId | The parameter InstanceId and VpcId are not allowed to be empty at the same time. | |
| 403 | InvalidStatus.InstanceStatus | The specified instance status is not support this operation ,expect status is running or shutted. | |
| 403 | InvalidInstanceId.NotBelong | The specified instance is not belong to you. | |
| 403 | Forbidden.SubUser | User not authorized to operate on the specified resource. | |
| 403 | InvalidOperation.InvalidVpc | The specified instance not link specify vpc. | |
| 403 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | |
| 404 | InvalidInstanceId.NotFound | Specified instance does not exist. | 指定的实例不存在,请您检查实例 ID 是否正确。 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.