Example of Using DataArts Factory APIs

Scenarios

DataArts Studio helps enterprises quickly build an end-to-end intelligent data system that covers the entire process from data ingestion to data analytics. The system can eliminate data silos, unify data standards, accelerate data monetization, and promote digital transformation.

The following describes how to create a script by calling the Creating a Script API. For details, see Calling APIs.

Prerequisites

You have planned the region where Data Development is located and determined the endpoint for calling an API based on the region.

An endpoint is the request address for calling an API. Endpoints vary depending on services and regions. You can obtain endpoints of the service from Regions and Endpoints.

Creating a Shell Script

The following is an example of creating a shell script:
{
"name":"echoTimeShell",
"type":"Shell",
"content":"echo a",
"connectionName":"con"
}

Creating a DLI SQL Script

You can also create a DLI SQL script. The following is an example:
{
"name":"dlisql1",
"type":"DLISQL",
"content":"show tables",
"connectionName":"dliCon1",
"database":"testDatabase1",
"queueName":"queue1"
}