Updates the settings of the Transfer Associated Resources feature.
For information about the resources that support the Transfer Associated Resources feature, see Use the Transfer Associated Resources feature.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | UpdateAssociatedTransferSetting | The operation that you want to perform. Set the value to UpdateAssociatedTransferSetting. |
RuleSettings.N.Status | String | Yes | Enable | The status of the Transfer Associated Resources feature. Valid values:
|
RuleSettings.N.MasterService | String | No | ecs | 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. |
RuleSettings.N.MasterResourceType | String | No | instance | The type of the primary resource. You can obtain the resource type from the Resource type column in Services that work with Resource Group. |
RuleSettings.N.AssociatedService | String | No | ecs | 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. |
RuleSettings.N.AssociatedResourceType | String | No | disk | The type of the associated resource. You can obtain the resource type from the Resource type column in Services that work with Resource Group. |
EnableExistingResourcesTransfer | String | No | false | Specifies whether to enable the Transfer Existing Associated Resources feature. Valid values:
|
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB | The request ID. |
Description
Sample requests
https://resource-manager.aliyuncs.com/?Action=UpdateAssociatedTransferSetting
&RuleSettings=[{"Status":"Enable","MasterService":"ecs","MasterResourceType":"instance","AssociatedService":"ecs","AssociatedResourceType":"disk"}]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateAssociatedTransferSettingResponse>
<RequestId>7B8A4E7D-6CFF-471D-84DF-195A7A241ECB</RequestId>
</UpdateAssociatedTransferSettingResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB"
}
Error codes
For a list of error codes, see Service error codes.