文档中心 资源管理 API文档 配额管理接口 获取配额服务列表

获取配额服务列表

最近更新时间:2021-07-15 10:24:02

请求参数

名称 类型 必须 长度限制(字符) 参数格式 描述
Action String 确定值 [a-zA-Z]+ 操作接口名,系统规定参数,取值:ListProducts
Page Integer 最小值1 页码
PageSize Integer 最小值1,最大值200,默认200 用于限制本次查询结果返回的数量

返回元素(调用成功)

名称 类型 描述
ProductInfo Array 数据
RequestId String 请求id

ProductInfo参数

名称 类型 描述
Total Integer 数据总数
ProductList Array 服务信息
Page Integer 当前页码

ProductList参数说明:

名称 类型 描述
ProductName String 服务中文名称
ProductEnName String 服务英文文名称
ProductCode String 服务名称缩写
EnFullName String 服务英文名称
ProductCategoryId Integer 产品类目id
ProductCategoryName String 产品类目中文名
ProductCategoryEnName String 产品类目英文名
DimensionsType String 配额维度类型 GlobalType(全局)和RegionType(按机房)

错误码(调用不成功)

错误代码(Code) 错误消息(Message) HTTP 状态码 中文描述(语义)
InvalidParameterValue Parameters error: %s 400 参数错误:%s,具体错误信息在%s说明
MissingRequiredHeader Bad request, must include valid http header: X-KSC-ACCOUNT-ID, X-KSC-SERVICE, X-KSC-REGION. 400

示例

请求示例

https://quota.api.ksyun.com/?Action=ListProducts&Page=1&Version=2021-05-19

返回示例

  • XML格式
<ProductInfo>
    <Total>1</Total>
    <ProductList>
        <ProductName>云解析</ProductName>
        <ProductEnName>Domain Name Service</ProductEnName>
        <ProductCode>DNS</ProductCode>
        <EnFullName>Domain Name Service</EnFullName>
        <ProductCategoryId>2</ProductCategoryId>
        <ProductCategoryName>网络</ProductCategoryName>
        <ProductCategoryEnName>Networking</ProductCategoryEnName>
        <DimensionsType>RegionType</DimensionsType>
    </ProductList>
    <Page>1</Page>
</ProductInfo>
<RequestId>d31b17af-4bb0-4bd1-9b3f-9c1a5d478224</RequestId>
  • JSON示例
{
    "ProductInfo": {
        "Total": 1,
        "ProductList": [
            {
            "ProductName": "云解析",
                "ProductEnName": "Domain Name Service",
                "ProductCode": "DNS",
                "ProductCategoryId": 2,
                "ProductCategoryName": "网络",
                "ProductCategoryEnName": "Networking",
                "DimensionsType": "RegionType"
            }
        ],
        "Page": 1
    },
    "RequestId": "d31b17af-4bb0-4bd1-9b3f-9c1a5d478224"
}
上一篇:配额管理接口
下一篇:获得指定服务的配额列表
以上内容是否对您有帮助?
有帮助
没帮助