功能描述
用于修改专用通道参数的接口。
域名:dc.api.qcloud.com
接口名:ModifyDirectConnectTunnel
请求参数
参数 |
类型 |
必选 |
描述 |
directConnectTunnelId |
String |
是 |
专用通道 ID例如 dcx-abcdefgh |
directConnectTunnelName |
String |
否 |
专用通道名称 |
peerAsn |
Int |
否 |
用户侧,BGP asn |
authKey |
String |
否 |
用户侧,BGP 密钥 |
routeFilterPrefixes.n.cidr |
String |
否 |
用户侧,对端网段例如 169.254.0.0/28 |
localGatewayIp |
String |
否 |
localGatewayIp,腾讯侧互联 IP |
peerGatewayIp |
String |
否 |
peerGatewayIp,用户侧互联 IP |
peeringSubnetMask |
String |
否 |
互联 IP 的掩码,必须定义在同一子网内,支持24 ~ 30位,点分十进制,如 255.255.255.252 |
响应参数
参数 |
类型 |
描述 |
code |
Int |
错误码0:成功其他值:失败 |
message |
String |
错误信息 |
代码示例
请求示例
GET https://dc.api.qcloud.com/v2/index.php?Action=DeleteDirectConnectTunnel
&<<a href="https://cloud.tencent.com/doc/api/229/6976">公共请求参数</a>>
&directConnectTunnelId=dcx-abcdefgh
&bandwidth=10
&routeFilterPrefixes.0.cidr=172.256.12.0/24
&routeFilterPrefixes.1.cidr=172.256.13.0/24
&localGatewayIp=169.254.64.1
&peerGatewayIp=169.254.64.2
&peeringSubnetMask=255.255.255.252
响应示例
{
"code": 0,
"message": ""
}