Modifies the sub-interface information of a leased line port.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifySagExpressConnectInterface

The operation that you want to perform. Set the value to ModifySagExpressConnectInterface.

RegionId String Yes cn-shanghai

The ID of the region where the Smart Access Gateway (SAG) instance is deployed.

You can call the DescribeRegions operation to query the most recent region list.

SmartAGId String Yes sag-whfn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

The serial number of the SAG device associated with the SAG instance.

PortName String Yes 5

The name of the leased line port.

Vlan String Yes 10

The VLAN ID of the leased line port.

Valid values: 0 to 4094.

Note
  • If the leased line port is a physical port and does not support VLAN interfaces, specify the value as 0.
  • If the leased line port supports VLAN interfaces based on Layer-3 protocols, specify a value between 1 to 4094.
IP String Yes 192.XX.XX.1

The IP address.

Mask String Yes 255.255.255.252

The subnet mask of the IP address of the leased line port.

Response parameters

Parameter Type Example Description
RequestId String AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545

The ID of the request.

Examples

Sample requests

http(s)://smartag.cn-shanghai.aliyuncs.com/?Action=ModifySagExpressConnectInterface
&IP=192.XX.XX.1
&Mask=255.255.255.252
&PortName=5
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&Vlan=10
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifySagExpressConnectInterfaceResponse>
   <RequestId>AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545</RequestId>
</ModifySagExpressConnectInterfaceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "AFF7E5A6-6897-4FDC-A5A8-1978B5B3E545"
}

Error codes

For a list of error codes, visit the API Error Center.