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
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
JSONformat
{
"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 |
