开发者社区> 问答> 正文

如何获取PCDN的API接口所有支持的运营商列表



描述




获取所有支持的运营商列表




请求参数



名称类型是否必须描述
ActionString系统参数,取值:GetAllIsp




返回参数



名称类型描述
DataListUsageData[]返回的数据

数据类型 UsageData
名称类型描述
ResourceIdString资源id
NameEnString英文名称
NameCnString中文名称




特定错误码



ErrorCode 错误码Message 错误信息HTTP 状态语义
101013111用户不存在




示例




请求示例http://pcdn.aliyuncs.com/?SignatureVersion=1.0&Action=GetAllIsp&Format=XML&SignatureNonce=5f50d583-9336-4c3a-82d2-c50efe6a9f74&Version=2017-04-11&AccessKeyId=LTAIHB6hAhgmlYBP&Signature=x2cUrEl9bNksrpU75p%2BHCn5PlTE%3D&SignatureMethod=HMAC-SHA1&RegionId=cn-hangzhou&Timestamp=2017-06-01T03%3A43%3A53Z&<公共参数>

返回示例JSON格式:{
  "RequestId": "FB3AA371-2230-4FF8-8E94-952EBF2CF30C",
  "DataList": {
    "UsageData": [
      {
        "ResourceId": "tu9lfh",
        "NameEn": "unicom",
        "NameCn": "联通"
      },
      {
        "ResourceId": "1em7qj4",
        "NameEn": "telecom",
        "NameCn": "电信"
      },
      {
        "ResourceId": "iplnlf",
        "NameEn": "mobile",
        "NameCn": "移动"
      },
      {
        "ResourceId": "1c0vz6g",
        "NameEn": "cernet",
        "NameCn": "教育网"
      },
      {
        "ResourceId": "1stffhs",
        "NameEn": "dounder",
        "NameCn": "方正宽带"
      },
      {
        "ResourceId": "rbgdlh",
        "NameEn": "tietong",
        "NameCn": "铁通"
      },
      {
        "ResourceId": "tp4xpa",
        "NameEn": "greatwall",
        "NameCn": "长宽"
      },
      {
        "ResourceId": "13e8i39",
        "NameEn": "other",
        "NameCn": "其他"
      }
    ]
  },
  "Code": 0
}


XML格式<?xml version="1.0" encoding="utf-8"?>
<GetAllIspResponse>
  <RequestId>7EA16831-74AC-4A2A-8355-19BEEF546663</RequestId>
  <DataList>
    <UsageData>
      <ResourceId>tu9lfh</ResourceId>
      <NameEn>unicom</NameEn>
      <NameCn>联通</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>1em7qj4</ResourceId>
      <NameEn>telecom</NameEn>
      <NameCn>电信</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>iplnlf</ResourceId>
      <NameEn>mobile</NameEn>
      <NameCn>移动</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>1c0vz6g</ResourceId>
      <NameEn>cernet</NameEn>
      <NameCn>教育网</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>1stffhs</ResourceId>
      <NameEn>dounder</NameEn>
      <NameCn>方正宽带</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>rbgdlh</ResourceId>
      <NameEn>tietong</NameEn>
      <NameCn>铁通</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>tp4xpa</ResourceId>
      <NameEn>greatwall</NameEn>
      <NameCn>长宽</NameCn>
    </UsageData>
    <UsageData>
      <ResourceId>13e8i39</ResourceId>
      <NameEn>other</NameEn>
      <NameCn>其他</NameCn>
    </UsageData>
  </DataList>
  <Code>0</Code>
</GetAllIspResponse>



展开
收起
云栖大讲堂 2017-10-27 17:14:43 2760 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
Spring Boot2.0实战Redis分布式缓存 立即下载
CUDA MATH API 立即下载
API PLAYBOOK 立即下载