创建UPath-CreateUPath

创建UPath

Request Parameters

Parameter nameTypeDescriptionRequired
ProjectIdstring项目ID,如org-xxxx。请参考GetProjectList接口Yes
NamestringUPath名字Yes
LineIdstring选择的线路Yes
Bandwidthint线路带宽,最小1Mbps,最大800Mbps。每条线路实际可用带宽不同,单条线路购买带宽超过50Mbps请联系产品团队。Yes
ChargeTypestring计费模式,默认为Month 按月收费,可选范围['Month','Year','Dynamic']No
Quantityint购买周期,ChargeType为Month时,Quantity默认为0代表购买到月底,按时和按年付费该参数必须大于0No
CouponIdstring代金券IdNo
LineId参数范围 从DescribePathXLineConfig接口获取。资源创建后,会开启自动续费,账户剩余额度不足则会产生欠费订单直到资源被回收

Response Elements

Parameter nameTypeDescriptionRequired
RetCodeint操作返回码Yes
Actionstring操作名称Yes
UPathIdstring加速线路实例IdYes

Request Example

https://api.ucloud.cn/?Action=CreateUPath
&Name=test
&LineId=line_cn_afr-nigeria
&Bandwidth=1
&ChargeType=Month
&Quantity=0
&CouponId=

Response Example

{
    "PathId": "upath-xxx",
    "Action": "CreateUPathResponse",
    "RetCode": 0
}