Test a Connection in a Project
/ic/api/integration/v1/projects/{projectId}/connections/{id}/test
Tests a connection in a project by doing a ping test. Can be used to check the status of the connection.
Request
-
id(required): string
Connection identifier
-
projectId(required): string
Project identifier
-
integrationInstance(required): string
This is the name of the service instance. You can get this value from the About page where it is specified in the Service instance field.
There's no request body for this operation.
Back to TopResponse
- application/json; charset=utf-8
200 Response
404 Response
409 Response
412 Response
500 Response
Examples
The following example shows how to test the connection in a project by submitting a POST request on the REST resource using cURL. For more information about cURL, see Use cURL. For more information about endpoint URL structure, see Send Requests.
Example: Check connection REST_SAMPLE status in the project TEST_PROJECT
This command sends a test request to the specified connection. Use this command to check the status of the connection. If the test returns HTTP 200, the connection is CONFIGURED.
curl -X POST -H 'Authorization: Bearer access_token' -H "Accept:application/json" https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/connections/REST_SAMPLE/test?integrationInstance=service-instance