Associates an access control list (ACL) with 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 Yes AssociateACL

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

RegionId String Yes cn-shanghai

The ID of the region where the ACL is created.

You can call the DescribeRegions operation to query the most recent region list.

AclId String Yes acl-ohlexqptfhy****

The ID of ACL.

SmartAGId String Yes sag-4yr0p2xa6o3k****

The ID of the SAG instance to be associated with the ACL.

Response parameters

Parameter Type Example Description
RequestId String C9A75915-0260-4335-851A-D866A7ED396C

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=AssociateACL
&RegionId=cn-shanghai
&AclId=acl-ohlexqptfhy****
&SmartAGId=sag-4yr0p2xa6o3k****
&Common request parameters

Sample success response

XML format

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

<AssociateACLResponse>
    <RequestId>C9A75915-0260-4335-851A-D866A7ED396C</RequestId>
</AssociateACLResponse>

JSON format

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

{
  "RequestId" : "C9A75915-0260-4335-851A-D866A7ED396C"
}

Error codes

HttpCode Error code Error message Description
400 SAG.SoftwareNotSupport The specified SAG software edition instance does not support ACL. The error message returned because the SAG vCPE instance does not support access control lists (ACLs).
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you do not have the permissions to manage the specified resource.
403 MissingParameter The input parameter is missing, please check your input. The error message returned because one or more required parameters are empty. Check whether you have configured 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 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.
403 SmartAGAlreadyAssociateAcl The specified smart access gateway has already been associated with the specified ACL. The selected SAG instance has already been associated with an ACL.
403 AclPerSmartagAmountLimit No more ACL can be associated with this smart access gateway. The number of ACL groups that are associated with the SAG instance has reached the upper limit.
403 InternalError An internal server error occurred. The error message returned because an internal server error occurred.
403 InvalidId.ACL The specified ACL ID is invalid. The error message returned because the specified ACL ID is invalid.

For a list of error codes, see Service error codes.