All Products
Search
Document Center

EventBridge:ListConnections

Last Updated:Mar 15, 2024

Queries connections.

Operation description

You can call this API operation to query connections.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ConnectionNamePrefixstringNo

The key word that you specify to query connections. Connections can be queried by prefixes.

connection-name
MaxResultslongNo

The maximum number of entries to be returned in a single call. You can use this parameter and the NextToken parameter to implement paging.

  • Default value: 10.
10
NextTokenstringNo

If you set the Limit parameter and excess return values exist, this parameter is returned.

  • Default value: 0.
0

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request. This parameter is a common parameter. Each request has a unique ID. You can use the ID to troubleshoot issues.

E3619976-8714-5D88-BBA2-6983D798A8BB
Messagestring

The message returned.

success
Codestring

The HTTP status code. The value Success indicates that the request is successful.

Success
Dataobject

The information about the connections returned.

Connectionsobject []

The value of the key in the request path.

ConnectionNamestring

The connection name.

connection-name
Descriptionstring

The connection description.

The description of the connection.
Idlong

The connection ID.

1141093
GmtCreatelong

The time when the connection was created.

1592838994234
NetworkParametersobject
NetworkTypestring

The network type. Valid values:PublicNetwork and PrivateNetwork.

PublicNetwork
VpcIdstring

The virtual private cloud (VPC) ID.

eb-test/vpc-bp1symadadwnwgmqud
VswitcheIdstring

The vSwitch ID.

vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c
SecurityGroupIdstring

The security group ID.

eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb
AuthParametersobject

The parameters that are configured for authentication.

AuthorizationTypestring

The authentication type. Valid values:

  • BASIC_AUTH: basic authentication.

  • API_KEY_AUTH: API key authentication.

  • OAUTH_AUTH: OAuth authentication.

BASIC_AUTH
ApiKeyAuthParametersobject

The parameters that are configured for API key authentication.

ApiKeyNamestring

The API key.

Token
ApiKeyValuestring

The value of the API key.

asdkjnqkwejooa
BasicAuthParametersobject

The parameters that are configured for basic authentication.

Passwordstring

The password for basic authentication.

admin
Usernamestring

The username for basic authentication.

admin
InvocationHttpParametersobject

The parameter that is configured for the request.

BodyParametersobject []

The parameters that are configured for the request.

Keystring

The key in the request body.

name
Valuestring

The value of the key in the request body.

demo
HeaderParametersobject []

The parameters that are configured for the request header.

Keystring

The key in the request header.

name
Valuestring

The value of the parameter in the request header.

demo
QueryStringParametersobject []

The parameters that are configured for the request path.

Keystring

The key in the request path.

name
Valuestring

The value of the key in the request path.

demo
OAuthParametersobject

The parameters that are configured for OAuth authentication.

AuthorizationEndpointstring

The endpoint that is used to obtain the OAuth token.

http://localhost:8080/oauth/token
HttpMethodstring

The HTTP request method. Valid values:

  • GET

  • POST

  • HEAD

POST
ClientParametersobject

The parameters that are configured for the client.

ClientIDstring

The client ID.

ClientID
ClientSecretstring

The client key secret of the application.

ClientSecret
OAuthHttpParametersobject

The request parameters for OAuth authentication.

BodyParametersobject []

The parameters that are configured for the request.

IsValueSecretstring

Indicates whether authentication is enabled.

false
Keystring

The key in the request body.

name
Valuestring

The value of the key in the request body.

demo
HeaderParametersobject []

The parameters that are configured for the request header.

IsValueSecretstring

Indicates whether authentication is enabled.

false
Keystring

The key in the request header.

name
Valuestring

The value of the key in the request header.

demo
QueryStringParametersobject []

The parameters that are configured for the request path.

IsValueSecretstring

Indicates whether authentication is enabled.

false
Keystring

The key in the request path.

name
Valuestring

The value of the key in the request path.

demo
NextTokenstring

If excess return values exist, this parameter is returned.

0
Totalfloat

The total number of entries returned.

1
MaxResultsfloat

The number of entries returned per page.

10

Examples

Sample success responses

JSONformat

{
  "RequestId": "E3619976-8714-5D88-BBA2-6983D798A8BB",
  "Message": "success",
  "Code": "Success",
  "Data": {
    "Connections": [
      {
        "ConnectionName": "connection-name",
        "Description": "The description of the connection.",
        "Id": 1141093,
        "GmtCreate": 1592838994234,
        "NetworkParameters": {
          "NetworkType": "PublicNetwork",
          "VpcId": "eb-test/vpc-bp1symadadwnwgmqud",
          "VswitcheId": "vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c",
          "SecurityGroupId": "eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb"
        },
        "AuthParameters": {
          "AuthorizationType": "BASIC_AUTH",
          "ApiKeyAuthParameters": {
            "ApiKeyName": "Token",
            "ApiKeyValue": "asdkjnqkwejooa"
          },
          "BasicAuthParameters": {
            "Password": "admin",
            "Username": "admin"
          },
          "InvocationHttpParameters": {
            "BodyParameters": [
              {
                "Key": "name",
                "Value": "demo"
              }
            ],
            "HeaderParameters": [
              {
                "Key": "name",
                "Value": "demo"
              }
            ],
            "QueryStringParameters": [
              {
                "Key": "name",
                "Value": "demo"
              }
            ]
          },
          "OAuthParameters": {
            "AuthorizationEndpoint": "http://localhost:8080/oauth/token",
            "HttpMethod": "POST",
            "ClientParameters": {
              "ClientID": "ClientID",
              "ClientSecret": "ClientSecret"
            },
            "OAuthHttpParameters": {
              "BodyParameters": [
                {
                  "IsValueSecret": "false",
                  "Key": "name",
                  "Value": "demo"
                }
              ],
              "HeaderParameters": [
                {
                  "IsValueSecret": "false",
                  "Key": "name",
                  "Value": "demo"
                }
              ],
              "QueryStringParameters": [
                {
                  "IsValueSecret": "false",
                  "Key": "name",
                  "Value": "demo"
                }
              ]
            }
          }
        }
      }
    ],
    "NextToken": "0",
    "Total": 1,
    "MaxResults": 10
  }
}

Error codes

HTTP status codeError codeError message
409RequestParameterExceptionRequest parameter exception

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-13The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 409
    Added Error Codes: 500
Output ParametersThe response structure of the API has changed.
2023-04-06The Error code has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 409
Output ParametersThe response structure of the API has changed.