Updates the connection configuration.
Operation description
Updates the connection configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eventbridge:UpdateConnection |
update |
*Connection
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConnectionName |
string |
Yes |
The name of the connection to be updated. The maximum length is 127 characters. The minimum length is 2 characters. |
connection-name |
| Description |
string |
No |
The description. The maximum length is 255 characters. |
Description of the connection configuration |
| NetworkParameters |
object |
Yes |
The data structure of the network configuration. |
|
| NetworkType |
string |
Yes |
Note
When you select PrivateNetwork, VpcId, VswitcheId, and SecurityGroupId are required. |
PublicNetwork |
| VpcId |
string |
No |
The ID of the VPC. |
eb-test/vpc-bp1symadadwnwgmqud |
| VswitcheId |
string |
No |
The vSwitch ID. |
vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| SecurityGroupId |
string |
No |
The ID of the security group. |
eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| Type |
string |
No |
The connection type. Valid values: MySQL, PostgreSQL, Elasticsearch, and Http. |
Http |
| Parameters |
any |
No |
The data source connection parameters (JSON object). For specific field definitions, call the GetConnectionType API and refer to the ParamsSchema in the response. |
{"HostName":"xxx.mysql.rds.aliyuncs.com","Port":"3306","User":"root","Password":"xxx","DatabaseName":"demo_db"} |
| AuthParameters |
object |
No |
The data structure of the authentication parameters. |
|
| AuthorizationType |
string |
No |
The authentication type. Valid values:
|
BASIC_AUTH |
| ApiKeyAuthParameters |
object |
No |
The data structure of API Key authentication. |
|
| ApiKeyName |
string |
No |
The key of the API Key. |
name |
| ApiKeyValue |
string |
No |
The value of the API Key. |
demo |
| BasicAuthParameters |
object |
No |
The data structure of Basic authentication. |
|
| Password |
string |
No |
The password for Basic authentication. |
admin |
| Username |
string |
No |
The username for Basic authentication. |
admin |
| OAuthParameters |
object |
No |
The data structure of the OAuth authentication parameters. |
|
| AuthorizationEndpoint |
string |
No |
The request URL for obtaining the OAuth token. The maximum length is 127 characters. |
http://localhost:8080/oauth/token |
| ClientParameters |
object |
No |
The data structure of the client parameters. |
|
| ClientID |
string |
No |
The ID of the client. |
ClientID |
| ClientSecret |
string |
No |
The AppKey secret of the client. |
ClientSecret |
| HttpMethod |
string |
No |
The HTTP request method. Valid values:
|
POST |
| OAuthHttpParameters |
object |
No |
The request parameters for OAuth authentication. |
|
| BodyParameters |
array<object> |
No |
The data structure list of the request parameters. |
|
|
object |
No |
The data structure of the body request parameter. |
||
| IsValueSecret |
string |
No |
Specifies whether to perform authentication. |
false |
| Key |
string |
No |
The key of the body request parameter. |
name |
| Value |
string |
No |
The value of the body request parameter. |
demo |
| HeaderParameters |
array<object> |
No |
The list of request header parameters. |
|
|
object |
No |
The data structure of the request header parameter. |
||
| IsValueSecret |
string |
No |
Specifies whether to perform authentication. |
false |
| Key |
string |
No |
The key of the request header parameter. |
name |
| Value |
string |
No |
The value of the request header parameter. |
demo |
| QueryStringParameters |
array<object> |
No |
The data structure of the request path parameters. |
|
|
object |
No |
The data structure of the request path parameter. |
||
| IsValueSecret |
string |
No |
Specifies whether to perform authentication. |
false |
| Key |
string |
No |
The key of the request path parameter. |
name |
| Value |
string |
No |
The value of the request path parameter. |
demo |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| Message |
string |
The returned message. |
success |
| Code |
string |
The API status code or POP error code. Description: 200 indicates success. |
200 |
Examples
Success response
JSON format
{
"RequestId": "8346BE8F-40F3-533D-A0B8-1359C31BD5BA",
"Message": "success",
"Code": "200"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | InternalError | |
| 409 | RequestParameterException | Request parameter exception | |
| 409 | ConnectionNotExist | The Connection not existed! | |
| 409 | SecretManagerAPIDeleteSecretFailed | Delete secret manager api secret failed! | |
| 409 | BasicRequiredParameterIsEmpty | Basic required parameters are empty, the required parameters are username and password! | |
| 409 | BasicUserNameLengthExceed | Basic username length cannot exceed 127! | |
| 409 | BasicPassWordLengthExceed | Basic password length cannot exceed 127! | |
| 409 | ApiKeyRequiredParameterIsEmpty | Api Key required parameters are empty, the required parameters are apiKeyName and apiKeyValue! | |
| 409 | ApiKeyNameLengthExceed | Api key name length cannot exceed 127! | |
| 409 | ApiKeyValueLengthExceed | Api key value length cannot exceed 127! | |
| 409 | OAuthRequiredParameterIsEmpty | OAuth required parameters are empty, the required parameters are authorizationEndpoint and httpMethod! | |
| 409 | AuthorizationEndpointLengthExceed | Authorization endpoint length cannot exceed 127! | |
| 409 | ClientIDLengthExceed | ClientID length cannot exceed 127! | |
| 409 | ClientSecretLengthExceed | ClientSecret length cannot exceed 127! | |
| 409 | OauthHttpParametersEmpty | OauthHttpParameters is Empty. | |
| 409 | SecretManagerAPICreateSecretNameFailed | Create secret manager api secret name failed! | |
| 409 | SecretManagerAPIGetSecretValueFailed | Get secret manager api secret value failed! |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.