全部產品
Search
文件中心

Cloud Config:GetSupportedResourceRelationConfig - 查詢指定資源類型支援的資源關係

更新時間:Dec 12, 2025

查詢指定資源類型支援的資源關係。

介面說明

本文將提供一個樣本,查詢資源類型 ACS::ECS::Instance 支援的資源關係列表。

調試

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

調試

授權資訊

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

請求參數

名稱

類型

必填

描述

樣本值

ResourceType

string

資源類型。

ACS::ECS::Instance

返回參數

名稱

類型

描述

樣本值

object

ResourceRelationConfigList

array<object>

資源關係列表。

object

資源關係列表。

TargetResourceType

string

關係目標資源類型。

ACS::ECS::Disk

RelationType

string

資源關聯類型。取值:

  • IsContained:包含在。

  • IsAttachedTo:掛載到。

  • IsAssociatedIn:關聯到。

  • Contains:包含。

IsAttachedTo

RequestId

string

請求 ID。

409D022F-394C-5AAB-A74A-2F1DC9F6375E

樣本

正常返回樣本

JSON格式

{
  "ResourceRelationConfigList": [
    {
      "TargetResourceType": "ACS::ECS::Disk",
      "RelationType": "IsAttachedTo"
    }
  ],
  "RequestId": "409D022F-394C-5AAB-A74A-2F1DC9F6375E"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 NoPermission You are not authorized to perform this operation. 您無權執行此操作。
404 AccountNotExisted Your account does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. 服務不可用。

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

變更歷史

更多資訊,參考變更詳情