Queries available launch templates.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The tags of the launch template. | cn-hangzhou |
TemplateTag | object [] | No | The tag of the launch template. | |
Key | string | No | The value of tag N of the launch template. Valid values of N: 1 to 20. | TestKey |
Value | string | No | The number of the page to return. Pages start from page 1. Default value: 1. | TestValue |
PageNumber | integer | No | The number of entries to return on each page. Default value: 10. | 1 |
PageSize | integer | No | The ID of the resource group to which the launch template belongs. If you specify this parameter to query resources, up to 1,000 resources that belong to the specified resource group can be returned. Note
Resources in the default resource group are displayed in the response regardless of whether you specify this parameter.
| 10 |
TemplateResourceGroupId | string | No | The IDs of launch templates. You can specify up to 100 launch template IDs. You must specify LaunchTemplateId or LaunchTemplateName to determine a launch template. | rg-acfmxazb4p**** |
LaunchTemplateId | array | No | The IDs of launch templates. You can specify up to 100 launch template IDs. You must specify LaunchTemplateId or LaunchTemplateName to determine a launch template. | |
string | No | The names of launch templates. You can specify up to 100 launch template names. | lt-m5e3ofjr1zn1aw7q**** | |
LaunchTemplateName | array | No | The names of launch templates. You can specify up to 100 launch template names. | |
string | No | The number of entries returned per page. | wd-152630748**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageSize": 10,
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE12CBA",
"PageNumber": 1,
"TotalCount": 1,
"LaunchTemplateSets": {
"LaunchTemplateSet": [
{
"LaunchTemplateName": "wd-152630748****",
"DefaultVersionNumber": 1,
"ModifiedTime": "2018-05-14T14:18:00Z",
"LaunchTemplateId": "lt-m5e3ofjr1zn1aw7q****",
"CreateTime": "2018-05-14T14:18:00Z",
"ResourceGroupId": "rg-acfmxazb4p****",
"CreatedBy": "1234567890",
"LatestVersionNumber": 1,
"Tags": {
"Tag": [
{
"TagValue": "TestValue",
"TagKey": "TestKey"
}
]
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidRegion.NotExist | %s | The specified region does not exist. |
400 | MissingParameter | %s | A parameter is not specified. |
400 | InvalidParameter | %s | The specified parameter is invalid. |
403 | InnerServiceFailed | %s | An internal service cannot be called. |
500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error has occurred. Try again later. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
2023-03-28 | The Error code has changed | see changesets | ||||||||||
|