Queries the authorization from a Smart Access Gateway (SAG) instance to Cloud Connect Network (CCN) instances.

Debug

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

Request parameters

Parameter Type Required? Example value Description
PageNumber Integer Yes 1

The page number. Default value: 1

PageSize Integer Yes 10

The number of rows per page in a paged query. Default value: 10. Maximum value: 50

RegionId String Yes cn-hangzhou

The ID of the region to which the SAG instance belongs.

SmartAGId String Yes sag-hdg*************

The ID of the SAG instance.

Action String No DescribeGrantSagRules

The name of this action.

Value: DescribeGrantSagRules

Response parameters

Parameter Type Example value Description
GrantRules

The list of CCN instances that have the authorization.

GrantRule

The details of the authorization.

CcnInstanceId String ccn-hd**********

The ID of the CCN instance.

CcnUid Long 13323444243434

The ID of the account to which the CCN instance belongs.

CreateTime Long 156576751700

The time when the authorization was obtained.

InstanceId String 1688401595963306

The ID of the account to which the SAG instance belongs.

SmartAGId String sag-hdhgn*****

The ID of the SAG instance.

PageNumber Integer 2

The page number.

PageSize Integer 10

The number of rows per page in a paged query.

RequestId String 6E1674AC-083C-4031-B047-7A66E418E0C6

The ID of the request.

TotalCount Integer 2

The total number of CCN instances that have the authorization.

Examples

Request example


http(s)://[Endpoint]/? Action=DescribeGrantSagRules
&PageNumber=1
&PageSize=10
&RegionId=cn-hangzhou
&SmartAGId=sag-hdg*************
&<CommonParameters>

Response example

XML format

<DescribeGrantSagRulesResponse>
	  <GrantRules>
		    <GrantRule>
			      <CcnInstanceId>ccn-4dwoqcqu******</CcnInstanceId>
			      <CcnUid>1688401595963306</CcnUid>
			      <CreateTime>1523604565000</CreateTime>
			      <InstanceId>1688401595963306</InstanceId>
			      <SmartAGId>sag-7sc8ib3noaov*****</SmartAGId>
		    </GrantRule>
	  </GrantRules>
	  <PageNumber>1</PageNumber>
	  <PageSize>10</PageSize>
	  <RequestId>25B3FD03-DC56-4B88-8730-273485FAE0DC</RequestId>
	  <TotalCount>1</TotalCount>
    </DescribeGrantSagRulesResponse>

JSON format

{
	"PageNumber":1,
	"GrantRules":{
		"GrantRule":[
			{
				"SmartAGId":"sag-7sc8ib3noaov*****",
				"CcnUid":1688401595963306,
				"CcnInstanceId":"ccn-4dwoqcqu******",
				"InstanceId":1688401595963306,
				"CreateTime":1565767517000
			}
		]
	},
	"TotalCount":1,
	"PageSize":10,
	"RequestId":"25B3FD03-DC56-4B88-8730-273485FAE0DC"
}

Errors

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