虚拟专用网络 VPN-查询配额:响应消息

时间:2024-06-25 18:30:20

响应消息

  • 响应参数

    返回状态码为 200: 查询成功。

    表2 响应Body参数列表

    名称

    类型

    描述

    quotas

    Quotas object

    quotas对象。

    request_id

    String

    请求ID。

    表3 Quotas

    名称

    类型

    描述

    resources

    Array of QuotaInfo objects

    resources对象。

    表4 QuotaInfo

    名称

    类型

    描述

    type

    String

    • 功能说明:根据type过滤查询指定类型的配额。
    • 取值范围:
      • customer_gateway 对端网关。
      • vpn_connection 企业版VPN连接。
      • vpn_gateway 企业版VPN网关。

    quota

    Integer

    配额上限。

    used

    Integer

    已使用数。

  • 响应样例
    {
        "quotas": {
            "resources": [
                {
                    "type": "customer_gateway",
                    "quota": 100,
                    "used": 13
                },
                {
                    "type": "vpn_connection",
                    "quota": 5000,
                    "used": 306
                },
                {
                    "type": "vpn_gateway",
                    "quota": 50,
                    "used": 23
                }
            ]
        },
        "request_id": "9aeb7f73-e1b6-42eb-96ad-b68aef8186e3"
    }
support.huaweicloud.com/api-vpn/vpn_api_0038.html