调用CreateSagExpressConnectInterface创建专线子接口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | CreateSagExpressConnectInterface |
要执行的操作。 取值:CreateSagExpressConnectInterface。 |
IP | String | 是 | 192.XX.XX.1 |
IP地址。 |
Mask | String | 是 | 255.255.255.252 |
IP地址掩码。 |
PortName | String | 是 | 5 |
专线端口名称。 |
RegionId | String | 是 | cn-shanghai |
智能接入网关实例地域ID。 |
SmartAGId | String | 是 | sag-whfn**** |
智能接入网关实例ID。 |
SmartAGSn | String | 是 | sag32a30**** |
绑定的智能接入网关设备序列号。 |
Vlan | String | 是 | 10 |
专线子接口所属Vlan编码。 取值范围:0~4094。 说明
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545 |
请求ID。 |
示例
请求示例
http(s)://smartag.cn-shanghai.aliyuncs.com/?Action=CreateSagExpressConnectInterface
&IP=192.XX.XX.1
&Mask=255.255.255.252
&PortName=5
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&Vlan=10
&<公共请求参数>
正常返回示例
XML
格式
<CreateSagExpressConnectInterfaceResponse>
<RequestId>AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545</RequestId>
</CreateSagExpressConnectInterfaceResponse>
JSON
格式
{
"RequestId": "AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Sag.EccVlanOverLimit | The maximum number of VLANs that can be created for the device is exceeded. | 当前设备专线vlan数量超过上限。 |
400 | Sag.EccVlanExist | The specified VLAN already exists. | 当前设备的专线Vlan已经存在 |
400 | Sag.EccVlanDefault | When VLAN 0 exists, other VLANs cannot be created. | 设备使用物理口连接专线时(vlan=0),不允许创建vlan. |
访问错误中心查看更多错误码。