Run a data flow
/api/20210901/catalog/dataflows/{dataflowId}/actions/run
Request
-
dataflowId(required): string(byte)
The object ID of the data flow with Base64URL encoding. For example, if your data flow has the object ID 'User1'.'dataflow1', enter the Base64URL encoded value, J1VzZXIxJy4nZGF0YWZsb3cxJw==.
- application/json
object
-
appName: string
Value of an application to be replaced and run.
-
appParameterName: string
Identifier of an application to be replaced.
-
cubeName: string
Value of a cube to be replaced and run.
-
cubeParameterName: string
Identifier of a cube to be replaced.
-
datasetName: string
Display name of a dataset to be replaced and run.
-
parameterName: string
Identifier of a source or target dataset to be replaced.
-
type: string
Type of parameter, there are 3 values:\ source, target, and cube.
Response
202 Response
400 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
403 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
404 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
409 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
500 Response
object
-
code(required): string
Short error code that defines the error, meant for programmatic parsing.
-
message(required): string
Human-readable error string.
Examples
dataflowID
with or without parameters.
- Example 1 - Run a data flow without parameters
- Example 2 - Run a data flow with parameters
- Example 3 - Run a data flow with parameters defined in a JSON file (multiple dataset targets)
- Example 4 - Run a data flow with parameters in a JSON file (Essbase cube target)
parameterName
- Identifier for a source dataset or a target dataset to be replaced.datasetName
- Name of the dataset. The dataset must exist and you must have permission to use the dataset in the data flow.type
- Type of data flow parameter. Valid values: source, target, cubeappParameterName
- Identifier for the target Essbase application.appName
- Name of the target Essbase application.cubeParameterName
- Identifier for the target Essbase cube.cubeName
- Name of the target Essbase cube.
Example 1 Run a data flow without parameters
In this example, you run a data flow job with a given dataflowID
. The
object ID of the data flow is 'adminuser'.'mySalesDataFlow2024'
which has
the Base64URL-safe encoded dataflowID
value:
J2FkbWludXNlcicuJ215U2FsZXNEYXRhRmxvdzIwMjQn
cURL Example:
First, obtain the object ID of the data flow you want to run and Base64URL-safe encode this
value to determine the dataflowID
. You can obtain the Object ID
value from the Inspect dialog for data flow in Oracle Analytics Server.
Run the cURL command with the required dataflowID
:
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request POST 'https://<hostname>/api/20210901/catalog/dataflows/J2FkbWludXNlcicuJ215U2FsZXNEYXRhRmxvdzIwMjQn/actions/run' \
Example of Request Body
None required
Example of Response Header
Not applicable.
Example of Response Body
Status 200:
Example 2 Run a data flow with parameters
In this example, you run a data flow with source and target parameters. The object ID of
the data flow is 'adminuser'.'myOrdersDataFlow2024'
which has the
Base64URL-safe encoded dataflowID
value:
J2FkbWludXNlcicuJ215T3JkZXJzRGF0YUZsb3cyMDI0Jw
- Source parameters - Identify one or more dataset sources for the data flow. In this
example, the input to the data flow is a single dataset,
SalesDataset
. - Target parameters - Identify one or more datasets output from the data flow. In this
example, the output from the data flow is a single dataset,
mySalesDataset2024
.
cURL Example:
First, obtain the object ID of the data flow you want to run and Base64URL-safe encode this
value to determine the dataflowID
. You can obtain the Object ID
value from the Inspect dialog for data flow in Oracle Analytics.
Run the cURL command with the required
dataflowID
:
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request POST 'https://<hostname>/api/20210901/catalog/dataflows/J2FkbWludXNlcicuJ215T3JkZXJzRGF0YUZsb3cyMDI0Jw/actions/run' \ --data '{ "parameters": [ \ { "parameterName": Source Input", "datasetName": "SalesDataset", "type": "source" }, { "parameterName": "Target Output", "datasetName": "mySalesDataset2024", "type": "target" }]}'
Example of Request Body
{"parameters": [ { "parameterName":"Source Input", "datasetName":"SalesDataset", "type":"source" }, { "parameterName": "Target Output", "datasetName": "mySalesDataset2024", "type": "target" } ] }
Example of Response Header
Not applicable.
Example of Response Body
Status 200:
Example 3 Run a data flow with parameters defined in a JSON file (multiple dataset targets)
In this example, you run a data flow with multiple source and target parameters defined in
a JSON file (mydataflowparameters.json
). The object ID of the data flow is
'adminuser'.'myProductSalesDataFlow2024'
which has the Base64URL-safe
encoded dataflowID
value:
J2FkbWludXNlcicuJ215UHJvZHVjdFNhbGVzRGF0YUZsb3cyMDI0Jw
- Source parameters - Identify one or more dataset sources for the data flow. In this
example, there are two inputs to the data flow:
Product1Dataset
andProduct2Dataset
. - Target parameters - Identify one or more datasets output from the data flow. In this
example, there are two outputs from the data flow:
myProduct1Dataset2024
andmyProduct2Dataset2024
.
cURL Example:
First, obtain the object ID of the data flow you want to run and Base64URL-safe encode this
value to determine the dataflowID
. You can obtain the Object ID
value from the Inspect dialog for data flow in Oracle Analytics.
Next, create a JSON file that contains the parameters required to run the data flow. For
example, create a JSON file called mydataflowparameters.json
with a payload
that looks like this.
{"parameters": [ { "parameterName":"Source Input - Product1", "datasetName":"Product1Dataset", "type":"source" }, { "parameterName": "Source Input - Product2", "datasetName": "Product2Dataset", "type": "source" }, { "parameterName": "Target Output - newDatasetProduct1", "datasetName": "myProduct1Dataset2024", "type":"target" }, { "parameterName": "Target Output - newDatasetProduct2", "datasetName": "myProduct2Dataset2024", "type": "target" } ] }
Run the cURL command with the required dataflowID
:
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request POST 'https://<hostname>/api/20210901/catalog/dataflows/J2FkbWludXNlcicuJ215UHJvZHVjdFNhbGVzRGF0YUZsb3cyMDI0Jw/actions/run' \ --data @mydataflowparameters.json
Example of Response Header
Not applicable.
Example of Response Body
Status 200:
Example 3 Run a data flow with parameters defined in a JSON file (Essbase cube target)
In this example, you run a data flow with source and target parameters defined in a JSON
file (mydataflowcubeparameters.json
). The object ID of the data flow is
'adminuser'.'mySalesDataFlow'
which has the Base64URL-safe encoded
dataflowID
value:
J2FkbWludXNlcicuJ215U2FsZXNEYXRhRmxvdyc=
- Source parameters - Identify one or more dataset sources for the data flow. In this
example, there is one input to the data flow:
SalesDataset
. - Target parameters - Identify a target Essbase application and cube output from the data
flow. In this example:
MyEssbaseApp
andMySalesCube
.
cURL Example:
First, obtain the object ID of the data flow you want to run and Base64URL-safe encode this
value to determine the dataflowID
. You can obtain the Object ID
value from the Inspect dialog for data flow in Oracle Analytics.
Next, create a JSON file that contains the parameters required to run the data flow. For
example, create a JSON file called mydataflowcubeparameters.json
with a
payload that looks like this.
{ "parameters": [ { "parameterName": "Source Input", "datasetName": "SalesDataset", "type": "source" }, { "appParameterName": "Target - MyEssbaseApp", "appName": "MyEssbaseApp", "cubeParameterName": "Target - MySalesCube", "cubeName": "MySalesCube", "type": "cube" } ] }
Run the cURL command with the required dataflowID
:
curl -i \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --request POST 'https://<hostname>/api/20210901/catalog/dataflows/J2FkbWludXNlcicuJ215U2FsZXNEYXRhRmxvdyc=/actions/run' \ --data @mydataflowcubeparameters.json
Example of Response Header
Not applicable.
Example of Response Body
Status 200: