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
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
LogicalResourceId | BODY | string | Yes | WebServer | resource logical ID, that is, the name of the resource in the template. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
ShowResourceAttributes | BODY | boolean | No | true | whether to query resource attributes. Value: true: query resource properties. false: do not query resource attributes. |
RegionId | BODY | string | Yes | cn-hangzhou | the region ID to which the resource stack belongs. |
ClientToken | BODY | string | No | 123e4567-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 (_). |
version | BODY | string | No | 2016-01-01 | version of api |
StackId | BODY | string | Yes | 4a6c9851-3b0f-4f5f-b4ca-a14bf691**** | resource stack ID. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}