Enables a Smart Access Gateway (SAG) user.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
RegionId String Yes cn-shanghai

The ID of the region.

SmartAGId String Yes sag-va03wf4l4idaj*****

The ID of the SAG APP instance.

UserName String Yes 1234

The name of the user.

Action String No EnableSmartAccessGatewayUser

The name of this action. Value: EnableSmartAccessGatewayUser.

Response parameters

Parameter Type Example value Description
RequestId String F5894299-84A2-48C1-A999-28908B99F45D

The ID of the request.

Examples

Request example


http(s)://[Endpoint]/? Action=EnableSmartAccessGatewayUser
&RegionId=cn-shanghai
&SmartAGId=sag-va03wf4l4idaj00g6x
&UserName=1234
&<CommonParameters>

Response example

XML format

<EnableSmartAccessGatewayUserResponse>
	  <RequestId>F5894299-84A2-48C1-A999-28908B99F45D</RequestId>
</EnableSmartAccessGatewayUserResponse>

JSON format

{
	"RequestId":"F5894299-84A2-48C1-A999-28908B99F45D"
}

Errors

HTTP status code Error code Error message Description
400 Forbidden.SubUser You are not authorized to operate on the specified resource. You are not authorized to use the specified resource.
403 Forbidden User not authorized to operate on the specified resource. You are not authorized to use the specified resource.

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