Create Job
curl --request POST \
--url https://cloud.cdata.com/api/job/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobType": "Caching",
"intervalUnit": "Hour",
"intervalValue": "1",
"logVerbosity": "1",
"enabled": "true",
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}
'import requests
url = "https://cloud.cdata.com/api/job/create"
payload = {
"jobType": "Caching",
"intervalUnit": "Hour",
"intervalValue": "1",
"logVerbosity": "1",
"enabled": "true",
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": True
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": True
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobType: 'Caching',
intervalUnit: 'Hour',
intervalValue: '1',
logVerbosity: '1',
enabled: 'true',
params: {
timeCheckColumn: 'ModifiedDate',
autoTruncateStrings: 'false',
sourceConnection: '36b2c04f-70f4-44a1-876a-29e42237ee63',
sourceName: 'OData1',
sourceSchema: 'OData',
sourceTable: 'Categories',
replicateStartDate: '2024-01-01T00:00:00Z',
replicateInterval: 180,
mergeKeys: [
{colName: 'Id', colType: 'varchar', isPrimaryKey: true},
{colName: 'WorkspaceId', colType: 'varchar', isPrimaryKey: true}
]
}
})
};
fetch('https://cloud.cdata.com/api/job/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.cdata.com/api/job/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jobType' => 'Caching',
'intervalUnit' => 'Hour',
'intervalValue' => '1',
'logVerbosity' => '1',
'enabled' => 'true',
'params' => [
'timeCheckColumn' => 'ModifiedDate',
'autoTruncateStrings' => 'false',
'sourceConnection' => '36b2c04f-70f4-44a1-876a-29e42237ee63',
'sourceName' => 'OData1',
'sourceSchema' => 'OData',
'sourceTable' => 'Categories',
'replicateStartDate' => '2024-01-01T00:00:00Z',
'replicateInterval' => 180,
'mergeKeys' => [
[
'colName' => 'Id',
'colType' => 'varchar',
'isPrimaryKey' => true
],
[
'colName' => 'WorkspaceId',
'colType' => 'varchar',
'isPrimaryKey' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.cdata.com/api/job/create"
payload := strings.NewReader("{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cloud.cdata.com/api/job/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/job/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"jobType": "Caching",
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"name": "OData1 Categories",
"enabled": true,
"created": "2024-01-01T00:00:00Z",
"lastModified": "2024-01-01T00:00:00Z",
"nextRunTime": "2024-01-01T00:00:00Z",
"intervalUnit": "Hour",
"intervalValue": 1,
"logVerbosity": 1,
"lastRun": {
"dateTime": "0001-01-01T00:00:00Z",
"duration": 63894847975,
"status": "JOB_QUEUED",
"rowsAffected": 0,
"nextRunTime": "0001-01-01T00:00:00Z"
},
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceConnectionName": "OData1",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}ジョブの作成
管理者はサービスユーザーに成りすまして、この呼び出しを使用して新しいジョブを作成できます。
POST
/
job
/
create
Create Job
curl --request POST \
--url https://cloud.cdata.com/api/job/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"jobType": "Caching",
"intervalUnit": "Hour",
"intervalValue": "1",
"logVerbosity": "1",
"enabled": "true",
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}
'import requests
url = "https://cloud.cdata.com/api/job/create"
payload = {
"jobType": "Caching",
"intervalUnit": "Hour",
"intervalValue": "1",
"logVerbosity": "1",
"enabled": "true",
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": True
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": True
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
jobType: 'Caching',
intervalUnit: 'Hour',
intervalValue: '1',
logVerbosity: '1',
enabled: 'true',
params: {
timeCheckColumn: 'ModifiedDate',
autoTruncateStrings: 'false',
sourceConnection: '36b2c04f-70f4-44a1-876a-29e42237ee63',
sourceName: 'OData1',
sourceSchema: 'OData',
sourceTable: 'Categories',
replicateStartDate: '2024-01-01T00:00:00Z',
replicateInterval: 180,
mergeKeys: [
{colName: 'Id', colType: 'varchar', isPrimaryKey: true},
{colName: 'WorkspaceId', colType: 'varchar', isPrimaryKey: true}
]
}
})
};
fetch('https://cloud.cdata.com/api/job/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://cloud.cdata.com/api/job/create",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'jobType' => 'Caching',
'intervalUnit' => 'Hour',
'intervalValue' => '1',
'logVerbosity' => '1',
'enabled' => 'true',
'params' => [
'timeCheckColumn' => 'ModifiedDate',
'autoTruncateStrings' => 'false',
'sourceConnection' => '36b2c04f-70f4-44a1-876a-29e42237ee63',
'sourceName' => 'OData1',
'sourceSchema' => 'OData',
'sourceTable' => 'Categories',
'replicateStartDate' => '2024-01-01T00:00:00Z',
'replicateInterval' => 180,
'mergeKeys' => [
[
'colName' => 'Id',
'colType' => 'varchar',
'isPrimaryKey' => true
],
[
'colName' => 'WorkspaceId',
'colType' => 'varchar',
'isPrimaryKey' => true
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://cloud.cdata.com/api/job/create"
payload := strings.NewReader("{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://cloud.cdata.com/api/job/create")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.cdata.com/api/job/create")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"jobType\": \"Caching\",\n \"intervalUnit\": \"Hour\",\n \"intervalValue\": \"1\",\n \"logVerbosity\": \"1\",\n \"enabled\": \"true\",\n \"params\": {\n \"timeCheckColumn\": \"ModifiedDate\",\n \"autoTruncateStrings\": \"false\",\n \"sourceConnection\": \"36b2c04f-70f4-44a1-876a-29e42237ee63\",\n \"sourceName\": \"OData1\",\n \"sourceSchema\": \"OData\",\n \"sourceTable\": \"Categories\",\n \"replicateStartDate\": \"2024-01-01T00:00:00Z\",\n \"replicateInterval\": 180,\n \"mergeKeys\": [\n {\n \"colName\": \"Id\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n },\n {\n \"colName\": \"WorkspaceId\",\n \"colType\": \"varchar\",\n \"isPrimaryKey\": true\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"jobType": "Caching",
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"name": "OData1 Categories",
"enabled": true,
"created": "2024-01-01T00:00:00Z",
"lastModified": "2024-01-01T00:00:00Z",
"nextRunTime": "2024-01-01T00:00:00Z",
"intervalUnit": "Hour",
"intervalValue": 1,
"logVerbosity": 1,
"lastRun": {
"dateTime": "0001-01-01T00:00:00Z",
"duration": 63894847975,
"status": "JOB_QUEUED",
"rowsAffected": 0,
"nextRunTime": "0001-01-01T00:00:00Z"
},
"params": {
"timeCheckColumn": "ModifiedDate",
"autoTruncateStrings": "false",
"sourceConnection": "36b2c04f-70f4-44a1-876a-29e42237ee63",
"sourceConnectionName": "OData1",
"sourceName": "OData1",
"sourceSchema": "OData",
"sourceTable": "Categories",
"replicateStartDate": "2024-01-01T00:00:00Z",
"replicateInterval": 180,
"mergeKeys": [
{
"colName": "Id",
"colType": "varchar",
"isPrimaryKey": true
},
{
"colName": "WorkspaceId",
"colType": "varchar",
"isPrimaryKey": true
}
]
}
}承認
JWT token authentication. Include the token in the Authorization header as Bearer {token}. See Authentication for more information on creating a token.
ボディ
application/json
レスポンス
200 - application/json
OK
最終更新日 2026年5月14日
このページは役に立ちましたか?