delete
delete
/api/v1/artifacts
Usage and SDK Samples
curl -X DELETE\
"https://csa-sec-1.vpc.cloudera.com:18121//api/v1/artifacts?artifactName=&scope="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ArtifactManagementApi;
import java.io.File;
import java.util.*;
public class ArtifactManagementApiExample {
public static void main(String[] args) {
ArtifactManagementApi apiInstance = new ArtifactManagementApi();
String artifactName = artifactName_example; // String |
String scope = scope_example; // String |
String username = username_example; // String |
try {
apiInstance.delete(artifactName, scope, username);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactManagementApi#delete");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ArtifactManagementApi;
public class ArtifactManagementApiExample {
public static void main(String[] args) {
ArtifactManagementApi apiInstance = new ArtifactManagementApi();
String artifactName = artifactName_example; // String |
String scope = scope_example; // String |
String username = username_example; // String |
try {
apiInstance.delete(artifactName, scope, username);
} catch (ApiException e) {
System.err.println("Exception when calling ArtifactManagementApi#delete");
e.printStackTrace();
}
}
}
String *artifactName = artifactName_example; //
String *scope = scope_example; // (optional) (default to USER)
String *username = username_example; // (optional)
ArtifactManagementApi *apiInstance = [[ArtifactManagementApi alloc] init];
// delete
[apiInstance deleteWith:artifactName
scope:scope
username:username
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var StreamingSqlEngineApi = require('streaming_sql_engine_api');
var api = new StreamingSqlEngineApi.ArtifactManagementApi()
var artifactName = artifactName_example; // {{String}}
var opts = {
'scope': scope_example, // {{String}}
'username': username_example // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.delete(artifactName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class deleteExample
{
public void main()
{
var apiInstance = new ArtifactManagementApi();
var artifactName = artifactName_example; // String |
var scope = scope_example; // String | (optional) (default to USER)
var username = username_example; // String | (optional)
try
{
// delete
apiInstance.delete(artifactName, scope, username);
}
catch (Exception e)
{
Debug.Print("Exception when calling ArtifactManagementApi.delete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiArtifactManagementApi();
$artifactName = artifactName_example; // String |
$scope = scope_example; // String |
$username = username_example; // String |
try {
$api_instance->delete($artifactName, $scope, $username);
} catch (Exception $e) {
echo 'Exception when calling ArtifactManagementApi->delete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ArtifactManagementApi;
my $api_instance = WWW::SwaggerClient::ArtifactManagementApi->new();
my $artifactName = artifactName_example; # String |
my $scope = scope_example; # String |
my $username = username_example; # String |
eval {
$api_instance->delete(artifactName => $artifactName, scope => $scope, username => $username);
};
if ($@) {
warn "Exception when calling ArtifactManagementApi->delete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.ArtifactManagementApi()
artifactName = artifactName_example # String |
scope = scope_example # String | (optional) (default to USER)
username = username_example # String | (optional)
try:
# delete
api_instance.delete(artifactName, scope=scope, username=username)
except ApiException as e:
print("Exception when calling ArtifactManagementApi->delete: %s\n" % e)
Parameters
Name | Description |
---|---|
Username |
String
|
Name | Description |
---|---|
artifactName* |
String
Required
|
scope |
String
|