Modifies the settings of a Smart Access Gateway (SAG) device 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 ModifySagManagementPort

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

RegionId String Yes cn-shanghai

The ID of the region where the 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.

IP String Yes 192.XX.XX.1

The IP address of the management port.

Mask String Yes 255.255.255.0

The subnet mask for the IP address of the management port.

Gateway String Yes 192.XX.XX.254

The IP address of the management port gateway.

Response parameters

Parameter Type Example Description
RequestId String 6877D55B-08F7-4DA3-916B-32A6FD402E06

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifySagManagementPort
&Gateway=192.XX.XX.254
&IP=192.XX.XX.1
&Mask=255.255.255.0
&RegionId=cn-shanghai
&SmartAGId=sag-whfn****
&SmartAGSn=sag32a30****
&<Common request parameters>

Sample success responses

XML format

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

<ModifySagManagementPortResponse>
    <RequestId>6877D55B-08F7-4DA3-916B-32A6FD402E06</RequestId>
</ModifySagManagementPortResponse>

JSON format

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

{
  "RequestId" : "6877D55B-08F7-4DA3-916B-32A6FD402E06"
}

Error codes

HttpCode Error code Error message Description
400 Sag.PortMgtError The role of a management port cannot be changed. The error message returned because the role of the management port cannot be changed.

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