Queries the details of a resource scenario.
Operation description
In this example, the details of the resource scenario whose ID is ts-7f7a704cf71c49a6****
is queried. In the response, the source node data is displayed.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the resource scenario. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
TemplateScratchId | string | Yes | The ID of the resource scenario. | ts-7f7a704cf71c49a6**** |
ShowDataOption | string | No | The data display option. Valid values:
For more information about source nodes and new nodes, see Overview . Note
If you do not specify this parameter, the node data is not displayed.
| Source |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A8E0EF98-6FBD-5656-8298-FC8194F0F7B7",
"TemplateScratch": {
"TemplateScratchId": "ts-7f7a704cf71c49a6****",
"TemplateScratchType": "ArchitectureReplication",
"Status": "GENERATE_COMPLETE",
"StatusReason": "Resource ALIYUN::ECS::VPC vpc-m5eauuq80anx59v28**** could not be found for template scratch.",
"FailedCode": "InvalidZoneId",
"TemplateScratchData": {
"test": "test",
"test2": 1
},
"PreferenceParameters": [
{
"ParameterKey": "DeletionPolicy",
"ParameterValue": "Retain"
}
],
"Description": "The description of the resource scenario. ",
"SourceResources": [
{
"ResourceId": "vpc-m5e7cv7e9mz69sszb****",
"ResourceType": "ALIYUN::ECS::VPC",
"RelatedResourceTypeFilter": [
"ALIYUN::ECS::VPC"
]
}
],
"SourceTag": {
"ResourceTags": {
"a": "b"
},
"ResourceTypeFilter": [
"ALIYUN::ECS::VPC"
]
},
"SourceResourceGroup": {
"ResourceGroupId": "rg-acfmzawhxxc****",
"ResourceTypeFilter": [
"ALIYUN::ECS::VPC"
]
},
"LogicalIdStrategy": "LongTypePrefixAndIndexSuffix",
"CreateTime": "2021-12-22T01:49:22",
"UpdateTime": "2021-12-22T01:49:23",
"Stacks": [
{
"StackId": "3708bf6a-3a67-44d4-9eb1-c56704b9****",
"RegionId": "cn-hangzhou",
"UsageType": "ArchitectureReplication"
}
],
"StackProvision": {
"Creatable": true,
"Importable": false
},
"ResourceGroupId": "rg-acfmzmhzoaad5oq"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-24 | The response structure of the API has changed | View Change Details |
2023-10-10 | The response structure of the API has changed | View Change Details |