Modifies the logon password 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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifySAGAdminPassword

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

RegionId String Yes cn-shanghai

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

SmartAGId String Yes sag-tq3sazs17smldn****

The ID of the SAG instance.

SmartAGSn String Yes sag32a30****

The serial number (SN) of the SAG device.

Password String Yes ********

The new logon password for the SAG device.

The password must be 8 to 30 characters in length and can contain letters, digits, and underscores (_).

Note In the example, asterisks (*) are used to conceal the real password. This does not mean that the password supports asterisks (*). The actual format requirement prevails.

Response parameters

Parameter Type Example Description
RequestId String DB0A026C-A8E5-40AB-977E-3A87DD78F694

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifySAGAdminPassword
&RegionId=cn-shanghai
&SmartAGId=sag-tq3sazs17smldn****
&SmartAGSn=sag32a30****
&Password=********
&Common request parameters

Sample success responses

XML format

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

<ModifySAGAdminPasswordResponse>
    <RequestId>DB0A026C-A8E5-40AB-977E-3A87DD78F694</RequestId>
</ModifySAGAdminPasswordResponse>

JSON format

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

{
  "RequestId" : "DB0A026C-A8E5-40AB-977E-3A87DD78F694"
}

Error codes

HTTP status code Error code Error message Description
400 IllegalParam.Password The specified Password is invalid. The error message returned because the value of the Password parameter is invalid.
400 MissingParam.Password You must specify Password. The error message returned because the value of the Password parameter 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.SoftwareNotSupport The specified SAG software edition instance does not support ACL. The error message returned because the SAG APP instance does not support access control lists (ACLs).
400 SAG.SoftwareNotSupportFeature The specified SAG Software instance does not support this feature. The error message returned because the SAG APP instance does not support this feature.
400 SmartAccessGatewayInArrears The specified Smart Access Gateway has expired. The error message returned because the specified SAG instance has expired. Renew the SAG instance.
400 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.
400 SmartAccessGatewayOffline The request cannot be completed. The Smart Access Gateway is offline. The error message returned because the specified SAG device is not connected to Alibaba Cloud and the system failed to process the request.
400 InstanceNotExit The specified instance does not exist. The error message returned because the specified instance ID does not exist.
400 ConfigUnsynchronized The network configuration is not synchronized. The error message returned because the network configurations are not synchronized between the SAG instance and the SAG device.
403 SmartAccessGatewayNotOnline The specified smart access gateway is not online. The error message returned because the specified SAG device is not connected to Alibaba Cloud and the system failed to process the request.
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 device does not support this feature.
403 FeatureNotSupportForActiveSmartAG The current edition of the active smart access gateway does not support this feature. The error message returned because 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 error message returned because the current version of the standby SAG device does not support this feature.

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