Import Design-Time Metadata of a Service Instance

post

ic/api/common/v1/importServiceInstanceArchive

Imports an integration's design-time metadata to the current integration instance. This action asynchronously imports an archive.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : Object
Type: object

202 Response

Request accepted

400 Response

Bad request, missing required data

409 Response

Conflict, import job is already in progress or the given job name is already exists

500 Response

Server error
Back to Top

Examples

The following examples show how to import design-time metadata of a service instance 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: Import design-time metadata of a service instance

curl
        --location 'https://
        design.integration.region.ocp.oraclecloud.com/ic/api/common/v1/importServiceInstanceArchive?integrationInstance=service-instance
        ' \--header
        'Content-Type: application/json' \--header
        'Authorization: Bearer xxxx\--data
        '{"archiveFile":"export_si_data",
        "description": "", "importActivateMode":
        "importOnly", "importSecurityArtifacts": true | false,
        "jobName":"Import of instance si01-TRFRFTTYG-px-pp","storageInfo":{     
        "storageUrl":"https://<storage URL>.oraclecloud.com/v1/tenancy/bucket-name ",     
      "storageUser":"username",
      "storagePassword":"password
        " }
    }'

Example: Import and activate design-time metadata of a service instance

curl --location 'https:// design.integration.region.ocp.oraclecloud.com/ic/api/common/v1/importServiceInstanceArchive?integrationInstance=service-instance' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxx' \
--data '{
    "archiveFile": "export_si_data",
    "description": "test desc",
    "importActivateMode": "importActivate",
    "importSecurityArtifacts": true,
    "jobName": "Import of instance xxxx",
    "startSchedules": true | false,
    "storageInfo": {
        "storageUrl": "https://swiftobjectstorage.us-phoenix-1.oraclecloud.com/v1/ tenancy/bucket-name",
        "storageUser": "storage user",
        "storagePassword": "password"
    }
}'
Back to Top