Queries connections.
Operation description
You can call this API operation to query connections.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ConnectionNamePrefix | string | No | The key word that you specify to query connections. Connections can be queried by prefixes. | connection-name |
MaxResults | long | No | The maximum number of entries to be returned in a single call. You can use this parameter and the NextToken parameter to implement paging.
| 10 |
NextToken | string | No | If you set the Limit parameter and excess return values exist, this parameter is returned.
| 0 |
Response parameters
Examples
Sample success responses
JSON
format
{
"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 code | Error code | Error message |
---|---|---|
409 | RequestParameterException | Request parameter exception |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
2023-09-13 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||
| ||||||||||
2023-04-06 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||||
|