更新連線配置資訊。
介面說明
用於更新連線配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
eventbridge:UpdateConnection |
update |
*Connection
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ConnectionName |
string |
是 |
要更新的連線名稱。最大長度 127 個字元。最小長度 2 個字元。 |
connection-name |
| Description |
string |
否 |
描述資訊。最大長度 255 個字元。 |
Description of the connection configuration |
| NetworkParameters |
object |
是 |
網路配置的資料結構。 |
|
| NetworkType |
string |
是 |
說明
選擇專有網路時,VpcId、VswitcheId 和 SecurityGroupId 必填。 |
PublicNetwork |
| VpcId |
string |
否 |
專有網路 VPC 的 ID。 |
eb-test/vpc-bp1symadadwnwgmqud |
| VswitcheId |
string |
否 |
交換器 ID。 |
vsw-bp1iu4x7aeradadown1og8,vsw-bp193sqmadadlaszpeqbt2c |
| SecurityGroupId |
string |
否 |
安全性群組 ID。 |
eb-167adad548759-security_grop/sg-bp1addad26peuh9qh9rtyb |
| Type |
string |
否 |
連線類型。可選值:MySQL、PostgreSQL、Elasticsearch、Http |
Http |
| Parameters |
any |
否 |
資料來源連線參數(JSON 物件)。具體欄位定義請呼叫 GetConnectionType 介面,參考返回結果中的 ParamsSchema |
{"HostName":"xxx.mysql.rds.aliyuncs.com","Port":"3306","User":"root","Password":"xxx","DatabaseName":"demo_db"} |
| AuthParameters |
object |
否 |
鑑權資料結構。 |
|
| AuthorizationType |
string |
否 |
鑑權類型 :
|
BASIC_AUTH |
| ApiKeyAuthParameters |
object |
否 |
API Key 鑑權的資料結構。 |
|
| ApiKeyName |
string |
否 |
API Key 的 key 值。 |
name |
| ApiKeyValue |
string |
否 |
API Value 的 value 值。 |
demo |
| BasicAuthParameters |
object |
否 |
Basic 鑑權的資料結構。 |
|
| Password |
string |
否 |
basic 鑑權的密碼。 |
admin |
| Username |
string |
否 |
basic 鑑權的使用者名稱。 |
admin |
| OAuthParameters |
object |
否 |
OAuth 鑑權參數資料結構。 |
|
| AuthorizationEndpoint |
string |
否 |
OAuth 取得 token 的請求位址。最大長度 127 個字元。 |
http://localhost:8080/oauth/token |
| ClientParameters |
object |
否 |
用戶端參數資料結構。 |
|
| ClientID |
string |
否 |
用戶端的 ID。 |
ClientID |
| ClientSecret |
string |
否 |
應用程式的用戶端金鑰 secret。 |
ClientSecret |
| HttpMethod |
string |
否 |
探測類型的方法。取值:
|
POST |
| OAuthHttpParameters |
object |
否 |
OAuth 鑑權的請求參數。 |
|
| BodyParameters |
array<object> |
否 |
請求參數的資料結構清單。 |
|
|
object |
否 |
body 請求參數的資料結構。 |
||
| IsValueSecret |
string |
否 |
是否是鑑權。 |
false |
| Key |
string |
否 |
body 請求參數的 key。 |
name |
| Value |
string |
否 |
body 請求參數的 value。 |
demo |
| HeaderParameters |
array<object> |
否 |
請求標頭的參數清單。 |
|
|
object |
否 |
請求標頭的參數資料結構。 |
||
| IsValueSecret |
string |
否 |
是否是鑑權。 |
false |
| Key |
string |
否 |
請求標頭參數 key。 |
name |
| Value |
string |
否 |
請求標頭參數 value。 |
demo |
| QueryStringParameters |
array<object> |
否 |
請求路徑參數的資料結構。 |
|
|
object |
否 |
請求路徑參數的資料結構。 |
||
| IsValueSecret |
string |
否 |
是否是鑑權。 |
false |
| Key |
string |
否 |
請求路徑參數 key。 |
name |
| Value |
string |
否 |
請求路徑參數 value。 |
demo |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
本次請求的 ID。 |
8346BE8F-40F3-533D-A0B8-1359C31BD5BA |
| Message |
string |
返回資訊。 |
success |
| Code |
string |
介面狀態或 POP 錯誤碼。取值說明如下:200:成功。 |
200 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "8346BE8F-40F3-533D-A0B8-1359C31BD5BA",
"Message": "success",
"Code": "200"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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! |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。