/domain/{domain}/blacklists/new/{name}GET
Creates a new blacklist
/domain/{domain}/blacklists/new/{name}
Usage and SDK Samples
curl -X GET "https://TESTBLDSYS:52778/api/iKnow/v1/user/domain/{domain}/blacklists/new/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlacklistsApi;
import java.io.File;
import java.util.*;
public class BlacklistsApiExample {
public static void main(String[] args) {
BlacklistsApi apiInstance = new BlacklistsApi();
Integer domain = 56; // Integer | the ID of the domain to query
String name = name_example; // String | name of the new blacklist
try {
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BlacklistsApi#/domain/{domain}/blacklists/new/{name}GET");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BlacklistsApi;
public class BlacklistsApiExample {
public static void main(String[] args) {
BlacklistsApi apiInstance = new BlacklistsApi();
Integer domain = 56; // Integer | the ID of the domain to query
String name = name_example; // String | name of the new blacklist
try {
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BlacklistsApi#/domain/{domain}/blacklists/new/{name}GET");
e.printStackTrace();
}
}
}
Integer *domain = 56; // the ID of the domain to query
String *name = name_example; // name of the new blacklist
BlacklistsApi *apiInstance = [[BlacklistsApi alloc] init];
// Creates a new blacklist
[apiInstance /domain/{domain}/blacklists/new/{name}GETWith:domain
name:name
completionHandler: ^(BlacklistDetails output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IKnowRestApIs = require('i_know_rest_ap_is');
var api = new IKnowRestApIs.BlacklistsApi()
var domain = 56; // {Integer} the ID of the domain to query
var name = name_example; // {String} name of the new blacklist
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api./domain/{domain}/blacklists/new/{name}GET(domainname, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class /domain/{domain}/blacklists/new/{name}GETExample
{
public void main()
{
var apiInstance = new BlacklistsApi();
var domain = 56; // Integer | the ID of the domain to query
var name = name_example; // String | name of the new blacklist
try
{
// Creates a new blacklist
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BlacklistsApi./domain/{domain}/blacklists/new/{name}GET: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\BlacklistsApi();
$domain = 56; // Integer | the ID of the domain to query
$name = name_example; // String | name of the new blacklist
try {
$result = $api_instance->/domain/{domain}/blacklists/new/{name}GET($domain, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlacklistsApi;
my $api_instance = WWW::SwaggerClient::BlacklistsApi->new();
my $domain = 56; # Integer | the ID of the domain to query
my $name = name_example; # String | name of the new blacklist
eval {
my $result = $api_instance->/domain/{domain}/blacklists/new/{name}GET(domain => $domain, name => $name);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: $@\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.BlacklistsApi()
domain = 56 # Integer | the ID of the domain to query
name = name_example # String | name of the new blacklist
try:
# Creates a new blacklist
api_response = api_instance./domain/{domain}/blacklists/new/{name}get(domain, name)
pprint(api_response)
except ApiException as e:
print("Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: %s\n" % e)
Parameters
Path parameters
curl -X GET "https://TESTBLDSYS:52778/api/iKnow/v1/user/domain/{domain}/blacklists/new/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.BlacklistsApi;
import java.io.File;
import java.util.*;
public class BlacklistsApiExample {
public static void main(String[] args) {
BlacklistsApi apiInstance = new BlacklistsApi();
Integer domain = 56; // Integer | the ID of the domain to query
String name = name_example; // String | name of the new blacklist
try {
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BlacklistsApi#/domain/{domain}/blacklists/new/{name}GET");
e.printStackTrace();
}
}
}
import io.swagger.client.api.BlacklistsApi;
public class BlacklistsApiExample {
public static void main(String[] args) {
BlacklistsApi apiInstance = new BlacklistsApi();
Integer domain = 56; // Integer | the ID of the domain to query
String name = name_example; // String | name of the new blacklist
try {
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BlacklistsApi#/domain/{domain}/blacklists/new/{name}GET");
e.printStackTrace();
}
}
}
Integer *domain = 56; // the ID of the domain to query
String *name = name_example; // name of the new blacklist
BlacklistsApi *apiInstance = [[BlacklistsApi alloc] init];
// Creates a new blacklist
[apiInstance /domain/{domain}/blacklists/new/{name}GETWith:domain
name:name
completionHandler: ^(BlacklistDetails output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var IKnowRestApIs = require('i_know_rest_ap_is');
var api = new IKnowRestApIs.BlacklistsApi()
var domain = 56; // {Integer} the ID of the domain to query
var name = name_example; // {String} name of the new blacklist
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api./domain/{domain}/blacklists/new/{name}GET(domainname, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class /domain/{domain}/blacklists/new/{name}GETExample
{
public void main()
{
var apiInstance = new BlacklistsApi();
var domain = 56; // Integer | the ID of the domain to query
var name = name_example; // String | name of the new blacklist
try
{
// Creates a new blacklist
BlacklistDetails result = apiInstance./domain/{domain}/blacklists/new/{name}GET(domain, name);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling BlacklistsApi./domain/{domain}/blacklists/new/{name}GET: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\BlacklistsApi();
$domain = 56; // Integer | the ID of the domain to query
$name = name_example; // String | name of the new blacklist
try {
$result = $api_instance->/domain/{domain}/blacklists/new/{name}GET($domain, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::BlacklistsApi;
my $api_instance = WWW::SwaggerClient::BlacklistsApi->new();
my $domain = 56; # Integer | the ID of the domain to query
my $name = name_example; # String | name of the new blacklist
eval {
my $result = $api_instance->/domain/{domain}/blacklists/new/{name}GET(domain => $domain, name => $name);
print Dumper($result);
};
if ($@) {
warn "Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: $@\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.BlacklistsApi()
domain = 56 # Integer | the ID of the domain to query
name = name_example # String | name of the new blacklist
try:
# Creates a new blacklist
api_response = api_instance./domain/{domain}/blacklists/new/{name}get(domain, name)
pprint(api_response)
except ApiException as e:
print("Exception when calling BlacklistsApi->/domain/{domain}/blacklists/new/{name}GET: %s\n" % e)
Name | Description |
---|---|
domain* |
Integer
the ID of the domain to query
Required
|
name* |
String
name of the new blacklist
Required
|