Table of Contents

Search

  1. Preface
  2. Informatica Intelligent Cloud Services REST API
  3. Platform REST API version 2 resources
  4. Platform REST API version 3 resources
  5. Data Integration REST API
  6. Mass Ingestion Files REST API
  7. Mass Ingestion Streaming REST API
  8. Model Serve REST API
  9. RunAJob utility
  10. ParamSetCli utility
  11. REST API codes
  12. REST API resource quick references

REST API Reference

REST API Reference

Publishing taskflows in bulk

Publishing taskflows in bulk

You can use the publish resource to publish a single taskflow or multiple taskflows simultaneously and save time.
The taskflows are published in the same order as given in the request payload. You can publish a maximum of 199 taskflows at a time.
  1. In a REST client, use a POST request with the following URL:
    <Informatica Intelligent Cloud Services URL>/active-bpel/asset/v1/publish
    For example:
    https://na1.dm-us.informaticacloud.com/active-bpel/asset/v1/publish
  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
    .
  3. In the body, use the assetPaths attribute to specify one or more locations and names of the taskflows that you want to publish.
    Use the following format:
    { "data": { "type": "publish", "attributes": { "assetPaths": [ "Explore/<location-of-taskflow1>/<name-of-taskflow1>.TASKFLOW.xml", "Explore/<location of taskflow2>/<name-of-taskflow2>.TASKFLOW.xml", "Explore/<location-of-taskflown>/<name-of-taskflown>.TASKFLOW.xml" ] } } }
  4. Send the POST request.
    You see a publish 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": "publish", "id": "690487059198201856", "attributes": { "jobState": "NOT_STARTED", "jobStatusDetail": {}, "startedBy": "autouser_pod1", "startDate": "2022-03-21T09:09:04.000+0000", "totalCount": 1, "processedCount": 0, "assetPaths": [ "Explore/Pavan/BulkPublishApi/BPTaskflow1.TASKFLOW.xml" ] } }, "links": { "self": https://na1.dm-us.informaticacloud.com/active-bpel/asset/v1/publish/690487059198201856, "status": https://na1.dm-us.informaticacloud.com/active-bpel/asset/v1/publish/690487059198201856/Status } }
    The publish ID in this example is 690487059198201856.
  5. To view information about the publish status and publish job, use a GET request with the following URLs:
    URL
    Description
    <Informatica Intelligent Cloud Services URL>/active-bpel/asset/v1/publish/<publishId>/Status
    Displays the publish status.
    <Informatica Intelligent Cloud Services URL>/active-bpel/asset/v1/publish/<publishId>
    Displays the publish job information.

0 COMMENTS

We’d like to hear from you!
Gregory Young - August 17, 2023
  • Can you provide a sample call for step #1?  It wasn't clear to me it didn't use the same URL as version 2/3 API uses.
  • Can you also provide documentation for Display the publish status, such as available Status's for the API.  I have only seen SUCCESS and ERROR,  wondering if there was an IN_PROGRESS
Informatica Documentation Team - August 18, 2023

Hi Gregory,

We’re working to address your comments and will get back to you.

Thanks,

Informatica Documentation team


Informatica Documentation Team - August 24, 2023

Hi Gregory,

I verified with the technical team. The URL mentioned in Step 1 is the only URL used to publish taskflows. To make the URL usage clearer, I have added an example.

You can find the list of statuses in the status field here:

https://docs.informatica.com/integration-cloud/data-integration/current-version/rest-api-reference/data-integration-rest-api/taskflows/monitoring-taskflow-status-with-the-status-resource.html

Thanks,

Informatica Documentation team