All Products
Search
Document Center

Global Accelerator:UpdateServiceManagedControl

Last Updated:Jul 31, 2024

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

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
ga:UpdateServiceManagedControlupdate
  • Accelerator
    acs:ga:{#regionId}:{#accountId}:ga/{#acceleratorId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the GA instance. Set the value to cn-hangzhou.

cn-hangzhou
ClientTokenstringNo

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****
ResourceTypestringYes

The type of the resource whose control mode you want to change.

Set the value to Accelerator, which specifies a standard GA instance.

Accelerator
ResourceIdstringYes

The ID of the resource whose control mode you want to change.

ga-bp149u6o36qt1as9b****
ServiceManagedbooleanNo

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

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

B7770CB9-9745-4FE5-9EDA-D14B01A12A50

Examples

Sample success responses

JSONformat

{
  "RequestId": "B7770CB9-9745-4FE5-9EDA-D14B01A12A50"
}

Error codes

HTTP status codeError codeError messageDescription
400NotSupportResourceType.ServiceManagedOnly accelerator resource type is supported.Only specific resource types can be accelerated.
400NotSupportServiceManagedMode.ServiceManagedOnly unmanaged mode is supported.You can only unmanage the resource.
400ResourceNotManaged.ServiceManagedThe instance %s is not yet managed.The current resource %s is not managed.
400NoPermissionResourceUnmanaged.ServiceManagedYou do not have permission to cancel service managed mode for %s.You are not authorized to unmanage the current instance.
400NoPermission.ServiceManagedYou 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.