All Products
Search
Document Center

Elastic Compute Service:DeregisterManagedInstance

Last Updated:Apr 11, 2024

Deregisters a managed instance. After you deregister the managed instance, you can no longer use Cloud Assistant to send commands or files to the instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the managed instance. Supported regions: China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Ulanqab), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Singapore, Japan (Tokyo), US (Silicon Valley), and US (Virginia).

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
InstanceIdstringYes

The managed instance ID.

mi-hz01axdfas****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

4ECEEE12-56F1-4FBC-9AB1-890F74942176
Instanceobject

The managed instance.

LastInvokedTimestring

The time when the Cloud Assistant task was last executed.

2021-01-20T09:00:40Z
InternetIpstring

The public IP address of the managed instance.

47.8.**.**
Hostnamestring

The hostname of the managed instance.

test-Hostname
InstanceIdstring

The managed instance ID.

mi-hz01axdfas****
ActivationIdstring

The activation code ID.

4ECEEE12-56F1-4FBC-9AB1-890F7494****
IntranetIpstring

The internal IP address of the managed instance.

10.0.**.**
AgentVersionstring

The version number of Cloud Assistant Agent.

2.2.0.102
RegistrationTimestring

The time when the managed instance was registered.

2021-01-20T08:57:56Z
InstanceNamestring

The name of the managed instance.

test-InstanceName-001
OsTypestring

The operating system type of the managed instance.

linux
OsVersionstring

The version information about the operating system.

Linux_#38~18.04.1-Ubuntu SMP Wed Jan 6 18:26:30 UTC 2021_x86_64
InvocationCountlong

The number of times that Cloud Assistant tasks were executed on the managed instance.

2
MachineIdstring

The machine code of the managed instance.

e03231b37ab14e53b5795ad625fc****
ResourceGroupIdstring

The ID of the resource group to which the managed instance belongs.

rg-123******

Examples

Sample success responses

JSONformat

{
  "RequestId": "4ECEEE12-56F1-4FBC-9AB1-890F74942176",
  "Instance": {
    "LastInvokedTime": "2021-01-20T09:00:40Z",
    "InternetIp": "47.8.**.**",
    "Hostname": "test-Hostname",
    "InstanceId": "mi-hz01axdfas****",
    "ActivationId": "4ECEEE12-56F1-4FBC-9AB1-890F7494****",
    "IntranetIp": "10.0.**.**",
    "AgentVersion": "2.2.0.102",
    "RegistrationTime": "2021-01-20T08:57:56Z",
    "InstanceName": "test-InstanceName-001",
    "OsType": "linux",
    "OsVersion": "Linux_#38~18.04.1-Ubuntu SMP Wed Jan 6 18:26:30 UTC 2021_x86_64",
    "InvocationCount": 2,
    "MachineId": "e03231b37ab14e53b5795ad625fc****",
    "ResourceGroupId": "rg-123******"
  }
}

Error codes

HTTP status codeError codeError messageDescription
400RegionId.ApiNotSupportedThe api is not supported in this region.The API operation cannot be called in the specified region. Check whether the specified RegionId parameter is valid.
403Operation.ForbiddenThe operation is not permitted.The operation is not supported.
404InvalidRegionId.NotFoundThe RegionId provided does not exist in our records.The RegionId provided does not exist
404InvalidInstance.NotFoundThe specified instance id does not exist.The specified instance ID does not exist.
500InternalError.DispatchAn error occurred when you dispatched the request.An error occurred while the request is being sent. Try again later.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-11-23The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Output ParametersThe response structure of the API has changed.
2022-02-25The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 404 change
    delete Error Codes: 400
    delete Error Codes: 500
    Added Error Codes: 403