调用DescribeCloudConnectNetworks查询已创建的云连接网。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeCloudConnectNetworks

要执行的操作。

取值: DescribeCloudConnectNetworks

RegionId String cn-hangzhou

云连接网的所属区域。

Name String ccn名称

云连接网名称。

CcnId String ccn-l9340rlu5enst*****

云连接网ID。

PageSize Integer 4

分页查询时设置的每页行数,默认值为10,最大值为50

PageNumber Integer 4

实例状态列表的页码,默认值是1

Tag.N.Key String 2

标签。N的最大值为20

Tag.N.Value String 2

标签值。N的最大值为20

返回数据

名称 类型 示例值 描述
RequestId String 3F2A0B80-D6D1-4764-8D77-38067DBBA345

请求ID。

TotalCount Integer 2

列表条目数。

PageNumber Integer 1

当前页码。

PageSize Integer 2

分页查询时设置的每页行数。

CloudConnectNetworks Array

云连接网的信息。

CcnId String ccn-l9340rlu5enst******

云连接网ID。

Name String ccn名称

云连接网名称。

AssociatedCloudBoxCount String 3

云连接网绑定的智能接入网关数量。

AvailableCloudBoxCount String 2

已绑定的智能接入网关中可用的网关数量。

AssociatedCenId String cen-0jtu0bcbika5b5****

绑定的云企业网ID。

AssociatedCenOwnerId String 1954105122583124

云企业网的账号ID。

Description String ccn描述

云连接网描述。

CreateTime Long 1523618639000

云连接网的创建时间。

IsDefault Boolean false

是否默认创建。

如果客户没有ccn在绑定时,会给用户默认创建一个ccn。

CidrBlock String 10.10.10.0/24

私网网段。

SnatCidrBlock String 10.10.10.5/24

SNAT网段。

InterworkingStatus String enable

是否使能已绑定ccn的智能接入网关互通。

  • enable:启用。
  • disable:禁用。
Tags Array

标签列表。

Key String 2

第N标签。

Value String 2

第N标签值。

示例

请求示例

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

正常返回示例

XML 格式

<DescribeCloudConnectNetworksResponse>
  <PageNumber>1</PageNumber>
  <CloudConnectNetworks>
        <CloudConnectNetwork>
              <Name>None</Name>
              <CidrBlock>192.168.0.0/16,10.0.0.0/8</CidrBlock>
              <Description>None</Description>
              <AvailableCloudBoxCount>0</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>true</IsDefault>
              <AssociatedCloudBoxCount>1</AssociatedCloudBoxCount>
              <CreateTime>1582204971000</CreateTime>
              <InterworkingStatus>disable</InterworkingStatus>
              <CcnId>ccn-e3rmhknrs5h51h****</CcnId>
        </CloudConnectNetwork>
        <CloudConnectNetwork>
              <Name>None</Name>
              <CidrBlock>192.168.0.0/16,10.0.0.0/8</CidrBlock>
              <Description>None</Description>
              <AvailableCloudBoxCount>0</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>true</IsDefault>
              <AssociatedCloudBoxCount>1</AssociatedCloudBoxCount>
              <CreateTime>1582204958000</CreateTime>
              <InterworkingStatus>enable</InterworkingStatus>
              <CcnId>ccn-l4olvf0dthc4iw****</CcnId>
        </CloudConnectNetwork>
        <CloudConnectNetwork>
              <Name>ccn-bvt-sag1000-2020-02-18-01-25-42</Name>
              <AvailableCloudBoxCount>1</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>false</IsDefault>
              <AssociatedCloudBoxCount>3</AssociatedCloudBoxCount>
              <CreateTime>1581960342000</CreateTime>
              <InterworkingStatus>enable</InterworkingStatus>
              <CcnId>ccn-t67f7x9yhnuoav****</CcnId>
        </CloudConnectNetwork>
        <CloudConnectNetwork>
              <Name>test1212</Name>
              <AvailableCloudBoxCount>0</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>false</IsDefault>
              <AssociatedCloudBoxCount>0</AssociatedCloudBoxCount>
              <CreateTime>1581910623000</CreateTime>
              <InterworkingStatus>enable</InterworkingStatus>
              <CcnId>ccn-2v3svns35flx76****</CcnId>
        </CloudConnectNetwork>
        <CloudConnectNetwork>
              <Name>ccn-bvt-sag1000-2020-02-14-19-15-25</Name>
              <AssociatedCenId></AssociatedCenId>
              <AvailableCloudBoxCount>0</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>false</IsDefault>
              <AssociatedCloudBoxCount>2</AssociatedCloudBoxCount>
              <CreateTime>1581678926000</CreateTime>
              <InterworkingStatus>enable</InterworkingStatus>
              <CcnId>ccn-fp1a0et30tpd9s****</CcnId>
        </CloudConnectNetwork>
        <CloudConnectNetwork>
              <Name>split-ccn-test</Name>
              <AssociatedCenId>cen-h1qbyjcot38czx68nl</AssociatedCenId>
              <AvailableCloudBoxCount>1</AvailableCloudBoxCount>
              <AssociatedCenOwnerId>1688401595963306</AssociatedCenOwnerId>
              <IsDefault>false</IsDefault>
              <AssociatedCloudBoxCount>1</AssociatedCloudBoxCount>
              <CreateTime>1581563640000</CreateTime>
              <InterworkingStatus>enable</InterworkingStatus>
              <CcnId>ccn-k7eyqq0nw7uy5v****</CcnId>
        </CloudConnectNetwork>
  </CloudConnectNetworks>
  <TotalCount>219</TotalCount>
  <PageSize>10</PageSize>
  <RequestId>F6BCDE40-C334-4592-AD49-854680DA44D3</RequestId>
</DescribeCloudConnectNetworksResponse>

JSON 格式

{
    "PageNumber": 1,
    "CloudConnectNetworks": {
        "CloudConnectNetwork": [
            {
                "Name": "None",
                "CidrBlock": "192.168.0.0/16,10.0.0.0/8",
                "Description": "None",
                "AvailableCloudBoxCount": 0,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": true,
                "AssociatedCloudBoxCount": 1,
                "CreateTime": 1582204971000,
                "InterworkingStatus": "disable",
                "CcnId": "ccn-e3rmhknrs5h51h****"
            },
            {
                "Name": "None",
                "CidrBlock": "192.168.0.0/16,10.0.0.0/8",
                "Description": "None",
                "AvailableCloudBoxCount": 0,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": true,
                "AssociatedCloudBoxCount": 1,
                "CreateTime": 1582204958000,
                "InterworkingStatus": "enable",
                "CcnId": "ccn-l4olvf0dthc4iw****"
            },
            {
                "Name": "ccn-bvt-sag1000-2020-02-18-01-25-42",
                "AvailableCloudBoxCount": 1,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": false,
                "AssociatedCloudBoxCount": 3,
                "CreateTime": 1581960342000,
                "InterworkingStatus": "enable",
                "CcnId": "ccn-t67f7x9yhnuoav****"
            },
            {
                "Name": "test1212",
                "AvailableCloudBoxCount": 0,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": false,
                "AssociatedCloudBoxCount": 0,
                "CreateTime": 1581910623000,
                "InterworkingStatus": "enable",
                "CcnId": "ccn-2v3svns35flx76****"
            },
            {
                "Name": "ccn-bvt-sag1000-2020-02-14-19-15-25",
                "AssociatedCenId": "",
                "AvailableCloudBoxCount": 0,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": false,
                "AssociatedCloudBoxCount": 2,
                "CreateTime": 1581678926000,
                "InterworkingStatus": "enable",
                "CcnId": "ccn-fp1a0et30tpd9s****"
            },
            {
                "Name": "split-ccn-test",
                "AssociatedCenId": "cen-h1qbyjcot38czx68nl",
                "AvailableCloudBoxCount": 1,
                "AssociatedCenOwnerId": 1688401595963306,
                "IsDefault": false,
                "AssociatedCloudBoxCount": 1,
                "CreateTime": 1581563640000,
                "InterworkingStatus": "enable",
                "CcnId": "ccn-k7eyqq0nw7uy5v****"
            }
        ]
    },
    "TotalCount": 219,
    "PageSize": 10,
    "RequestId": "F6BCDE40-C334-4592-AD49-854680DA44D3"
}

错误码

HttpCode 错误码 错误信息 描述
403 Forbidden User not authorized to operate on the specified resource. 用户没有操作此资源的权限
400 InvalidTagKey The specified tag key is invalid. Tag标签的key值不合法
400 InvalidTagValue The specified tag value is invalid. Tag标签的value值不合法
400 SizeLimitExceeded.TagNum The maximum number of tags is exceeded. Tag个数超过了最大数量
400 SizeLimitExceeded.ResourceId The maximum number of resource IDs is exceeded. ResourceIds个数超过了最大数量
400 Forbidden.TagKey.Duplicated The specified tag key already exists. TagKey存在相同的值

访问错误中心查看更多错误码。