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. File Ingestion and Replication REST API
  7. Streaming Ingestion and Replication 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

Start a code task

Start a
code task

Use this POST request to start the
code task
job. The response includes the code task job ID that you can use in subsequent API calls.

POST request

To start a
code task
, use the task ID. The
code task
ID is included in the response when you create a
code task
. For more information, see Create.
Use the following URI to start a
code task
:
POST <server URL>/disnext/api/v1/CodeTask/Start
Use the following field in the POST request:
Field
Type
Required / Optional
Description
codeTaskId
String
Required
The
code task
ID from the create resource.

POST response

The following variable is set from the response attributes:
Name
Response Value
Note
CODE_TASK_JOB_ID
jobId
Used to cancel the
code task
job, or to get job status, session logs, or Spark task status.

POST request example

Use this sample as a reference to start a
code task
.
POST <server URL>/disnext/api/v1/CodeTask/Start Content-Type: application/json Accept: application/json IDS-SESSION-ID:{{IDS_SESSION_ID}} { "codeTaskId" : {{CODE_TASK_ID}} }

POST response example

A successful POST response returns the
code task
job ID and other information, similar to the following example:
{ "summary": "Code Task started successfully", "jobId": "8zcuMdImeshidZ4XVExs20", "codeTaskInstanceName": "Demo-2", "sparkCodeTaskResponseBody": { "agentGroupId": "01000025000000000003", "clusterConfigId": "Default", "logLevel": "normal", "startRunTime": "2022-04-04T20:23:57.154+00:00", "submitTime": "2022-04-04T20:23:57.095+00:00" } }

0 COMMENTS

We’d like to hear from you!