Queries the resource types supported by Cloud Config.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetSupportedResourceTypes

The operation that you want to perform. Set the value to GetSupportedResourceTypes.

Response parameters

Parameter Type Example Description
RequestId String 6CE4ABA1-9A57-41A9-8EA9-E8B17D4671CD

The ID of the request.

ResourceTypes List ["ACS::ECS::Instance","ACS::ECS::NetworkInterface"]

The types of resources supported by Cloud Config.

Examples

Sample requests

http(s)://[Endpoint]/? Action=GetSupportedResourceTypes
&<Common request parameters>

Sample success responses

XML format

<GetSupportedResourceTypesResponse>
          <ResourceTypes>ACS::ECS::Instance</ResourceTypes>
          <ResourceTypes>ACS::ECS::NetworkInterface</ResourceTypes>
          <RequestId>3A0D65E8-D5C0-4664-B257-950F7A5E33C3</RequestId>
</GetSupportedResourceTypesResponse>

JSON format

{
    "ResourceTypes": [
        "ACS::ECS::Instance",
        "ACS::ECS::NetworkInterface"
    ],
    "RequestId": "3A0D65E8-D5C0-4664-B257-950F7A5E33C3"
}

Error codes

HTTP status code Error code Error message Description
400 NoPermission You are not authorized to perform this operation. The error message returned because you are not authorized to perform the specified operation.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. The error message returned because the service is unavailable.
404 AccountNotExisted Your account does not exist. The error message returned because your account does not exist.

For a list of error codes, visit the API Error Center.