All Products
Search
Document Center

Elastic Compute Service:DescribeLaunchTemplates

Last Updated:Apr 11, 2024

Queries available launch templates.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The tags of the launch template.

cn-hangzhou
TemplateTagobject []No

The tag of the launch template.

KeystringNo

The value of tag N of the launch template. Valid values of N: 1 to 20.

TestKey
ValuestringNo

The number of the page to return. Pages start from page 1.

Default value: 1.

TestValue
PageNumberintegerNo

The number of entries to return on each page.

Default value: 10.

1
PageSizeintegerNo

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
TemplateResourceGroupIdstringNo

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****
LaunchTemplateIdarrayNo

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.

stringNo

The names of launch templates. You can specify up to 100 launch template names.

lt-m5e3ofjr1zn1aw7q****
LaunchTemplateNamearrayNo

The names of launch templates. You can specify up to 100 launch template names.

stringNo

The number of entries returned per page.

wd-152630748****

Response parameters

ParameterTypeDescriptionExample
object
PageSizeinteger

The ID of the request.

10
RequestIdstring

The page number of the returned page.

04F0F334-1335-436C-A1D7-6C044FE12CBA
PageNumberinteger

The total number of launch templates.

1
TotalCountinteger

The information about the launch templates.

1
LaunchTemplateSetsobject []

The information about the launch template.

LaunchTemplateNamestring

The default version number of the launch template.

wd-152630748****
DefaultVersionNumberlong

The time when the launch template was modified.

1
ModifiedTimestring

The ID of the launch template.

2018-05-14T14:18:00Z
LaunchTemplateIdstring

The time when the launch template was created.

lt-m5e3ofjr1zn1aw7q****
CreateTimestring

The ID of the resource group to which the launch template belongs.

2018-05-14T14:18:00Z
ResourceGroupIdstring

The creator of the launch template.

rg-acfmxazb4p****
CreatedBystring

The latest version number of the launch template.

1234567890
LatestVersionNumberlong

The tags of the launch template.

1
Tagsobject []

The tag of the launch template.

TagValuestring

The key of tag N of the launch template.

TestValue

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
400InvalidRegion.NotExist%sThe specified region does not exist.
400MissingParameter%sA parameter is not specified.
400InvalidParameter%sThe specified parameter is invalid.
403InnerServiceFailed%sAn internal service cannot be called.
500InternalErrorThe request processing has failed due to some unknown error, exception or failure.An internal error has occurred. Try again later.
503ServiceUnavailableThe 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 timeSummary of changesOperation
2023-03-28The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 500
    delete Error Codes: 503