修改云资源所属的资源组。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
nlb:MoveResourceGroup |
update |
*LoadBalancer
*SecurityPolicy
*ServerGroup
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| NewResourceGroupId |
string |
是 |
新资源组 ID。 |
rg-aekzjcnrv3v**** |
| ResourceType |
string |
是 |
资源类型,取值:
|
loadbalancer |
| ResourceId |
string |
是 |
资源 ID。 |
nlb-nrnrxwd15en27r**** |
| RegionId |
string |
是 |
资源所在的地域 ID。 |
cn-hangzhou |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
RpcResponse |
||
| RequestId |
string |
请求 ID。 |
CEF72CEB-54B6-4AE8-B225-F876FF7BA984 |
| Success |
boolean |
接口请求结果,取值:
|
true |
| HttpStatusCode |
integer |
HTTP 状态码 |
200 |
| Data |
object |
返回结果。 |
|
| ResourceId |
string |
资源 ID。 |
nlb-nrnrxwd15en27r**** |
示例
正常返回示例
JSON格式
{
"RequestId": "CEF72CEB-54B6-4AE8-B225-F876FF7BA984",
"Success": true,
"HttpStatusCode": 200,
"Data": {
"ResourceId": "nlb-nrnrxwd15en27r****"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalParam.resourceType | The param of resourceType is illegal. | 参数resourceType非法。请检查参数resourceType的输入值。 |
| 400 | OperationFailed.StatusCheckFail.ResourceGroup | The operation failed because of StatusCheckFail.ResourceGroup. | 因为资源组状态检查失败,所以操作失败。 |
| 403 | Forbidden.NoPermission | Authentication is failed for NoPermission. | 因为账号没有权限,所以鉴权失败。 |
| 404 | ResourceNotFound.loadBalancer | The specified resource of loadbalancer is not found. | 找不到指定的负载均衡器资源,请检查输入参数。 |
| 404 | ResourceNotFound.ResourceGroup | The param of resourceGroup not existed. | 资源组不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。