获取加速线路信息-DescribeUPath

获取加速线路信息

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID。请参考GetProjectList接口Yes
UPathIdstring如果不填参数 返回 ProjectId 下所有的线路资源,填此参数则返回upath实例ID匹配的线路No

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
UPathSetarray线路信息数组Yes

UPathInfo

Parameter nameTypeDescriptionRequired
ChargeTypestring计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic']No
NamestringUPath实例名字No
UPathIdstringUPath加速线路实例IDNo
Bandwidthint带宽,单位MbpsNo
LineIdstring选择的线路No
UGAListarray与该UPath绑定的UGA列表No
CreateTimeintUPath创建的时间,10位时间戳No
ExpireTimeintUPath的过期时间,10位时间戳No
LineFromNamestring线路入口名称No
LineToNamestring线路出口名称No
OutPublicIpListarray线路出口IP数组No

OutPublicIpInfo

Parameter nameTypeDescriptionRequired
IPstring 线路出口EIPNo
Areastring线路出口机房代号No

PathXUGAInfo

Parameter nameTypeDescriptionRequired
UGAIdstring加速配置IDNo
IPListarray源站IP列表,多个值由半角英文逗号相隔No
Domainstring源站域名No

Request Example

https://api.ucloud.cn/?Action=DescribeUPath
&ProjectId=org-xxxx
&UPathId=upath-2noe2u

Response Example

{
    "Action": "DescribeUPathResponse",
    "RetCode": 0,
    "Message": "",
    "UPathSet": [
        {
            "Name": "中国多地到拉各斯_0",
            "UPathId": "upath-2noe2u",
            "Bandwidth": 1,
            "LineId": "line_cn_afr-nigeria",
            "ChargeType": "Month",
            "CreateTime": 1542029575,
            "ExpireTime": 1569859200,
            "UGAList": [
                {
                    "UGAId": "uga-2yftnppa",
                    "IPList": [
                        "152.32.140.170"
                    ],
                    "Domain": ""
                }
            ],
            "LineFromName": "中国(多地)",
            "LineToName": "拉各斯",
            "OutPublicIpList": [
                {
                    "IP": "152.32.140.87",
                    "Area": "afr-nigeria"
                },
                {
                    "IP": "152.32.140.102",
                    "Area": "afr-nigeria"
                },
                {
                    "IP": "152.32.140.64",
                    "Area": "afr-nigeria"
                },
                {
                    "IP": "152.32.140.105",
                    "Area": "afr-nigeria"
                },
                {
                    "IP": "152.32.140.15",
                    "Area": "afr-nigeria"
                },
                {
                    "IP": "152.32.140.55",
                    "Area": "afr-nigeria"
                }
            ]
        }
    ]
}