This article introduces how to query the available instance startup templates after creating the template, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something.
DescribeLaunchTemplates
Request Parameters
Return parameters
Data typeLaunchTemplateSet
Example
Request example
https://ecs.aliyuncs.com/?Action=DescribeLaunchTemplates &RegionId=cn-hangzhou &<公共请求参数>
Return example
XML format
<DescribeLaunchTemplatesResponse> <RequestId>04F0F334-1335-436C-A1D7-6C044FExxxxx</RequestId> <TotalCount>1</TotalCount> <PageNumber>1</PageNumber> <PageSize>10</PageSize> <LaunchTemplateSets> <LaunchTemplateSet> <CreateTime>2018-05-14T14:18:00Z</CreateTime> <ModifiedTime>2018-05-14T14:18:00Z</ModifiedTime> <LaunchTemplateid>lt-m5e3ofjr1zn1aw7xxxx</LaunchTemplateid> <LaunchTemplateName>wd-1526307480xxx</LaunchTemplateName> <DefaultVersionNumber>1</DefaultVersionNumber> <LatestVersionNumber>1</LatestVersionNumber> <CreatedBy>1942111349714xxx</CreatedBy> </LaunchTemplateSet> </LaunchTemplateSets> </DescribeLaunchTemplatesResponse>
JSON format
{ "RequestId": "04F0F334-1335-436C-A1D7-6C044FExxxxx", "TotalCount":1, "PageNumber":1, "PageSize":10, "LaunchTemplateSets":{ "LaunchTemplateSet":[{ "LaunchTemplateName":"wd-1526307480xxx", "CreatedBy":"1942111349714xxx", "ModifiedTime":"2018-05-14T14:18:00Z", "LatestVersionNumber":1, "CreateTime":"2018-05-14T14:18:00Z", "LaunchTemplateId":"lt-m5e3ofjr1zn1aw7qdxxx", "DefaultVersionNumber":1 }] } }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.
The above is the detailed content of How to query available instance startup templates after creating a template. For more information, please follow other related articles on the PHP Chinese website!