Skip to main content

DescribeClusterResources

Description

call DescribeClusterResources to query all resources of the specified cluster.

Request Method

POST

Request Path

/apsara/route/CS/DescribeClusterResources

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ClusterIdBODYstringYescb95aa626a47740afbf6aa099b65****cluster ID.
regionIdBODYstringYesNo sample value for this parameter.region id
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
arrayNo sample value for this parameter.list of resource objects.
resource_infostringNo sample value for this parameter.resource information.
cluster_idstringNo sample value for this parameter.cluster ID.
instance_idstringNo sample value for this parameter.resource ID.
createdstringNo sample value for this parameter.resource creation time.
resource_typestringNo sample value for this parameter.resource type.
statestringNo sample value for this parameter.resource status. Optional value: CREATE_COMPLETE: successfully created the resource. CREATE_FAILED: The resource creation failed. CREATE_IN_PROGRESS: creating resources. DELETE_FAILED: failed to delete the resource. DELETE_IN_PROGRESS: Delete resources. ROLLBACK_COMPLETE: Rollback successfully. ROLLBACK_FAILED: rollback failed. ROLLBACK_IN_PROGRESS: rollback.

Example

Successful Response example

"The successful response sample is not recognizable. Please modify API definition in API gateway before re-create the API document."

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}