Copy an Integration in a Project
/ic/api/integration/v1/projects/{projectId}/integrations/copy
Request
-
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.
- application/json
object
-
integrations: array
integrations
Integration Details
-
project-code: string
Project Identifier
object
-
code: string
Integration Code
-
name: string
Integration Name
-
status: string
Integration Status
-
type: string
Integration Type
-
version: string
Integration Version
Response
204 Response
400 Response
500 Response
Examples
The following example shows how to copy an integration into 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: Copy integration TEST_PROJ2_INT from another project into TEST_PROJECT
This command consumes JSON data and copies a integration with the code and version specified in the request body.
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @copyprojectintegration.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/integrations/copy?integrationInstance=service-instance
Request body
The following example shows the contents of the request body in JSON format. This is
the content of the copyprojectintegration.json
file listed in the
cURL command with the -d option.
{"projectCode":"TEST_PROJ2","integrations":[{"code":"TEST_PROJ2_INT","version":"01.00.0000"}]}
Example: Copy integration TEST_GLOBAL_INT outside of any project into project TEST_PROJECT
This command consumes JSON data and copies a integration with the code and version specified in the request body.
Request
curl -X POST -H 'Authorization: Bearer access_token' -H "Content-Type:application/json" -d @copyglobalintegration.json https://design.integration.region.ocp.oraclecloud.com/ic/api/integration/v1/projects/TEST_PROJECT/integrations/copy?integrationInstance=service-instance
Request Body
The following example shows the contents of the request body in JSON format. This is
the content of the copyglobalintegration.json
file listed in the
cURL command with the -d option.
{"projectCode":null,"integrations":[{"code":"TEST_GLOBAL_INT","version":"01.00.0000"}]}