Updating a Data Connection - UpdateDataConnector
Function
This API is used to update a data connection.
Constraints
None
Debugging
You can debug this API in API Explorer. Automatic authentication is supported. API Explorer can automatically generate sample SDK code and supports sample SDK code debugging.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependency
mrs:dataConnector:updateInstance
Write
-
-
-
-
URI
PUT /v2/{project_id}/data-connectors/{connector_id}
Parameter | Mandatory | Type | Description |
|---|---|---|---|
project_id | Yes | String | Explanation Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. Constraints N/A Value range The value must consist of 1 to 64 characters. Only letters and digits are allowed. Default value N/A |
connector_id | Yes | String | Explanation Data connection ID. Constraints N/A Value range The value can contain 0 to 64 characters, including only letters, digits, underscores (_), and hyphens (-). Default value N/A |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
data_connector | Yes | DataConnector object | Explanation Data connection. For details, see Table 3. Constraints N/A Value range N/A Default value N/A |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
connector_name | Yes | String | Explanation Data connection name. Constraints N/A Value range N/A Default value N/A |
source_type | Yes | String | Explanation Data connection type. Constraints N/A Value range
Default value N/A |
source_info | Yes | String | Explanation Data source information, which is in JSON format. Constraints N/A Value range N/A Default value N/A |
Response Parameters
Status code: 200
Parameter | Type | Description |
|---|---|---|
result | String | Explanation Result of the request for updating a mapping. Constraints N/A Value range
Default value N/A |
Example Request
/v2/274ee662a7e24cc99bfc858c4558dbf6/data-connector/7d169c6c-ab50-4a56-a5d2-240ca20aabda
{
"data_connector" : {
"connector_name" : "mrs-mysql-connector",
"source_type" : "RDS_MYSQL",
"source_info" : "{\"db_name\":\"default\",\"user_name\":\"mrs\",\"password\":\"*****\",\"rds_instance_id\":\"3aa55f1cb4c3491686936130f21e9f16in01\"}"
}
} Example Response
Status code: 200
Data connection updated.
{
"result" : "succeed"
} Status Codes
See Status Codes.
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
