Home  >  Article  >  Operation and Maintenance  >  How to release a pay-as-you-go instance or an expired prepaid instance

How to release a pay-as-you-go instance or an expired prepaid instance

坏嘻嘻
坏嘻嘻Original
2018-09-19 16:41:091938browse

The content of this article is about how to release a pay-as-you-go instance or an expired prepaid instance. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. help.

DeleteInstance

Release a pay-as-you-go instance or an expired prepaid (annual and monthly) instance.

Description

After release, all physical resources used by the instance are recycled, and all related data is lost and cannot be recovered. The cloud disk mounted on the instance with the DeleteWithInstance=True attribute is released, but the snapshot of the cloud disk is still retained. The retention and release of automatic snapshots of the cloud disk follow the DeleteAutoSnapshot attribute of the cloud disk. If it is DeleteAutoSnapshot=false, the automatic snapshot is retained. If it is DeleteAutoSnapshot=true, the automatic snapshot is released.

When releasing an instance, the instance is under security control and its OperationLocks is marked with the lock status of "LockReason": "security". Even if the DeleteWithInstance attribute of the cloud disk is False, the system will ignore this attribute and release the mount. Cloud disk on the instance.

Request parameters

How to release a pay-as-you-go instance or an expired prepaid instance

##Return parameters

are all public return parameters. See Public Return Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=DeleteInstance
&InstanceId=i-instance1
&<公共请求参数>

Return example

XML format

<DeleteInstanceResponse>
    <RequestId>928E2273-5715-46B9-A730-238DC996A533</RequestId>
</DeleteInstanceResponse>

JSON format

{
    "RequestId": "928E2273-5715-46B9-A730-238DC996A533"
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

How to release a pay-as-you-go instance or an expired prepaid instance

The above is the detailed content of How to release a pay-as-you-go instance or an expired prepaid instance. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn