You can call this operation to modify the parameters of a Smart Access Gateway (SAG) instance.

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

The operation that you want to perform.

Set the value to ModifySmartAccessGateway.

RegionId String Yes cn-hangzhou

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

SmartAGId String Yes sag-0ovhf732a9j0******

The ID of the SAG instance.

Name String No sag

The name of the SAG instance.

The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or Chinese character. It cannot start with http:// or https://.

Description String No SAG description

The description of the SAG instance.

The description must be 2 to 256 characters in length. It must start with a letter or Chinese character. It cannot start with http:// or https:/.

CidrBlock String No 172.16.0.1/24

The CIDR blocks of terminals in the private network. Make sure that the CIDR blocks do not overlap with each other.

If the LAN port of the SAG device dynamically assigns IP addresses, IP addresses within the first CIDR block are assigned to terminals that have the Dynamic Host Configuration Protocol (DHCP) enabled.

SecurityLockThreshold Integer No 3

The time that a disconnected SAG device remain locked. The time must be no shorter than zero second.

Unit: second.

RoutingStrategy String No static

The policy to advertise routes from the private network to Alibaba Cloud.

  • static: static routing.
  • dynamic: dynamic routing.

Response parameters

Parameter Type Example Description
RequestId String CE6642D4-21EB-4168-9BF9-F217953F9892

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=ModifySmartAccessGateway
&RegionId=cn-hangzhou
&SmartAGId=sag-0ovhf732a9j0******
&<Common request parameters>

Sample success responses

XML format

<ModifySmartAccessGatewayResponse>
    <RequestId>CE6642D4-21EB-4168-9BF9-F217953F9892</RequestId>
</ModifySmartAccessGatewayResponse>

JSON format

{
"RequestId":"CE6642D4-21EB-4168-9BF9-F217953F9892"
}

Error codes

HttpCode Error code Error message Description
403 CidrConflict Cidr is conflict, Please Check your input. The error message returned because the specified subnet CIDR blocks overlap with each other.
403 MissingParameter The input parameter is missing, please check your input. The error message returned because a required parameter is not set. Check whether you have set all required parameters.
403 InvalidId.SMARTAG The specified smart access gateway instance id is invalid. The error message returned because the specified SAG instance ID is invalid.
403 InvalidCidr Cidr is illegal, please check your input. The error message returned because the specified CIDR block is invalid. Check the specified CIDR block.
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you do not have the permission to manage the specified resource.
500 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The error message returned because the specified SAG instance has expired. Renew the SAG instance first.
500 SmartAccessGatewayNotActivated The specified Smart Access Gateway has not been activated. The error message returned because the specified SAG instance has not been activated. Activate the SAG instance first.
403 VbrConflict.ChangeSubnet The subnet of the gateway conflicts with the VBR. Modify the subnet first. The error message returned because the subnet CIDR block of the specified SAG instance overlaps with the CIDR block of the specified VBR. Modify the CIDR block of the subnet.
403 VbrConflict.CreateBackup The subnet of the gateway conflicts with the VBR. Create a backup relationship first. The error message returned because the subnet CIDR blocks of the specified SAG instance overlaps with the CIDR block of the specified VBR. Deploy the SAG instance as a backup of the leased line first.
400 SAG.IpCountTooLittle The number of available IP addresses of the CIDR block is fewer than the number of SslConnectionSpec. The error message returned because the number of available IP addresses in the specified CIDR block is fewer than the number of connections.
400 SAG.SslConnectionSpecInvalid The number of SslConnectionSpec is invalid. The error message returned because the number of connections is invalid.
400 SAG.CcnCidrNoConfig You must configure the CIDR block of CCN. The error message returned because the CIDR block of the associated CCN instance is not specified.
400 SAG.CidrEmpty You must specify the CIDR blocks of SAG. The error message returned because the CIDR block of the SAG instance is not specified.
400 SAG.ConflictCidr.CcnSnatCidr The SAG CIDR block is in conflict with the CCN CIDR block. The error message returned because the CIDR block of the SAG instance overlaps with that of the CCN instance.
400 SAG.ConflictSnatIp The specified SNAT IP address is invalid. The error message returned because the IP address specified in the source network address translation (SNAT) entry is invalid.
400 SAG.InstanceIdEmpty You must specify the SAG instance ID. The error message returned because the SAG instance ID is not specified.
400 SAG.InstanceNoFound The specified SAG instance does not exist. The error message returned because the specified SAG instance does not exist.
400 SAG.InvalidCidr The specified CIDR block is invalid. The error message returned because the specified CIDR block of the SAG instance is invalid.
400 SAG.InvalidCidr.NoBelongCcnCidr The specified SAG CIDR block does not belong to the CCN CIDR block. The error message returned because the CIDR block of the SAG instance does not fall within that of the CCN instance.
400 SAG.InvalidSnatCidr The specified SNAT CIDR block is invalid. The error message returned because the CIDR block specified in the SNAT entry is invalid.
400 SAG.InvalidSnatIp The specified SNAT IP address is invalid. The error message returned because the IP address specified in the SNAT entry is invalid.
400 CCN.CidrEmpty You must specify the CCN CIDR block. The error message returned because the CIDR block of the CCN instance is not specified.
403 SmartAccessGatewayNotBind The instance has not yet been bound. The error message returned because the specified SAG instance is associated with a CCN instance.
400 CCN.SnatCidrConflict The specified SNAT CIDR block is invalid. The error message returned because the CIDR block specified in the SNAT entry is invalid.
400 ActionNotSupport The specified instance does not support this action. The error message returned because the specified instance does not support this feature.
400 CCN.SnatCidrNoConfig You must configure the SNAT CIDR block of the CCN. The error message returned because the CIDR block of the SNAT entry associated with the CCN instance is not specified.
403 FeatureNotSupport The current edition of the smart access gateway does not support this feature. The error message returned because the current version of the specified SAG instance does not support this feature.
400 SAG.CidrUsedByRoutableAddress A routable internal IP address belongs to the specified internal CIDR block. You cannot modify this CIDR block. The error message returned because the CIDR block that you want to modify is already used as routable IP addresses and cannot be modified.
400 InvalidName The specified name is invalid. The error message returned because the specified name is invalid.
400 SAG.CidrAmountLimit The maximum number of static routes for the SAG instance is exceeded. The error message returned because the number of static routes specified for the SAG instance has reached the upper limit.
500 InternalError An error occurred while processing your request. The error message returned because an unknown error occurred.

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