cancelOperationById
Cancel bulk operation by id
/bulk-operations/{operationId}/cancel
Usage and SDK Samples
curl -X POST \
-H "Accept: application/json,text/plain" \
"http://localhost/bulk-operations/{operationId}/cancel"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
UUID operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | UUID of the Bulk Operation
try {
apiInstance.cancelOperationById(operationId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cancelOperationById");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final UUID operationId = new UUID(); // UUID | UUID of the Bulk Operation
try {
final result = await api_instance.cancelOperationById(operationId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->cancelOperationById: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
UUID operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | UUID of the Bulk Operation
try {
apiInstance.cancelOperationById(operationId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#cancelOperationById");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
UUID *operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID of the Bulk Operation (default to null)
[apiInstance cancelOperationByIdWith:operationId
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var BulkOperationsApi = require('bulk_operations_api');
// Create an instance of the API class
var api = new BulkOperationsApi.DefaultApi()
var operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {UUID} UUID of the Bulk Operation
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.cancelOperationById(operationId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class cancelOperationByIdExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | UUID of the Bulk Operation (default to null)
try {
apiInstance.cancelOperationById(operationId);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.cancelOperationById: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | UUID of the Bulk Operation
try {
$api_instance->cancelOperationById($operationId);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->cancelOperationById: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | UUID of the Bulk Operation
eval {
$api_instance->cancelOperationById(operationId => $operationId);
};
if ($@) {
warn "Exception when calling DefaultApi->cancelOperationById: $@\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.DefaultApi()
operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | UUID of the Bulk Operation (default to null)
try:
api_instance.cancel_operation_by_id(operationId)
except ApiException as e:
print("Exception when calling DefaultApi->cancelOperationById: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let operationId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID
let mut context = DefaultApi::Context::default();
let result = client.cancelOperationById(operationId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| operationId* |
UUID
(uuid)
UUID of the Bulk Operation
Required
|