Generates a sample template based on a resource type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:GetResourceTypeTemplate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceType |
string |
Yes |
The type of the resource. Call the ListResourceTypes operation to query supported resource types. |
ALIYUN::ECS::VPC |
| VersionId |
string |
No |
The version ID. Specify this parameter to query a specific version of the resource type. If you do not specify this parameter, the default version of the resource type is queried. Note
This parameter is supported only for modules. |
v1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
87F54B2B-AEF0-4C33-A72A-3F8856A575E9 |
| TemplateBody |
object |
The structure of the template body. The template body must be 1 to 51,200 bytes in length. For more information, see Template syntax. Note
This parameter is not recommended. Use TemplateContent instead. |
{"ROSTemplateFormatVersion": "2015-09-01"} |
| TemplateContent |
string |
The structure of the template body in JSON format. For more information, see Template syntax. |
{ "ROSTemplateFormatVersion": "2015-09-01" } |
Examples
Success response
JSON format
{
"RequestId": "87F54B2B-AEF0-4C33-A72A-3F8856A575E9",
"TemplateBody": {
"ROSTemplateFormatVersion": "2015-09-01"
},
"TemplateContent": "{\n \"ROSTemplateFormatVersion\": \"2015-09-01\"\n}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.