You can call this operation to modify the VLAN interface configurations of a leased line port.


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 No ModifySagExpressConnectInterface

The operation that you want to perform.

Set the value to ModifySagExpressConnectInterface.

IP String Yes 192.XX.XX.1

The IP address of the leased line port.

Mask String Yes

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

PortName String Yes 5

The name of the leased line port.

RegionId String Yes cn-shanghai

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

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.

Vlan String Yes 10

The VLAN ID of the leased line port.

Valid values: 0 to 4094.

  • If the VLAN ID is 0, the leased line port is a physical port and does not support VLAN interfaces.
  • If the VLAN ID is 1 to 4094, the leased line port supports VLAN interfaces based on the Layer-3 protocols.

Response parameters

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

The ID of the request.


Sample requests

http(s):// Action=ModifySagExpressConnectInterface
&<Common request parameters>

Sample success responses

XML format


JSON format

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


Error codes

HttpCode Error code Error message Description
400 Sag.EccVlanNotExist The specified dedicated VLAN does not exist. The leased line VLAN of the current SAG device does not exist.

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