1. 接口描述
接口请求域名: as.tencentcloudapi.com 。
本接口(DescribeLaunchConfigurations)用于查询启动配置的信息。
- 可以根据启动配置ID、启动配置名称等信息来查询启动配置的详细信息。过滤信息详细请见过滤器
Filter
。 - 如果参数为空,返回当前用户一定数量(
Limit
所指定的数量,默认为20)的启动配置。
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:DescribeLaunchConfigurations。 |
Version | 是 | String | 公共参数,本接口取值:2018-04-19。 |
Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
LaunchConfigurationIds.N | 否 | Array of String | 按照一个或者多个启动配置ID查询。启动配置ID形如:asc-ouy1ax38 。每次请求的上限为100。参数不支持同时指定LaunchConfigurationIds 和Filters 示例值:["asc-fa28v4in"] |
Filters.N | 否 | Array of Filter | 过滤条件。 每次请求的 Filters 的上限为10,Filter.Values 的上限为5。参数不支持同时指定LaunchConfigurationIds 和Filters 。示例值:[{"Name": "launch-configuration-name", "Values": ["DataEngine123"]}] |
Limit | 否 | Integer | 返回数量,默认为20,最大值为100。关于Limit 的更进一步介绍请参考 API 简介中的相关小节。示例值:20 |
Offset | 否 | Integer | 偏移量,默认为0。关于Offset 的更进一步介绍请参考 API 简介中的相关小节。示例值:0 |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
TotalCount | Integer | 符合条件的启动配置数量。 示例值:1 |
LaunchConfigurationSet | Array of LaunchConfiguration | 启动配置详细信息列表。 示例值:[{"UpdatedTime": "2024-11-08T06:47:44Z", "LaunchConfigurationId": "asc-6wsiq5pq", "LastOperationInstanceTypesCheckPolicy": "ANY", "LoginSettings": {"KeepImageLogin": false}, "EnhancedService": {"SecurityService": {"Enabled": false}, "MonitorService": {"Enabled": true}}, "CreatedTime": "2023-06-12T04:31:21Z", "DisableHyperThreading": false, "InstanceTypes": ["S5.2XLARGE32", "SA5.2XLARGE32", "SA4.2XLARGE32", "S8.2XLARGE32"], "ImageId": "img-eb30mz89", "InstanceChargeType": "PREPAID", "DiskTypePolicy": "ORIGINAL", "Ipv6InternetAccessible": {"InternetMaxBandwidthOut": 0, "InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR"}, "InstanceType": "S5.2XLARGE32", "SystemDisk": {"DiskSize": 500, "DiskType": "CLOUD_PREMIUM"}, "LaunchConfigurationStatus": "NORMAL", "ProjectId": 0, "SecurityGroupIds": ["sg-7sup3wkd"], "LaunchConfigurationName": "tke-np-ee", "Tags": [], "InternetAccessible": {"PublicIpAssigned": false, "InternetMaxBandwidthOut": 0, "InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR"}, "HpcClusterId": "", "VersionNumber": 20, "InstanceChargePrepaid": {"RenewFlag": "NOTIFY_AND_AUTO_RENEW", "Period": 1}, "AutoScalingGroupAbstractSet": [{"AutoScalingGroupId": "asg-0lwhdp7e", "AutoScalingGroupName": "tke-np-aa"}]}] |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 使用Filters查看启动配置列表
输入示例
POST / HTTP/1.1
Host: as.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLaunchConfigurations
<公共请求参数>
{
"Filters": [
{
"Values": [
"asc-fa28v4in"
],
"Name": "launch-configuration-id"
}
]
}
输出示例
{
"Response": {
"TotalCount": 1,
"LaunchConfigurationSet": [
{
"ProjectId": 0,
"LaunchConfigurationId": "asc-fa28v4in",
"VersionNumber": 2,
"LaunchConfigurationName": "lc1",
"LaunchConfigurationStatus": "NORMAL",
"AutoScalingGroupAbstractSet": [],
"InstanceType": "S3.MEDIUM4",
"InstanceTypes": [
"S3.MEDIUM4"
],
"LastOperationInstanceTypesCheckPolicy": "ANY",
"ImageId": "img-eb30mz89",
"ImageFamily": "ubuntu-f0",
"Tags": [],
"IPv6InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"BandwidthPackageId": null
},
"DisasterRecoverGroupIds": [],
"InstanceChargeType": "POSTPAID_BY_HOUR",
"InstanceMarketOptions": null,
"DiskTypePolicy": "ORIGINAL",
"SystemDisk": {
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 50
},
"DataDisks": [
{
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 10,
"SnapshotId": null,
"DeleteWithInstance": false,
"Encrypt": false,
"BurstPerformance": null,
"ThroughputPerformance": null
}
],
"LoginSettings": {
"KeyIds": []
},
"InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"PublicIpAssigned": false,
"BandwidthPackageId": null
},
"SecurityGroupIds": [],
"EnhancedService": {
"SecurityService": {
"Enabled": true
},
"AutomationToolsService": {
"Enabled": true
},
"MonitorService": {
"Enabled": true
}
},
"UserData": null,
"InstanceTags": [],
"CreatedTime": "2022-03-03T02:36:12Z",
"UpdatedTime": "2022-03-03T06:49:31Z",
"CamRoleName": "CVM_QcsRole",
"HostNameSettings": {
"HostName": null,
"HostNameSuffix": null,
"HostNameStyle": null
},
"InstanceNameSettings": {
"InstanceName": "ins-ubuntu-0",
"InstanceNameSuffix": null,
"InstanceNameStyle": "UNIQUE"
},
"InstanceChargePrepaid": {
"Period": 0,
"RenewFlag": "NOTIFY_AND_AUTO_RENEW"
},
"HpcClusterId": "hpc-u7y5r4e3"
}
],
"RequestId": "923dd24c-e492-4bdb-90be-1d3bd4bfe8a5"
}
}
示例2 根据启动配置ID查询启动配置列表
输入示例
POST / HTTP/1.1
Host: as.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLaunchConfigurations
<公共请求参数>
{
"LaunchConfigurationIds": [
"asc-g9uwgyvx",
"asc-fa28v4in"
]
}
输出示例
{
"Response": {
"TotalCount": 2,
"LaunchConfigurationSet": [
{
"ProjectId": 0,
"LaunchConfigurationId": "asc-fa28v4in",
"VersionNumber": 2,
"LaunchConfigurationName": "lc1",
"LaunchConfigurationStatus": "NORMAL",
"AutoScalingGroupAbstractSet": [],
"InstanceType": "S3.MEDIUM4",
"InstanceTypes": [
"S3.MEDIUM4"
],
"LastOperationInstanceTypesCheckPolicy": "ANY",
"ImageId": "img-eb30mz89",
"InstanceChargeType": "POSTPAID_BY_HOUR",
"InstanceMarketOptions": null,
"DiskTypePolicy": "ORIGINAL",
"SystemDisk": {
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 50
},
"DataDisks": [
{
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 10,
"BurstPerformance": null,
"SnapshotId": null,
"DeleteWithInstance": false,
"Encrypt": false,
"ThroughputPerformance": null
}
],
"LoginSettings": {
"KeyIds": []
},
"InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"PublicIpAssigned": false,
"BandwidthPackageId": null
},
"SecurityGroupIds": [],
"EnhancedService": {
"SecurityService": {
"Enabled": true
},
"AutomationToolsService": {
"Enabled": true
},
"MonitorService": {
"Enabled": true
}
},
"UserData": null,
"InstanceTags": [],
"ImageFamily": "ubuntu-f0",
"Tags": [],
"IPv6InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"BandwidthPackageId": null
},
"DisasterRecoverGroupIds": [],
"CreatedTime": "2022-03-03T02:36:12Z",
"UpdatedTime": "2022-03-03T06:49:31Z",
"CamRoleName": "CVM_QcsRole",
"HostNameSettings": {
"HostName": null,
"HostNameSuffix": null,
"HostNameStyle": null
},
"InstanceNameSettings": {
"InstanceName": "ins-ubuntu-0",
"InstanceNameSuffix": null,
"InstanceNameStyle": "UNIQUE"
},
"InstanceChargePrepaid": {
"Period": 0,
"RenewFlag": "NOTIFY_AND_AUTO_RENEW"
},
"HpcClusterId": "hpc-u7y5r4e3"
},
{
"ProjectId": 0,
"LaunchConfigurationId": "asc-g9uwgyvx",
"VersionNumber": 1,
"LaunchConfigurationName": "lc2",
"LaunchConfigurationStatus": "NORMAL",
"AutoScalingGroupAbstractSet": [],
"InstanceType": "S3.MEDIUM4",
"InstanceTypes": [
"S3.MEDIUM4"
],
"LastOperationInstanceTypesCheckPolicy": "ANY",
"ImageId": "img-eb30mz89",
"InstanceChargeType": "POSTPAID_BY_HOUR",
"InstanceMarketOptions": null,
"DiskTypePolicy": "ORIGINAL",
"SystemDisk": {
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 50
},
"DataDisks": [
{
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 40,
"SnapshotId": null,
"DeleteWithInstance": null,
"Encrypt": null,
"BurstPerformance": null,
"ThroughputPerformance": null
}
],
"LoginSettings": {
"KeyIds": []
},
"InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"PublicIpAssigned": false,
"BandwidthPackageId": null
},
"SecurityGroupIds": [],
"EnhancedService": {
"SecurityService": {
"Enabled": true
},
"AutomationToolsService": {
"Enabled": true
},
"MonitorService": {
"Enabled": true
}
},
"UserData": null,
"InstanceTags": [],
"ImageFamily": "ubuntu-f0",
"Tags": [],
"IPv6InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"BandwidthPackageId": null
},
"DisasterRecoverGroupIds": [],
"CreatedTime": "2022-03-02T02:25:12Z",
"UpdatedTime": "2022-03-02T02:25:12Z",
"CamRoleName": "CVM_QcsRole",
"HostNameSettings": {
"HostName": null,
"HostNameSuffix": null,
"HostNameStyle": null
},
"InstanceNameSettings": {
"InstanceName": "ins-ubuntu-0",
"InstanceNameSuffix": null,
"InstanceNameStyle": "UNIQUE"
},
"InstanceChargePrepaid": {
"Period": 0,
"RenewFlag": "NOTIFY_AND_AUTO_RENEW"
},
"HpcClusterId": "hpc-u7y5r4e3"
}
],
"RequestId": "0d4514d4-e277-4f0f-bc85-8b7377a71980"
}
}
示例3 使用Filters通过Tag:Key方式查看启动配置列表。
输入示例
POST / HTTP/1.1
Host: as.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeLaunchConfigurations
<公共请求参数>
{
"Filters": [
{
"Values": [
"v2"
],
"Name": "tag:k1"
}
]
}
输出示例
{
"Response": {
"TotalCount": 1,
"LaunchConfigurationSet": [
{
"ProjectId": 0,
"LaunchConfigurationId": "asc-0zri3ck1",
"VersionNumber": 1,
"LaunchConfigurationName": "test_tag_k1_v2",
"LaunchConfigurationStatus": "NORMAL",
"AutoScalingGroupAbstractSet": [],
"InstanceType": "S5.MEDIUM4",
"InstanceTypes": [
"S5.MEDIUM4"
],
"LastOperationInstanceTypesCheckPolicy": "ANY",
"ImageId": "img-eb30mz89",
"InstanceChargeType": "POSTPAID_BY_HOUR",
"InstanceMarketOptions": null,
"DiskTypePolicy": "ORIGINAL",
"SystemDisk": {
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 50
},
"DataDisks": [
{
"DiskType": "CLOUD_PREMIUM",
"DiskSize": 40,
"BurstPerformance": null,
"SnapshotId": null,
"DeleteWithInstance": null,
"Encrypt": null,
"ThroughputPerformance": null
}
],
"LoginSettings": {
"KeyIds": []
},
"InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"PublicIpAssigned": false,
"BandwidthPackageId": null
},
"SecurityGroupIds": [],
"EnhancedService": {
"SecurityService": {
"Enabled": true
},
"AutomationToolsService": {
"Enabled": true
},
"MonitorService": {
"Enabled": true
}
},
"UserData": null,
"Tags": [],
"InstanceTags": [],
"ImageFamily": "ubuntu-f0",
"IPv6InternetAccessible": {
"InternetChargeType": "TRAFFIC_POSTPAID_BY_HOUR",
"InternetMaxBandwidthOut": 0,
"BandwidthPackageId": null
},
"DisasterRecoverGroupIds": [],
"CreatedTime": "2022-07-14T06:37:08Z",
"UpdatedTime": "2022-07-14T06:37:08Z",
"CamRoleName": "CVM_QcsRole",
"HostNameSettings": {
"HostName": null,
"HostNameSuffix": null,
"HostNameStyle": null
},
"InstanceNameSettings": {
"InstanceName": "ins-ubuntu-0",
"InstanceNameSuffix": null,
"InstanceNameStyle": "UNIQUE"
},
"InstanceChargePrepaid": {
"Period": 0,
"RenewFlag": "NOTIFY_AND_AUTO_RENEW"
},
"HpcClusterId": "hpc-u7y5r4e3"
}
],
"RequestId": "8b8047bb-1372-4208-866e-a18e7b7547e9"
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
InvalidLaunchConfiguration | 无效的启动配置。 |
InvalidLaunchConfigurationId | 启动配置ID无效。 |
InvalidParameter.ActionNotFound | 无效的Action请求。 |
InvalidParameterConflict | 指定的两个参数冲突,不能同时存在。 |
InvalidParameterValue.InvalidFilter | 过滤条件无效。 |
InvalidParameterValue.InvalidLaunchConfigurationId | 启动配置ID无效。 |
InvalidParameterValue.TooLong | 取值过多。 |
InvalidPermission | 账户不支持该操作。 |
LimitExceeded.FilterValuesTooLong | 特定过滤器的值过多。 |
UnsupportedOperation | 操作不支持。 |