1. 接口描述
接口请求域名: gaap.tencentcloudapi.com 。
该接口(DescribeRegionAndPrice)用于获取源站区域和带宽梯度价格
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:DescribeRegionAndPrice。 |
Version | 是 | String | 公共参数,本接口取值:2018-05-29。 |
Region | 否 | String | 公共参数,此参数为可选参数。 |
IPAddressVersion | 否 | String | IP版本,可取值:IPv4、IPv6,默认值IPv4 示例值:IPv4 |
PackageType | 否 | String | 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 示例值:Thunder |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
TotalCount | Integer | 源站区域总数 示例值:26 |
DestRegionSet | Array of RegionDetail | 源站区域详情列表 |
BandwidthUnitPrice | Array of BandwidthPriceGradient | 通道带宽费用梯度价格 |
Currency | String | 带宽价格货币类型: CNY 人民币 USD 美元 示例值:CNY |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 示例
输入示例
POST / HTTP/1.1
Host: gaap.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRegionAndPrice
<公共请求参数>
{
"IPAddressVersion": "IPv4",
"PackageType": "Thunder"
}
输出示例
{
"Response": {
"BandwidthUnitPrice": [],
"Currency": "",
"DestRegionSet": [
{
"FeatureBitmap": 151,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Hongkong",
"RegionName": "中国香港",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "SoutheastAsia",
"RegionName": "新加坡",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Korea",
"RegionName": "韩国首尔",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Europe",
"RegionAreaName": "欧洲",
"RegionId": "Europe",
"RegionName": "德国法兰克福",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "NorthAmerica",
"RegionName": "美国西部硅谷",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "WestIndia",
"RegionName": "印度西部孟买",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Thailand",
"RegionName": "泰国曼谷",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "Virginia",
"RegionName": "美国东部弗吉尼亚",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Japan",
"RegionName": "日本东京",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Taipei",
"RegionName": "中国台北",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "SL_AZURE_NorthUAE",
"RegionName": "阿联酋迪拜(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Oceania",
"RegionAreaName": "大洋洲",
"RegionId": "SL_AZURE_EastAUS",
"RegionName": "澳大利亚东部悉尼(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "SL_AZURE_NorthCentralUSA",
"RegionName": "美国中北部伊利诺斯(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "SL_AZURE_SouthIndia",
"RegionName": "印度南部金奈(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "SouthAmerica",
"RegionAreaName": "南美洲",
"RegionId": "SL_AZURE_SouthBrazil",
"RegionName": "巴西南部圣保罗(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Africa",
"RegionAreaName": "非洲",
"RegionId": "SL_AZURE_NorthZAF",
"RegionName": "南非北部约翰内斯堡(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "SL_AZURE_SoutheastAsia",
"RegionName": "新加坡(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Europe",
"RegionAreaName": "欧洲",
"RegionId": "SL_AZURE_CentralFrance",
"RegionName": "法国中部巴黎(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Europe",
"RegionAreaName": "欧洲",
"RegionId": "SL_AZURE_SouthEngland",
"RegionName": "英国南部伦敦(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "SL_AZURE_EastUS",
"RegionName": "美国东部弗吉尼亚(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "SL_AZURE_WestUS",
"RegionName": "美国西部加利福尼亚(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "NorthAmerica",
"RegionAreaName": "北美洲",
"RegionId": "SL_AZURE_SouthCentralUSA",
"RegionName": "美国南部德克萨斯(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "Jakarta",
"RegionName": "印尼雅加达",
"SupportFeature": null
},
{
"FeatureBitmap": 79,
"IDCType": "dc",
"RegionArea": "NorthChina",
"RegionAreaName": "中国大陆-华北",
"RegionId": "Beijing",
"RegionName": "北京(原中国大陆-华北大区)",
"SupportFeature": null
},
{
"FeatureBitmap": 79,
"IDCType": "dc",
"RegionArea": "EastChina",
"RegionAreaName": "中国大陆-华东",
"RegionId": "Shanghai",
"RegionName": "上海(原中国大陆-华东大区)",
"SupportFeature": null
},
{
"FeatureBitmap": 79,
"IDCType": "dc",
"RegionArea": "SouthChina",
"RegionAreaName": "中国大陆-华南",
"RegionId": "Guangzhou",
"RegionName": "广州(原中国大陆-华南大区)",
"SupportFeature": null
},
{
"FeatureBitmap": 79,
"IDCType": "dc",
"RegionArea": "SouthwestChina",
"RegionAreaName": "中国大陆-西南",
"RegionId": "Chengdu",
"RegionName": "成都(原中国大陆-西南地区)",
"SupportFeature": null
},
{
"FeatureBitmap": 7,
"IDCType": "dc",
"RegionArea": "Europe",
"RegionAreaName": "欧洲",
"RegionId": "SL_AZURE_NorwayEast",
"RegionName": "挪威东部奥斯陆(合作节点)",
"SupportFeature": null
},
{
"FeatureBitmap": 71,
"IDCType": "dc",
"RegionArea": "SouthwestChina",
"RegionAreaName": "中国大陆-西南",
"RegionId": "Chongqing",
"RegionName": "重庆",
"SupportFeature": null
},
{
"FeatureBitmap": 71,
"IDCType": "dc",
"RegionArea": "EastChina",
"RegionAreaName": "中国大陆-华东",
"RegionId": "Nanjing",
"RegionName": "南京",
"SupportFeature": null
},
{
"FeatureBitmap": 135,
"IDCType": "dc",
"RegionArea": "SouthAmerica",
"RegionAreaName": "南美洲",
"RegionId": "SaoPaulo",
"RegionName": "巴西",
"SupportFeature": null
},
{
"FeatureBitmap": 3,
"IDCType": "dc",
"RegionArea": "Asia",
"RegionAreaName": "亚洲",
"RegionId": "SL_AZURE_JapanEast",
"RegionName": "日本东部埼玉县(合作节点)",
"SupportFeature": null
}
],
"RequestId": "54f73e5b-0565-498c-bcc9-5605ca53b1be",
"TotalCount": 32
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
AuthFailure | CAM签名/鉴权错误。 |
AuthFailure.NotEnterpriseAuthorization | 非企业认证客户。 |
AuthFailure.UnauthorizedOperation | 子账户未授权操作。 |
FailedOperation | 操作失败。 |
FailedOperation.UserNotConfirmProtocol | 未开通协议。 |
InternalError | 内部错误。 |
InvalidParameter | 参数错误。 |
InvalidParameterValue | 参数取值错误。 |
MissingParameter | 缺少参数错误。 |
ResourceNotFound | 资源不存在。 |
ResourceUnavailable.AccountViolation | 账号下存在违规资源,详情请查看站内信或邮件。 |
UnauthorizedOperation | 未授权操作。 |