DeleteImage
Description
call DeleteImage delete a custom image.
Request Method
POST
Request Path
/apsara/route/Ecs/DeleteImage
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Force | BODY | boolean | No | false | Whether to execute forced deletion. Value range: true: forcibly delete the custom image, ignoring whether the current image is used by other instances. false: normally deletes the custom image. before deleting, check whether the current image is used by other instances. default value: false. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ImageId | BODY | string | Yes | m-bp67acfmxazb4ph*** | mirror ID. If the specified custom image does not exist, the request will be ignored. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the custom image. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}
title: DeleteNetworkInterface
sidebar_position: 3
DeleteNetworkInterface
Description
call DeleteNetworkInterface to delete an ENI.
Request Method
POST
Request Path
/apsara/route/Ecs/DeleteNetworkInterface
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | region ID. You can call the DescribeRegions to view the latest Alibaba Cloud region list. |
NetworkInterfaceId | BODY | string | Yes | eni-bp14v2sdd3v8htlnm*** | the id of the elastic network card. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}