Queries the list of connection configurations.
Operation description
Queries the list of connection configurations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:ListConnections |
get |
*Connection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConnectionNamePrefix |
string |
No |
The name prefix of the connection configurations to query. Supports prefix matching. |
connection-name |
| Type |
string |
No |
Filters query results by connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch. If left empty, connections of all types are returned. |
Http |
| MaxResults |
integer |
No |
The maximum number of entries to return on each page. Can be used together with NextToken to implement pagination.
|
10 |
| NextToken |
string |
No |
When MaxResults is specified, NextToken is returned if there are more results to fetch.
|
0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Common parameter. The ID of each request is unique and can be used for troubleshooting and issue locating. |
E3619976-8714-5D88-BBA2-6983D798A8BB |
| Message |
string |
The returned message. |
success |
| Code |
string |
The API status or POP error code. Valid values: Success: The request was successful. |
Success |
| Data |
object |
The list of returned connection configurations. |
|
| Connections |
array<object> |
The list of returned connection configurations. |
|
|
array<object> |
The data structure of a returned connection configuration. |
||
| ConnectionName |
string |
The name of the connection configuration. |
connection-name |
| Description |
string |
The description of the connection configuration. |
Description of the connection configuration |
| Type |
string |
The connection type. Valid values: Http, MySQL, PostgreSQL, Elasticsearch. |
Http |
| Parameters |
any |
The data source connection parameters (a JSON object). Returned only for data source type connections; empty for Http type. For field definitions, refer to the ParamsSchema returned by GetConnectionType. |
{"HostName":"xxx.mysql.rds.aliyuncs.com","Port":"3306","User":"root","Password":"xxx","DatabaseName":"demo_db"} |
| Id |
integer |
The ID of the connection configuration. |
1141093 |
| GmtCreate |
integer |
The timestamp when the data source was created. |
1592838994234 |
| NetworkParameters |
object |
The data structure of the network configuration. |
|
| NetworkType |
string |
|
PublicNetwork |
| VpcId |
string |
The ID of the Virtual Private Cloud (VPC). |
eb-test/vpc-bp1symadadwnwgmqud |
| VswitcheId |
string |
The vSwitch ID. |
vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| SecurityGroupId |
string |
The security group ID. |
eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| AuthParameters |
object |
The authentication data structure. |
|
| AuthorizationType |
string |
The authentication type:
|
BASIC_AUTH |
| ApiKeyAuthParameters |
object |
The data structure of the API KEY. |
|
| ApiKeyName |
string |
The key of the API key. |
Token |
| ApiKeyValue |
string |
The value of the API key. |
asdkjnqkwejooa |
| BasicAuthParameters |
object |
The data structure of the Basic authentication. |
|
| Password |
string |
The password for basic authentication. |
admin |
| Username |
string |
The username for basic authentication. |
admin |
| OAuthParameters |
object |
The data structure of the OAuth request parameters. |
|
| AuthorizationEndpoint |
string |
The endpoint to which the OAuth token request is sent. |
http://localhost:8080/oauth/token |
| HttpMethod |
string |
The method of the probe type. Valid values:
|
POST |
| ClientParameters |
object |
The data structure of the client parameters. |
|
| ClientID |
string |
The client ID. |
ClientID |
| ClientSecret |
string |
The client secret of the application. |
ClientSecret |
| OAuthHttpParameters |
object |
The request parameters for OAuth authentication. |
|
| BodyParameters |
array<object> |
The list of data structures of request parameters. |
|
|
object |
The data structure of body request parameters. |
||
| IsValueSecret |
string |
Indicates whether it is used for authentication. |
false |
| Key |
string |
The key of the body request parameter. |
name |
| Value |
string |
The value of the body request parameter. |
demo |
| HeaderParameters |
array<object> |
The list of request header parameters. |
|
|
object |
The data structure of request header parameters. |
||
| IsValueSecret |
string |
Indicates whether it is used for authentication. |
false |
| Key |
string |
The key of the request header parameter. |
name |
| Value |
string |
The value of the request header parameter. |
demo |
| QueryStringParameters |
array<object> |
The data structure of the query string parameters. |
|
|
object |
The entity class of the query string parameters. |
||
| IsValueSecret |
string |
Indicates whether it is used for authentication. |
false |
| Key |
string |
The key of the query string parameter. |
name |
| Value |
string |
The value of the query string parameter. |
demo |
| NextToken |
string |
If there are more results to fetch, NextToken is returned. |
0 |
| Total |
number |
The total number of entries. |
1 |
| MaxResults |
number |
The page size. |
10 |
Examples
Success response
JSON format
{
"RequestId": "E3619976-8714-5D88-BBA2-6983D798A8BB",
"Message": "success",
"Code": "Success",
"Data": {
"Connections": [
{
"ConnectionName": "connection-name",
"Description": "Description of the connection configuration",
"Type": "Http",
"Parameters": "{\"HostName\":\"xxx.mysql.rds.aliyuncs.com\",\"Port\":\"3306\",\"User\":\"root\",\"Password\":\"xxx\",\"DatabaseName\":\"demo_db\"}",
"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"
},
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | InternalError | |
| 409 | RequestParameterException | Request parameter exception |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.