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
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ros:GetTemplateScratch | get |
|
| none |
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 |