Queries the configurations of a connection.
Operation description
You can call this API operation to query the configurations of a connection.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ConnectionName | string | Yes | The connection name. | connection-name |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
"Message": "success",
"Code": "Success",
"HttpCode": 200,
"Data": {
"Connections": [
{
"ConnectionName": "demo",
"Id": 5668,
"Description": "demo",
"GmtCreate": 1669648905,
"NetworkParameters": {
"NetworkType": "PublicNetwork",
"VpcId": "eb-test/vpc-bp1symadadwnwg****",
"VswitcheId": "vsw-bp1iu4x7aeradadown****,vsw-bp193sqmadadlaszpeq****",
"SecurityGroupId": "eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9****"
},
"AuthParameters": {
"AuthorizationType": "BASIC_AUTH",
"ApiKeyAuthParameters": {
"ApiKeyName": "key",
"ApiKeyValue": "value"
},
"BasicAuthParameters": {
"Password": "********",
"Username": "admin"
},
"OAuthParameters": {
"AuthorizationEndpoint": "http://localhost:8080/oauth/token",
"HttpMethod": "POST",
"ClientParameters": {
"ClientID": "ClientID",
"ClientSecret": "Qo57Q~F249~S74GmNPA36pZJoJK4f****"
},
"OAuthHttpParameters": {
"BodyParameters": [
{
"IsValueSecret": "false",
"Key": "keyDemo",
"Value": "valueDemo"
}
],
"HeaderParameters": [
{
"IsValueSecret": "false",
"Key": "keyDemo",
"Value": "keyDemo"
}
],
"QueryStringParameters": [
{
"IsValueSecret": "false",
"Key": "keyDemo",
"Value": "valueDemo"
}
]
}
}
}
}
]
}
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
409 | RequestParameterException | Request parameter exception |
409 | ConnectionNotExist | The Connection name not existed! |
500 | InternalError | InternalError |
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 | ||||||||
|