Atualiza a configuração da conexão.
Descrição da operação
Atualiza a configuração da conexão.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
eventbridge:UpdateConnection |
update |
*Connection
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ConnectionName |
string |
Sim |
O nome da conexão a ser atualizada. O comprimento máximo é de 127 caracteres. O comprimento mínimo é de 2 caracteres. |
connection-name |
| Description |
string |
Não |
A descrição. O comprimento máximo é de 255 caracteres. |
Description of the connection configuration |
| NetworkParameters |
object |
Sim |
A estrutura de dados da configuração de rede. |
|
| NetworkType |
string |
Sim |
Nota
Ao selecionar PrivateNetwork, VpcId, VswitcheId e SecurityGroupId são obrigatórios. |
PublicNetwork |
| VpcId |
string |
Não |
O ID da VPC. |
eb-test/vpc-bp1symadadwnwgmqud |
| VswitcheId |
string |
Não |
O ID do vSwitch. |
vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| SecurityGroupId |
string |
Não |
O ID do grupo de segurança. |
eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| Type |
string |
Não |
O tipo de conexão. Valores válidos: MySQL, PostgreSQL, Elasticsearch e Http. |
Http |
| Parameters |
any |
Não |
Os parâmetros de conexão da fonte de dados (objeto JSON). Para definições de campos específicas, chame a API GetConnectionType e consulte o ParamsSchema na resposta. |
{"HostName":"xxx.mysql.rds.aliyuncs.com","Port":"3306","User":"root","Password":"xxx","DatabaseName":"demo_db"} |
| AuthParameters |
object |
Não |
A estrutura de dados dos parâmetros de autenticação. |
|
| AuthorizationType |
string |
Não |
O tipo de autenticação. Valores válidos:
|
BASIC_AUTH |
| ApiKeyAuthParameters |
object |
Não |
A estrutura de dados da autenticação por API Key. |
|
| ApiKeyName |
string |
Não |
A chave da API Key. |
name |
| ApiKeyValue |
string |
Não |
O valor da API Key. |
demo |
| BasicAuthParameters |
object |
Não |
A estrutura de dados da autenticação Basic. |
|
| Password |
string |
Não |
A senha para a autenticação Basic. |
admin |
| Username |
string |
Não |
O nome de usuário para a autenticação Basic. |
admin |
| OAuthParameters |
object |
Não |
A estrutura de dados dos parâmetros de autenticação OAuth. |
|
| AuthorizationEndpoint |
string |
Não |
A URL da solicitação para obtenção do token OAuth. O comprimento máximo é de 127 caracteres. |
http://localhost:8080/oauth/token |
| ClientParameters |
object |
Não |
A estrutura de dados dos parâmetros do cliente. |
|
| ClientID |
string |
Não |
The client ID. |
ClientID |
| ClientSecret |
string |
Não |
The client secret of the application. |
ClientSecret |
| HttpMethod |
string |
Não |
O método de solicitação HTTP. Valores válidos:
|
POST |
| OAuthHttpParameters |
object |
Não |
Os parâmetros da solicitação para autenticação OAuth. |
|
| BodyParameters |
array<object> |
Não |
The list of data structures for body request parameters. |
|
|
object |
Não |
The data structure of body request parameters. |
||
| IsValueSecret |
string |
Não |
Specifies whether the parameter is used for authentication. |
false |
| Key |
string |
Não |
The key of the body request parameter. |
name |
| Value |
string |
Não |
The value of the body request parameter. |
demo |
| HeaderParameters |
array<object> |
Não |
The list of request header parameters. |
|
|
object |
Não |
The data structure of request header parameters. |
||
| IsValueSecret |
string |
Não |
Specifies whether the parameter is used for authentication. |
false |
| Key |
string |
Não |
The key of the request header parameter. |
name |
| Value |
string |
Não |
The value of the request header parameter. |
demo |
| QueryStringParameters |
array<object> |
Não |
The data structure of request query parameters. |
|
|
object |
Não |
The data structure of request query parameters. |
||
| IsValueSecret |
string |
Não |
Specifies whether the parameter is used for authentication. |
false |
| Key |
string |
Não |
The key of the request query parameter. |
name |
| Value |
string |
Não |
The value of the request query parameter. |
demo |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| Message |
string |
A mensagem retornada. |
success |
| Code |
string |
O código de status da API ou código de erro POP. Descrição: 200 indica sucesso. |
200 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "8346BE8F-40F3-533D-A0B8-1359C31BD5BA",
"Message": "success",
"Code": "200"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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! |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.