查询操作系统信息

最近更新时间:2021-02-04 08:09:44

我的收藏

1. 接口描述

接口请求域名: bm.tencentcloudapi.com 。

查询指定机型所支持的操作系统

默认接口请求频率限制:10次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeOsInfo。
Version String 公共参数,本接口取值:2018-04-23。
Region String 公共参数,详见产品支持的 地域列表
DeviceClassCode String 设备类型代号。 可以从DescribeDeviceClass查询设备类型列表

3. 输出参数

参数名称 类型 描述
OsInfoSet Array of OsInfo 操作系统信息列表
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 示例

示例1 查询操作系统信息

输入示例

https://bm.tencentcloudapi.com/?Action=DescribeOsInfo
&DeviceClassCode=PS100v1
&<公共请求参数>

输出示例

{
  "Response": {
    "OsInfoSet": [
      {
        "OsTypeId": 85,
        "OsName": "BM-ubuntu16.04-test",
        "OsDescription": "ubuntu16.04-test",
        "OsEnglishDescription": "ubuntu16.04-test",
        "OsClass": "ubuntu",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 23,
        "OsName": "BM-ubuntu16.04",
        "OsDescription": "ubuntu 16 64位",
        "OsEnglishDescription": "ubuntu 16 64bit",
        "OsClass": "ubuntu",
        "ImageTag": "public",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 9,
        "OsName": "BM-ubuntu14",
        "OsDescription": "ubuntu 14   64位",
        "OsEnglishDescription": "ubuntu 14   64bit",
        "OsClass": "ubuntu",
        "ImageTag": "public",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 50,
        "OsName": "BM-tlinux1.2-ori",
        "OsDescription": "tlinux1.2-ori(内部版)",
        "OsEnglishDescription": "tlinux1.2-ori(内部版)",
        "OsClass": "Tlinux",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 51,
        "OsName": "BM-shuteng-centos7.2",
        "OsDescription": "shuteng-centos7.2(内部版)",
        "OsEnglishDescription": "shuteng-centos7.2(内部版)",
        "OsClass": "CentOS",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 52,
        "OsName": "BM-shuteng-centos7.2",
        "OsDescription": "shuteng-centos7.2",
        "OsEnglishDescription": "shuteng-centos7.2",
        "OsClass": "CentOS",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 57,
        "OsName": "BM-shunfeng-centos7.2",
        "OsDescription": "shunfeng-centos7.2(内部版)",
        "OsEnglishDescription": "shunfeng-centos7.2",
        "OsClass": "CentOS",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 56,
        "OsName": "BM-shunfeng-centos7.2",
        "OsDescription": "shunfeng-centos7.2",
        "OsEnglishDescription": "shunfeng-centos7.2",
        "OsClass": "CentOS",
        "ImageTag": "private",
        "MaxPartitionSize": 50
      },
      {
        "OsTypeId": 79,
        "OsName": "BM-douban-gentoo",
        "OsDescription": "gentoo 64位",
        "OsEnglishDescription": "gentoo16.7 64bit",
        "OsClass": "gentoo",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 84,
        "OsName": "BM-douban-gentoo",
        "OsDescription": "douban-gentoo-1803(内部版)",
        "OsEnglishDescription": "douban-gentoo-1803",
        "OsClass": "gentoo",
        "ImageTag": "private",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 77,
        "OsName": "BM-centos68-180501",
        "OsDescription": "centos6.8 180501",
        "OsEnglishDescription": "centos6.8 180501",
        "OsClass": "CentOS",
        "ImageTag": "public",
        "MaxPartitionSize": 1000000
      },
      {
        "OsTypeId": 76,
        "OsName": "BM-centos67-180501",
        "OsDescription": "centos6.7 180501",
        "OsEnglishDescription": "centos6.7 180501",
        "OsClass": "CentOS",
        "ImageTag": "public",