All Products
Search
Document Center

Elastic Compute Service:DeregisterManagedInstance

Last Updated:Sep 29, 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

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecs:DeregisterManagedInstanceupdate
  • Instance
    acs:ecs:{#regionId}:{#accountId}:instance/{#instanceId}
    none
none

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 changedView Change Details
2022-02-25The Error code has changedView Change Details