调用DescribeGrantRulesToCen接口查询云企业网实例已获得授权的跨账号的网络实例的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | DescribeGrantRulesToCen | 要执行的操作,取值:DescribeGrantRulesToCen。 |
CenId | String | 是 | cen-j3jzhw1zpau2km**** | 云企业网实例ID。 |
ProductType | String | 是 | VPC | 网络实例的类型,取值:
|
RegionId | String | 是 | cn-zhangjiakou | 网络实例所属地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
GrantRules | Array of GrantRule | 授权信息列表。 |
|
GrantRule | |||
CenId | String | cen-j3jzhw1zpau2km**** | 云企业网实例ID。 |
ChildInstanceId | String | vpc-8vbhgj0dr5xkbmrll**** | 网络实例ID。 |
ChildInstanceOwnerId | Long | 1688000000000000 | 网络实例所属阿里云账号(主账号)ID。 |
ChildInstanceRegionId | String | cn-zhangjiakou | 网络实例所属地域ID。 |
ChildInstanceType | String | VPC | 网络实例的类型。
|
RequestId | String | 6B83E650-E560-531E-850D-B162A902A9DC | 请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeGrantRulesToCen &CenId=cen-j3jzhw1zpau2km**** &ProductType=VPC &RegionId=cn-zhangjiakou &<公共请求参数>
正常返回示例
XML
格式
<DescribeGrantRulesToCenResponse> <RequestId>6B83E650-E560-531E-850D-B162A902A9DC</RequestId> <GrantRules> <GrantRule> <ChildInstanceType>VPC</ChildInstanceType> <CenId>cen-j3jzhw1zpau2km****</CenId> <ChildInstanceOwnerId>1688000000000000</ChildInstanceOwnerId> <ChildInstanceId>vpc-8vbhgj0dr5xkbmrll****</ChildInstanceId> <ChildInstanceRegionId>cn-zhangjiakou</ChildInstanceRegionId> </GrantRule> </GrantRules> </DescribeGrantRulesToCenResponse>
JSON
格式
{ "RequestId": "6B83E650-E560-531E-850D-B162A902A9DC", "GrantRules": { "GrantRule": [ { "ChildInstanceType": "VPC", "CenId": "cen-j3jzhw1zpau2km****", "ChildInstanceOwnerId": 1688000000000000, "ChildInstanceId": "vpc-8vbhgj0dr5xkbmrll****", "ChildInstanceRegionId": "cn-zhangjiakou" } ] } }
错误码
访问错误中心查看更多错误码。