cancelJob
Cancels running Import Job by execution ID
/linked-data-import/jobs/{jobExecutionId}/cancel
Usage and SDK Samples
curl -X PUT \
"http://localhost/linked-data-import/jobs/{jobExecutionId}/cancel"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportJobApi;
import java.io.File;
import java.util.*;
public class ImportJobApiExample {
public static void main(String[] args) {
// Create an instance of the API class
ImportJobApi apiInstance = new ImportJobApi();
Long jobExecutionId = 789; // Long | The ID of the Import Job Execution
try {
apiInstance.cancelJob(jobExecutionId);
} catch (ApiException e) {
System.err.println("Exception when calling ImportJobApi#cancelJob");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Long jobExecutionId = new Long(); // Long | The ID of the Import Job Execution
try {
final result = await api_instance.cancelJob(jobExecutionId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->cancelJob: $e\n');
}
import org.openapitools.client.api.ImportJobApi;
public class ImportJobApiExample {
public static void main(String[] args) {
ImportJobApi apiInstance = new ImportJobApi();
Long jobExecutionId = 789; // Long | The ID of the Import Job Execution
try {
apiInstance.cancelJob(jobExecutionId);
} catch (ApiException e) {
System.err.println("Exception when calling ImportJobApi#cancelJob");
e.printStackTrace();
}
}
}
// Create an instance of the API class
ImportJobApi *apiInstance = [[ImportJobApi alloc] init];
Long *jobExecutionId = 789; // The ID of the Import Job Execution (default to null)
[apiInstance cancelJobWith:jobExecutionId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LinkedDataImportApi = require('linked_data_import_api');
// Create an instance of the API class
var api = new LinkedDataImportApi.ImportJobApi()
var jobExecutionId = 789; // {Long} The ID of the Import Job Execution
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.cancelJob(jobExecutionId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class cancelJobExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new ImportJobApi();
var jobExecutionId = 789; // Long | The ID of the Import Job Execution (default to null)
try {
apiInstance.cancelJob(jobExecutionId);
} catch (Exception e) {
Debug.Print("Exception when calling ImportJobApi.cancelJob: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportJobApi();
$jobExecutionId = 789; // Long | The ID of the Import Job Execution
try {
$api_instance->cancelJob($jobExecutionId);
} catch (Exception $e) {
echo 'Exception when calling ImportJobApi->cancelJob: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportJobApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportJobApi->new();
my $jobExecutionId = 789; # Long | The ID of the Import Job Execution
eval {
$api_instance->cancelJob(jobExecutionId => $jobExecutionId);
};
if ($@) {
warn "Exception when calling ImportJobApi->cancelJob: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.ImportJobApi()
jobExecutionId = 789 # Long | The ID of the Import Job Execution (default to null)
try:
api_instance.cancel_job(jobExecutionId)
except ApiException as e:
print("Exception when calling ImportJobApi->cancelJob: %s\n" % e)
extern crate ImportJobApi;
pub fn main() {
let jobExecutionId = 789; // Long
let mut context = ImportJobApi::Context::default();
let result = client.cancelJob(jobExecutionId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
Path parameters
| Name | Description |
|---|---|
| jobExecutionId* |
Long
(int64)
The ID of the Import Job Execution
Required
|