You can call this operation to delete a VLAN interface 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

Name Type Required Example Description
Action String No DeleteSagExpressConnectInterface

The operation that you want to perform.

Set the value to DeleteSagExpressConnectInterface.

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.

Note
  • 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.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

HttpCode Error code Error message Description
400 SAG.InstanceNoFound The specified SAG instance does not exist. The specified SAG instance does not exist.
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. The SAG APP instance does not support access control lists (ACLs).
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The specified SAG instance has expired and stopped running. Renew the SAG instance.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The specified SAG instance is not activated. Activate the SAG instance.
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. The system failed to process the request because the specified SAG device is not connected to Alibaba Cloud.
500 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. The system failed to process the request because the specified SAG device is not connected to Alibaba Cloud.
400 InstanceNotExit The specified instance does not exist. The specified SAG instance does not exist.
400 ConfigUnsynchronized The network configuration is not synchronized. The network configurations are not synchronized.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The current version of the SAG device does not support this feature.
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. The current version of the active SAG device does not support this feature.
403 FeatureNotSupportForStandBySmartAG The current edition of the standby smart access gateway does not support this feature. The current version of the standby SAG device does not support this feature.

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