资源转组。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
apig:ChangeResourceGroup |
none |
*全部资源
|
无 | 无 |
请求语法
POST /move-resource-group HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Service |
string |
否 |
云服务标识,固定为 APIG,一般无需传入 枚举值:
|
APIG |
| ResourceType |
string |
否 |
资源类型,区分大小写,必须与枚举值完全一致 枚举值:
|
Gateway |
| ResourceId |
string |
否 |
需要转组的资源 ID,需与 ResourceType 匹配 |
gw-cq2vmc93km41m3dm4bg0 |
| ResourceGroupId |
string |
否 |
目标资源组 ID,可在资源管理控制台查看。 |
rg-aekzuqyxxxxxxxx |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结构体 |
||
| RequestId |
string |
请求 ID |
59F86F37-787A-52DB-9475-DB5A255517F0 |
示例
正常返回示例
JSON格式
{
"RequestId": "59F86F37-787A-52DB-9475-DB5A255517F0"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The RegionId parameters that are required for processing this request are missing | |
| 400 | MissingParameter.ResourceId | The ResourceId parameters that are required for processing this request are missing | |
| 400 | MissingParameter.ResourceGroupId | The ResourceGroupId parameters that are required for processing this request are missing | |
| 400 | InvalidResourceGroup | The specified ResourceGroupId is invalid | |
| 400 | InternalError | The request processing has failed due to some unknown error. | |
| 400 | ResourceNotFound | The specified resource is not found | |
| 403 | NoPermission.ChangeResourceGroup | You are not authorized to change resourcegroup |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。
该文章对您有帮助吗?