Creates a Smart Access Gateway (SAG) APP instance.


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 CreateSmartAccessGatewaySoftware

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

RegionId String Yes cn-shanghai

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

Period Integer Yes 12

The subscription period of the SAG APP instance. Unit: months.

Valid values: 1~9, 12, 24, and 36.

AutoPay Boolean Yes false

Specifies whether to automatically pay the bills of SAG APP instances. Default value: false. Valid values:

  • true: automatically pays the bills of SAG APP instances.
  • false: does not automatically pay the bills of SAG APP instances.

If you set the parameter to false, after you call this operation, go to Billing Management of the SAG console to complete the payment, the instance can be created.

ChargeType String Yes PREPAY

The billing method of the SAG APP instance. Set the value to PREPAY. This value indicates that the SAG APP instance is a subscription resource.

UserCount Integer Yes 5

The quota of client accounts for the SAG APP instance.

Note The quota must be a positive multiple of 5, for example, 5, 10, and 15.
DataPlan Long Yes 5

The quota of the traffic plan that the system allows each client account to use for free each month. Unit: GB. Set the value to 5.

Note The system allows each client account to use 5 GB traffic plan for free.

Response parameters

Parameter Type Example Description
RequestId String 24675405-74DF-4C94-82C6-B749580C498E

The ID of the request.

OrderId String 203000000000000

The ID of the order that you placed to subscribe to the SAG APP instance.

SmartAGId String sag-gnhe6sywtare5******

The ID of the SAG APP instance.

ResourceGroupId String rg-acfm2iu4fnc****

The ID of the resource group to which the SAG APP instance belongs.


Sample requests

&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "RequestId" : "24675405-74DF-4C94-82C6-B749580C498E",
  "OrderId" : "203000000000000",
  "SmartAGId" : "sag-gnhe6sywtare5******",
  "ResourceGroupId" : "rg-acfm2iu4fnc****"

Error codes

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