Invoke

Invoke

Unpublishing Application Integration assets in bulk

Unpublishing Application Integration assets in bulk

You can use the unpublish resource to unpublish a single Application Integration asset or multiple Application Integration assets simultaneously and save time. You can unpublish processes, guides, app connections, and service connectors in bulk.
The assets are unpublished in the same order as given in the request payload. You can unpublish a maximum of 199 assets at a time.
  1. In a REST client, use a POST request with the following URL:
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/unpublish
    For example:
    https://na1.dm-us.informaticacloud.com/active-bpel/asset/v1/unpublish
  2. Add the following headers:
    Key
    Value
    Accept
    application/vnd.api+json
    Content-Type
    application/vnd.api+json
    INFA-SESSION-ID
    Use the login resource to get the session ID. For more information about the login resource, see
    REST API Reference
    in the Data Integration help.
  3. In the body, use the assetPaths attribute to specify one or more locations and names of the Application Integration assets that you want to unpublish.
    Use the following format:
    { "data": { "type": "unpublish", "attributes": { "assetPaths": [ "Explore/<location-of-the-process>/<name-of-the-process>.PROCESS.xml", "Explore/<location-of-the-guide>/<name-of-the-guide>.GUIDE.xml", "Explore/<location-of-the-appconnection>/<name-of-the-appconnection>.AI_CONNECTION.xml", "Explore/<location-of-the-serviceconnector>/<name-of-the-serviceconnector>.AI_SERVICE_CONNECTOR.xml" ] } } }
  4. Send the POST request.
    You see an unpublish job ID and a success or failure response. If the request fails, the response also gives the error details.
    The following snippet shows a sample response:
    { "data": { "type": "unpublish", "id": "547654765345095786", "attributes": { "jobState": "NOT_STARTED", "jobStatusDetail": {}, "startedBy": "autouser_pod1", "startDate": "2022-03-21T07:42:42.000+0000", "totalCount": 1, "processedCount": 0, "assetPaths": [ "Explore/Default/BulkUnpublishProcessToUnpublishOnCloud.PROCESS.xml" ] } }, "links": { "self": https://na1.ai.dm-us.informaticacloud.com/active-bpel/asset/v1/unpublish/547654765345095786, "status": https://na1.ai.dm-us.informaticacloud.com/active-bpel/asset/v1/unpublish/547654765345095786/Status } }
    The unpublish job ID in this example is 547654765345095786.
  5. To view information about the unpublish status and unpublish job, use a GET request with the following URLs:
    URL
    Description
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/unpublish/<unpublishId>/Status
    Displays the unpublish status.
    <Cloud Application Integration POD URL>/active-bpel/asset/v1/unpublish/<unpublishId>
    Displays the unpublish information.

0 COMMENTS

We’d like to hear from you!