All Products
Search
Document Center

Cloud Config:GetSupportedResourceRelationConfig

Last Updated:Jun 17, 2024

Queries the resource relationships supported by a resource type.

Operation description

This topic provides an example to show how to query the resource relationships that are supported by the ACS::ECS::Instance resource type.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ResourceTypestringYes

The resource type.

ACS::ECS::Instance

Response parameters

ParameterTypeDescriptionExample
object
ResourceRelationConfigListobject []

An array that contains the relationships.

TargetResourceTypestring

The resource type.

ACS::ECS::Disk
RelationTypestring

The type of the relationship between the resource and the object. Valid values:

  • IsContained: The object is included as part of the resource.
  • IsAttachedTo: The object is added to the resource.
  • IsAssociatedIn: The object is associated with the resource.
  • Contains: The actual value contains the expected value.
IsAttachedTo
RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform this operation.
404AccountNotExistedYour account does not exist.The specified account does not exist.
503ServiceUnavailableThe request has failed due to a temporary failure of the server.The request has failed due to a temporary failure of the server.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history