MoveResourceGroup - 修改雲資源所屬的資源群組

更新時間:
Copy as MD

修改雲資源所屬的資源群組。

介面說明

ChangeResourceGroup 介面不支援在同一個物理專線執行個體內並發修改物理專線資源所屬的資源群組。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

ResourceId

string

需要修改資源群組的雲資源的執行個體 ID。

vpc-hp31psbg8ec3023s6****

ResourceType

string

需要修改資源群組的雲資源類型,取值:

  • Vpc:專用網路

  • Eip:彈性公網 IP

  • BandwidthPackage:共用頻寬

  • PrefixList:首碼列表

  • PublicIpAddressPool:位址集區

  • FlowLog:流日誌

  • HaVip:高可用虛擬 IP

  • TrafficMirrorFilter:流量鏡像篩選條件

  • TrafficMirrorSession:流量鏡像會話

  • IPv4Gateway:IPv4 網關

  • IPv6Gateway:IPv6 網關

  • IPv6Address:IPv6 地址

  • DhcpOptionsSet:DHCP 選項集

  • GatewayEndpoint:網關終端節點

vpc

NewResourceGroupId

string

需要移入雲資源執行個體的資源群組 ID。

說明

資源群組是在阿里雲帳號下進行資源分組管理的一種機制,資源群組能夠協助您解決單個雲帳號內的資源分組和授權管理等複雜性問題。更多資訊,請參見什麼是資源管理

rg-acfm3peow3k****

RegionId

string

雲資源所屬的地區 ID。

您可以通過調用 DescribeRegions 介面擷取地區 ID。

cn-hangzhou

返回參數

名稱

類型

描述

樣本值

object

請求 ID。

RequestId

string

請求 ID。

611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F

樣本

正常返回樣本

JSON格式

{
  "RequestId": "611CB80C-B6A9-43DB-9E38-0B0AC3D9B58F"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidResourceGroupId The specified ResourceGroupId does not exist. 資源群組ID不存在。
400 InvalidResourceId.NotFound The specified ResourceId does not exist.
400 IllegalParam.ResourceType Invalid Resource Type value. 指定的ResourceType未支援或不合法
400 OperationFailed.InstanceStatusNotAllowed The current status of the resource does not support this operation. 當前資源的狀態不支援該操作
400 IncorrectStatus.Vpc The status of %s [%s] is incorrect. 當前執行個體狀態非穩態
400 Forbidden.OperateManagedFlowLog Authentication is failed for operate managed flowlog. 操作託管的流日誌,鑒權失敗。
404 InvalidBandwidthPackageId.NotFound The specified bandwidthPackage resourceId does not exist in our records. 指定的共用頻寬包不存在

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情