查询高速通道列表

1.接口描述

调用DescribePeerConnectList接口来查询指定地域的高速通道

2.请求参数

名称 类型 是否必选 描述
Action String 固定取值:DescribePeerConnectList
RegionCode String 要查询的地域,您可以调用 DescribeRegionConfig 查看最新的地域列表
Page Integer 列表的页码。 起始值:1 默认值:1
PageSize integer 分页查询时设置的每页行数。 最大值:50 默认值:10

3.返回数据

名称 类型 说明
peerConnectInfos Array[PeerConnectInfo] 高速通道信息列表
RequestId String 请求ID
Amount Integer 总数

4.示例

请求示例

http://openapi.kaopuyun.com/?AccessKeyId=ix00000kmig1
&Action=DescribePeerConnectList
&Format=JSON
&Page=1
&PageSize=10
&RegionCode=cn-dev-1
&SignatureMethod=HMAC-SHA1
&SignatureNonce=b37768d7-08be-40d7-8b29-2eafd337ab5c
&SignatureVersion=1.0
&Timestamp=2024-05-28T03%3A07%3A45Z
&Version=2014-05-26
&Signature=qN10gwbhgkI2nos3sQ%2F7R%2FHyYMc%3D

正常返回示例

{
    "RequestId": "0c39d0c0-2248-11ef-a81c-d24bbf2655d0",
    "Amount": 1,
    "peerConnectInfos": [
        {
            "PeerFullName": "xxxxxxxx公司",
            "RegionCode": "cn-dev-1",
            "AutoRenew": "Infinite",
            "PeerUserId": 114008834,
            "PeerVpcUUID": "vpc-9p000007qpxc",
            "GuaranteeBandwidth": 10,
            "InArrearage": false,
            "ReceiveType": "Send",
            "VpcUUID": "vpc-na00000002br",
            "Status": "Connected",
            "PeerConnectionUUID": "p2c-5d000007z42q",
            "UserName": "pm_test",
            "CreateTime": "2024-05-10T17:51:45.000+08:00",
            "ResourceType": "P2PConnect",
            "AccountType": "sameAccount",
            "PendingStatus": "None",
            "PeerRegionCode": "cn-dev-2",
            "BandwidthItem": "PostPaidMonthMax",
            "PeerReceiveType": "Receive",
            "ChargeType": "HybridPaid",
            "UserId": 114008834,
            "FullName": "xxxxxxxxxx公司",
            "ElasticBandwidth": 10,
            "ExpireTime": "2024-08-31T23:59:59.000+08:00",
            "PeerConnectionName": "测试十区-测试十二区高速通道",
            "PeerUserName": "pm_test"
        }
    ]
}

5.错误码

错误码 错误信息
MissingParameter RegionCode参数不能为空
InValidPageSize 每页数量错误
InValidPageNumber 页数错误
DescribePeerConnectListFail 查询高速通道列表失败:xxx
AvailableRegionNotFound 可用的地域未找到
kaopuyun all right reserved,powered by GitbookUpdated Time: 2024-10-09 06:22:14

results matching ""

    No results matching ""