All Products
Search
Document Center

Resource Management:UpdateAssociatedTransferSetting

Last Updated:Dec 19, 2024

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
ram:UpdateAssociatedTransferSettingnone
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RuleSettingsarray<object>No

The settings of transfer rules.

objectNo

The settings of transfer rules.

AssociatedResourceTypestringNo

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
AssociatedServicestringNo

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
MasterResourceTypestringNo

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
MasterServicestringNo

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
StatusstringYes

The status of the Transfer Associated Resources feature. Valid values:

  • Enable: enabled
  • Disable: disabled
Enable
EnableExistingResourcesTransferstringNo

Specifies whether to enable the Transfer Existing Associated Resources feature. Valid values:

  • false
  • true
false

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The request ID.

7B8A4E7D-6CFF-471D-84DF-195A7A241ECB

Examples

Sample success responses

JSONformat

{
  "RequestId": "7B8A4E7D-6CFF-471D-84DF-195A7A241ECB"
}

Error codes

HTTP status codeError codeError message
400UnsupportedOperation.UpdateAssociatedTransferRuleSettingUpdating associated transfer rule setting before open associated transfer is not supported.
404EntityNotExists.AssociatedTransferRuleThe associated transfer rule does not EXIST.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-29The Error code has changed. The request parameters of the API has changedView Change Details