Skip to main content Link Menu Expand (external link) Document Search Copy Copied

TerminateULHostInstance

Introduction

Delete the ULHost instance in the specified data center.

Expired resources that are not on trial cannot be deleted; the deletion operation can only be performed in the shutdown state.

Instructions

You can choose any of the following methods to initiate an API request:

Multilingual OpenSDK / Java /

CloudShell cloud command line

Definition

Common parameter

Parameter name Type   Required
Action string The corresponding API instruction name, the current API is TerminateULHostInstance Yes
PublicKey string The user’s public key, available from Console fetch Yes
Signature string According to the public key and API The user signature generated by the directive is found in Signature algorithm Yes

Request parameter

Parameter Name Type Description Required
Region string See List of Regions and Availability Zones Yes
ProjectId string Project ID (example: org-04ibqy), This field, by default, is empty and is only required when the account is a Sub-Account Please refer to GetProjectList interface No
ULHostId string ULHost instance ID Yes
ReleaseUDisk boolean Whether to delete the mounted data disk at the same time when deleting the host. The default is false. No

Response field

Example

Example request

https://api.scloud.sg?Action=TerminateULHostInstance
&Region=vgIGWrJn
&Zone=QFcnraaU
&ProjectId=uOCsKMUA
&UHostId=GjUxwxyZ
&Destroy=1
&ReleaseEIP=false
&ReleaseUDisk=true

Example response

{
  "Action": "TerminateULHostInstanceResponse",
  "InRecycle": "oVKzMYos",
  "RetCode": 0,
  "UHostId": "QxGEEfhp"
}