Skip to main content

GetStackResource

Description

call the GetStackResource interface to query the resources of a resource stack.

Request Method

POST

Request Path

/apsara/route/ROS/GetStackResource

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
LogicalResourceIdBODYstringYesWebServerresource logical ID, that is, the name of the resource in the template.
regionIdBODYstringYesNo sample value for this parameter.region id
ShowResourceAttributesBODYbooleanNotruewhether to query resource attributes. Value: true: query resource properties. false: do not query resource attributes.
RegionIdBODYstringYescn-hangzhouthe region ID to which the resource stack belongs.
ClientTokenBODYstringNo123e4567-e89b-12d3-a456-42665544****guarantees the idempotence of the request. This value is generated by the client and must be globally unique. is no more than 64 characters in length and can contain English letters, numbers, dashes (-) and underscores (_).
versionBODYstringNo2016-01-01version of api
StackIdBODYstringYes4a6c9851-3b0f-4f5f-b4ca-a14bf691****resource stack ID.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

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

}