文档中心>私有网络

查询云联网跨境限速实例

最近更新时间:2024-04-03 11:32:36

我的收藏

1. 接口描述

接口请求域名: vpc.tencentcloudapi.com 。

本接口(DescribeCrossBorderCcnRegionBandwidthLimits)用于获取要锁定的限速实例列表。
该接口一般用来封禁地域间限速的云联网实例下的限速实例, 目前联通内部运营系统通过云API调用, 如果是出口限速, 一般使用更粗的云联网实例粒度封禁(DescribeTenantCcns)
如有需要, 可以封禁任意限速实例, 可接入到内部运营系统

默认接口请求频率限制:20次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数

参数名称 必选 类型 描述
Action String 公共参数,本接口取值:DescribeCrossBorderCcnRegionBandwidthLimits。
Version String 公共参数,本接口取值:2017-03-12。
Region String 公共参数,详见产品支持的 地域列表
Filters.N Array of Filter 过滤条件,目前value值个数只支持一个,可支持的字段有:
  • source-region 源地域,值形如:["ap-guangzhou"]
  • destination-region 目的地域,值形如:["ap-shanghai"]
  • ccn-ids 云联网ID数组,值形如:["ccn-12345678"]
  • user-account-id 用户账号ID,值形如["12345678"]
  • Offset Integer 偏移量,默认0。
    示例值:0
    Limit Integer 单页返回数据量可选值0到100之间的整数,默认20。
    示例值:20

    3. 输出参数

    参数名称 类型 描述
    TotalCount Integer 符合条件的对象总数。
    示例值:10
    CcnBandwidthSet Array of CcnBandwidth 云联网地域间限速带宽实例的信息。
    RequestId String 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

    4. 示例

    示例1 无入参查询

    无入参查询云联网跨境限速实例

    输入示例

    POST / HTTP/1.1
    Host: vpc.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCrossBorderCcnRegionBandwidthLimits
    <公共请求参数>
    
    {}

    输出示例

    {
        "Response": {
            "CcnBandwidthSet": [
                {
                    "CcnId": "ccn-025qoqpx",
                    "CreatedTime": "2020-07-30 15:32:27",
                    "ExpiredTime": "2021-01-30 15:32:27",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-1duimd7w",
                    "MarketId": "",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-qhmusb7r",
                    "CreatedTime": "2020-07-31 17:52:41",
                    "ExpiredTime": "2020-11-30 17:52:41",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-n8d6es84",
                    "MarketId": "market-o9zkna2cc",
                    "UserAccountID": "979137",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-shanghai",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-cdnjw6bv",
                    "CreatedTime": "2020-08-02 13:29:47",
                    "ExpiredTime": "2020-11-02 13:29:47",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-frs5y7mo",
                    "MarketId": "market-4rvy8k8eo",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 2
                    }
                },
                {
                    "CcnId": "ccn-qhmusb7r",
                    "CreatedTime": "2020-08-02 14:35:38",
                    "ExpiredTime": "2020-09-02 14:35:38",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-gvbhcaec",
                    "MarketId": "market-ibxg5q2ey",
                    "UserAccountID": "979137",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-cdnjw6bv",
                    "CreatedTime": "2020-08-12 16:10:09",
                    "ExpiredTime": "2021-01-12 16:10:09",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-d7vklnwm",
                    "MarketId": "market-0gctjva40",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-hongkong",
                        "DestinationRegion": "ap-beijing",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-q64rvk9x",
                    "CreatedTime": "2020-08-14 10:54:15",
                    "ExpiredTime": "2020-09-14 10:54:15",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-9uhfrbj8",
                    "MarketId": "market-judfoon5c",
                    "UserAccountID": "1742152960",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-hongkong",
                        "DestinationRegion": "ap-guangzhou",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-bwt4g84j",
                    "CreatedTime": "2020-08-17 15:21:30",
                    "ExpiredTime": "2020-09-17 15:21:30",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-cotqwlu2",
                    "MarketId": "market-626fzd912",
                    "UserAccountID": "807348637",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-hongkong",
                        "DestinationRegion": "ap-beijing",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-dp8rjtnn",
                    "CreatedTime": "2020-08-21 11:40:50",
                    "ExpiredTime": "2020-08-19 11:40:50",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-1hmgsj62",
                    "MarketId": "",
                    "UserAccountID": "1742152960",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-qd9rws31",
                    "CreatedTime": "2020-08-21 12:31:52",
                    "ExpiredTime": "2020-09-21 12:37:02",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-a5uhb60a",
                    "MarketId": "market-1rhwihsnw",
                    "UserAccountID": "1742152960",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-shanghai",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 3
                    }
                },
                {
                    "CcnId": "ccn-qd9rws31",
                    "CreatedTime": "2020-08-28 09:27:55",
                    "ExpiredTime": "2020-09-28 09:27:55",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-488xjj38",
                    "MarketId": "",
                    "UserAccountID": "1742152960",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 1
                    }
                },
                {
                    "CcnId": "ccn-3wgiiipt",
                    "CreatedTime": "2022-03-09 13:56:24",
                    "ExpiredTime": "2022-03-09 13:56:24",
                    "UpdateTime": "2022-03-09 13:58:03",
                    "RegionFlowControlId": "fcr-lo5dfhe6",
                    "MarketId": "",
                    "UserAccountID": "979137",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_AUTO_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 20
                    }
                }
            ],
            "TotalCount": 14,
            "RequestId": "405d200b-ad2a-486d-9541-d5f47a506827"
        }
    }

    示例2 根据账户ID查询

    根据账户ID查询云联网跨境限速实例

    输入示例

    POST / HTTP/1.1
    Host: vpc.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCrossBorderCcnRegionBandwidthLimits
    <公共请求参数>
    
    {
        "Filters": [
            {
                "Values": [
                    "3436874624"
                ],
                "Name": "user-account-id"
            }
        ]
    }

    输出示例

    {
        "Response": {
            "CcnBandwidthSet": [
                {
                    "CcnId": "ccn-025qoqpx",
                    "CreatedTime": "2020-07-30 15:32:27",
                    "ExpiredTime": "2021-01-30 15:32:27",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-1duimd7w",
                    "MarketId": "",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                },
                {
                    "CcnId": "ccn-cdnjw6bv",
                    "CreatedTime": "2020-08-02 13:29:47",
                    "ExpiredTime": "2020-11-02 13:29:47",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-frs5y7mo",
                    "MarketId": "market-4rvy8k8eo",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 2
                    }
                },
                {
                    "CcnId": "ccn-cdnjw6bv",
                    "CreatedTime": "2020-08-12 16:10:09",
                    "ExpiredTime": "2021-01-12 16:10:09",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-d7vklnwm",
                    "MarketId": "market-0gctjva40",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-hongkong",
                        "DestinationRegion": "ap-beijing",
                        "BandwidthLimit": 0
                    }
                }
            ],
            "TotalCount": 3,
            "RequestId": "a5cf93d0-d717-4e89-8a51-e1418b43d9f9"
        }
    }

    示例3 根据云联网ID查询

    根据云联网ID查询云联网跨境限速实例

    输入示例

    POST / HTTP/1.1
    Host: vpc.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeCrossBorderCcnRegionBandwidthLimits
    <公共请求参数>
    
    {
        "Filters": [
            {
                "Values": [
                    "ccn-025qoqpx"
                ],
                "Name": "ccn-ids"
            }
        ]
    }

    输出示例

    {
        "Response": {
            "CcnBandwidthSet": [
                {
                    "CcnId": "ccn-025qoqpx",
                    "CreatedTime": "2020-07-30 15:32:27",
                    "ExpiredTime": "2021-01-30 15:32:27",
                    "UpdateTime": "2022-03-07 12:36:17",
                    "RegionFlowControlId": "fcr-1duimd7w",
                    "MarketId": "",
                    "UserAccountID": "3436874624",
                    "IsCrossBorder": true,
                    "IsSecurityLock": false,
                    "RenewFlag": "NOTIFY_AND_MANUAL_RENEW",
                    "InstanceChargeType": "",
                    "CcnRegionBandwidthLimit": {
                        "SourceRegion": "ap-guangzhou",
                        "DestinationRegion": "ap-hongkong",
                        "BandwidthLimit": 0
                    }
                }
            ],
            "TotalCount": 1,
            "RequestId": "8ef886fc-e394-4eba-8da6-b1ae8f88fe61"
        }
    }

    5. 开发者资源

    腾讯云 API 平台

    腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。

    API Inspector

    用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。

    SDK

    云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

    命令行工具

    6. 错误码

    以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码

    错误码 描述
    InvalidParameter.FilterInvalidKey 指定过滤条件不存在。
    InvalidParameter.FilterNotDict 指定过滤条件不是键值对。
    InvalidParameter.FilterValuesNotList 指定过滤选项值不是列表。
    InvalidParameterValue 参数取值错误。
    InvalidParameterValue.LimitExceeded 参数值超出限制。
    InvalidParameterValue.Malformed 入参格式不合法。
    InvalidParameterValue.Range 参数值不在指定范围。
    UnsupportedOperation 操作不支持。
    UnsupportedOperation.UinNotFound 账号ID不存在。