Queries the software version of a Smart Access Gateway instance.

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-hangzhou

The area to which the Smart Access Gateway instance belongs.

Action String No DescribeSmartAccessGatewayVersions

The name of this action. Value: DescribeSmartAccessGatewayVersions

SmartAGId String No sag-d3m51apgw4po5*****

The ID of the Smart Access Gateway instance.

Response parameters

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

The ID of the request.

SmartAGVersions

The version of the Smart Access Gateway instance.

└CreateTime Long 1522744623000

The time when the version was released.

└VersionCode String 1.0

The code of the version.

└VersionName String testpackage1

The name of the version.

Examples

Request example


https://smartag.cn-shanghai.aliyuncs.com/?Action=DescribeSmartAccessGatewayVersions
&RegionId=cn-shanghai
&CommonParameters

Response examples

XML format

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

JSON format

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

Error codes

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

See common error codes.