Changes the control mode of a resource from managed mode to unmanaged mode.
Operation description
-
This operation is applicable only to managed Global Accelerator (GA) instances.
-
After you change the control mode of a GA instance from managed mode to unmanaged mode, you cannot change the mode of the instance to managed mode.
-
After you change the control mode of a GA instance from managed mode to unmanaged mode, you can obtain all operation permissions on the instance.
Warning If you change or delete a configuration of a GA instance whose control mode is changed from managed mode to unmanaged mode, the cloud services that depend on the instance may not work as expected. Proceed with caution.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ga:UpdateServiceManagedControl | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the GA instance. Set the value to cn-hangzhou. | cn-hangzhou |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The client token can contain only ASCII characters. Note
If you do not specify this parameter, the system automatically uses the value of RequestId as the value of ClientToken. The request ID may be different for each request.
| 123e4567**** |
ResourceType | string | Yes | The type of the resource whose control mode you want to change. Set the value to Accelerator, which specifies a standard GA instance. | Accelerator |
ResourceId | string | Yes | The ID of the resource whose control mode you want to change. | ga-bp149u6o36qt1as9b**** |
ServiceManaged | boolean | No | The control mode of the resource. Set the value to false, which changes the control mode of the resource from managed mode to unmanaged mode. Note
You can change the control mode only from managed mode to unmanaged mode.
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "B7770CB9-9745-4FE5-9EDA-D14B01A12A50"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NotSupportResourceType.ServiceManaged | Only accelerator resource type is supported. | Only specific resource types can be accelerated. |
400 | NotSupportServiceManagedMode.ServiceManaged | Only unmanaged mode is supported. | You can only unmanage the resource. |
400 | ResourceNotManaged.ServiceManaged | The instance %s is not yet managed. | The current resource %s is not managed. |
400 | NoPermissionResourceUnmanaged.ServiceManaged | You do not have permission to cancel service managed mode for %s. | You are not authorized to unmanage the current instance. |
400 | NoPermission.ServiceManaged | You do not have permission to %s %s in the service managed instance. | You do not have the permissions to %s %s the managed instance. |
For a list of error codes, visit the Service error codes.