Deploy a Project

post

/ic/api/process/v1/targets/{targetId}

Deploys a project and returns the deployed project version.

Request

Supported Media Types
Path Parameters
Form Parameters
Back to Top

Response

Supported Media Types

200 Response

successful operation
Body ()
Root Schema : deployedProject
Type: object

201 Response

Success. Project successfully deployed.

401 Response

Unauthorized

403 Response

Privileges required. User can't deploy the project

500 Response

Error in deploying project
Back to Top

Examples

The following example shows how to deploy a project by submitting a POST request on the REST resource.

Send Request

curl -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: application/json' --header 'Authorization: Bearer access_token' -F 'restDeployConfig={"revisionId": "2.0", "overwrite": true, "forceDefault": true, "addMeToAllRoles": false}' -F 'exp=@Application.exp' 'http://example.oracle.com/ic/api/process/v1/targets/<targetId>'

Where

  • example.com is the host where Oracle Integration is running.

  • content-type: multipart/form-data

  • <targetId>is the deployment partition target of a project. The allowed value is ORACLEINTERNALPCS and this endpoint does not support ORACLEINTERNALPCSPLAYER.

Example of Response Body

{
    "partition": "oracleinternalpcs",
    "revisionId": "2.0",
    "RunTimeLiveInfo": {
        "state": "ON",
        "mode": "ACTIVE"
    },
    "DesignTimeProjectReference": {
        "spaceId": "NA",
        "projectId": "callableapp"
    },
    "RunTimeDeployInfo": {
        "deployTime": "2018-07-25,09:16:38 UTC",
        "isDefault": true
    },
    "processDefIds": [
        "oracleinternalpcs~callableapp!2.0~ProcessMessagereceive"
    ],
    "links": [
        {
            "href": "http://example.com/ic/api/process/v1/targets/oracleinternalpcs/projects/callableapp/revisions/2.0",
            "rel": "self"
        },
        {
            "href": "http://example.com/ic/api/process/v1/targets/oracleinternalpcs/projects/callableapp/revisions/2.0",
            "rel": "canonical"
        },
        {
            "href": "http://example.com:/ic/api/process/v1/",
            "rel": "parent"
        }
    ]
}
Back to Top