human: 如何处理七牛云的专有云计算主机规格列表

gpt: [专有云计算](https://developer.qiniu.com/qec) > API 文档 >
[云主机](https://developer.qiniu.com/qec/api/10639/compute) >
[主机管理](https://developer.qiniu.com/qec/api/10686/the-server) > 主机规格列表

#  主机规格列表

最近更新时间: 2022-01-25 16:13:21

# 请求路径

> `GET` /api/rio/v1/compute/flavor

# 请求参数

名称 | 类型 | 位置 | 必须 | 描述  
---|---|---|---|---  
x-rio-zone-id | string | header | 是 | 区域 ID  
  
# 返回值

名称 | 类型 | 描述  
---|---|---  
request_id | string | 请求 ID  
data | []FlavorInfo | 主机信息  
  
## FlavorInfo 主机规格信息

名称 | 类型 | 描述  
---|---|---  
flavor_id | string | 实例规格ID  
flavor_name | string | 实例规格名称  
description | string | 规格描述  
cpu | uint | vCPU内核数目  
memory | uint | 内存大小，单位 MB  
swap | uint | 交换分区大小, 单位 MB  
gpu_amount | uint | GPU数量  
gpu_spec | string | GPU类型  
bandwidth_rx | uint64 | 内网入方向带宽限制，单位：kbit/s  
bandwidth_tx | uint64 | 内网出方向带宽限制，单位：kbit/s  
ppsrx | uint | 内网入方向网络收发包能力，单位：Pps  
ppstx | uint | 内网出方向网络收发包能力，单位：Pps  
  
## 请求示例

> `GET` api/rio/v1/compute/flavor

##返回值示例

    
    
    {
      "request_id": "TqeOOY5va1M3dc0W",
      "data": [
        {
          "flavor_id": "00c90f83-b633-4c7f-9c77-344e85295af1",
          "flavor_name": "1C1G",
          "description": "",
          "cpu": 1,
          "memory": 1024,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "1904a256-43fb-444d-9dda-00668507cc96",
          "flavor_name": "4C32G",
          "description": "",
          "cpu": 4,
          "memory": 32768,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "1e671ec3-af83-4eab-96ed-31993a99ba17",
          "flavor_name": "8C16G",
          "description": "",
          "cpu": 8,
          "memory": 16384,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "252a6d6b-54bf-4426-b090-10947c163ad6",
          "flavor_name": "64C128G",
          "description": "",
          "cpu": 64,
          "memory": 131072,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "30f6d4e7-8ef2-4b92-9401-009bcd66404a",
          "flavor_name": "2C2G",
          "description": "",
          "cpu": 2,
          "memory": 2048,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "333d50ca-41ee-4eb2-8e0e-24283c6f3398",
          "flavor_name": "32C32G",
          "description": "",
          "cpu": 32,
          "memory": 32768,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "3b5dccb3-1670-464b-b04c-46cff7cf8ccf",
          "flavor_name": "2C8G",
          "description": "",
          "cpu": 2,
          "memory": 8192,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "43f55274-433a-4106-afa4-59d6c7de9bfe",
          "flavor_name": "4C8G",
          "description": "",
          "cpu": 4,
          "memory": 8192,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "44bf4e63-1ea5-436f-875a-12ec11b63d91",
          "flavor_name": "4C4G",
          "description": "",
          "cpu": 4,
          "memory": 4096,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "479bf64c-113a-40f4-8a54-4269a87fc68a",
          "flavor_name": "1C4G",
          "description": "",
          "cpu": 1,
          "memory": 4096,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "47eb0cac-2d12-46b3-9fd3-b6ef1ac4fcd5",
          "flavor_name": "16C128G",
          "description": "",
          "cpu": 16,
          "memory": 131072,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "4b10df22-8090-4fd5-b645-b739d7c9e33f",
          "flavor_name": "1C8G",
          "description": "",
          "cpu": 1,
          "memory": 8192,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "558da65b-744b-46c3-9282-3b91ba930db5",
          "flavor_name": "16C64G",
          "description": "",
          "cpu": 16,
          "memory": 65536,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "81f1dae1-138c-452a-a82a-792bf474ff69",
          "flavor_name": "32C128G",
          "description": "",
          "cpu": 32,
          "memory": 131072,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "82b6dceb-ad1c-4a4d-a34e-5470572e8983",
          "flavor_name": "32C256G",
          "description": "",
          "cpu": 32,
          "memory": 262144,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "870cb630-a4cb-4600-bf4d-a4796962c9bd",
          "flavor_name": "1C2G",
          "description": "",
          "cpu": 1,
          "memory": 2048,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "8f054cd5-e839-453a-ad7e-572eec15b51b",
          "flavor_name": "2C16G",
          "description": "",
          "cpu": 2,
          "memory": 16384,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "8f8db9b6-08f8-427d-ab5a-f8a923293e51",
          "flavor_name": "32C64G",
          "description": "",
          "cpu": 32,
          "memory": 65536,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "9577656a-6fcb-4dfe-8dcb-9df7bef7eeb5",
          "flavor_name": "2C4G",
          "description": "",
          "cpu": 2,
          "memory": 4096,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "962a78f8-117b-48e9-848f-c3e1a9c2257c",
          "flavor_name": "4C16G",
          "description": "",
          "cpu": 4,
          "memory": 16384,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "a35272d6-cc04-4b0e-bc5e-f22720222b5b",
          "flavor_name": "16C16G",
          "description": "",
          "cpu": 16,
          "memory": 16384,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "bf87fa73-4820-4954-9ee9-b47f2dcc8cb7",
          "flavor_name": "Octavia-Flavor-bf87f",
          "description": "",
          "cpu": 8,
          "memory": 8192,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "c1ea55a0-c0eb-4266-80b4-a51bd08ddc01",
          "flavor_name": "24C96G",
          "description": "",
          "cpu": 24,
          "memory": 98304,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "c6a26af8-f031-4fc4-baf8-9193aaf2ee3c",
          "flavor_name": "64C64G",
          "description": "",
          "cpu": 64,
          "memory": 65536,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "cabc1dd2-01cf-413c-ac78-288fbb70e612",
          "flavor_name": "8C64G",
          "description": "",
          "cpu": 8,
          "memory": 65536,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "e70b1303-12a2-491a-a66e-d874d1f9ff38",
          "flavor_name": "8C32G",
          "description": "",
          "cpu": 8,
          "memory": 32768,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "e902ff82-5af6-4a20-a9d5-4e4194bc6315",
          "flavor_name": "64C256G",
          "description": "",
          "cpu": 64,
          "memory": 262144,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        },
        {
          "flavor_id": "f9f9fefe-177e-4c82-8bd4-76daeec8eaa4",
          "flavor_name": "16C32G",
          "description": "",
          "cpu": 16,
          "memory": 32768,
          "swap": 0,
          "gpu_amount": 0,
          "gpu_spec": "",
          "bandwidth_rx": 0,
          "bandwidth_tx": 0,
          "ppsrx": 0,
          "ppstx": 0
        }
      ]
    }
    

以上内容是否对您有帮助？