GetTemplate
Queries the details of a template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:GetTemplate |
get |
*Product
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductId |
string |
Yes |
The ID of the product. |
prod-bp18r7q127**** |
| ProductVersionId |
string |
Yes |
The ID of the product version. |
pv-bp15e79d26**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
| TemplateBody |
string |
The content of the template. For more information about the template syntax, see Structure of Terraform templates. |
{ "ROSTemplateFormatVersion": "2015-09-01", "Transform": "Aliyun::Terraform-v1.1", "Workspace": { "main.tf": "variable \"name\" { default = \"auto_provisioning_group\"}" }, "Outputs": {} } |
Examples
Success response
JSON format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"TemplateBody": "{\n \"ROSTemplateFormatVersion\": \"2015-09-01\",\n \"Transform\": \"Aliyun::Terraform-v1.1\",\n \"Workspace\": {\n \"main.tf\": \"variable \\\"name\\\" { default = \\\"auto_provisioning_group\\\"}\"\n },\n \"Outputs\": {}\n}"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.