Updates the settings of the Transfer Associated Resources feature.
Operation description
For information about the resources that support the Transfer Associated Resources feature, see Use the Transfer Associated Resources feature.
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 |
---|---|---|---|---|
ram:UpdateAssociatedTransferSetting | none | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RuleSettings | array<object> | No | The settings of transfer rules. | |
object | No | The settings of transfer rules. | ||
AssociatedResourceType | string | No | The type of the associated resource. You can obtain the resource type from the Resource type column in Services that work with Resource Group. | disk |
AssociatedService | string | No | The service code of the associated resource. You can obtain the service code from the Service code column in Services that work with Resource Group. | ecs |
MasterResourceType | string | No | The type of the primary resource. You can obtain the resource type from the Resource type column in Services that work with Resource Group. | instance |
MasterService | string | No | The service code of the primary resource. You can obtain the service code from the Service code column in Services that work with Resource Group. | ecs |
Status | string | Yes | The status of the Transfer Associated Resources feature. Valid values:
| Enable |
EnableExistingResourcesTransfer | string | No | Specifies whether to enable the Transfer Existing Associated Resources feature. Valid values:
| false |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | UnsupportedOperation.UpdateAssociatedTransferRuleSetting | Updating associated transfer rule setting before open associated transfer is not supported. |
404 | EntityNotExists.AssociatedTransferRule | The associated transfer rule does not EXIST. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-29 | The Error code has changed. The request parameters of the API has changed | View Change Details |