文档

ChangeResourceGroup - 修改资源组

更新时间:

修改EBS资源所在资源组。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
RegionIdstring

资源所属的地域 ID。您可以调用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou
ResourceTypestring

资源类型定义。取值范围:

  • dedicatedblockstoragecluster:专属块存储集群。
  • diskreplicapair:异步复制关系。
  • diskreplicagroup:一致性复制组。
diskreplicapair
ResourceIdstring

资源 ID。例如,当 ResourceType=diskreplicapair 时,则 ResourceId 可以理解为异步复制对 ID。

pair-123
NewResourceGroupIdstring

新的企业资源组 ID,可在资源组控制台查看可用企业资源组。企业资源组详情请参见查看资源组基本信息

rg-123
ClientTokenstring

保证请求幂等性。从您的客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且不能超过 64 个字符。更多信息,请参见如何保证幂等性

123e4567-e89b-12d3-a456-42665544****

返回参数

名称类型描述示例值
object

TagResponse

RequestIdstring

请求 ID。

C123F94F-4E38-19AE-942A-A8D6F44F****

示例

正常返回示例

JSON格式

{
  "RequestId": "C123F94F-4E38-19AE-942A-A8D6F44F****"
}

错误码

HTTP status code错误码错误信息描述
400InvalidParameterThe parameter %s is invalid.参数错误
400InvalidParameter.ConflictThe specified parameter %s and %s are not blank at the same time.参数冲突
400InvalidParameter.FormatSpecified parameter format is not valid.返回值格式不正确(Format 不支持)。返回格式支持 XML 与 JSON,默认为 XML。
400MissingParameterThe input parameter %s that is mandatory for processing this request is not supplied.参数缺失。
400OperationDenied.QuotaExceedThe quota of tags on resource is beyond permitted range.资源标签已达上限。
403ForbiddenUser is not authorized to operate.当前用户无权限对当前资源执行任何操作。请检查您的账号权限或者咨询您的主账号管理员。
403Forbidden.ActionUser is not authorized to operate this action.当前用户无权限执行该操作。请检查您的账号权限或者咨询您的主账号管理员。
403InvalidAccountStatus.NotEnoughBalanceYour account does not have enough balance.您的账户余额不足。
403LastTokenProcessingThe last token request is processing.相同clientToken的请求正在执行,请稍后再重试。
403NoPermission.SLRThe RAM user does not have the permission to create service linked role: AliyunServiceLinkedRoleForEBS.当前用户无权限创建SLR。
403OperationDeniedThe operation is not allowed.当前操作不允许执行。
404InvalidApi.NotFoundSpecified api is not found, please check your url and method.找不到指定的 API。请检查调用的 URL 和方法。您调用的 API 不存在。请检查 API 的名称是否正确,请注意确认大小写。
404InvalidResourceType.NotFoundThe ResourceType provided does not exist in our records.指定的资源类型不存在。
404InvalidResourceId.NotFoundThe specified ResourceId is not found in our records.指定的资源不存在,请检查参数ResourceId是否正确。
404InvalidResourceGroup.NotFoundThe ResourceGroup provided does not exist in our records.资源组并不在记录中。
404MissingParameter.ResourceGroupThe parameter - Resource Group should not be null参数ResourceGroup不能为空。
404MissingParameter.ResourceTypeThe parameter - ResourceType should not be null参数ResourceType不能为空。
404NoSuchResourceThe specified resource does not exist.指定的资源不存在。
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.内部错误。
504RequestTimeoutThe request is timeout, please try again later.该请求超时,请稍后再重试。

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (1)
文档反馈