You can call this operation to query the version 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 DescribeSmartAccessGatewayVersions

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

RegionId String Yes cn-hangzhou

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

SmartAGId String Yes sag-d3m51apgw4po5*****

The ID of the SAG instance.

Response parameters

Parameter Type Example Description
RequestId String 765AB188-69BF-47C6-BEDD-B9FC72BFBB0

The ID of the request.

SmartAGVersions Array

The version of the SAG instance.

VersionCode String 1.0

The code of the version.

VersionName String testpackage1

The name of the version.

CreateTime Long 1522744623000

The time when the version was released.

Type String release

The type of the version. Valid values:

  • beta: The version that is in public preview.
  • release: The version that has been officially released.

Examples

Sample requests

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

Sample success responses

XML format

<DescribeSmartAccessGatewayVersionsResponse>
    <SmartAGVersions>
          <SmartAGVersion>
                <Type>release</Type>
                <CreateTime>1522744623000</CreateTime>
                <VersionCode>1.0</VersionCode>
                <VersionName>testpackage1</VersionName>
          </SmartAGVersion>
    </SmartAGVersions>
    <RequestId>765AB188-69BF-47C6-BEDD-B9FC72BFBB00</RequestId>
</DescribeSmartAccessGatewayVersionsResponse>

JSON format

{
"SmartAGVersions": {
"SmartAGVersion": [
{
"Type": "release",
"CreateTime": 1522744623000,
"VersionCode": "1.0",
"VersionName": "testpackage1"
}
]
},
"RequestId": "765AB188-69BF-47C6-BEDD-B9FC72BFBB00"
}

Error codes

HttpCode Error code Error message Description
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.

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