删除实例-TerminateCompShareInstance
删除优云智算平台虚机实例
Request Parameters
| Parameter name | Type | Description | Required |
|---|---|---|---|
| Region | string | 地域。 cn-wlcb | Yes |
| Zone | string | 可用区。cn-wlcb-01 | Yes |
| ProjectId | string | 项目ID。不填写为默认项目,子帐号必须填写。 请参考GetProjectList接口 (opens in a new tab) | No |
| UHostId | string | 虚机资源id | Yes |
Response Elements
| Parameter name | Type | Description | Required |
|---|---|---|---|
| RetCode | int | 返回码 | Yes |
| Action | string | 操作名称 | Yes |
| UHostId | string | 虚机资源id | Yes |
Request Example
https://api.compshare.cn/?Action=TerminateCompShareInstance
&Region=cn-zj
&Zone=cn-zj-01
&ProjectId=MmpOcBdp
&UHostId=LhxmWZesResponse Example
{
"Action": "TerminateCompShareInstanceResponse",
"InRecycle": "QKREBgnO",
"UHostId": "TJYRSKuk",
"RetCode": 0
}重要提示
在调用 TerminateCompShareInstance 接口删除实例之前,请务必确认以下事项:
- 实例必须处于关机(Stopped)状态。
- 若实例仍为运行中(Running),调用本接口将会返回错误,删除操作不会被执行。
- 如需关闭实例,请先调用关机接口(
StopCompShareInstance),待实例状态变为Stopped后再执行删除操作。