All Products
Search
Document Center

Smart Access Gateway:DescribeCloudConnectNetworks

Last Updated:Aug 08, 2025

The DescribeCloudConnectNetworks operation queries the details of Cloud Connect Network (CCN) instances in a specified region.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that support authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

smartag:DescribeCloudConnectNetworks

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

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

cn-shanghai

Name

string

No

The name of the CCN instance.

The name must be 2 to 100 characters in length, start with a letter or a Chinese character, and can contain digits, underscores (_), periods (.), and hyphens (-).

ccnname

CcnId

string

No

The ID of the CCN instance.

ccn-l9340rlu5enst*****

PageSize

integer

No

The number of entries to return on each page. The default value is 10. The maximum value is 50.

10

PageNumber

integer

No

The page number. The default value is 1.

1

Tag

array<object>

No

The tags of the CCN instances.

object

No

The tag.

Key

string

No

The tag key.

test

Value

string

No

The tag value.

test

Response parameters

Parameter

Type

Description

Example

object

The response.

CloudConnectNetworks

object

CloudConnectNetwork

array<object>

A list of CCN instances.

object

The information about the CCN instance.

CreateTime

integer

The UNIX timestamp that indicates when the CCN instance was created.

1523618639000

AssociatedCenOwnerId

string

The ID of the Alibaba Cloud account to which the associated Cloud Enterprise Network (CEN) instance belongs.

168800000000****

AssociatedCloudBoxCount

string

The number of Smart Access Gateway instances that are attached to the CCN instance.

1

Tags

object

Tag

array<object>

A list of tags.

object

The tag.

Key

string

The tag key.

test

Value

string

The tag value.

test

InterworkingStatus

string

Indicates whether intercommunication is enabled for Smart Access Gateway instances that are attached to the same CCN instance.

  • enable: Intercommunication is enabled.

  • disable: Intercommunication is disabled.

enable

CcnId

string

The ID of the CCN instance.

ccn-l9340rlu5enst******

AvailableCloudBoxCount

string

The number of active Smart Access Gateway instances that are attached to the CCN instance.

1

CidrBlock

string

The private CIDR block.

10.10.10.0/24

Description

string

The description of the CCN instance.

ccndesc

SnatCidrBlock

string

The SNAT CIDR block.

10.10.10.0/25

AssociatedCenId

string

The ID of the CEN instance that is attached to the CCN instance.

cen-0jtu0bcbika5b5****

Name

string

The name of the CCN instance.

ccnname

ResourceGroupId

string

The ID of the resource group to which the CCN instance belongs.

rg-acfm2iu4fnc****

TotalCount

integer

The total number of entries.

3

PageSize

integer

The number of entries returned per page.

10

RequestId

string

The request ID.

3F2A0B80-D6D1-4764-8D77-38067DBBA345

PageNumber

integer

The page number.

1

Examples

Success response

JSON format

{
  "CloudConnectNetworks": {
    "CloudConnectNetwork": [
      {
        "CreateTime": 1523618639000,
        "AssociatedCenOwnerId": "168800000000****",
        "AssociatedCloudBoxCount": "1",
        "Tags": {
          "Tag": [
            {
              "Key": "test",
              "Value": "test"
            }
          ]
        },
        "InterworkingStatus": "enable",
        "CcnId": "ccn-l9340rlu5enst******",
        "AvailableCloudBoxCount": "1",
        "CidrBlock": "10.10.10.0/24",
        "Description": "ccndesc",
        "SnatCidrBlock": "10.10.10.0/25",
        "AssociatedCenId": "cen-0jtu0bcbika5b5****",
        "Name": "ccnname",
        "ResourceGroupId": "rg-acfm2iu4fnc****"
      }
    ]
  },
  "TotalCount": 3,
  "PageSize": 10,
  "RequestId": "3F2A0B80-D6D1-4764-8D77-38067DBBA345",
  "PageNumber": 1
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidTagKey The specified tag key is invalid. The tag key is invalid.
400 InvalidTagValue The specified tag value is invalid. The specified tag value is invalid.
400 SizeLimitExceeded.TagNum The maximum number of tags is exceeded. The specified number of tag keys has exceeded the upper limit.
400 SizeLimitExceeded.ResourceId The maximum number of resource IDs is exceeded. The specified number of resource IDs has exceeded the upper limit.
400 Forbidden.TagKey.Duplicated The specified tag key already exists. The specified tag key already exists.
403 Forbidden User not authorized to operate on the specified resource. You do not have permissions to manage the specified resource.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.