All Products
Search
Document Center

Smart Access Gateway:ModifySagLan

Last Updated:Mar 03, 2024

You can call this operation to modify the LAN port configurations of a Smart Access Gateway (SAG) device.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
smartag:ModifySagLanWrite
  • SmartAccessGateway
    acs:smartag:{#regionId}:{#accountId}:smartag/{#SmartAGId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the SAG instance is deployed.

cn-shanghai
SmartAGIdstringYes

The ID of the SAG instance.

sag-whfn****
SmartAGSnstringYes

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

sag32a30****
PortNamestringYes

The name of the LAN port.

0
IPTypestringYes

The connection type of the LAN port. Valid values:

  • DHCP: a dynamic IP address. Uses the Dynamic Host Configuration Protocol (DHCP) to dynamically assign an IP address to a connected device.
  • STATIC: a static IP address. Specifies a static IP address for the LAN port.
STATIC
IPstringYes

The IP address of the LAN port.

192.XX.XX.1
MaskstringYes

The subnet mask of the LAN port IP address.

255.255.255.0
StartIpstringNo

The first IP address of the DHCP pool.

192.XX.XX.2
EndIpstringNo

The last IP address of the DHCP pool.

192.XX.XX.254
LeasestringNo

The time duration that the IP address is retained after it is assigned through DHCP. Unit: minute.

Valid values: 1 to 43200.

7

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

1120228A-E5E1-4E9C-B56D-96887E1A2B2F

Examples

Sample success responses

JSONformat

{
  "RequestId": "1120228A-E5E1-4E9C-B56D-96887E1A2B2F"
}

Error codes

HTTP status codeError codeError messageDescription
400Sag.PortNotExistThe specified port does not exist.The specified port does not exist.
400Sag.PortRoleInvalidThe port role is invalid.The specified device port role is invalid.

For a list of error codes, visit the Service error codes.