Cloudera Documentation

Ranger REST API

AssetREST

configTest


/assets/assets/testConfig

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/assets/testConfig"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXResponse result = apiInstance.configTest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#configTest");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXResponse result = apiInstance.configTest(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#configTest");
            e.printStackTrace();
        }
    }
}
VXAsset *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance configTestWith:body
              completionHandler: ^(VXResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXAsset}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.configTest(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class configTestExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXAsset(); // VXAsset |  (optional) 

            try
            {
                VXResponse result = apiInstance.configTest(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.configTest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXAsset | 

try {
    $result = $api_instance->configTest($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->configTest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXAsset->new(); # VXAsset | 

eval { 
    my $result = $api_instance->configTest(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->configTest: $@\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.AssetRESTApi()
body =  # VXAsset |  (optional)

try: 
    api_response = api_instance.config_test(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->configTest: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


countXAssets


/assets/assets/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/assets/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXLong result = apiInstance.countXAssets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#countXAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXLong result = apiInstance.countXAssets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#countXAssets");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance countXAssetsWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXAssets(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXAssetsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXLong result = apiInstance.countXAssets();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.countXAssets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->countXAssets();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->countXAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->countXAssets();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->countXAssets: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.count_x_assets()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->countXAssets: %s\n" % e)

Parameters

Responses

Status: 200 -


countXResources


/assets/resources/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/resources/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXLong result = apiInstance.countXResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#countXResources");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXLong result = apiInstance.countXResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#countXResources");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance countXResourcesWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXResources(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXResourcesExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXLong result = apiInstance.countXResources();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.countXResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->countXResources();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->countXResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->countXResources();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->countXResources: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.count_x_resources()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->countXResources: %s\n" % e)

Parameters

Responses

Status: 200 -


createXAsset


/assets/assets

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/assets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXAsset result = apiInstance.createXAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#createXAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXAsset result = apiInstance.createXAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#createXAsset");
            e.printStackTrace();
        }
    }
}
VXAsset *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance createXAssetWith:body
              completionHandler: ^(VXAsset output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXAsset}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXAsset(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXAssetExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXAsset(); // VXAsset |  (optional) 

            try
            {
                VXAsset result = apiInstance.createXAsset(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.createXAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXAsset | 

try {
    $result = $api_instance->createXAsset($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->createXAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXAsset->new(); # VXAsset | 

eval { 
    my $result = $api_instance->createXAsset(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->createXAsset: $@\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.AssetRESTApi()
body =  # VXAsset |  (optional)

try: 
    api_response = api_instance.create_x_asset(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->createXAsset: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXResource


/assets/resources

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/resources"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXResource body = ; // VXResource | 
        try {
            VXResource result = apiInstance.createXResource(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#createXResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXResource body = ; // VXResource | 
        try {
            VXResource result = apiInstance.createXResource(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#createXResource");
            e.printStackTrace();
        }
    }
}
VXResource *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance createXResourceWith:body
              completionHandler: ^(VXResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXResource}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXResource(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXResourceExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXResource(); // VXResource |  (optional) 

            try
            {
                VXResource result = apiInstance.createXResource(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.createXResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXResource | 

try {
    $result = $api_instance->createXResource($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->createXResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXResource->new(); # VXResource | 

eval { 
    my $result = $api_instance->createXResource(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->createXResource: $@\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.AssetRESTApi()
body =  # VXResource |  (optional)

try: 
    api_response = api_instance.create_x_resource(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->createXResource: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteXAsset


/assets/assets/{id}

Usage and SDK Samples

curl -X DELETE\
"//assets/assets/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXAsset(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#deleteXAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXAsset(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#deleteXAsset");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance deleteXAssetWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXAsset(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXAssetExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXAsset(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.deleteXAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXAsset($id);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->deleteXAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXAsset(id => $id);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->deleteXAsset: $@\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.AssetRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_asset(id)
except ApiException as e:
    print("Exception when calling AssetRESTApi->deleteXAsset: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXResource


/assets/resources/{id}

Usage and SDK Samples

curl -X DELETE\
"//assets/resources/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXResource(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#deleteXResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXResource(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#deleteXResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance deleteXResourceWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXResource(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXResourceExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXResource(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.deleteXResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXResource($id);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->deleteXResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXResource(id => $id);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->deleteXResource: $@\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.AssetRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_resource(id)
except ApiException as e:
    print("Exception when calling AssetRESTApi->deleteXResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getAccessLogs


/assets/accessAudit

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/accessAudit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXAccessAuditList result = apiInstance.getAccessLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getAccessLogs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXAccessAuditList result = apiInstance.getAccessLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getAccessLogs");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getAccessLogsWithCompletionHandler: 
              ^(VXAccessAuditList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAccessLogs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAccessLogsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXAccessAuditList result = apiInstance.getAccessLogs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getAccessLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->getAccessLogs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getAccessLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->getAccessLogs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getAccessLogs: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.get_access_logs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getAccessLogs: %s\n" % e)

Parameters

Responses

Status: 200 -


getReportLogs


/assets/report

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/report"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXTrxLogList result = apiInstance.getReportLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getReportLogs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXTrxLogList result = apiInstance.getReportLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getReportLogs");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getReportLogsWithCompletionHandler: 
              ^(VXTrxLogList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getReportLogs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getReportLogsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXTrxLogList result = apiInstance.getReportLogs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getReportLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->getReportLogs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getReportLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->getReportLogs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getReportLogs: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.get_report_logs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getReportLogs: %s\n" % e)

Parameters

Responses

Status: 200 -


getTransactionReport


/assets/report/{transactionId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/report/{transactionId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        String transactionId = transactionId_example; // String | 
        try {
            VXTrxLogList result = apiInstance.getTransactionReport(transactionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getTransactionReport");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        String transactionId = transactionId_example; // String | 
        try {
            VXTrxLogList result = apiInstance.getTransactionReport(transactionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getTransactionReport");
            e.printStackTrace();
        }
    }
}
String *transactionId = transactionId_example; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getTransactionReportWith:transactionId
              completionHandler: ^(VXTrxLogList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var transactionId = transactionId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTransactionReport(transactionId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTransactionReportExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var transactionId = transactionId_example;  // String | 

            try
            {
                VXTrxLogList result = apiInstance.getTransactionReport(transactionId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getTransactionReport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$transactionId = transactionId_example; // String | 

try {
    $result = $api_instance->getTransactionReport($transactionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getTransactionReport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $transactionId = transactionId_example; # String | 

eval { 
    my $result = $api_instance->getTransactionReport(transactionId => $transactionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getTransactionReport: $@\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.AssetRESTApi()
transactionId = transactionId_example # String | 

try: 
    api_response = api_instance.get_transaction_report(transactionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getTransactionReport: %s\n" % e)

Parameters

Path parameters
Name Description
transactionId*
String
Required

Responses

Status: 200 -


getUgsyncAudits


/assets/ugsyncAudits

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/ugsyncAudits"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXUgsyncAuditInfoList result = apiInstance.getUgsyncAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getUgsyncAudits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXUgsyncAuditInfoList result = apiInstance.getUgsyncAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getUgsyncAudits");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getUgsyncAuditsWithCompletionHandler: 
              ^(VXUgsyncAuditInfoList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUgsyncAudits(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUgsyncAuditsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXUgsyncAuditInfoList result = apiInstance.getUgsyncAudits();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getUgsyncAudits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->getUgsyncAudits();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getUgsyncAudits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->getUgsyncAudits();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getUgsyncAudits: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.get_ugsync_audits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getUgsyncAudits: %s\n" % e)

Parameters

Responses

Status: 200 -


getUgsyncAuditsBySyncSource


/assets/ugsyncAudits/{syncSource}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/ugsyncAudits/{syncSource}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        String syncSource = syncSource_example; // String | 
        try {
            VXUgsyncAuditInfoList result = apiInstance.getUgsyncAuditsBySyncSource(syncSource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getUgsyncAuditsBySyncSource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        String syncSource = syncSource_example; // String | 
        try {
            VXUgsyncAuditInfoList result = apiInstance.getUgsyncAuditsBySyncSource(syncSource);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getUgsyncAuditsBySyncSource");
            e.printStackTrace();
        }
    }
}
String *syncSource = syncSource_example; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getUgsyncAuditsBySyncSourceWith:syncSource
              completionHandler: ^(VXUgsyncAuditInfoList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var syncSource = syncSource_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUgsyncAuditsBySyncSource(syncSource, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUgsyncAuditsBySyncSourceExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var syncSource = syncSource_example;  // String | 

            try
            {
                VXUgsyncAuditInfoList result = apiInstance.getUgsyncAuditsBySyncSource(syncSource);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getUgsyncAuditsBySyncSource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$syncSource = syncSource_example; // String | 

try {
    $result = $api_instance->getUgsyncAuditsBySyncSource($syncSource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getUgsyncAuditsBySyncSource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $syncSource = syncSource_example; # String | 

eval { 
    my $result = $api_instance->getUgsyncAuditsBySyncSource(syncSource => $syncSource);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getUgsyncAuditsBySyncSource: $@\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.AssetRESTApi()
syncSource = syncSource_example # String | 

try: 
    api_response = api_instance.get_ugsync_audits_by_sync_source(syncSource)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getUgsyncAuditsBySyncSource: %s\n" % e)

Parameters

Path parameters
Name Description
syncSource*
String
Required

Responses

Status: 200 -


getXAsset


/assets/assets/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/assets/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            VXAsset result = apiInstance.getXAsset(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getXAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            VXAsset result = apiInstance.getXAsset(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getXAsset");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getXAssetWith:id
              completionHandler: ^(VXAsset output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXAsset(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXAssetExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXAsset result = apiInstance.getXAsset(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getXAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXAsset($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getXAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXAsset(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getXAsset: $@\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.AssetRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_asset(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getXAsset: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXResource


/assets/resources/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/resources/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            VXResource result = apiInstance.getXResource(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getXResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        try {
            VXResource result = apiInstance.getXResource(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#getXResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance getXResourceWith:id
              completionHandler: ^(VXResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXResource(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXResourceExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXResource result = apiInstance.getXResource(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.getXResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXResource($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->getXResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXResource(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->getXResource: $@\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.AssetRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_resource(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->getXResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


grantPermission


/assets/resources/grant

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/resources/grant"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.grantPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#grantPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.grantPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#grantPermission");
            e.printStackTrace();
        }
    }
}
VXPolicy *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance grantPermissionWith:body
              completionHandler: ^(VXPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.grantPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class grantPermissionExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXPolicy(); // VXPolicy |  (optional) 

            try
            {
                VXPolicy result = apiInstance.grantPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.grantPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXPolicy | 

try {
    $result = $api_instance->grantPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->grantPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXPolicy->new(); # VXPolicy | 

eval { 
    my $result = $api_instance->grantPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->grantPermission: $@\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.AssetRESTApi()
body =  # VXPolicy |  (optional)

try: 
    api_response = api_instance.grant_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->grantPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


revokePermission


/assets/resources/revoke

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/resources/revoke"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.revokePermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#revokePermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.revokePermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#revokePermission");
            e.printStackTrace();
        }
    }
}
VXPolicy *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance revokePermissionWith:body
              completionHandler: ^(VXPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.revokePermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokePermissionExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXPolicy(); // VXPolicy |  (optional) 

            try
            {
                VXPolicy result = apiInstance.revokePermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.revokePermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXPolicy | 

try {
    $result = $api_instance->revokePermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->revokePermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXPolicy->new(); # VXPolicy | 

eval { 
    my $result = $api_instance->revokePermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->revokePermission: $@\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.AssetRESTApi()
body =  # VXPolicy |  (optional)

try: 
    api_response = api_instance.revoke_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->revokePermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


searchXAssets


/assets/assets

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/assets"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXAssetList result = apiInstance.searchXAssets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXAssets");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXAssetList result = apiInstance.searchXAssets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXAssets");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance searchXAssetsWithCompletionHandler: 
              ^(VXAssetList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXAssets(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXAssetsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXAssetList result = apiInstance.searchXAssets();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.searchXAssets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->searchXAssets();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->searchXAssets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->searchXAssets();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->searchXAssets: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.search_x_assets()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->searchXAssets: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXPolicyExportAudits


/assets/exportAudit

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/exportAudit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXPolicyExportAuditList result = apiInstance.searchXPolicyExportAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXPolicyExportAudits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXPolicyExportAuditList result = apiInstance.searchXPolicyExportAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXPolicyExportAudits");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance searchXPolicyExportAuditsWithCompletionHandler: 
              ^(VXPolicyExportAuditList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXPolicyExportAudits(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXPolicyExportAuditsExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXPolicyExportAuditList result = apiInstance.searchXPolicyExportAudits();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.searchXPolicyExportAudits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->searchXPolicyExportAudits();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->searchXPolicyExportAudits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->searchXPolicyExportAudits();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->searchXPolicyExportAudits: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.search_x_policy_export_audits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->searchXPolicyExportAudits: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXResources


/assets/resources

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//assets/resources"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXResourceList result = apiInstance.searchXResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXResources");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        try {
            VXResourceList result = apiInstance.searchXResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#searchXResources");
            e.printStackTrace();
        }
    }
}

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance searchXResourcesWithCompletionHandler: 
              ^(VXResourceList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXResources(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXResourcesExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();

            try
            {
                VXResourceList result = apiInstance.searchXResources();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.searchXResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();

try {
    $result = $api_instance->searchXResources();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->searchXResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();

eval { 
    my $result = $api_instance->searchXResources();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->searchXResources: $@\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.AssetRESTApi()

try: 
    api_response = api_instance.search_x_resources()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->searchXResources: %s\n" % e)

Parameters

Responses

Status: 200 -


updateXAsset


/assets/assets/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/assets/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXAsset result = apiInstance.updateXAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#updateXAsset");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        VXAsset body = ; // VXAsset | 
        try {
            VXAsset result = apiInstance.updateXAsset(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#updateXAsset");
            e.printStackTrace();
        }
    }
}
VXAsset *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance updateXAssetWith:body
              completionHandler: ^(VXAsset output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var opts = { 
  'body':  // {{VXAsset}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXAsset(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXAssetExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var body = new VXAsset(); // VXAsset |  (optional) 

            try
            {
                VXAsset result = apiInstance.updateXAsset(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.updateXAsset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$body = ; // VXAsset | 

try {
    $result = $api_instance->updateXAsset($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->updateXAsset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXAsset->new(); # VXAsset | 

eval { 
    my $result = $api_instance->updateXAsset(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->updateXAsset: $@\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.AssetRESTApi()
body =  # VXAsset |  (optional)

try: 
    api_response = api_instance.update_x_asset(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->updateXAsset: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateXResource


/assets/resources/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//assets/resources/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AssetRESTApi;

import java.io.File;
import java.util.*;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        VXResource body = ; // VXResource | 
        try {
            VXResource result = apiInstance.updateXResource(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#updateXResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AssetRESTApi;

public class AssetRESTApiExample {

    public static void main(String[] args) {
        AssetRESTApi apiInstance = new AssetRESTApi();
        Long id = 789; // Long | 
        VXResource body = ; // VXResource | 
        try {
            VXResource result = apiInstance.updateXResource(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AssetRESTApi#updateXResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
VXResource *body = ; //  (optional)

AssetRESTApi *apiInstance = [[AssetRESTApi alloc] init];

[apiInstance updateXResourceWith:id
    body:body
              completionHandler: ^(VXResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AssetRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXResource}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXResource(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXResourceExample
    {
        public void main()
        {

            var apiInstance = new AssetRESTApi();
            var id = 789;  // Long | 
            var body = new VXResource(); // VXResource |  (optional) 

            try
            {
                VXResource result = apiInstance.updateXResource(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AssetRESTApi.updateXResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAssetRESTApi();
$id = 789; // Long | 
$body = ; // VXResource | 

try {
    $result = $api_instance->updateXResource($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AssetRESTApi->updateXResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AssetRESTApi;

my $api_instance = WWW::SwaggerClient::AssetRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXResource->new(); # VXResource | 

eval { 
    my $result = $api_instance->updateXResource(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AssetRESTApi->updateXResource: $@\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.AssetRESTApi()
id = 789 # Long | 
body =  # VXResource |  (optional)

try: 
    api_response = api_instance.update_x_resource(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AssetRESTApi->updateXResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


AuditMetricsREST

createAuditMetrics


/audit/metrics

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,application/xml"\
"//audit/metrics"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        RangerAuditMetrics body = ; // RangerAuditMetrics | 
        try {
            RangerAuditMetrics result = apiInstance.createAuditMetrics(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#createAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        RangerAuditMetrics body = ; // RangerAuditMetrics | 
        try {
            RangerAuditMetrics result = apiInstance.createAuditMetrics(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#createAuditMetrics");
            e.printStackTrace();
        }
    }
}
RangerAuditMetrics *body = ; //  (optional)

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance createAuditMetricsWith:body
              completionHandler: ^(RangerAuditMetrics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var opts = { 
  'body':  // {{RangerAuditMetrics}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createAuditMetrics(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();
            var body = new RangerAuditMetrics(); // RangerAuditMetrics |  (optional) 

            try
            {
                RangerAuditMetrics result = apiInstance.createAuditMetrics(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.createAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();
$body = ; // RangerAuditMetrics | 

try {
    $result = $api_instance->createAuditMetrics($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->createAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerAuditMetrics->new(); # RangerAuditMetrics | 

eval { 
    my $result = $api_instance->createAuditMetrics(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->createAuditMetrics: $@\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.AuditMetricsRESTApi()
body =  # RangerAuditMetrics |  (optional)

try: 
    api_response = api_instance.create_audit_metrics(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->createAuditMetrics: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteRangerAuditMetrics


/audit/metrics

Usage and SDK Samples

curl -X DELETE\
"//audit/metrics?retentionPeriod=&serviceName=&serviceType="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Integer retentionPeriod = 56; // Integer | 
        String serviceName = serviceName_example; // String | 
        String serviceType = serviceType_example; // String | 
        try {
            apiInstance.deleteRangerAuditMetrics(retentionPeriod, serviceName, serviceType);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#deleteRangerAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Integer retentionPeriod = 56; // Integer | 
        String serviceName = serviceName_example; // String | 
        String serviceType = serviceType_example; // String | 
        try {
            apiInstance.deleteRangerAuditMetrics(retentionPeriod, serviceName, serviceType);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#deleteRangerAuditMetrics");
            e.printStackTrace();
        }
    }
}
Integer *retentionPeriod = 56; //  (optional) (default to 7)
String *serviceName = serviceName_example; //  (optional)
String *serviceType = serviceType_example; //  (optional)

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance deleteRangerAuditMetricsWith:retentionPeriod
    serviceName:serviceName
    serviceType:serviceType
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var opts = { 
  'retentionPeriod': 56, // {{Integer}} 
  'serviceName': serviceName_example, // {{String}} 
  'serviceType': serviceType_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRangerAuditMetrics(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRangerAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();
            var retentionPeriod = 56;  // Integer |  (optional)  (default to 7)
            var serviceName = serviceName_example;  // String |  (optional) 
            var serviceType = serviceType_example;  // String |  (optional) 

            try
            {
                apiInstance.deleteRangerAuditMetrics(retentionPeriod, serviceName, serviceType);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.deleteRangerAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();
$retentionPeriod = 56; // Integer | 
$serviceName = serviceName_example; // String | 
$serviceType = serviceType_example; // String | 

try {
    $api_instance->deleteRangerAuditMetrics($retentionPeriod, $serviceName, $serviceType);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->deleteRangerAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();
my $retentionPeriod = 56; # Integer | 
my $serviceName = serviceName_example; # String | 
my $serviceType = serviceType_example; # String | 

eval { 
    $api_instance->deleteRangerAuditMetrics(retentionPeriod => $retentionPeriod, serviceName => $serviceName, serviceType => $serviceType);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->deleteRangerAuditMetrics: $@\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.AuditMetricsRESTApi()
retentionPeriod = 56 # Integer |  (optional) (default to 7)
serviceName = serviceName_example # String |  (optional)
serviceType = serviceType_example # String |  (optional)

try: 
    api_instance.delete_ranger_audit_metrics(retentionPeriod=retentionPeriod, serviceName=serviceName, serviceType=serviceType)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->deleteRangerAuditMetrics: %s\n" % e)

Parameters

Query parameters
Name Description
retentionPeriod
Integer (int32)
serviceName
String
serviceType
String

Responses

Status: 204 - Success


getAllLatestRangerAuditMetrics


/audit/metrics

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//audit/metrics"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        try {
            RangerAuditMetricsList result = apiInstance.getAllLatestRangerAuditMetrics();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getAllLatestRangerAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        try {
            RangerAuditMetricsList result = apiInstance.getAllLatestRangerAuditMetrics();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getAllLatestRangerAuditMetrics");
            e.printStackTrace();
        }
    }
}

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance getAllLatestRangerAuditMetricsWithCompletionHandler: 
              ^(RangerAuditMetricsList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllLatestRangerAuditMetrics(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllLatestRangerAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();

            try
            {
                RangerAuditMetricsList result = apiInstance.getAllLatestRangerAuditMetrics();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.getAllLatestRangerAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();

try {
    $result = $api_instance->getAllLatestRangerAuditMetrics();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->getAllLatestRangerAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();

eval { 
    my $result = $api_instance->getAllLatestRangerAuditMetrics();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->getAllLatestRangerAuditMetrics: $@\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.AuditMetricsRESTApi()

try: 
    api_response = api_instance.get_all_latest_ranger_audit_metrics()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->getAllLatestRangerAuditMetrics: %s\n" % e)

Parameters

Responses

Status: 200 -


getAuditMetrics


/audit/metrics/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//audit/metrics/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Long id = 789; // Long | 
        try {
            RangerAuditMetrics result = apiInstance.getAuditMetrics(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Long id = 789; // Long | 
        try {
            RangerAuditMetrics result = apiInstance.getAuditMetrics(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getAuditMetrics");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance getAuditMetricsWith:id
              completionHandler: ^(RangerAuditMetrics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuditMetrics(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerAuditMetrics result = apiInstance.getAuditMetrics(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.getAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getAuditMetrics($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->getAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getAuditMetrics(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->getAuditMetrics: $@\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.AuditMetricsRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_audit_metrics(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->getAuditMetrics: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getDailyAuditMetrics


/audit/dailymetrics

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//audit/dailymetrics"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        try {
            RangerAuditMetricsListByHours result = apiInstance.getDailyAuditMetrics();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getDailyAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        try {
            RangerAuditMetricsListByHours result = apiInstance.getDailyAuditMetrics();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getDailyAuditMetrics");
            e.printStackTrace();
        }
    }
}

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance getDailyAuditMetricsWithCompletionHandler: 
              ^(RangerAuditMetricsListByHours output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDailyAuditMetrics(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getDailyAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();

            try
            {
                RangerAuditMetricsListByHours result = apiInstance.getDailyAuditMetrics();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.getDailyAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();

try {
    $result = $api_instance->getDailyAuditMetrics();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->getDailyAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();

eval { 
    my $result = $api_instance->getDailyAuditMetrics();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->getDailyAuditMetrics: $@\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.AuditMetricsRESTApi()

try: 
    api_response = api_instance.get_daily_audit_metrics()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->getDailyAuditMetrics: %s\n" % e)

Parameters

Responses

Status: 200 -


getDaysAuditMetrics


/audit/daysmetrics

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//audit/daysmetrics?olderThanInDays="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Integer olderThanInDays = 56; // Integer | 
        try {
            RangerAuditMetricsListByDays result = apiInstance.getDaysAuditMetrics(olderThanInDays);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getDaysAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        Integer olderThanInDays = 56; // Integer | 
        try {
            RangerAuditMetricsListByDays result = apiInstance.getDaysAuditMetrics(olderThanInDays);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getDaysAuditMetrics");
            e.printStackTrace();
        }
    }
}
Integer *olderThanInDays = 56; //  (optional) (default to 7)

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance getDaysAuditMetricsWith:olderThanInDays
              completionHandler: ^(RangerAuditMetricsListByDays output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var opts = { 
  'olderThanInDays': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getDaysAuditMetrics(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getDaysAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();
            var olderThanInDays = 56;  // Integer |  (optional)  (default to 7)

            try
            {
                RangerAuditMetricsListByDays result = apiInstance.getDaysAuditMetrics(olderThanInDays);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.getDaysAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();
$olderThanInDays = 56; // Integer | 

try {
    $result = $api_instance->getDaysAuditMetrics($olderThanInDays);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->getDaysAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();
my $olderThanInDays = 56; # Integer | 

eval { 
    my $result = $api_instance->getDaysAuditMetrics(olderThanInDays => $olderThanInDays);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->getDaysAuditMetrics: $@\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.AuditMetricsRESTApi()
olderThanInDays = 56 # Integer |  (optional) (default to 7)

try: 
    api_response = api_instance.get_days_audit_metrics(olderThanInDays=olderThanInDays)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->getDaysAuditMetrics: %s\n" % e)

Parameters

Query parameters
Name Description
olderThanInDays
Integer (int32)

Responses

Status: 200 -


getLatestAuditMetrics


/audit/metrics/servicetype/{servicetype}/servicename/{servicename}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//audit/metrics/servicetype/{servicetype}/servicename/{servicename}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuditMetricsRESTApi;

import java.io.File;
import java.util.*;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        String servicename = servicename_example; // String | 
        String servicetype = servicetype_example; // String | 
        try {
            RangerAuditMetrics result = apiInstance.getLatestAuditMetrics(servicename, servicetype);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getLatestAuditMetrics");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.AuditMetricsRESTApi;

public class AuditMetricsRESTApiExample {

    public static void main(String[] args) {
        AuditMetricsRESTApi apiInstance = new AuditMetricsRESTApi();
        String servicename = servicename_example; // String | 
        String servicetype = servicetype_example; // String | 
        try {
            RangerAuditMetrics result = apiInstance.getLatestAuditMetrics(servicename, servicetype);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuditMetricsRESTApi#getLatestAuditMetrics");
            e.printStackTrace();
        }
    }
}
String *servicename = servicename_example; // 
String *servicetype = servicetype_example; // 

AuditMetricsRESTApi *apiInstance = [[AuditMetricsRESTApi alloc] init];

[apiInstance getLatestAuditMetricsWith:servicename
    servicetype:servicetype
              completionHandler: ^(RangerAuditMetrics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.AuditMetricsRESTApi()
var servicename = servicename_example; // {{String}} 
var servicetype = servicetype_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getLatestAuditMetrics(servicename, servicetype, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getLatestAuditMetricsExample
    {
        public void main()
        {

            var apiInstance = new AuditMetricsRESTApi();
            var servicename = servicename_example;  // String | 
            var servicetype = servicetype_example;  // String | 

            try
            {
                RangerAuditMetrics result = apiInstance.getLatestAuditMetrics(servicename, servicetype);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling AuditMetricsRESTApi.getLatestAuditMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiAuditMetricsRESTApi();
$servicename = servicename_example; // String | 
$servicetype = servicetype_example; // String | 

try {
    $result = $api_instance->getLatestAuditMetrics($servicename, $servicetype);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuditMetricsRESTApi->getLatestAuditMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuditMetricsRESTApi;

my $api_instance = WWW::SwaggerClient::AuditMetricsRESTApi->new();
my $servicename = servicename_example; # String | 
my $servicetype = servicetype_example; # String | 

eval { 
    my $result = $api_instance->getLatestAuditMetrics(servicename => $servicename, servicetype => $servicetype);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuditMetricsRESTApi->getLatestAuditMetrics: $@\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.AuditMetricsRESTApi()
servicename = servicename_example # String | 
servicetype = servicetype_example # String | 

try: 
    api_response = api_instance.get_latest_audit_metrics(servicename, servicetype)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuditMetricsRESTApi->getLatestAuditMetrics: %s\n" % e)

Parameters

Path parameters
Name Description
servicename*
String
Required
servicetype*
String
Required

Responses

Status: 200 -


MetricsREST

getMetricsJson


/metrics/json

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//metrics/json"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetricsRESTApi;

import java.io.File;
import java.util.*;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            map['String', Object] result = apiInstance.getMetricsJson();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getMetricsJson");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MetricsRESTApi;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            map['String', Object] result = apiInstance.getMetricsJson();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getMetricsJson");
            e.printStackTrace();
        }
    }
}

MetricsRESTApi *apiInstance = [[MetricsRESTApi alloc] init];

[apiInstance getMetricsJsonWithCompletionHandler: 
              ^(map['String', Object] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.MetricsRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMetricsJson(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMetricsJsonExample
    {
        public void main()
        {

            var apiInstance = new MetricsRESTApi();

            try
            {
                map['String', Object] result = apiInstance.getMetricsJson();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MetricsRESTApi.getMetricsJson: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMetricsRESTApi();

try {
    $result = $api_instance->getMetricsJson();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MetricsRESTApi->getMetricsJson: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetricsRESTApi;

my $api_instance = WWW::SwaggerClient::MetricsRESTApi->new();

eval { 
    my $result = $api_instance->getMetricsJson();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MetricsRESTApi->getMetricsJson: $@\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.MetricsRESTApi()

try: 
    api_response = api_instance.get_metrics_json()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsRESTApi->getMetricsJson: %s\n" % e)

Parameters

Responses

Status: 200 -


getMetricsPrometheus


/metrics/prometheus

Usage and SDK Samples

curl -X GET\
-H "Accept: text/plain"\
"//metrics/prometheus"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetricsRESTApi;

import java.io.File;
import java.util.*;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            'String' result = apiInstance.getMetricsPrometheus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getMetricsPrometheus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MetricsRESTApi;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            'String' result = apiInstance.getMetricsPrometheus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getMetricsPrometheus");
            e.printStackTrace();
        }
    }
}

MetricsRESTApi *apiInstance = [[MetricsRESTApi alloc] init];

[apiInstance getMetricsPrometheusWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.MetricsRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMetricsPrometheus(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMetricsPrometheusExample
    {
        public void main()
        {

            var apiInstance = new MetricsRESTApi();

            try
            {
                'String' result = apiInstance.getMetricsPrometheus();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MetricsRESTApi.getMetricsPrometheus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMetricsRESTApi();

try {
    $result = $api_instance->getMetricsPrometheus();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MetricsRESTApi->getMetricsPrometheus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetricsRESTApi;

my $api_instance = WWW::SwaggerClient::MetricsRESTApi->new();

eval { 
    my $result = $api_instance->getMetricsPrometheus();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MetricsRESTApi->getMetricsPrometheus: $@\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.MetricsRESTApi()

try: 
    api_response = api_instance.get_metrics_prometheus()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsRESTApi->getMetricsPrometheus: %s\n" % e)

Parameters

Responses

Status: 200 -


getStatus


/metrics/status

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//metrics/status"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MetricsRESTApi;

import java.io.File;
import java.util.*;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            RangerMetrics result = apiInstance.getStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MetricsRESTApi;

public class MetricsRESTApiExample {

    public static void main(String[] args) {
        MetricsRESTApi apiInstance = new MetricsRESTApi();
        try {
            RangerMetrics result = apiInstance.getStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MetricsRESTApi#getStatus");
            e.printStackTrace();
        }
    }
}

MetricsRESTApi *apiInstance = [[MetricsRESTApi alloc] init];

[apiInstance getStatusWithCompletionHandler: 
              ^(RangerMetrics output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.MetricsRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getStatus(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getStatusExample
    {
        public void main()
        {

            var apiInstance = new MetricsRESTApi();

            try
            {
                RangerMetrics result = apiInstance.getStatus();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MetricsRESTApi.getStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiMetricsRESTApi();

try {
    $result = $api_instance->getStatus();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MetricsRESTApi->getStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MetricsRESTApi;

my $api_instance = WWW::SwaggerClient::MetricsRESTApi->new();

eval { 
    my $result = $api_instance->getStatus();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MetricsRESTApi->getStatus: $@\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.MetricsRESTApi()

try: 
    api_response = api_instance.get_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsRESTApi->getStatus: %s\n" % e)

Parameters

Responses

Status: 200 -


PublicAPIs

countPolicies2


/public/api/policy/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/policy/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXLong result = apiInstance.countPolicies2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#countPolicies2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXLong result = apiInstance.countPolicies2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#countPolicies2");
            e.printStackTrace();
        }
    }
}

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance countPolicies2WithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countPolicies2(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countPolicies2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();

            try
            {
                VXLong result = apiInstance.countPolicies2();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.countPolicies2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();

try {
    $result = $api_instance->countPolicies2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->countPolicies2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();

eval { 
    my $result = $api_instance->countPolicies2();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->countPolicies2: $@\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.PublicAPIsApi()

try: 
    api_response = api_instance.count_policies2()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->countPolicies2: %s\n" % e)

Parameters

Responses

Status: 200 -


countRepositories


/public/api/repository/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/repository/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXLong result = apiInstance.countRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#countRepositories");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXLong result = apiInstance.countRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#countRepositories");
            e.printStackTrace();
        }
    }
}

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance countRepositoriesWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countRepositories(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countRepositoriesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();

            try
            {
                VXLong result = apiInstance.countRepositories();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.countRepositories: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();

try {
    $result = $api_instance->countRepositories();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->countRepositories: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();

eval { 
    my $result = $api_instance->countRepositories();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->countRepositories: $@\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.PublicAPIsApi()

try: 
    api_response = api_instance.count_repositories()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->countRepositories: %s\n" % e)

Parameters

Responses

Status: 200 -


createPolicy2


/public/api/policy

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/api/policy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.createPolicy2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#createPolicy2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.createPolicy2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#createPolicy2");
            e.printStackTrace();
        }
    }
}
VXPolicy *body = ; //  (optional)

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance createPolicy2With:body
              completionHandler: ^(VXPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var opts = { 
  'body':  // {{VXPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createPolicy2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createPolicy2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var body = new VXPolicy(); // VXPolicy |  (optional) 

            try
            {
                VXPolicy result = apiInstance.createPolicy2(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.createPolicy2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$body = ; // VXPolicy | 

try {
    $result = $api_instance->createPolicy2($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->createPolicy2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $body = WWW::SwaggerClient::Object::VXPolicy->new(); # VXPolicy | 

eval { 
    my $result = $api_instance->createPolicy2(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->createPolicy2: $@\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.PublicAPIsApi()
body =  # VXPolicy |  (optional)

try: 
    api_response = api_instance.create_policy2(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->createPolicy2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createRepository


/public/api/repository

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/api/repository"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        VXRepository body = ; // VXRepository | 
        try {
            VXRepository result = apiInstance.createRepository(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#createRepository");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        VXRepository body = ; // VXRepository | 
        try {
            VXRepository result = apiInstance.createRepository(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#createRepository");
            e.printStackTrace();
        }
    }
}
VXRepository *body = ; //  (optional)

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance createRepositoryWith:body
              completionHandler: ^(VXRepository output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var opts = { 
  'body':  // {{VXRepository}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createRepository(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createRepositoryExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var body = new VXRepository(); // VXRepository |  (optional) 

            try
            {
                VXRepository result = apiInstance.createRepository(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.createRepository: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$body = ; // VXRepository | 

try {
    $result = $api_instance->createRepository($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->createRepository: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $body = WWW::SwaggerClient::Object::VXRepository->new(); # VXRepository | 

eval { 
    my $result = $api_instance->createRepository(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->createRepository: $@\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.PublicAPIsApi()
body =  # VXRepository |  (optional)

try: 
    api_response = api_instance.create_repository(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->createRepository: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deletePolicy2


/public/api/policy/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#deletePolicy2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#deletePolicy2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance deletePolicy2With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicy2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicy2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deletePolicy2(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.deletePolicy2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 

try {
    $api_instance->deletePolicy2($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->deletePolicy2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deletePolicy2(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->deletePolicy2: $@\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.PublicAPIsApi()
id = 789 # Long | 

try: 
    api_instance.delete_policy2(id)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->deletePolicy2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteRepository


/public/api/repository/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/api/repository/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRepository(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#deleteRepository");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRepository(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#deleteRepository");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance deleteRepositoryWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRepository(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRepositoryExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteRepository(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.deleteRepository: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 

try {
    $api_instance->deleteRepository($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->deleteRepository: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteRepository(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->deleteRepository: $@\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.PublicAPIsApi()
id = 789 # Long | 

try: 
    api_instance.delete_repository(id)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->deleteRepository: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getPolicy2


/public/api/policy/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            VXPolicy result = apiInstance.getPolicy2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#getPolicy2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            VXPolicy result = apiInstance.getPolicy2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#getPolicy2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance getPolicy2With:id
              completionHandler: ^(VXPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicy2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicy2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 

            try
            {
                VXPolicy result = apiInstance.getPolicy2(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.getPolicy2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getPolicy2($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->getPolicy2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getPolicy2(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->getPolicy2: $@\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.PublicAPIsApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_policy2(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->getPolicy2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getRepository


/public/api/repository/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/repository/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            VXRepository result = apiInstance.getRepository(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#getRepository");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        try {
            VXRepository result = apiInstance.getRepository(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#getRepository");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance getRepositoryWith:id
              completionHandler: ^(VXRepository output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRepository(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRepositoryExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 

            try
            {
                VXRepository result = apiInstance.getRepository(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.getRepository: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getRepository($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->getRepository: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getRepository(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->getRepository: $@\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.PublicAPIsApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_repository(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->getRepository: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


searchPolicies


/public/api/policy

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/policy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXPolicyList result = apiInstance.searchPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#searchPolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXPolicyList result = apiInstance.searchPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#searchPolicies");
            e.printStackTrace();
        }
    }
}

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance searchPoliciesWithCompletionHandler: 
              ^(VXPolicyList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchPolicies(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchPoliciesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();

            try
            {
                VXPolicyList result = apiInstance.searchPolicies();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.searchPolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();

try {
    $result = $api_instance->searchPolicies();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->searchPolicies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();

eval { 
    my $result = $api_instance->searchPolicies();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->searchPolicies: $@\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.PublicAPIsApi()

try: 
    api_response = api_instance.search_policies()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->searchPolicies: %s\n" % e)

Parameters

Responses

Status: 200 -


searchRepositories


/public/api/repository

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/api/repository"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXRepositoryList result = apiInstance.searchRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#searchRepositories");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        try {
            VXRepositoryList result = apiInstance.searchRepositories();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#searchRepositories");
            e.printStackTrace();
        }
    }
}

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance searchRepositoriesWithCompletionHandler: 
              ^(VXRepositoryList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchRepositories(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchRepositoriesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();

            try
            {
                VXRepositoryList result = apiInstance.searchRepositories();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.searchRepositories: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();

try {
    $result = $api_instance->searchRepositories();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->searchRepositories: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();

eval { 
    my $result = $api_instance->searchRepositories();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->searchRepositories: $@\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.PublicAPIsApi()

try: 
    api_response = api_instance.search_repositories()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->searchRepositories: %s\n" % e)

Parameters

Responses

Status: 200 -


updatePolicy2


/public/api/policy/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.updatePolicy2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#updatePolicy2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        VXPolicy body = ; // VXPolicy | 
        try {
            VXPolicy result = apiInstance.updatePolicy2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#updatePolicy2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
VXPolicy *body = ; //  (optional)

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance updatePolicy2With:id
    body:body
              completionHandler: ^(VXPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updatePolicy2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatePolicy2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 
            var body = new VXPolicy(); // VXPolicy |  (optional) 

            try
            {
                VXPolicy result = apiInstance.updatePolicy2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.updatePolicy2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 
$body = ; // VXPolicy | 

try {
    $result = $api_instance->updatePolicy2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->updatePolicy2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXPolicy->new(); # VXPolicy | 

eval { 
    my $result = $api_instance->updatePolicy2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->updatePolicy2: $@\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.PublicAPIsApi()
id = 789 # Long | 
body =  # VXPolicy |  (optional)

try: 
    api_response = api_instance.update_policy2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->updatePolicy2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateRepository


/public/api/repository/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/api/repository/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsApi;

import java.io.File;
import java.util.*;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        VXRepository body = ; // VXRepository | 
        try {
            VXRepository result = apiInstance.updateRepository(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#updateRepository");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsApi;

public class PublicAPIsApiExample {

    public static void main(String[] args) {
        PublicAPIsApi apiInstance = new PublicAPIsApi();
        Long id = 789; // Long | 
        VXRepository body = ; // VXRepository | 
        try {
            VXRepository result = apiInstance.updateRepository(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsApi#updateRepository");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
VXRepository *body = ; //  (optional)

PublicAPIsApi *apiInstance = [[PublicAPIsApi alloc] init];

[apiInstance updateRepositoryWith:id
    body:body
              completionHandler: ^(VXRepository output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXRepository}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateRepository(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateRepositoryExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsApi();
            var id = 789;  // Long | 
            var body = new VXRepository(); // VXRepository |  (optional) 

            try
            {
                VXRepository result = apiInstance.updateRepository(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsApi.updateRepository: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsApi();
$id = 789; // Long | 
$body = ; // VXRepository | 

try {
    $result = $api_instance->updateRepository($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsApi->updateRepository: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsApi;

my $api_instance = WWW::SwaggerClient::PublicAPIsApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXRepository->new(); # VXRepository | 

eval { 
    my $result = $api_instance->updateRepository(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsApi->updateRepository: $@\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.PublicAPIsApi()
id = 789 # Long | 
body =  # VXRepository |  (optional)

try: 
    api_response = api_instance.update_repository(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsApi->updateRepository: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


PublicAPIsv2

addUsersAndGroups


/public/v2/api/roles/{id}/addUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/{id}/addUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        Boolean body = ; // Boolean | 
        try {
            RangerRole result = apiInstance.addUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#addUsersAndGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        Boolean body = ; // Boolean | 
        try {
            RangerRole result = apiInstance.addUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#addUsersAndGroups");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
Boolean *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance addUsersAndGroupsWith:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addUsersAndGroups(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addUsersAndGroupsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new Boolean(); // Boolean |  (optional) 

            try
            {
                RangerRole result = apiInstance.addUsersAndGroups(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.addUsersAndGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // Boolean | 

try {
    $result = $api_instance->addUsersAndGroups($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->addUsersAndGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::Boolean->new(); # Boolean | 

eval { 
    my $result = $api_instance->addUsersAndGroups(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->addUsersAndGroups: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # Boolean |  (optional)

try: 
    api_response = api_instance.add_users_and_groups(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->addUsersAndGroups: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


applyPolicy2


/public/v2/api/policy/apply

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/policy/apply"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.applyPolicy2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#applyPolicy2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.applyPolicy2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#applyPolicy2");
            e.printStackTrace();
        }
    }
}
RangerPolicy *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance applyPolicy2With:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.applyPolicy2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class applyPolicy2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.applyPolicy2(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.applyPolicy2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->applyPolicy2($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->applyPolicy2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->applyPolicy2(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->applyPolicy2: $@\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.PublicAPIsv2Api()
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.apply_policy2(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->applyPolicy2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createPolicy3


/public/v2/api/policy

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/policy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.createPolicy3(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createPolicy3");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.createPolicy3(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createPolicy3");
            e.printStackTrace();
        }
    }
}
RangerPolicy *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance createPolicy3With:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createPolicy3(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createPolicy3Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.createPolicy3(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.createPolicy3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->createPolicy3($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->createPolicy3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->createPolicy3(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->createPolicy3: $@\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.PublicAPIsv2Api()
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.create_policy3(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->createPolicy3: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createRole


/public/v2/api/roles

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles?createNonExistUserGroup=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.createRole(body, createNonExistUserGroup, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.createRole(body, createNonExistUserGroup, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createRole");
            e.printStackTrace();
        }
    }
}
RangerRole *body = ; //  (optional)
Boolean *createNonExistUserGroup = true; //  (optional) (default to false)
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance createRoleWith:body
    createNonExistUserGroup:createNonExistUserGroup
    serviceName:serviceName
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerRole}} 
  'createNonExistUserGroup': true // {{Boolean}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createRole(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createRoleExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerRole(); // RangerRole |  (optional) 
            var createNonExistUserGroup = true;  // Boolean |  (optional)  (default to false)
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                RangerRole result = apiInstance.createRole(body, createNonExistUserGroup, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.createRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerRole | 
$createNonExistUserGroup = true; // Boolean | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->createRole($body, $createNonExistUserGroup, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->createRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerRole->new(); # RangerRole | 
my $createNonExistUserGroup = true; # Boolean | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->createRole(body => $body, createNonExistUserGroup => $createNonExistUserGroup, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->createRole: $@\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.PublicAPIsv2Api()
body =  # RangerRole |  (optional)
createNonExistUserGroup = true # Boolean |  (optional) (default to false)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.create_role(body=body, createNonExistUserGroup=createNonExistUserGroup, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->createRole: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
createNonExistUserGroup
Boolean
serviceName
String

Responses

Status: 201 -


createSecurityZone


/public/v2/api/zones

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/zones"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.createSecurityZone(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createSecurityZone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.createSecurityZone(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createSecurityZone");
            e.printStackTrace();
        }
    }
}
RangerSecurityZone *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance createSecurityZoneWith:body
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerSecurityZone}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createSecurityZone(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createSecurityZoneExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerSecurityZone(); // RangerSecurityZone |  (optional) 

            try
            {
                RangerSecurityZone result = apiInstance.createSecurityZone(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.createSecurityZone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerSecurityZone | 

try {
    $result = $api_instance->createSecurityZone($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->createSecurityZone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerSecurityZone->new(); # RangerSecurityZone | 

eval { 
    my $result = $api_instance->createSecurityZone(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->createSecurityZone: $@\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.PublicAPIsv2Api()
body =  # RangerSecurityZone |  (optional)

try: 
    api_response = api_instance.create_security_zone(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->createSecurityZone: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createService2


/public/v2/api/service

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/service"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.createService2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createService2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.createService2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createService2");
            e.printStackTrace();
        }
    }
}
RangerService *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance createService2With:body
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createService2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createService2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                RangerService result = apiInstance.createService2(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.createService2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerService | 

try {
    $result = $api_instance->createService2($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->createService2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->createService2(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->createService2: $@\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.PublicAPIsv2Api()
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.create_service2(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->createService2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createServiceDef2


/public/v2/api/servicedef

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/servicedef"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.createServiceDef2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createServiceDef2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.createServiceDef2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#createServiceDef2");
            e.printStackTrace();
        }
    }
}
RangerServiceDef *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance createServiceDef2With:body
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'body':  // {{RangerServiceDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createServiceDef2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createServiceDef2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var body = new RangerServiceDef(); // RangerServiceDef |  (optional) 

            try
            {
                RangerServiceDef result = apiInstance.createServiceDef2(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.createServiceDef2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$body = ; // RangerServiceDef | 

try {
    $result = $api_instance->createServiceDef2($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->createServiceDef2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $body = WWW::SwaggerClient::Object::RangerServiceDef->new(); # RangerServiceDef | 

eval { 
    my $result = $api_instance->createServiceDef2(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->createServiceDef2: $@\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.PublicAPIsv2Api()
body =  # RangerServiceDef |  (optional)

try: 
    api_response = api_instance.create_service_def2(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->createServiceDef2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deletePolicy3


/public/v2/api/policy/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy3(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicy3");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy3(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicy3");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deletePolicy3With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicy3(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicy3Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deletePolicy3(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deletePolicy3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $api_instance->deletePolicy3($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deletePolicy3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deletePolicy3(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deletePolicy3: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_instance.delete_policy3(id)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deletePolicy3: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deletePolicyByGUIDAndServiceNameAndZoneName2


/public/v2/api/policy/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/policy/guid/{guid}?serviceName=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName2(guid, serviceName, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyByGUIDAndServiceNameAndZoneName2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName2(guid, serviceName, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyByGUIDAndServiceNameAndZoneName2");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
String *serviceName = serviceName_example; //  (optional)
String *zoneName = zoneName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deletePolicyByGUIDAndServiceNameAndZoneName2With:guid
    serviceName:serviceName
    zoneName:zoneName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var guid = guid_example; // {{String}} 
var opts = { 
  'serviceName': serviceName_example, // {{String}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicyByGUIDAndServiceNameAndZoneName2(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyByGUIDAndServiceNameAndZoneName2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var guid = guid_example;  // String | 
            var serviceName = serviceName_example;  // String |  (optional) 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName2(guid, serviceName, zoneName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deletePolicyByGUIDAndServiceNameAndZoneName2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$guid = guid_example; // String | 
$serviceName = serviceName_example; // String | 
$zoneName = zoneName_example; // String | 

try {
    $api_instance->deletePolicyByGUIDAndServiceNameAndZoneName2($guid, $serviceName, $zoneName);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deletePolicyByGUIDAndServiceNameAndZoneName2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $guid = guid_example; # String | 
my $serviceName = serviceName_example; # String | 
my $zoneName = zoneName_example; # String | 

eval { 
    $api_instance->deletePolicyByGUIDAndServiceNameAndZoneName2(guid => $guid, serviceName => $serviceName, zoneName => $zoneName);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deletePolicyByGUIDAndServiceNameAndZoneName2: $@\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.PublicAPIsv2Api()
guid = guid_example # String | 
serviceName = serviceName_example # String |  (optional)
zoneName = zoneName_example # String |  (optional)

try: 
    api_instance.delete_policy_by_guid_and_service_name_and_zone_name2(guid, serviceName=serviceName, zoneName=zoneName)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deletePolicyByGUIDAndServiceNameAndZoneName2: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Query parameters
Name Description
serviceName
String
zoneName
String

Responses

Status: 204 - Success


deletePolicyByName


/public/v2/api/policy

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/policy?policyname=&servicename=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByName(policyname, servicename, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByName(policyname, servicename, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyByName");
            e.printStackTrace();
        }
    }
}
String *policyname = policyname_example; //  (optional)
String *servicename = servicename_example; //  (optional)
String *zoneName = zoneName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deletePolicyByNameWith:policyname
    servicename:servicename
    zoneName:zoneName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'policyname': policyname_example, // {{String}} 
  'servicename': servicename_example, // {{String}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicyByName(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var policyname = policyname_example;  // String |  (optional) 
            var servicename = servicename_example;  // String |  (optional) 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                apiInstance.deletePolicyByName(policyname, servicename, zoneName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deletePolicyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$policyname = policyname_example; // String | 
$servicename = servicename_example; // String | 
$zoneName = zoneName_example; // String | 

try {
    $api_instance->deletePolicyByName($policyname, $servicename, $zoneName);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deletePolicyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $policyname = policyname_example; # String | 
my $servicename = servicename_example; # String | 
my $zoneName = zoneName_example; # String | 

eval { 
    $api_instance->deletePolicyByName(policyname => $policyname, servicename => $servicename, zoneName => $zoneName);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deletePolicyByName: $@\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.PublicAPIsv2Api()
policyname = policyname_example # String |  (optional)
servicename = servicename_example # String |  (optional)
zoneName = zoneName_example # String |  (optional)

try: 
    api_instance.delete_policy_by_name(policyname=policyname, servicename=servicename, zoneName=zoneName)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deletePolicyByName: %s\n" % e)

Parameters

Query parameters
Name Description
policyname
String
servicename
String
zoneName
String

Responses

Status: 204 - Success


deletePolicyDeltas2


/public/v2/api/server/policydeltas

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/server/policydeltas?days="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deletePolicyDeltas2(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyDeltas2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deletePolicyDeltas2(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deletePolicyDeltas2");
            e.printStackTrace();
        }
    }
}
Integer *days = 56; //  (optional) (default to 7)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deletePolicyDeltas2With:days
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'days': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicyDeltas2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyDeltas2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var days = 56;  // Integer |  (optional)  (default to 7)

            try
            {
                apiInstance.deletePolicyDeltas2(days);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deletePolicyDeltas2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$days = 56; // Integer | 

try {
    $api_instance->deletePolicyDeltas2($days);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deletePolicyDeltas2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $days = 56; # Integer | 

eval { 
    $api_instance->deletePolicyDeltas2(days => $days);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deletePolicyDeltas2: $@\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.PublicAPIsv2Api()
days = 56 # Integer |  (optional) (default to 7)

try: 
    api_instance.delete_policy_deltas2(days=days)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deletePolicyDeltas2: %s\n" % e)

Parameters

Query parameters
Name Description
days
Integer (int32)

Responses

Status: 204 - Success


deleteRole


/public/v2/api/roles/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/roles/name/{name}?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.deleteRole(name, execUser, serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.deleteRole(name, execUser, serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteRole");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteRoleWith:name
    execUser:execUser
    serviceName:serviceName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRole(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRoleExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                apiInstance.deleteRole(name, execUser, serviceName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $api_instance->deleteRole($name, $execUser, $serviceName);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    $api_instance->deleteRole(name => $name, execUser => $execUser, serviceName => $serviceName);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteRole: $@\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.PublicAPIsv2Api()
name = name_example # String | 
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_instance.delete_role(name, execUser=execUser, serviceName=serviceName)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteRole: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 204 - Success


deleteRole_1


/public/v2/api/roles/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/roles/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRole_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteRole_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRole_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteRole_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteRole_1With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRole_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRole_0Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteRole_0(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteRole_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $api_instance->deleteRole_0($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteRole_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteRole_0(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteRole_0: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_instance.delete_role_0(id)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteRole_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteSecurityZone


/public/v2/api/zones/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/zones/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteSecurityZone(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteSecurityZone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteSecurityZone(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteSecurityZone");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteSecurityZoneWith:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSecurityZone(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSecurityZoneExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                apiInstance.deleteSecurityZone(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteSecurityZone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $api_instance->deleteSecurityZone($name);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteSecurityZone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    $api_instance->deleteSecurityZone(name => $name);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteSecurityZone: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_instance.delete_security_zone(name)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteSecurityZone: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 204 - Success


deleteSecurityZone_2


/public/v2/api/zones/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteSecurityZone_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteSecurityZone_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteSecurityZone_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteSecurityZone_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteSecurityZone_2With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSecurityZone_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSecurityZone_0Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteSecurityZone_0(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteSecurityZone_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $api_instance->deleteSecurityZone_0($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteSecurityZone_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteSecurityZone_0(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteSecurityZone_0: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_instance.delete_security_zone_0(id)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteSecurityZone_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteService2


/public/v2/api/service/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/service/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteService2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteService2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteService2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteService2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteService2With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteService2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteService2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteService2(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteService2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $api_instance->deleteService2($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteService2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteService2(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteService2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_instance.delete_service2(id)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteService2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteServiceByName


/public/v2/api/service/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/service/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteServiceByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteServiceByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteServiceByNameWith:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                apiInstance.deleteServiceByName(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteServiceByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $api_instance->deleteServiceByName($name);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteServiceByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    $api_instance->deleteServiceByName(name => $name);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteServiceByName: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_instance.delete_service_by_name(name)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteServiceByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 204 - Success


deleteServiceDef2


/public/v2/api/servicedef/{id}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/servicedef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceDef2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceDef2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceDef2(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceDef2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteServiceDef2With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceDef2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceDef2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteServiceDef2(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteServiceDef2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $api_instance->deleteServiceDef2($id);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteServiceDef2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteServiceDef2(id => $id);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteServiceDef2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_instance.delete_service_def2(id)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteServiceDef2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteServiceDefByName


/public/v2/api/servicedef/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/servicedef/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteServiceDefByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceDefByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            apiInstance.deleteServiceDefByName(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteServiceDefByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteServiceDefByNameWith:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceDefByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceDefByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                apiInstance.deleteServiceDefByName(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteServiceDefByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $api_instance->deleteServiceDefByName($name);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteServiceDefByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    $api_instance->deleteServiceDefByName(name => $name);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteServiceDefByName: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_instance.delete_service_def_by_name(name)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteServiceDefByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 204 - Success


deleteTagDeltas


/public/v2/api/server/tagdeltas

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/server/tagdeltas?days="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deleteTagDeltas(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteTagDeltas");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deleteTagDeltas(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#deleteTagDeltas");
            e.printStackTrace();
        }
    }
}
Integer *days = 56; //  (optional) (default to 7)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance deleteTagDeltasWith:days
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'days': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagDeltas(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagDeltasExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var days = 56;  // Integer |  (optional)  (default to 7)

            try
            {
                apiInstance.deleteTagDeltas(days);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.deleteTagDeltas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$days = 56; // Integer | 

try {
    $api_instance->deleteTagDeltas($days);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->deleteTagDeltas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $days = 56; # Integer | 

eval { 
    $api_instance->deleteTagDeltas(days => $days);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->deleteTagDeltas: $@\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.PublicAPIsv2Api()
days = 56 # Integer |  (optional) (default to 7)

try: 
    api_instance.delete_tag_deltas(days=days)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->deleteTagDeltas: %s\n" % e)

Parameters

Query parameters
Name Description
days
Integer (int32)

Responses

Status: 204 - Success


getAllRoleNames


/public/v2/api/roles/names

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/roles/names?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getAllRoleNames(execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllRoleNames");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getAllRoleNames(execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllRoleNames");
            e.printStackTrace();
        }
    }
}
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getAllRoleNamesWith:execUser
    serviceName:serviceName
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRoleNames(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllRoleNamesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                array['String'] result = apiInstance.getAllRoleNames(execUser, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getAllRoleNames: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getAllRoleNames($execUser, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getAllRoleNames: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getAllRoleNames(execUser => $execUser, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getAllRoleNames: $@\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.PublicAPIsv2Api()
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_all_role_names(execUser=execUser, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getAllRoleNames: %s\n" % e)

Parameters

Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 200 -


getAllRoles


/public/v2/api/roles

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/roles"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerRole] result = apiInstance.getAllRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllRoles");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerRole] result = apiInstance.getAllRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllRoles");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getAllRolesWithCompletionHandler: 
              ^(array[RangerRole] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRoles(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllRolesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerRole] result = apiInstance.getAllRoles();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getAllRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->getAllRoles();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getAllRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->getAllRoles();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getAllRoles: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.get_all_roles()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getAllRoles: %s\n" % e)

Parameters

Responses

Status: 200 -


getAllZones


/public/v2/api/zones

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zones"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerSecurityZone] result = apiInstance.getAllZones();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllZones");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerSecurityZone] result = apiInstance.getAllZones();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getAllZones");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getAllZonesWithCompletionHandler: 
              ^(array[RangerSecurityZone] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllZones(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllZonesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerSecurityZone] result = apiInstance.getAllZones();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getAllZones: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->getAllZones();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getAllZones: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->getAllZones();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getAllZones: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.get_all_zones()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getAllZones: %s\n" % e)

Parameters

Responses

Status: 200 -


getPluginsInfo2


/public/v2/api/plugins/info

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/plugins/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerPluginInfo] result = apiInstance.getPluginsInfo2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPluginsInfo2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerPluginInfo] result = apiInstance.getPluginsInfo2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPluginsInfo2");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPluginsInfo2WithCompletionHandler: 
              ^(array[RangerPluginInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPluginsInfo2(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPluginsInfo2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerPluginInfo] result = apiInstance.getPluginsInfo2();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPluginsInfo2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->getPluginsInfo2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPluginsInfo2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->getPluginsInfo2();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPluginsInfo2: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.get_plugins_info2()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPluginsInfo2: %s\n" % e)

Parameters

Responses

Status: 200 -


getPolicies2


/public/v2/api/policy

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/policy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerPolicy] result = apiInstance.getPolicies2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicies2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerPolicy] result = apiInstance.getPolicies2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicies2");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPolicies2WithCompletionHandler: 
              ^(array[RangerPolicy] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicies2(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicies2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerPolicy] result = apiInstance.getPolicies2();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPolicies2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->getPolicies2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPolicies2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->getPolicies2();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPolicies2: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.get_policies2()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPolicies2: %s\n" % e)

Parameters

Responses

Status: 200 -


getPoliciesForResource2


/public/v2/api/policies/{serviceDefName}/for-resource

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/policies/{serviceDefName}/for-resource?serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceDefName = serviceDefName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.getPoliciesForResource2(serviceDefName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPoliciesForResource2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceDefName = serviceDefName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.getPoliciesForResource2(serviceDefName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPoliciesForResource2");
            e.printStackTrace();
        }
    }
}
String *serviceDefName = serviceDefName_example; // 
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPoliciesForResource2With:serviceDefName
    serviceName:serviceName
              completionHandler: ^(array[RangerPolicy] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceDefName = serviceDefName_example; // {{String}} 
var opts = { 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPoliciesForResource2(serviceDefName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesForResource2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceDefName = serviceDefName_example;  // String | 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                array[RangerPolicy] result = apiInstance.getPoliciesForResource2(serviceDefName, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPoliciesForResource2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceDefName = serviceDefName_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getPoliciesForResource2($serviceDefName, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPoliciesForResource2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceDefName = serviceDefName_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getPoliciesForResource2(serviceDefName => $serviceDefName, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPoliciesForResource2: $@\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.PublicAPIsv2Api()
serviceDefName = serviceDefName_example # String | 
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_policies_for_resource2(serviceDefName, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPoliciesForResource2: %s\n" % e)

Parameters

Path parameters
Name Description
serviceDefName*
String
Required
Query parameters
Name Description
serviceName
String

Responses

Status: 200 -


getPolicy3


/public/v2/api/policy/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerPolicy result = apiInstance.getPolicy3(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicy3");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerPolicy result = apiInstance.getPolicy3(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicy3");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPolicy3With:id
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicy3(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicy3Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                RangerPolicy result = apiInstance.getPolicy3(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPolicy3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $result = $api_instance->getPolicy3($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPolicy3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getPolicy3(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPolicy3: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_response = api_instance.get_policy3(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPolicy3: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getPolicyByGUIDAndServiceNameAndZoneName2


/public/v2/api/policy/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/policy/guid/{guid}?ZoneName=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String guid = guid_example; // String | 
        String zoneName = zoneName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName2(guid, zoneName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicyByGUIDAndServiceNameAndZoneName2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String guid = guid_example; // String | 
        String zoneName = zoneName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName2(guid, zoneName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicyByGUIDAndServiceNameAndZoneName2");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
String *zoneName = zoneName_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPolicyByGUIDAndServiceNameAndZoneName2With:guid
    zoneName:zoneName
    serviceName:serviceName
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var guid = guid_example; // {{String}} 
var opts = { 
  'zoneName': zoneName_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyByGUIDAndServiceNameAndZoneName2(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyByGUIDAndServiceNameAndZoneName2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var guid = guid_example;  // String | 
            var zoneName = zoneName_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName2(guid, zoneName, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPolicyByGUIDAndServiceNameAndZoneName2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$guid = guid_example; // String | 
$zoneName = zoneName_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getPolicyByGUIDAndServiceNameAndZoneName2($guid, $zoneName, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPolicyByGUIDAndServiceNameAndZoneName2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $guid = guid_example; # String | 
my $zoneName = zoneName_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getPolicyByGUIDAndServiceNameAndZoneName2(guid => $guid, zoneName => $zoneName, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPolicyByGUIDAndServiceNameAndZoneName2: $@\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.PublicAPIsv2Api()
guid = guid_example # String | 
zoneName = zoneName_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_policy_by_guid_and_service_name_and_zone_name2(guid, zoneName=zoneName, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPolicyByGUIDAndServiceNameAndZoneName2: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Query parameters
Name Description
ZoneName
String
serviceName
String

Responses

Status: 200 -


getPolicyByName


/public/v2/api/service/{servicename}/policy/{policyname}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service/{servicename}/policy/{policyname}?zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByName(policyname, servicename, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByName(policyname, servicename, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getPolicyByName");
            e.printStackTrace();
        }
    }
}
String *policyname = policyname_example; // 
String *servicename = servicename_example; // 
String *zoneName = zoneName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getPolicyByNameWith:policyname
    servicename:servicename
    zoneName:zoneName
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var policyname = policyname_example; // {{String}} 
var servicename = servicename_example; // {{String}} 
var opts = { 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyByName(policyname, servicename, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var policyname = policyname_example;  // String | 
            var servicename = servicename_example;  // String | 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.getPolicyByName(policyname, servicename, zoneName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getPolicyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$policyname = policyname_example; // String | 
$servicename = servicename_example; // String | 
$zoneName = zoneName_example; // String | 

try {
    $result = $api_instance->getPolicyByName($policyname, $servicename, $zoneName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getPolicyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $policyname = policyname_example; # String | 
my $servicename = servicename_example; # String | 
my $zoneName = zoneName_example; # String | 

eval { 
    my $result = $api_instance->getPolicyByName(policyname => $policyname, servicename => $servicename, zoneName => $zoneName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getPolicyByName: $@\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.PublicAPIsv2Api()
policyname = policyname_example # String | 
servicename = servicename_example # String | 
zoneName = zoneName_example # String |  (optional)

try: 
    api_response = api_instance.get_policy_by_name(policyname, servicename, zoneName=zoneName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getPolicyByName: %s\n" % e)

Parameters

Path parameters
Name Description
policyname*
String
Required
servicename*
String
Required
Query parameters
Name Description
zoneName
String

Responses

Status: 200 -


getRole


/public/v2/api/roles/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/roles/name/{name}?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.getRole(name, execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.getRole(name, execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getRole");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getRoleWith:name
    execUser:execUser
    serviceName:serviceName
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRole(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRoleExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                RangerRole result = apiInstance.getRole(name, execUser, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getRole($name, $execUser, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getRole(name => $name, execUser => $execUser, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getRole: $@\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.PublicAPIsv2Api()
name = name_example # String | 
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_role(name, execUser=execUser, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getRole: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 200 -


getRole_3


/public/v2/api/roles/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/roles/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerRole result = apiInstance.getRole_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getRole_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerRole result = apiInstance.getRole_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getRole_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getRole_3With:id
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRole_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRole_0Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                RangerRole result = apiInstance.getRole_0(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getRole_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $result = $api_instance->getRole_0($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getRole_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getRole_0(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getRole_0: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_response = api_instance.get_role_0(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getRole_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getSecurityZone


/public/v2/api/zones/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zones/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZone");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getSecurityZoneWith:name
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZone(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZoneExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                RangerSecurityZone result = apiInstance.getSecurityZone(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getSecurityZone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $result = $api_instance->getSecurityZone($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getSecurityZone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getSecurityZone(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getSecurityZone: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_response = api_instance.get_security_zone(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getSecurityZone: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getSecurityZoneHeaderInfoList

Get List of security zone header info. This API is authorized to every authenticated user.


/public/v2/api/zone-headers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zone-headers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneHeaderInfoList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneHeaderInfoList");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getSecurityZoneHeaderInfoListWithCompletionHandler: 
              ^(array[RangerSecurityZoneHeaderInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZoneHeaderInfoList(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZoneHeaderInfoListExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getSecurityZoneHeaderInfoList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->getSecurityZoneHeaderInfoList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->getSecurityZoneHeaderInfoList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoList: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.get_security_zone_header_info_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoList: %s\n" % e)

Parameters

Responses

Status: 200 - List of RangerSecurityZoneHeaderInfo if present.


getSecurityZoneHeaderInfoListByServiceId

Get List of security zone header info. This API is authorized to every authenticated user.


/public/v2/api/zones/zone-headers/for-service/{serviceId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zones/zone-headers/for-service/{serviceId}?isTagService="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long serviceId = 789; // Long | 
        Boolean isTagService = true; // Boolean | 
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId(serviceId, isTagService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneHeaderInfoListByServiceId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long serviceId = 789; // Long | 
        Boolean isTagService = true; // Boolean | 
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId(serviceId, isTagService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneHeaderInfoListByServiceId");
            e.printStackTrace();
        }
    }
}
Long *serviceId = 789; // 
Boolean *isTagService = true; //  (optional) (default to false)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getSecurityZoneHeaderInfoListByServiceIdWith:serviceId
    isTagService:isTagService
              completionHandler: ^(array[RangerSecurityZoneHeaderInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceId = 789; // {{Long}} 
var opts = { 
  'isTagService': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZoneHeaderInfoListByServiceId(serviceId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZoneHeaderInfoListByServiceIdExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceId = 789;  // Long | 
            var isTagService = true;  // Boolean |  (optional)  (default to false)

            try
            {
                array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId(serviceId, isTagService);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getSecurityZoneHeaderInfoListByServiceId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceId = 789; // Long | 
$isTagService = true; // Boolean | 

try {
    $result = $api_instance->getSecurityZoneHeaderInfoListByServiceId($serviceId, $isTagService);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoListByServiceId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceId = 789; # Long | 
my $isTagService = true; # Boolean | 

eval { 
    my $result = $api_instance->getSecurityZoneHeaderInfoListByServiceId(serviceId => $serviceId, isTagService => $isTagService);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoListByServiceId: $@\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.PublicAPIsv2Api()
serviceId = 789 # Long | 
isTagService = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.get_security_zone_header_info_list_by_service_id(serviceId, isTagService=isTagService)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getSecurityZoneHeaderInfoListByServiceId: %s\n" % e)

Parameters

Path parameters
Name Description
serviceId*
Long (int64)
Required
Query parameters
Name Description
isTagService
Boolean

Responses

Status: 200 - List of RangerSecurityZoneHeaderInfo if present.


getSecurityZoneNamesForResource


/public/v2/api/zone-names/{serviceName}/resource

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zone-names/{serviceName}/resource"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getSecurityZoneNamesForResource(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneNamesForResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getSecurityZoneNamesForResource(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZoneNamesForResource");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getSecurityZoneNamesForResourceWith:serviceName
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZoneNamesForResource(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZoneNamesForResourceExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 

            try
            {
                array['String'] result = apiInstance.getSecurityZoneNamesForResource(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getSecurityZoneNamesForResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getSecurityZoneNamesForResource($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getSecurityZoneNamesForResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getSecurityZoneNamesForResource(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getSecurityZoneNamesForResource: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 

try: 
    api_response = api_instance.get_security_zone_names_for_resource(serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getSecurityZoneNamesForResource: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 200 -


getSecurityZone_4


/public/v2/api/zones/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZone_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getSecurityZone_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getSecurityZone_4With:id
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZone_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZone_0Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                RangerSecurityZone result = apiInstance.getSecurityZone_0(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getSecurityZone_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $result = $api_instance->getSecurityZone_0($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getSecurityZone_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getSecurityZone_0(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getSecurityZone_0: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_response = api_instance.get_security_zone_0(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getSecurityZone_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getService2


/public/v2/api/service/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerService result = apiInstance.getService2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getService2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerService result = apiInstance.getService2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getService2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getService2With:id
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getService2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getService2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                RangerService result = apiInstance.getService2(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getService2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $result = $api_instance->getService2($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getService2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getService2(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getService2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service2(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getService2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServiceByName2


/public/v2/api/service/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerService result = apiInstance.getServiceByName2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceByName2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerService result = apiInstance.getServiceByName2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceByName2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getServiceByName2With:name
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceByName2(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceByName2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                RangerService result = apiInstance.getServiceByName2(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getServiceByName2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $result = $api_instance->getServiceByName2($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getServiceByName2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getServiceByName2(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getServiceByName2: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_response = api_instance.get_service_by_name2(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getServiceByName2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getServiceDef2


/public/v2/api/servicedef/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/servicedef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerServiceDef result = apiInstance.getServiceDef2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceDef2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        try {
            RangerServiceDef result = apiInstance.getServiceDef2(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceDef2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getServiceDef2With:id
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceDef2(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceDef2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 

            try
            {
                RangerServiceDef result = apiInstance.getServiceDef2(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getServiceDef2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 

try {
    $result = $api_instance->getServiceDef2($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getServiceDef2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getServiceDef2(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getServiceDef2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service_def2(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getServiceDef2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServiceDefByName2


/public/v2/api/servicedef/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/servicedef/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerServiceDef result = apiInstance.getServiceDefByName2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceDefByName2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        try {
            RangerServiceDef result = apiInstance.getServiceDefByName2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceDefByName2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getServiceDefByName2With:name
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceDefByName2(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceDefByName2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 

            try
            {
                RangerServiceDef result = apiInstance.getServiceDefByName2(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getServiceDefByName2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 

try {
    $result = $api_instance->getServiceDefByName2($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getServiceDefByName2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getServiceDefByName2(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getServiceDefByName2: $@\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.PublicAPIsv2Api()
name = name_example # String | 

try: 
    api_response = api_instance.get_service_def_by_name2(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getServiceDefByName2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getServiceHeaderInfoListByZoneId

Get service header info List for given zone. This API is authorized to every authenticated user.


/public/v2/api/zones/{zoneId}/service-headers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/zones/{zoneId}/service-headers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long zoneId = 789; // Long | 
        try {
            array[RangerServiceHeaderInfo] result = apiInstance.getServiceHeaderInfoListByZoneId(zoneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceHeaderInfoListByZoneId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long zoneId = 789; // Long | 
        try {
            array[RangerServiceHeaderInfo] result = apiInstance.getServiceHeaderInfoListByZoneId(zoneId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceHeaderInfoListByZoneId");
            e.printStackTrace();
        }
    }
}
Long *zoneId = 789; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getServiceHeaderInfoListByZoneIdWith:zoneId
              completionHandler: ^(array[RangerServiceHeaderInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var zoneId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceHeaderInfoListByZoneId(zoneId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceHeaderInfoListByZoneIdExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var zoneId = 789;  // Long | 

            try
            {
                array[RangerServiceHeaderInfo] result = apiInstance.getServiceHeaderInfoListByZoneId(zoneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getServiceHeaderInfoListByZoneId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$zoneId = 789; // Long | 

try {
    $result = $api_instance->getServiceHeaderInfoListByZoneId($zoneId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getServiceHeaderInfoListByZoneId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $zoneId = 789; # Long | 

eval { 
    my $result = $api_instance->getServiceHeaderInfoListByZoneId(zoneId => $zoneId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getServiceHeaderInfoListByZoneId: $@\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.PublicAPIsv2Api()
zoneId = 789 # Long | 

try: 
    api_response = api_instance.get_service_header_info_list_by_zone_id(zoneId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getServiceHeaderInfoListByZoneId: %s\n" % e)

Parameters

Path parameters
Name Description
zoneId*
Long (int64)
Required

Responses

Status: 200 - List of RangerServiceHeaderInfo for given zone if present.


getServiceTags


/public/v2/api/service/{serviceName}/tags

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service/{serviceName}/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            RangerServiceTags result = apiInstance.getServiceTags(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceTags");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            RangerServiceTags result = apiInstance.getServiceTags(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getServiceTags");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getServiceTagsWith:serviceName
              completionHandler: ^(RangerServiceTags output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceTags(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceTagsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 

            try
            {
                RangerServiceTags result = apiInstance.getServiceTags(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getServiceTags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getServiceTags($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getServiceTags: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getServiceTags(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getServiceTags: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 

try: 
    api_response = api_instance.get_service_tags(serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getServiceTags: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 200 -


getUserRoles


/public/v2/api/roles/user/{user}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/roles/user/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String user = user_example; // String | 
        try {
            array['String'] result = apiInstance.getUserRoles(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getUserRoles");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String user = user_example; // String | 
        try {
            array['String'] result = apiInstance.getUserRoles(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#getUserRoles");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance getUserRolesWith:user
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var user = user_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserRoles(user, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserRolesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var user = user_example;  // String | 

            try
            {
                array['String'] result = apiInstance.getUserRoles(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.getUserRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$user = user_example; // String | 

try {
    $result = $api_instance->getUserRoles($user);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->getUserRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $user = user_example; # String | 

eval { 
    my $result = $api_instance->getUserRoles(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->getUserRoles: $@\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.PublicAPIsv2Api()
user = user_example # String | 

try: 
    api_response = api_instance.get_user_roles(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->getUserRoles: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
Required

Responses

Status: 200 -


grantRole


/public/v2/api/roles/grant/{serviceName}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/grant/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.grantRole(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#grantRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.grantRole(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#grantRole");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRoleRequest *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance grantRoleWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRoleRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.grantRole(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class grantRoleExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRoleRequest(); // GrantRevokeRoleRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.grantRole(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.grantRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRoleRequest | 

try {
    $result = $api_instance->grantRole($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->grantRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRoleRequest->new(); # GrantRevokeRoleRequest | 

eval { 
    my $result = $api_instance->grantRole(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->grantRole: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRoleRequest |  (optional)

try: 
    api_response = api_instance.grant_role(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->grantRole: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


importServiceTags


/public/v2/api/service/{serviceName}/tags

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"//public/v2/api/service/{serviceName}/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        RangerServiceTags body = ; // RangerServiceTags | 
        try {
            apiInstance.importServiceTags(serviceName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#importServiceTags");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        RangerServiceTags body = ; // RangerServiceTags | 
        try {
            apiInstance.importServiceTags(serviceName, body);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#importServiceTags");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
RangerServiceTags *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance importServiceTagsWith:serviceName
    body:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{RangerServiceTags}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.importServiceTags(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class importServiceTagsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 
            var body = new RangerServiceTags(); // RangerServiceTags |  (optional) 

            try
            {
                apiInstance.importServiceTags(serviceName, body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.importServiceTags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 
$body = ; // RangerServiceTags | 

try {
    $api_instance->importServiceTags($serviceName, $body);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->importServiceTags: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerServiceTags->new(); # RangerServiceTags | 

eval { 
    $api_instance->importServiceTags(serviceName => $serviceName, body => $body);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->importServiceTags: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 
body =  # RangerServiceTags |  (optional)

try: 
    api_instance.import_service_tags(serviceName, body=body)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->importServiceTags: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 - Success


purgeEmptyPolicies2


/public/v2/api/server/purgepolicies/{serviceName}

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/server/purgepolicies/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.purgeEmptyPolicies2(serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#purgeEmptyPolicies2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.purgeEmptyPolicies2(serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#purgeEmptyPolicies2");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance purgeEmptyPolicies2With:serviceName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.purgeEmptyPolicies2(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class purgeEmptyPolicies2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 

            try
            {
                apiInstance.purgeEmptyPolicies2(serviceName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.purgeEmptyPolicies2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 

try {
    $api_instance->purgeEmptyPolicies2($serviceName);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->purgeEmptyPolicies2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 

eval { 
    $api_instance->purgeEmptyPolicies2(serviceName => $serviceName);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->purgeEmptyPolicies2: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 

try: 
    api_instance.purge_empty_policies2(serviceName)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->purgeEmptyPolicies2: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 204 - Success


purgeRecords2


/public/v2/api/server/purge/records

Usage and SDK Samples

curl -X DELETE\
"//public/v2/api/server/purge/records?retentionDays=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer retentionDays = 56; // Integer | 
        String type = type_example; // String | 
        try {
            apiInstance.purgeRecords2(retentionDays, type);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#purgeRecords2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Integer retentionDays = 56; // Integer | 
        String type = type_example; // String | 
        try {
            apiInstance.purgeRecords2(retentionDays, type);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#purgeRecords2");
            e.printStackTrace();
        }
    }
}
Integer *retentionDays = 56; //  (optional) (default to 180)
String *type = type_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance purgeRecords2With:retentionDays
    type:type
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var opts = { 
  'retentionDays': 56, // {{Integer}} 
  'type': type_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.purgeRecords2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class purgeRecords2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var retentionDays = 56;  // Integer |  (optional)  (default to 180)
            var type = type_example;  // String |  (optional) 

            try
            {
                apiInstance.purgeRecords2(retentionDays, type);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.purgeRecords2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$retentionDays = 56; // Integer | 
$type = type_example; // String | 

try {
    $api_instance->purgeRecords2($retentionDays, $type);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->purgeRecords2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $retentionDays = 56; # Integer | 
my $type = type_example; # String | 

eval { 
    $api_instance->purgeRecords2(retentionDays => $retentionDays, type => $type);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->purgeRecords2: $@\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.PublicAPIsv2Api()
retentionDays = 56 # Integer |  (optional) (default to 180)
type = type_example # String |  (optional)

try: 
    api_instance.purge_records2(retentionDays=retentionDays, type=type)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->purgeRecords2: %s\n" % e)

Parameters

Query parameters
Name Description
retentionDays
Integer (int32)
type
String

Responses

Status: 204 - Success


removeAdminFromUsersAndGroups


/public/v2/api/roles/{id}/removeAdminFromUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/{id}/removeAdminFromUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeAdminFromUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#removeAdminFromUsersAndGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeAdminFromUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#removeAdminFromUsersAndGroups");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
array[String] *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance removeAdminFromUsersAndGroupsWith:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.removeAdminFromUsersAndGroups(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeAdminFromUsersAndGroupsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                RangerRole result = apiInstance.removeAdminFromUsersAndGroups(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.removeAdminFromUsersAndGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // array[String] | 

try {
    $result = $api_instance->removeAdminFromUsersAndGroups($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->removeAdminFromUsersAndGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->removeAdminFromUsersAndGroups(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->removeAdminFromUsersAndGroups: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.remove_admin_from_users_and_groups(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->removeAdminFromUsersAndGroups: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


removeUsersAndGroups


/public/v2/api/roles/{id}/removeUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/{id}/removeUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#removeUsersAndGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeUsersAndGroups(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#removeUsersAndGroups");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
array[String] *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance removeUsersAndGroupsWith:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.removeUsersAndGroups(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeUsersAndGroupsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                RangerRole result = apiInstance.removeUsersAndGroups(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.removeUsersAndGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // array[String] | 

try {
    $result = $api_instance->removeUsersAndGroups($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->removeUsersAndGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->removeUsersAndGroups(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->removeUsersAndGroups: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.remove_users_and_groups(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->removeUsersAndGroups: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


revokeRoleUsersAndRoles


/public/v2/api/roles/revoke/{serviceName}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/revoke/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.revokeRoleUsersAndRoles(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#revokeRoleUsersAndRoles");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.revokeRoleUsersAndRoles(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#revokeRoleUsersAndRoles");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRoleRequest *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance revokeRoleUsersAndRolesWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRoleRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.revokeRoleUsersAndRoles(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokeRoleUsersAndRolesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRoleRequest(); // GrantRevokeRoleRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.revokeRoleUsersAndRoles(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.revokeRoleUsersAndRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRoleRequest | 

try {
    $result = $api_instance->revokeRoleUsersAndRoles($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->revokeRoleUsersAndRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRoleRequest->new(); # GrantRevokeRoleRequest | 

eval { 
    my $result = $api_instance->revokeRoleUsersAndRoles(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->revokeRoleUsersAndRoles: $@\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.PublicAPIsv2Api()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRoleRequest |  (optional)

try: 
    api_response = api_instance.revoke_role_users_and_roles(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->revokeRoleUsersAndRoles: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


searchPolicies2


/public/v2/api/service/{servicename}/policy

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service/{servicename}/policy"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String servicename = servicename_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.searchPolicies2(servicename);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchPolicies2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String servicename = servicename_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.searchPolicies2(servicename);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchPolicies2");
            e.printStackTrace();
        }
    }
}
String *servicename = servicename_example; // 

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance searchPolicies2With:servicename
              completionHandler: ^(array[RangerPolicy] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var servicename = servicename_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchPolicies2(servicename, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchPolicies2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var servicename = servicename_example;  // String | 

            try
            {
                array[RangerPolicy] result = apiInstance.searchPolicies2(servicename);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.searchPolicies2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$servicename = servicename_example; // String | 

try {
    $result = $api_instance->searchPolicies2($servicename);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->searchPolicies2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $servicename = servicename_example; # String | 

eval { 
    my $result = $api_instance->searchPolicies2(servicename => $servicename);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->searchPolicies2: $@\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.PublicAPIsv2Api()
servicename = servicename_example # String | 

try: 
    api_response = api_instance.search_policies2(servicename)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->searchPolicies2: %s\n" % e)

Parameters

Path parameters
Name Description
servicename*
String
Required

Responses

Status: 200 -


searchServiceDefs


/public/v2/api/servicedef

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/servicedef"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerServiceDef] result = apiInstance.searchServiceDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchServiceDefs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerServiceDef] result = apiInstance.searchServiceDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchServiceDefs");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance searchServiceDefsWithCompletionHandler: 
              ^(array[RangerServiceDef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchServiceDefs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchServiceDefsExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerServiceDef] result = apiInstance.searchServiceDefs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.searchServiceDefs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->searchServiceDefs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->searchServiceDefs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->searchServiceDefs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->searchServiceDefs: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.search_service_defs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->searchServiceDefs: %s\n" % e)

Parameters

Responses

Status: 200 -


searchServices


/public/v2/api/service

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//public/v2/api/service"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerService] result = apiInstance.searchServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchServices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        try {
            array[RangerService] result = apiInstance.searchServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#searchServices");
            e.printStackTrace();
        }
    }
}

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance searchServicesWithCompletionHandler: 
              ^(array[RangerService] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchServices(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchServicesExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();

            try
            {
                array[RangerService] result = apiInstance.searchServices();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.searchServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();

try {
    $result = $api_instance->searchServices();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->searchServices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();

eval { 
    my $result = $api_instance->searchServices();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->searchServices: $@\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.PublicAPIsv2Api()

try: 
    api_response = api_instance.search_services()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->searchServices: %s\n" % e)

Parameters

Responses

Status: 200 -


updatePolicy3


/public/v2/api/policy/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/policy/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.updatePolicy3(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updatePolicy3");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.updatePolicy3(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updatePolicy3");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerPolicy *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updatePolicy3With:id
    body:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updatePolicy3(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatePolicy3Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.updatePolicy3(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updatePolicy3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->updatePolicy3($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updatePolicy3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->updatePolicy3(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updatePolicy3: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.update_policy3(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updatePolicy3: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updatePolicyByName


/public/v2/api/service/{servicename}/policy/{policyname}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/service/{servicename}/policy/{policyname}?zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        RangerPolicy body = ; // RangerPolicy | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.updatePolicyByName(policyname, servicename, body, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updatePolicyByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String policyname = policyname_example; // String | 
        String servicename = servicename_example; // String | 
        RangerPolicy body = ; // RangerPolicy | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.updatePolicyByName(policyname, servicename, body, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updatePolicyByName");
            e.printStackTrace();
        }
    }
}
String *policyname = policyname_example; // 
String *servicename = servicename_example; // 
RangerPolicy *body = ; //  (optional)
String *zoneName = zoneName_example; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updatePolicyByNameWith:policyname
    servicename:servicename
    body:body
    zoneName:zoneName
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var policyname = policyname_example; // {{String}} 
var servicename = servicename_example; // {{String}} 
var opts = { 
  'body':  // {{RangerPolicy}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updatePolicyByName(policynameservicename, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatePolicyByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var policyname = policyname_example;  // String | 
            var servicename = servicename_example;  // String | 
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.updatePolicyByName(policyname, servicename, body, zoneName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updatePolicyByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$policyname = policyname_example; // String | 
$servicename = servicename_example; // String | 
$body = ; // RangerPolicy | 
$zoneName = zoneName_example; // String | 

try {
    $result = $api_instance->updatePolicyByName($policyname, $servicename, $body, $zoneName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updatePolicyByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $policyname = policyname_example; # String | 
my $servicename = servicename_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 
my $zoneName = zoneName_example; # String | 

eval { 
    my $result = $api_instance->updatePolicyByName(policyname => $policyname, servicename => $servicename, body => $body, zoneName => $zoneName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updatePolicyByName: $@\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.PublicAPIsv2Api()
policyname = policyname_example # String | 
servicename = servicename_example # String | 
body =  # RangerPolicy |  (optional)
zoneName = zoneName_example # String |  (optional)

try: 
    api_response = api_instance.update_policy_by_name(policyname, servicename, body=body, zoneName=zoneName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updatePolicyByName: %s\n" % e)

Parameters

Path parameters
Name Description
policyname*
String
Required
servicename*
String
Required
Body parameters
Name Description
body
Query parameters
Name Description
zoneName
String

Responses

Status: 204 -


updateRole


/public/v2/api/roles/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/roles/{id}?createNonExistUserGroup="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        try {
            RangerRole result = apiInstance.updateRole(id, body, createNonExistUserGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        try {
            RangerRole result = apiInstance.updateRole(id, body, createNonExistUserGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateRole");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerRole *body = ; //  (optional)
Boolean *createNonExistUserGroup = true; //  (optional) (default to false)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateRoleWith:id
    body:body
    createNonExistUserGroup:createNonExistUserGroup
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerRole}} 
  'createNonExistUserGroup': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateRole(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateRoleExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new RangerRole(); // RangerRole |  (optional) 
            var createNonExistUserGroup = true;  // Boolean |  (optional)  (default to false)

            try
            {
                RangerRole result = apiInstance.updateRole(id, body, createNonExistUserGroup);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // RangerRole | 
$createNonExistUserGroup = true; // Boolean | 

try {
    $result = $api_instance->updateRole($id, $body, $createNonExistUserGroup);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerRole->new(); # RangerRole | 
my $createNonExistUserGroup = true; # Boolean | 

eval { 
    my $result = $api_instance->updateRole(id => $id, body => $body, createNonExistUserGroup => $createNonExistUserGroup);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateRole: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # RangerRole |  (optional)
createNonExistUserGroup = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.update_role(id, body=body, createNonExistUserGroup=createNonExistUserGroup)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateRole: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body
Query parameters
Name Description
createNonExistUserGroup
Boolean

Responses

Status: 204 -


updateSecurityZone


/public/v2/api/zones/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.updateSecurityZone(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateSecurityZone");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.updateSecurityZone(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateSecurityZone");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerSecurityZone *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateSecurityZoneWith:id
    body:body
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerSecurityZone}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateSecurityZone(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateSecurityZoneExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new RangerSecurityZone(); // RangerSecurityZone |  (optional) 

            try
            {
                RangerSecurityZone result = apiInstance.updateSecurityZone(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateSecurityZone: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // RangerSecurityZone | 

try {
    $result = $api_instance->updateSecurityZone($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateSecurityZone: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerSecurityZone->new(); # RangerSecurityZone | 

eval { 
    my $result = $api_instance->updateSecurityZone(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateSecurityZone: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # RangerSecurityZone |  (optional)

try: 
    api_response = api_instance.update_security_zone(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateSecurityZone: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateService2


/public/v2/api/service/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/service/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateService2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateService2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateService2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateService2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerService *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateService2With:id
    body:body
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateService2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateService2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                RangerService result = apiInstance.updateService2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateService2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // RangerService | 

try {
    $result = $api_instance->updateService2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateService2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->updateService2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateService2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.update_service2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateService2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateServiceByName


/public/v2/api/service/name/{name}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/service/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateServiceByName(name, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateServiceByName(name, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
RangerService *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateServiceByNameWith:name
    body:body
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceByName(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                RangerService result = apiInstance.updateServiceByName(name, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateServiceByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 
$body = ; // RangerService | 

try {
    $result = $api_instance->updateServiceByName($name, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateServiceByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->updateServiceByName(name => $name, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateServiceByName: $@\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.PublicAPIsv2Api()
name = name_example # String | 
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.update_service_by_name(name, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateServiceByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateServiceDef2


/public/v2/api/servicedef/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/servicedef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDef2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceDef2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        Long id = 789; // Long | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDef2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceDef2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerServiceDef *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateServiceDef2With:id
    body:body
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerServiceDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceDef2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceDef2Example
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var id = 789;  // Long | 
            var body = new RangerServiceDef(); // RangerServiceDef |  (optional) 

            try
            {
                RangerServiceDef result = apiInstance.updateServiceDef2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateServiceDef2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$id = 789; // Long | 
$body = ; // RangerServiceDef | 

try {
    $result = $api_instance->updateServiceDef2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateServiceDef2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerServiceDef->new(); # RangerServiceDef | 

eval { 
    my $result = $api_instance->updateServiceDef2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateServiceDef2: $@\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.PublicAPIsv2Api()
id = 789 # Long | 
body =  # RangerServiceDef |  (optional)

try: 
    api_response = api_instance.update_service_def2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateServiceDef2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateServiceDefByName


/public/v2/api/servicedef/name/{name}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//public/v2/api/servicedef/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PublicAPIsv2Api;

import java.io.File;
import java.util.*;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDefByName(name, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceDefByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PublicAPIsv2Api;

public class PublicAPIsv2ApiExample {

    public static void main(String[] args) {
        PublicAPIsv2Api apiInstance = new PublicAPIsv2Api();
        String name = name_example; // String | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDefByName(name, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PublicAPIsv2Api#updateServiceDefByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
RangerServiceDef *body = ; //  (optional)

PublicAPIsv2Api *apiInstance = [[PublicAPIsv2Api alloc] init];

[apiInstance updateServiceDefByNameWith:name
    body:body
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.PublicAPIsv2Api()
var name = name_example; // {{String}} 
var opts = { 
  'body':  // {{RangerServiceDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceDefByName(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceDefByNameExample
    {
        public void main()
        {

            var apiInstance = new PublicAPIsv2Api();
            var name = name_example;  // String | 
            var body = new RangerServiceDef(); // RangerServiceDef |  (optional) 

            try
            {
                RangerServiceDef result = apiInstance.updateServiceDefByName(name, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PublicAPIsv2Api.updateServiceDefByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiPublicAPIsv2Api();
$name = name_example; // String | 
$body = ; // RangerServiceDef | 

try {
    $result = $api_instance->updateServiceDefByName($name, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PublicAPIsv2Api->updateServiceDefByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PublicAPIsv2Api;

my $api_instance = WWW::SwaggerClient::PublicAPIsv2Api->new();
my $name = name_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerServiceDef->new(); # RangerServiceDef | 

eval { 
    my $result = $api_instance->updateServiceDefByName(name => $name, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PublicAPIsv2Api->updateServiceDefByName: $@\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.PublicAPIsv2Api()
name = name_example # String | 
body =  # RangerServiceDef |  (optional)

try: 
    api_response = api_instance.update_service_def_by_name(name, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PublicAPIsv2Api->updateServiceDefByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


RoleREST

addUsersAndGroups2


/roles/roles/{id}/addUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/{id}/addUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        Boolean body = ; // Boolean | 
        try {
            RangerRole result = apiInstance.addUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#addUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        Boolean body = ; // Boolean | 
        try {
            RangerRole result = apiInstance.addUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#addUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
Boolean *body = ; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance addUsersAndGroups2With:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addUsersAndGroups2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addUsersAndGroups2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 
            var body = new Boolean(); // Boolean |  (optional) 

            try
            {
                RangerRole result = apiInstance.addUsersAndGroups2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.addUsersAndGroups2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 
$body = ; // Boolean | 

try {
    $result = $api_instance->addUsersAndGroups2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->addUsersAndGroups2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::Boolean->new(); # Boolean | 

eval { 
    my $result = $api_instance->addUsersAndGroups2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->addUsersAndGroups2: $@\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.RoleRESTApi()
id = 789 # Long | 
body =  # Boolean |  (optional)

try: 
    api_response = api_instance.add_users_and_groups2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->addUsersAndGroups2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


createRole2


/roles/roles

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles?createNonExistUserGroup=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.createRole2(body, createNonExistUserGroup, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#createRole2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.createRole2(body, createNonExistUserGroup, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#createRole2");
            e.printStackTrace();
        }
    }
}
RangerRole *body = ; //  (optional)
Boolean *createNonExistUserGroup = true; //  (optional) (default to false)
String *serviceName = serviceName_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance createRole2With:body
    createNonExistUserGroup:createNonExistUserGroup
    serviceName:serviceName
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var opts = { 
  'body':  // {{RangerRole}} 
  'createNonExistUserGroup': true // {{Boolean}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createRole2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createRole2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var body = new RangerRole(); // RangerRole |  (optional) 
            var createNonExistUserGroup = true;  // Boolean |  (optional)  (default to false)
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                RangerRole result = apiInstance.createRole2(body, createNonExistUserGroup, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.createRole2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$body = ; // RangerRole | 
$createNonExistUserGroup = true; // Boolean | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->createRole2($body, $createNonExistUserGroup, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->createRole2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerRole->new(); # RangerRole | 
my $createNonExistUserGroup = true; # Boolean | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->createRole2(body => $body, createNonExistUserGroup => $createNonExistUserGroup, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->createRole2: $@\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.RoleRESTApi()
body =  # RangerRole |  (optional)
createNonExistUserGroup = true # Boolean |  (optional) (default to false)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.create_role2(body=body, createNonExistUserGroup=createNonExistUserGroup, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->createRole2: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
createNonExistUserGroup
Boolean
serviceName
String

Responses

Status: 201 -


deleteRole2


/roles/roles/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//roles/roles/name/{name}?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.deleteRole2(name, execUser, serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#deleteRole2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.deleteRole2(name, execUser, serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#deleteRole2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance deleteRole2With:name
    execUser:execUser
    serviceName:serviceName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var name = name_example; // {{String}} 
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRole2(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRole2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var name = name_example;  // String | 
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                apiInstance.deleteRole2(name, execUser, serviceName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.deleteRole2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$name = name_example; // String | 
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $api_instance->deleteRole2($name, $execUser, $serviceName);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->deleteRole2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $name = name_example; # String | 
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    $api_instance->deleteRole2(name => $name, execUser => $execUser, serviceName => $serviceName);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->deleteRole2: $@\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.RoleRESTApi()
name = name_example # String | 
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_instance.delete_role2(name, execUser=execUser, serviceName=serviceName)
except ApiException as e:
    print("Exception when calling RoleRESTApi->deleteRole2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 204 - Success


deleteRole2_1


/roles/roles/{id}

Usage and SDK Samples

curl -X DELETE\
"//roles/roles/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRole2_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#deleteRole2_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteRole2_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#deleteRole2_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance deleteRole2_1With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteRole2_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteRole2_0Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteRole2_0(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.deleteRole2_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteRole2_0($id);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->deleteRole2_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteRole2_0(id => $id);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->deleteRole2_0: $@\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.RoleRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_role2_0(id)
except ApiException as e:
    print("Exception when calling RoleRESTApi->deleteRole2_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getAllRoleNames2


/roles/roles/names

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/roles/names?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getAllRoleNames2(execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRoleNames2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getAllRoleNames2(execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRoleNames2");
            e.printStackTrace();
        }
    }
}
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getAllRoleNames2With:execUser
    serviceName:serviceName
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRoleNames2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllRoleNames2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                array['String'] result = apiInstance.getAllRoleNames2(execUser, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getAllRoleNames2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getAllRoleNames2($execUser, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getAllRoleNames2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getAllRoleNames2(execUser => $execUser, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getAllRoleNames2: $@\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.RoleRESTApi()
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_all_role_names2(execUser=execUser, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getAllRoleNames2: %s\n" % e)

Parameters

Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 200 -


getAllRoles2


/roles/roles

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/roles"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            RangerRoleList result = apiInstance.getAllRoles2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRoles2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            RangerRoleList result = apiInstance.getAllRoles2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRoles2");
            e.printStackTrace();
        }
    }
}

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getAllRoles2WithCompletionHandler: 
              ^(RangerRoleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRoles2(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllRoles2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();

            try
            {
                RangerRoleList result = apiInstance.getAllRoles2();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getAllRoles2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();

try {
    $result = $api_instance->getAllRoles2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getAllRoles2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();

eval { 
    my $result = $api_instance->getAllRoles2();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getAllRoles2: $@\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.RoleRESTApi()

try: 
    api_response = api_instance.get_all_roles2()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getAllRoles2: %s\n" % e)

Parameters

Responses

Status: 200 -


getAllRolesForUser


/roles/lookup/roles

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/lookup/roles"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            RangerRoleList result = apiInstance.getAllRolesForUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRolesForUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            RangerRoleList result = apiInstance.getAllRolesForUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getAllRolesForUser");
            e.printStackTrace();
        }
    }
}

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getAllRolesForUserWithCompletionHandler: 
              ^(RangerRoleList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllRolesForUser(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllRolesForUserExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();

            try
            {
                RangerRoleList result = apiInstance.getAllRolesForUser();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getAllRolesForUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();

try {
    $result = $api_instance->getAllRolesForUser();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getAllRolesForUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();

eval { 
    my $result = $api_instance->getAllRolesForUser();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getAllRolesForUser: $@\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.RoleRESTApi()

try: 
    api_response = api_instance.get_all_roles_for_user()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getAllRolesForUser: %s\n" % e)

Parameters

Responses

Status: 200 -


getRangerRolesIfUpdated


/roles/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownRoleVersion=&pluginCapabilities=&pluginId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownRoleVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerRoles result = apiInstance.getRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRangerRolesIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownRoleVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerRoles result = apiInstance.getRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRangerRolesIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownRoleVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getRangerRolesIfUpdatedWith:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownRoleVersion:lastKnownRoleVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
              completionHandler: ^(RangerRoles output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownRoleVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRangerRolesIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRangerRolesIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownRoleVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 

            try
            {
                RangerRoles result = apiInstance.getRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getRangerRolesIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownRoleVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 

try {
    $result = $api_instance->getRangerRolesIfUpdated($serviceName, $clusterName, $lastActivationTime, $lastKnownRoleVersion, $pluginCapabilities, $pluginId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getRangerRolesIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownRoleVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 

eval { 
    my $result = $api_instance->getRangerRolesIfUpdated(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownRoleVersion => $lastKnownRoleVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getRangerRolesIfUpdated: $@\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.RoleRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownRoleVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)

try: 
    api_response = api_instance.get_ranger_roles_if_updated(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownRoleVersion=lastKnownRoleVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getRangerRolesIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownRoleVersion
Long (int64)
pluginCapabilities
String
pluginId
String

Responses

Status: 200 -


getRole2


/roles/roles/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/roles/name/{name}?execUser=&serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.getRole2(name, execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRole2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String name = name_example; // String | 
        String execUser = execUser_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerRole result = apiInstance.getRole2(name, execUser, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRole2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 
String *execUser = execUser_example; //  (optional)
String *serviceName = serviceName_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getRole2With:name
    execUser:execUser
    serviceName:serviceName
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var name = name_example; // {{String}} 
var opts = { 
  'execUser': execUser_example, // {{String}} 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRole2(name, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRole2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var name = name_example;  // String | 
            var execUser = execUser_example;  // String |  (optional) 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                RangerRole result = apiInstance.getRole2(name, execUser, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getRole2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$name = name_example; // String | 
$execUser = execUser_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getRole2($name, $execUser, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getRole2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $name = name_example; # String | 
my $execUser = execUser_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getRole2(name => $name, execUser => $execUser, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getRole2: $@\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.RoleRESTApi()
name = name_example # String | 
execUser = execUser_example # String |  (optional)
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_role2(name, execUser=execUser, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getRole2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required
Query parameters
Name Description
execUser
String
serviceName
String

Responses

Status: 200 -


getRole2_2


/roles/roles/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/roles/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        try {
            RangerRole result = apiInstance.getRole2_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRole2_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        try {
            RangerRole result = apiInstance.getRole2_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRole2_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getRole2_2With:id
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRole2_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRole2_0Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerRole result = apiInstance.getRole2_0(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getRole2_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getRole2_0($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getRole2_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getRole2_0(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getRole2_0: $@\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.RoleRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_role2_0(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getRole2_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getRolesInJson


/roles/roles/exportJson

Usage and SDK Samples

curl -X GET\
"//roles/roles/exportJson"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            apiInstance.getRolesInJson();
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRolesInJson");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            apiInstance.getRolesInJson();
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getRolesInJson");
            e.printStackTrace();
        }
    }
}

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getRolesInJsonWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getRolesInJson(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRolesInJsonExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();

            try
            {
                apiInstance.getRolesInJson();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getRolesInJson: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();

try {
    $api_instance->getRolesInJson();
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getRolesInJson: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();

eval { 
    $api_instance->getRolesInJson();
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getRolesInJson: $@\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.RoleRESTApi()

try: 
    api_instance.get_roles_in_json()
except ApiException as e:
    print("Exception when calling RoleRESTApi->getRolesInJson: %s\n" % e)

Parameters

Responses

Status: 200 - Success


getSecureRangerRolesIfUpdated


/roles/secure/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/secure/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownRoleVersion=&pluginCapabilities=&pluginId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownRoleVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerRoles result = apiInstance.getSecureRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getSecureRangerRolesIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownRoleVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerRoles result = apiInstance.getSecureRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getSecureRangerRolesIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownRoleVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getSecureRangerRolesIfUpdatedWith:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownRoleVersion:lastKnownRoleVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
              completionHandler: ^(RangerRoles output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownRoleVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecureRangerRolesIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecureRangerRolesIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownRoleVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 

            try
            {
                RangerRoles result = apiInstance.getSecureRangerRolesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownRoleVersion, pluginCapabilities, pluginId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getSecureRangerRolesIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownRoleVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 

try {
    $result = $api_instance->getSecureRangerRolesIfUpdated($serviceName, $clusterName, $lastActivationTime, $lastKnownRoleVersion, $pluginCapabilities, $pluginId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getSecureRangerRolesIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownRoleVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 

eval { 
    my $result = $api_instance->getSecureRangerRolesIfUpdated(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownRoleVersion => $lastKnownRoleVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getSecureRangerRolesIfUpdated: $@\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.RoleRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownRoleVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)

try: 
    api_response = api_instance.get_secure_ranger_roles_if_updated(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownRoleVersion=lastKnownRoleVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getSecureRangerRolesIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownRoleVersion
Long (int64)
pluginCapabilities
String
pluginId
String

Responses

Status: 200 -


getUserRoles2


/roles/roles/user/{user}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/roles/user/{user}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String user = user_example; // String | 
        try {
            array['String'] result = apiInstance.getUserRoles2(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getUserRoles2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String user = user_example; // String | 
        try {
            array['String'] result = apiInstance.getUserRoles2(user);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#getUserRoles2");
            e.printStackTrace();
        }
    }
}
String *user = user_example; // 

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance getUserRoles2With:user
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var user = user_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserRoles2(user, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserRoles2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var user = user_example;  // String | 

            try
            {
                array['String'] result = apiInstance.getUserRoles2(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.getUserRoles2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$user = user_example; // String | 

try {
    $result = $api_instance->getUserRoles2($user);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->getUserRoles2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $user = user_example; # String | 

eval { 
    my $result = $api_instance->getUserRoles2(user => $user);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->getUserRoles2: $@\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.RoleRESTApi()
user = user_example # String | 

try: 
    api_response = api_instance.get_user_roles2(user)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->getUserRoles2: %s\n" % e)

Parameters

Path parameters
Name Description
user*
String
Required

Responses

Status: 200 -


grantRole2


/roles/roles/grant/{serviceName}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/grant/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.grantRole2(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#grantRole2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.grantRole2(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#grantRole2");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRoleRequest *body = ; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance grantRole2With:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRoleRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.grantRole2(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class grantRole2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRoleRequest(); // GrantRevokeRoleRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.grantRole2(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.grantRole2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRoleRequest | 

try {
    $result = $api_instance->grantRole2($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->grantRole2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRoleRequest->new(); # GrantRevokeRoleRequest | 

eval { 
    my $result = $api_instance->grantRole2(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->grantRole2: $@\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.RoleRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRoleRequest |  (optional)

try: 
    api_response = api_instance.grant_role2(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->grantRole2: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


importRolesFromFile


/roles/roles/importRolesFromFile

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json,application/xml"\
-H "Content-Type: application/json,multipart/form-data"\
"//roles/roles/importRolesFromFile?createNonExistUserGroupRole=&updateIfExists="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Roles_importRolesFromFile_body body = ; // Roles_importRolesFromFile_body | 
        Boolean createNonExistUserGroupRole = true; // Boolean | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RESTResponse result = apiInstance.importRolesFromFile(body, createNonExistUserGroupRole, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#importRolesFromFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Roles_importRolesFromFile_body body = ; // Roles_importRolesFromFile_body | 
        Boolean createNonExistUserGroupRole = true; // Boolean | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RESTResponse result = apiInstance.importRolesFromFile(body, createNonExistUserGroupRole, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#importRolesFromFile");
            e.printStackTrace();
        }
    }
}
Roles_importRolesFromFile_body *body = ; //  (optional)
Boolean *createNonExistUserGroupRole = true; //  (optional) (default to false)
Boolean *updateIfExists = true; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance importRolesFromFileWith:body
    createNonExistUserGroupRole:createNonExistUserGroupRole
    updateIfExists:updateIfExists
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var opts = { 
  'body':  // {{Roles_importRolesFromFile_body}} 
  'createNonExistUserGroupRole': true // {{Boolean}} 
  'updateIfExists': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.importRolesFromFile(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class importRolesFromFileExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var body = new Roles_importRolesFromFile_body(); // Roles_importRolesFromFile_body |  (optional) 
            var createNonExistUserGroupRole = true;  // Boolean |  (optional)  (default to false)
            var updateIfExists = true;  // Boolean |  (optional) 

            try
            {
                RESTResponse result = apiInstance.importRolesFromFile(body, createNonExistUserGroupRole, updateIfExists);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.importRolesFromFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$body = ; // Roles_importRolesFromFile_body | 
$createNonExistUserGroupRole = true; // Boolean | 
$updateIfExists = true; // Boolean | 

try {
    $result = $api_instance->importRolesFromFile($body, $createNonExistUserGroupRole, $updateIfExists);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->importRolesFromFile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $body = WWW::SwaggerClient::Object::Roles_importRolesFromFile_body->new(); # Roles_importRolesFromFile_body | 
my $createNonExistUserGroupRole = true; # Boolean | 
my $updateIfExists = true; # Boolean | 

eval { 
    my $result = $api_instance->importRolesFromFile(body => $body, createNonExistUserGroupRole => $createNonExistUserGroupRole, updateIfExists => $updateIfExists);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->importRolesFromFile: $@\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.RoleRESTApi()
body =  # Roles_importRolesFromFile_body |  (optional)
createNonExistUserGroupRole = true # Boolean |  (optional) (default to false)
updateIfExists = true # Boolean |  (optional)

try: 
    api_response = api_instance.import_roles_from_file(body=body, createNonExistUserGroupRole=createNonExistUserGroupRole, updateIfExists=updateIfExists)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->importRolesFromFile: %s\n" % e)

Parameters

Body parameters
Name Description
body
Form parameters
Name Description
fileDetail
byte[] (binary)
uploadedInputStream
byte[] (binary)
Query parameters
Name Description
createNonExistUserGroupRole
Boolean
updateIfExists
Boolean

Responses

Status: 201 -


lookupAllRolesNames


/roles/lookup/roles/names

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//roles/lookup/roles/names"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            VXStringList result = apiInstance.lookupAllRolesNames();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#lookupAllRolesNames");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        try {
            VXStringList result = apiInstance.lookupAllRolesNames();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#lookupAllRolesNames");
            e.printStackTrace();
        }
    }
}

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance lookupAllRolesNamesWithCompletionHandler: 
              ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lookupAllRolesNames(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class lookupAllRolesNamesExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();

            try
            {
                VXStringList result = apiInstance.lookupAllRolesNames();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.lookupAllRolesNames: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();

try {
    $result = $api_instance->lookupAllRolesNames();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->lookupAllRolesNames: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();

eval { 
    my $result = $api_instance->lookupAllRolesNames();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->lookupAllRolesNames: $@\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.RoleRESTApi()

try: 
    api_response = api_instance.lookup_all_roles_names()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->lookupAllRolesNames: %s\n" % e)

Parameters

Responses

Status: 200 -


removeAdminFromUsersAndGroups2


/roles/roles/{id}/removeAdminFromUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/{id}/removeAdminFromUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeAdminFromUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#removeAdminFromUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeAdminFromUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#removeAdminFromUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
array[String] *body = ; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance removeAdminFromUsersAndGroups2With:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.removeAdminFromUsersAndGroups2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeAdminFromUsersAndGroups2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                RangerRole result = apiInstance.removeAdminFromUsersAndGroups2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.removeAdminFromUsersAndGroups2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 
$body = ; // array[String] | 

try {
    $result = $api_instance->removeAdminFromUsersAndGroups2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->removeAdminFromUsersAndGroups2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->removeAdminFromUsersAndGroups2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->removeAdminFromUsersAndGroups2: $@\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.RoleRESTApi()
id = 789 # Long | 
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.remove_admin_from_users_and_groups2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->removeAdminFromUsersAndGroups2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


removeUsersAndGroups2


/roles/roles/{id}/removeUsersAndGroups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/{id}/removeUsersAndGroups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#removeUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        array[String] body = ; // array[String] | 
        try {
            RangerRole result = apiInstance.removeUsersAndGroups2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#removeUsersAndGroups2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
array[String] *body = ; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance removeUsersAndGroups2With:id
    body:body
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.removeUsersAndGroups2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeUsersAndGroups2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                RangerRole result = apiInstance.removeUsersAndGroups2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.removeUsersAndGroups2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 
$body = ; // array[String] | 

try {
    $result = $api_instance->removeUsersAndGroups2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->removeUsersAndGroups2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->removeUsersAndGroups2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->removeUsersAndGroups2: $@\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.RoleRESTApi()
id = 789 # Long | 
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.remove_users_and_groups2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->removeUsersAndGroups2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


revokeRole


/roles/roles/revoke/{serviceName}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/revoke/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.revokeRole(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#revokeRole");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRoleRequest body = ; // GrantRevokeRoleRequest | 
        try {
            RESTResponse result = apiInstance.revokeRole(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#revokeRole");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRoleRequest *body = ; //  (optional)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance revokeRoleWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRoleRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.revokeRole(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokeRoleExample
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRoleRequest(); // GrantRevokeRoleRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.revokeRole(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.revokeRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRoleRequest | 

try {
    $result = $api_instance->revokeRole($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->revokeRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRoleRequest->new(); # GrantRevokeRoleRequest | 

eval { 
    my $result = $api_instance->revokeRole(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->revokeRole: $@\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.RoleRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRoleRequest |  (optional)

try: 
    api_response = api_instance.revoke_role(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->revokeRole: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateRole2


/roles/roles/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//roles/roles/{id}?createNonExistUserGroup="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.RoleRESTApi;

import java.io.File;
import java.util.*;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        try {
            RangerRole result = apiInstance.updateRole2(id, body, createNonExistUserGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#updateRole2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.RoleRESTApi;

public class RoleRESTApiExample {

    public static void main(String[] args) {
        RoleRESTApi apiInstance = new RoleRESTApi();
        Long id = 789; // Long | 
        RangerRole body = ; // RangerRole | 
        Boolean createNonExistUserGroup = true; // Boolean | 
        try {
            RangerRole result = apiInstance.updateRole2(id, body, createNonExistUserGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RoleRESTApi#updateRole2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerRole *body = ; //  (optional)
Boolean *createNonExistUserGroup = true; //  (optional) (default to false)

RoleRESTApi *apiInstance = [[RoleRESTApi alloc] init];

[apiInstance updateRole2With:id
    body:body
    createNonExistUserGroup:createNonExistUserGroup
              completionHandler: ^(RangerRole output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.RoleRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerRole}} 
  'createNonExistUserGroup': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateRole2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateRole2Example
    {
        public void main()
        {

            var apiInstance = new RoleRESTApi();
            var id = 789;  // Long | 
            var body = new RangerRole(); // RangerRole |  (optional) 
            var createNonExistUserGroup = true;  // Boolean |  (optional)  (default to false)

            try
            {
                RangerRole result = apiInstance.updateRole2(id, body, createNonExistUserGroup);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling RoleRESTApi.updateRole2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiRoleRESTApi();
$id = 789; // Long | 
$body = ; // RangerRole | 
$createNonExistUserGroup = true; // Boolean | 

try {
    $result = $api_instance->updateRole2($id, $body, $createNonExistUserGroup);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RoleRESTApi->updateRole2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::RoleRESTApi;

my $api_instance = WWW::SwaggerClient::RoleRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerRole->new(); # RangerRole | 
my $createNonExistUserGroup = true; # Boolean | 

eval { 
    my $result = $api_instance->updateRole2(id => $id, body => $body, createNonExistUserGroup => $createNonExistUserGroup);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RoleRESTApi->updateRole2: $@\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.RoleRESTApi()
id = 789 # Long | 
body =  # RangerRole |  (optional)
createNonExistUserGroup = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.update_role2(id, body=body, createNonExistUserGroup=createNonExistUserGroup)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RoleRESTApi->updateRole2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body
Query parameters
Name Description
createNonExistUserGroup
Boolean

Responses

Status: 204 -


SecurityZoneREST

createSecurityZone2


/zones/zones

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//zones/zones"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.createSecurityZone2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#createSecurityZone2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.createSecurityZone2(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#createSecurityZone2");
            e.printStackTrace();
        }
    }
}
RangerSecurityZone *body = ; //  (optional)

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance createSecurityZone2With:body
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var opts = { 
  'body':  // {{RangerSecurityZone}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createSecurityZone2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createSecurityZone2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var body = new RangerSecurityZone(); // RangerSecurityZone |  (optional) 

            try
            {
                RangerSecurityZone result = apiInstance.createSecurityZone2(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.createSecurityZone2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$body = ; // RangerSecurityZone | 

try {
    $result = $api_instance->createSecurityZone2($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->createSecurityZone2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerSecurityZone->new(); # RangerSecurityZone | 

eval { 
    my $result = $api_instance->createSecurityZone2(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->createSecurityZone2: $@\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.SecurityZoneRESTApi()
body =  # RangerSecurityZone |  (optional)

try: 
    api_response = api_instance.create_security_zone2(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->createSecurityZone2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteSecurityZone2


/zones/zones/name/{name}

Usage and SDK Samples

curl -X DELETE\
"//zones/zones/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String name = name_example; // String | 
        try {
            apiInstance.deleteSecurityZone2(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#deleteSecurityZone2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String name = name_example; // String | 
        try {
            apiInstance.deleteSecurityZone2(name);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#deleteSecurityZone2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance deleteSecurityZone2With:name
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSecurityZone2(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSecurityZone2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var name = name_example;  // String | 

            try
            {
                apiInstance.deleteSecurityZone2(name);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.deleteSecurityZone2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$name = name_example; // String | 

try {
    $api_instance->deleteSecurityZone2($name);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->deleteSecurityZone2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $name = name_example; # String | 

eval { 
    $api_instance->deleteSecurityZone2(name => $name);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->deleteSecurityZone2: $@\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.SecurityZoneRESTApi()
name = name_example # String | 

try: 
    api_instance.delete_security_zone2(name)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->deleteSecurityZone2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 204 - Success


deleteSecurityZone2_1


/zones/zones/{id}

Usage and SDK Samples

curl -X DELETE\
"//zones/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteSecurityZone2_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#deleteSecurityZone2_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteSecurityZone2_0(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#deleteSecurityZone2_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance deleteSecurityZone2_1With:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSecurityZone2_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSecurityZone2_0Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteSecurityZone2_0(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.deleteSecurityZone2_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteSecurityZone2_0($id);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->deleteSecurityZone2_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteSecurityZone2_0(id => $id);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->deleteSecurityZone2_0: $@\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.SecurityZoneRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_security_zone2_0(id)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->deleteSecurityZone2_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getAllZones2


/zones/zones

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//zones/zones"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        try {
            RangerSecurityZoneList result = apiInstance.getAllZones2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getAllZones2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        try {
            RangerSecurityZoneList result = apiInstance.getAllZones2();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getAllZones2");
            e.printStackTrace();
        }
    }
}

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance getAllZones2WithCompletionHandler: 
              ^(RangerSecurityZoneList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllZones2(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllZones2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();

            try
            {
                RangerSecurityZoneList result = apiInstance.getAllZones2();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.getAllZones2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();

try {
    $result = $api_instance->getAllZones2();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->getAllZones2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();

eval { 
    my $result = $api_instance->getAllZones2();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->getAllZones2: $@\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.SecurityZoneRESTApi()

try: 
    api_response = api_instance.get_all_zones2()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->getAllZones2: %s\n" % e)

Parameters

Responses

Status: 200 -


getSecurityZone2


/zones/zones/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//zones/zones/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String name = name_example; // String | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZone2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String name = name_example; // String | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone2(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZone2");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance getSecurityZone2With:name
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZone2(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZone2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var name = name_example;  // String | 

            try
            {
                RangerSecurityZone result = apiInstance.getSecurityZone2(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.getSecurityZone2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$name = name_example; // String | 

try {
    $result = $api_instance->getSecurityZone2($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->getSecurityZone2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getSecurityZone2(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->getSecurityZone2: $@\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.SecurityZoneRESTApi()
name = name_example # String | 

try: 
    api_response = api_instance.get_security_zone2(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->getSecurityZone2: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getSecurityZone2_2


/zones/zones/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//zones/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone2_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZone2_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        try {
            RangerSecurityZone result = apiInstance.getSecurityZone2_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZone2_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance getSecurityZone2_2With:id
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZone2_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZone2_0Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerSecurityZone result = apiInstance.getSecurityZone2_0(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.getSecurityZone2_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getSecurityZone2_0($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->getSecurityZone2_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getSecurityZone2_0(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->getSecurityZone2_0: $@\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.SecurityZoneRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_security_zone2_0(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->getSecurityZone2_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getSecurityZoneHeaderInfoListByServiceId2


/zones/zones/zone-headers/for-service/{serviceId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//zones/zones/zone-headers/for-service/{serviceId}?isTagService="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long serviceId = 789; // Long | 
        Boolean isTagService = true; // Boolean | 
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId2(serviceId, isTagService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZoneHeaderInfoListByServiceId2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long serviceId = 789; // Long | 
        Boolean isTagService = true; // Boolean | 
        try {
            array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId2(serviceId, isTagService);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getSecurityZoneHeaderInfoListByServiceId2");
            e.printStackTrace();
        }
    }
}
Long *serviceId = 789; // 
Boolean *isTagService = true; //  (optional) (default to false)

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance getSecurityZoneHeaderInfoListByServiceId2With:serviceId
    isTagService:isTagService
              completionHandler: ^(array[RangerSecurityZoneHeaderInfo] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var serviceId = 789; // {{Long}} 
var opts = { 
  'isTagService': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecurityZoneHeaderInfoListByServiceId2(serviceId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecurityZoneHeaderInfoListByServiceId2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var serviceId = 789;  // Long | 
            var isTagService = true;  // Boolean |  (optional)  (default to false)

            try
            {
                array[RangerSecurityZoneHeaderInfo] result = apiInstance.getSecurityZoneHeaderInfoListByServiceId2(serviceId, isTagService);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.getSecurityZoneHeaderInfoListByServiceId2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$serviceId = 789; // Long | 
$isTagService = true; // Boolean | 

try {
    $result = $api_instance->getSecurityZoneHeaderInfoListByServiceId2($serviceId, $isTagService);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->getSecurityZoneHeaderInfoListByServiceId2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $serviceId = 789; # Long | 
my $isTagService = true; # Boolean | 

eval { 
    my $result = $api_instance->getSecurityZoneHeaderInfoListByServiceId2(serviceId => $serviceId, isTagService => $isTagService);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->getSecurityZoneHeaderInfoListByServiceId2: $@\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.SecurityZoneRESTApi()
serviceId = 789 # Long | 
isTagService = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.get_security_zone_header_info_list_by_service_id2(serviceId, isTagService=isTagService)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->getSecurityZoneHeaderInfoListByServiceId2: %s\n" % e)

Parameters

Path parameters
Name Description
serviceId*
Long (int64)
Required
Query parameters
Name Description
isTagService
Boolean

Responses

Status: 200 -


getZoneNamesForResource


/zones/zone-names/{serviceName}/resource

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//zones/zone-names/{serviceName}/resource"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getZoneNamesForResource(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getZoneNamesForResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            array['String'] result = apiInstance.getZoneNamesForResource(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#getZoneNamesForResource");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance getZoneNamesForResourceWith:serviceName
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getZoneNamesForResource(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getZoneNamesForResourceExample
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var serviceName = serviceName_example;  // String | 

            try
            {
                array['String'] result = apiInstance.getZoneNamesForResource(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.getZoneNamesForResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getZoneNamesForResource($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->getZoneNamesForResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getZoneNamesForResource(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->getZoneNamesForResource: $@\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.SecurityZoneRESTApi()
serviceName = serviceName_example # String | 

try: 
    api_response = api_instance.get_zone_names_for_resource(serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->getZoneNamesForResource: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 200 -


updateSecurityZone2


/zones/zones/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//zones/zones/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.SecurityZoneRESTApi;

import java.io.File;
import java.util.*;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.updateSecurityZone2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#updateSecurityZone2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.SecurityZoneRESTApi;

public class SecurityZoneRESTApiExample {

    public static void main(String[] args) {
        SecurityZoneRESTApi apiInstance = new SecurityZoneRESTApi();
        Long id = 789; // Long | 
        RangerSecurityZone body = ; // RangerSecurityZone | 
        try {
            RangerSecurityZone result = apiInstance.updateSecurityZone2(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityZoneRESTApi#updateSecurityZone2");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerSecurityZone *body = ; //  (optional)

SecurityZoneRESTApi *apiInstance = [[SecurityZoneRESTApi alloc] init];

[apiInstance updateSecurityZone2With:id
    body:body
              completionHandler: ^(RangerSecurityZone output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.SecurityZoneRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerSecurityZone}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateSecurityZone2(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateSecurityZone2Example
    {
        public void main()
        {

            var apiInstance = new SecurityZoneRESTApi();
            var id = 789;  // Long | 
            var body = new RangerSecurityZone(); // RangerSecurityZone |  (optional) 

            try
            {
                RangerSecurityZone result = apiInstance.updateSecurityZone2(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling SecurityZoneRESTApi.updateSecurityZone2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiSecurityZoneRESTApi();
$id = 789; // Long | 
$body = ; // RangerSecurityZone | 

try {
    $result = $api_instance->updateSecurityZone2($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityZoneRESTApi->updateSecurityZone2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::SecurityZoneRESTApi;

my $api_instance = WWW::SwaggerClient::SecurityZoneRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerSecurityZone->new(); # RangerSecurityZone | 

eval { 
    my $result = $api_instance->updateSecurityZone2(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityZoneRESTApi->updateSecurityZone2: $@\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.SecurityZoneRESTApi()
id = 789 # Long | 
body =  # RangerSecurityZone |  (optional)

try: 
    api_response = api_instance.update_security_zone2(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityZoneRESTApi->updateSecurityZone2: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


ServiceREST

applyPolicy


/plugins/policies/apply

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/policies/apply"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.applyPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#applyPolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.applyPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#applyPolicy");
            e.printStackTrace();
        }
    }
}
RangerPolicy *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance applyPolicyWith:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.applyPolicy(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class applyPolicyExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.applyPolicy(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.applyPolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->applyPolicy($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->applyPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->applyPolicy(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->applyPolicy: $@\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.ServiceRESTApi()
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.apply_policy(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->applyPolicy: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


checkSSO


/plugins/checksso

Usage and SDK Samples

curl -X GET\
-H "Accept: text/plain"\
"//plugins/checksso"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            'String' result = apiInstance.checkSSO();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#checkSSO");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            'String' result = apiInstance.checkSSO();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#checkSSO");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance checkSSOWithCompletionHandler: 
              ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.checkSSO(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class checkSSOExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                'String' result = apiInstance.checkSSO();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.checkSSO: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->checkSSO();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->checkSSO: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->checkSSO();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->checkSSO: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.check_sso()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->checkSSO: %s\n" % e)

Parameters

Responses

Status: 200 -


countPolicies


/plugins/policies/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            Long result = apiInstance.countPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#countPolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            Long result = apiInstance.countPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#countPolicies");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance countPoliciesWithCompletionHandler: 
              ^(Long output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countPolicies(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countPoliciesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                Long result = apiInstance.countPolicies();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.countPolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->countPolicies();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->countPolicies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->countPolicies();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->countPolicies: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.count_policies()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->countPolicies: %s\n" % e)

Parameters

Responses

Status: 200 -


countServices


/plugins/services/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/services/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            Long result = apiInstance.countServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#countServices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            Long result = apiInstance.countServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#countServices");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance countServicesWithCompletionHandler: 
              ^(Long output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countServices(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countServicesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                Long result = apiInstance.countServices();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.countServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->countServices();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->countServices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->countServices();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->countServices: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.count_services()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->countServices: %s\n" % e)

Parameters

Responses

Status: 200 -


createPolicy


/plugins/policies

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/policies"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.createPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createPolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.createPolicy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createPolicy");
            e.printStackTrace();
        }
    }
}
RangerPolicy *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance createPolicyWith:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createPolicy(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createPolicyExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.createPolicy(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.createPolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->createPolicy($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->createPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->createPolicy(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->createPolicy: $@\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.ServiceRESTApi()
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.create_policy(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->createPolicy: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createService


/plugins/services

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/services"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.createService(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.createService(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createService");
            e.printStackTrace();
        }
    }
}
RangerService *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance createServiceWith:body
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createService(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createServiceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                RangerService result = apiInstance.createService(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.createService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerService | 

try {
    $result = $api_instance->createService($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->createService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->createService(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->createService: $@\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.ServiceRESTApi()
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.create_service(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->createService: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createServiceDef


/plugins/definitions

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/definitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.createServiceDef(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createServiceDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.createServiceDef(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#createServiceDef");
            e.printStackTrace();
        }
    }
}
RangerServiceDef *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance createServiceDefWith:body
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerServiceDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createServiceDef(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createServiceDefExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerServiceDef(); // RangerServiceDef |  (optional) 

            try
            {
                RangerServiceDef result = apiInstance.createServiceDef(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.createServiceDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerServiceDef | 

try {
    $result = $api_instance->createServiceDef($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->createServiceDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerServiceDef->new(); # RangerServiceDef | 

eval { 
    my $result = $api_instance->createServiceDef(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->createServiceDef: $@\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.ServiceRESTApi()
body =  # RangerServiceDef |  (optional)

try: 
    api_response = api_instance.create_service_def(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->createServiceDef: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteClusterServices

Delete services/ repos associated with cluster. Only users with Ranger UserAdmin OR KeyAdmin are allowed to access this API.


/plugins/cluster-services/{clusterName}

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"//plugins/cluster-services/{clusterName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String clusterName = clusterName_example; // String | 
        try {
            ResponseEntityOfListOfServiceDeleteResponse result = apiInstance.deleteClusterServices(clusterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteClusterServices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String clusterName = clusterName_example; // String | 
        try {
            ResponseEntityOfListOfServiceDeleteResponse result = apiInstance.deleteClusterServices(clusterName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteClusterServices");
            e.printStackTrace();
        }
    }
}
String *clusterName = clusterName_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deleteClusterServicesWith:clusterName
              completionHandler: ^(ResponseEntityOfListOfServiceDeleteResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var clusterName = clusterName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deleteClusterServices(clusterName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteClusterServicesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var clusterName = clusterName_example;  // String | 

            try
            {
                ResponseEntityOfListOfServiceDeleteResponse result = apiInstance.deleteClusterServices(clusterName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deleteClusterServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$clusterName = clusterName_example; // String | 

try {
    $result = $api_instance->deleteClusterServices($clusterName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deleteClusterServices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $clusterName = clusterName_example; # String | 

eval { 
    my $result = $api_instance->deleteClusterServices(clusterName => $clusterName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deleteClusterServices: $@\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.ServiceRESTApi()
clusterName = clusterName_example # String | 

try: 
    api_response = api_instance.delete_cluster_services(clusterName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deleteClusterServices: %s\n" % e)

Parameters

Path parameters
Name Description
clusterName*
String
Required

Responses

Status: 204 - List of serviceDeleteResponse.


deletePolicy


/plugins/policies/{id}

Usage and SDK Samples

curl -X DELETE\
"//plugins/policies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deletePolicy(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicy");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deletePolicyWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicy(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deletePolicy(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deletePolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deletePolicy($id);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deletePolicy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deletePolicy(id => $id);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deletePolicy: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_policy(id)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deletePolicy: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deletePolicyByGUIDAndServiceNameAndZoneName


/plugins/policies/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//plugins/policies/guid/{guid}?serviceName=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicyByGUIDAndServiceNameAndZoneName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicyByGUIDAndServiceNameAndZoneName");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
String *serviceName = serviceName_example; //  (optional)
String *zoneName = zoneName_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deletePolicyByGUIDAndServiceNameAndZoneNameWith:guid
    serviceName:serviceName
    zoneName:zoneName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var guid = guid_example; // {{String}} 
var opts = { 
  'serviceName': serviceName_example, // {{String}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicyByGUIDAndServiceNameAndZoneName(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyByGUIDAndServiceNameAndZoneNameExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var guid = guid_example;  // String | 
            var serviceName = serviceName_example;  // String |  (optional) 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                apiInstance.deletePolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deletePolicyByGUIDAndServiceNameAndZoneName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$guid = guid_example; // String | 
$serviceName = serviceName_example; // String | 
$zoneName = zoneName_example; // String | 

try {
    $api_instance->deletePolicyByGUIDAndServiceNameAndZoneName($guid, $serviceName, $zoneName);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deletePolicyByGUIDAndServiceNameAndZoneName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $guid = guid_example; # String | 
my $serviceName = serviceName_example; # String | 
my $zoneName = zoneName_example; # String | 

eval { 
    $api_instance->deletePolicyByGUIDAndServiceNameAndZoneName(guid => $guid, serviceName => $serviceName, zoneName => $zoneName);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deletePolicyByGUIDAndServiceNameAndZoneName: $@\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.ServiceRESTApi()
guid = guid_example # String | 
serviceName = serviceName_example # String |  (optional)
zoneName = zoneName_example # String |  (optional)

try: 
    api_instance.delete_policy_by_guid_and_service_name_and_zone_name(guid, serviceName=serviceName, zoneName=zoneName)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deletePolicyByGUIDAndServiceNameAndZoneName: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Query parameters
Name Description
serviceName
String
zoneName
String

Responses

Status: 204 - Success


deletePolicyDeltas


/plugins/server/policydeltas

Usage and SDK Samples

curl -X DELETE\
"//plugins/server/policydeltas?days="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deletePolicyDeltas(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicyDeltas");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deletePolicyDeltas(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deletePolicyDeltas");
            e.printStackTrace();
        }
    }
}
Integer *days = 56; //  (optional) (default to 7)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deletePolicyDeltasWith:days
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'days': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePolicyDeltas(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePolicyDeltasExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var days = 56;  // Integer |  (optional)  (default to 7)

            try
            {
                apiInstance.deletePolicyDeltas(days);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deletePolicyDeltas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$days = 56; // Integer | 

try {
    $api_instance->deletePolicyDeltas($days);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deletePolicyDeltas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $days = 56; # Integer | 

eval { 
    $api_instance->deletePolicyDeltas(days => $days);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deletePolicyDeltas: $@\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.ServiceRESTApi()
days = 56 # Integer |  (optional) (default to 7)

try: 
    api_instance.delete_policy_deltas(days=days)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deletePolicyDeltas: %s\n" % e)

Parameters

Query parameters
Name Description
days
Integer (int32)

Responses

Status: 204 - Success


deleteService


/plugins/services/{id}

Usage and SDK Samples

curl -X DELETE\
"//plugins/services/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteService(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteService(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteService");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deleteServiceWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteService(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteService(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deleteService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteService($id);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deleteService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteService(id => $id);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deleteService: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_service(id)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deleteService: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteServiceDef


/plugins/definitions/{id}

Usage and SDK Samples

curl -X DELETE\
"//plugins/definitions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceDef(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteServiceDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceDef(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#deleteServiceDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance deleteServiceDefWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceDef(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceDefExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteServiceDef(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.deleteServiceDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteServiceDef($id);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->deleteServiceDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteServiceDef(id => $id);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->deleteServiceDef: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_service_def(id)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->deleteServiceDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getCSRFProperties


/plugins/csrfconf

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/csrfconf"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            map['String', Object] result = apiInstance.getCSRFProperties();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getCSRFProperties");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            map['String', Object] result = apiInstance.getCSRFProperties();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getCSRFProperties");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getCSRFPropertiesWithCompletionHandler: 
              ^(map['String', Object] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCSRFProperties(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getCSRFPropertiesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                map['String', Object] result = apiInstance.getCSRFProperties();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getCSRFProperties: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getCSRFProperties();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getCSRFProperties: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getCSRFProperties();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getCSRFProperties: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_csrf_properties()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getCSRFProperties: %s\n" % e)

Parameters

Responses

Status: 200 -


getMetricByType


/plugins/metrics/type/{type}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/metrics/type/{type}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String type = type_example; // String | 
        try {
            'String' result = apiInstance.getMetricByType(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getMetricByType");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String type = type_example; // String | 
        try {
            'String' result = apiInstance.getMetricByType(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getMetricByType");
            e.printStackTrace();
        }
    }
}
String *type = type_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getMetricByTypeWith:type
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var type = type_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getMetricByType(type, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getMetricByTypeExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var type = type_example;  // String | 

            try
            {
                'String' result = apiInstance.getMetricByType(type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getMetricByType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$type = type_example; // String | 

try {
    $result = $api_instance->getMetricByType($type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getMetricByType: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->getMetricByType(type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getMetricByType: $@\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.ServiceRESTApi()
type = type_example # String | 

try: 
    api_response = api_instance.get_metric_by_type(type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getMetricByType: %s\n" % e)

Parameters

Path parameters
Name Description
type*
String
Required

Responses

Status: 200 -


getPluginsInfo


/plugins/plugins/info

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/plugins/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPluginInfoList result = apiInstance.getPluginsInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPluginsInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPluginInfoList result = apiInstance.getPluginsInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPluginsInfo");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPluginsInfoWithCompletionHandler: 
              ^(RangerPluginInfoList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPluginsInfo(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPluginsInfoExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                RangerPluginInfoList result = apiInstance.getPluginsInfo();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPluginsInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getPluginsInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPluginsInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getPluginsInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPluginsInfo: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_plugins_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPluginsInfo: %s\n" % e)

Parameters

Responses

Status: 200 -


getPolicies


/plugins/policies

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPolicyList result = apiInstance.getPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPolicyList result = apiInstance.getPolicies();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicies");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPoliciesWithCompletionHandler: 
              ^(RangerPolicyList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicies(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                RangerPolicyList result = apiInstance.getPolicies();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getPolicies();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getPolicies();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicies: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_policies()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicies: %s\n" % e)

Parameters

Responses

Status: 200 -


getPoliciesForResource


/plugins/policies/{serviceDefName}/for-resource

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/{serviceDefName}/for-resource?serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceDefName = serviceDefName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.getPoliciesForResource(serviceDefName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesForResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceDefName = serviceDefName_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerPolicy] result = apiInstance.getPoliciesForResource(serviceDefName, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesForResource");
            e.printStackTrace();
        }
    }
}
String *serviceDefName = serviceDefName_example; // 
String *serviceName = serviceName_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPoliciesForResourceWith:serviceDefName
    serviceName:serviceName
              completionHandler: ^(array[RangerPolicy] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceDefName = serviceDefName_example; // {{String}} 
var opts = { 
  'serviceName': serviceName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPoliciesForResource(serviceDefName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesForResourceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceDefName = serviceDefName_example;  // String | 
            var serviceName = serviceName_example;  // String |  (optional) 

            try
            {
                array[RangerPolicy] result = apiInstance.getPoliciesForResource(serviceDefName, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPoliciesForResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceDefName = serviceDefName_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getPoliciesForResource($serviceDefName, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPoliciesForResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceDefName = serviceDefName_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getPoliciesForResource(serviceDefName => $serviceDefName, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPoliciesForResource: $@\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.ServiceRESTApi()
serviceDefName = serviceDefName_example # String | 
serviceName = serviceName_example # String |  (optional)

try: 
    api_response = api_instance.get_policies_for_resource(serviceDefName, serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPoliciesForResource: %s\n" % e)

Parameters

Path parameters
Name Description
serviceDefName*
String
Required
Query parameters
Name Description
serviceName
String

Responses

Status: 200 -


getPoliciesInCsv


/plugins/policies/csv

Usage and SDK Samples

curl -X GET\
"//plugins/policies/csv"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            apiInstance.getPoliciesInCsv();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInCsv");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            apiInstance.getPoliciesInCsv();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInCsv");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPoliciesInCsvWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getPoliciesInCsv(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesInCsvExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                apiInstance.getPoliciesInCsv();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPoliciesInCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $api_instance->getPoliciesInCsv();
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPoliciesInCsv: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    $api_instance->getPoliciesInCsv();
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPoliciesInCsv: $@\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.ServiceRESTApi()

try: 
    api_instance.get_policies_in_csv()
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPoliciesInCsv: %s\n" % e)

Parameters

Responses

Status: 200 - Success


getPoliciesInExcel


/plugins/policies/downloadExcel

Usage and SDK Samples

curl -X GET\
"//plugins/policies/downloadExcel"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            apiInstance.getPoliciesInExcel();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInExcel");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            apiInstance.getPoliciesInExcel();
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInExcel");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPoliciesInExcelWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getPoliciesInExcel(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesInExcelExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                apiInstance.getPoliciesInExcel();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPoliciesInExcel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $api_instance->getPoliciesInExcel();
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPoliciesInExcel: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    $api_instance->getPoliciesInExcel();
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPoliciesInExcel: $@\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.ServiceRESTApi()

try: 
    api_instance.get_policies_in_excel()
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPoliciesInExcel: %s\n" % e)

Parameters

Responses

Status: 200 - Success


getPoliciesInJson


/plugins/policies/exportJson

Usage and SDK Samples

curl -X GET\
"//plugins/policies/exportJson?checkPoliciesExists="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Boolean checkPoliciesExists = true; // Boolean | 
        try {
            apiInstance.getPoliciesInJson(checkPoliciesExists);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInJson");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Boolean checkPoliciesExists = true; // Boolean | 
        try {
            apiInstance.getPoliciesInJson(checkPoliciesExists);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPoliciesInJson");
            e.printStackTrace();
        }
    }
}
Boolean *checkPoliciesExists = true; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPoliciesInJsonWith:checkPoliciesExists
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'checkPoliciesExists': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getPoliciesInJson(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPoliciesInJsonExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var checkPoliciesExists = true;  // Boolean |  (optional) 

            try
            {
                apiInstance.getPoliciesInJson(checkPoliciesExists);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPoliciesInJson: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$checkPoliciesExists = true; // Boolean | 

try {
    $api_instance->getPoliciesInJson($checkPoliciesExists);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPoliciesInJson: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $checkPoliciesExists = true; # Boolean | 

eval { 
    $api_instance->getPoliciesInJson(checkPoliciesExists => $checkPoliciesExists);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPoliciesInJson: $@\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.ServiceRESTApi()
checkPoliciesExists = true # Boolean |  (optional)

try: 
    api_instance.get_policies_in_json(checkPoliciesExists=checkPoliciesExists)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPoliciesInJson: %s\n" % e)

Parameters

Query parameters
Name Description
checkPoliciesExists
Boolean

Responses

Status: 200 - Success


getPolicy


/plugins/policies/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerPolicy result = apiInstance.getPolicy(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerPolicy result = apiInstance.getPolicy(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicy");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyWith:id
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicy(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerPolicy result = apiInstance.getPolicy(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getPolicy($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getPolicy(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicy: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_policy(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicy: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getPolicyByGUIDAndServiceNameAndZoneName


/plugins/policies/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/guid/{guid}?serviceName=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyByGUIDAndServiceNameAndZoneName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String guid = guid_example; // String | 
        String serviceName = serviceName_example; // String | 
        String zoneName = zoneName_example; // String | 
        try {
            RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyByGUIDAndServiceNameAndZoneName");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
String *serviceName = serviceName_example; //  (optional)
String *zoneName = zoneName_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyByGUIDAndServiceNameAndZoneNameWith:guid
    serviceName:serviceName
    zoneName:zoneName
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var guid = guid_example; // {{String}} 
var opts = { 
  'serviceName': serviceName_example, // {{String}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyByGUIDAndServiceNameAndZoneName(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyByGUIDAndServiceNameAndZoneNameExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var guid = guid_example;  // String | 
            var serviceName = serviceName_example;  // String |  (optional) 
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.getPolicyByGUIDAndServiceNameAndZoneName(guid, serviceName, zoneName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicyByGUIDAndServiceNameAndZoneName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$guid = guid_example; // String | 
$serviceName = serviceName_example; // String | 
$zoneName = zoneName_example; // String | 

try {
    $result = $api_instance->getPolicyByGUIDAndServiceNameAndZoneName($guid, $serviceName, $zoneName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicyByGUIDAndServiceNameAndZoneName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $guid = guid_example; # String | 
my $serviceName = serviceName_example; # String | 
my $zoneName = zoneName_example; # String | 

eval { 
    my $result = $api_instance->getPolicyByGUIDAndServiceNameAndZoneName(guid => $guid, serviceName => $serviceName, zoneName => $zoneName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicyByGUIDAndServiceNameAndZoneName: $@\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.ServiceRESTApi()
guid = guid_example # String | 
serviceName = serviceName_example # String |  (optional)
zoneName = zoneName_example # String |  (optional)

try: 
    api_response = api_instance.get_policy_by_guid_and_service_name_and_zone_name(guid, serviceName=serviceName, zoneName=zoneName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicyByGUIDAndServiceNameAndZoneName: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Query parameters
Name Description
serviceName
String
zoneName
String

Responses

Status: 200 -


getPolicyForVersionNumber


/plugins/policy/{policyId}/version/{versionNo}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policy/{policyId}/version/{versionNo}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long policyId = 789; // Long | 
        Integer versionNo = 56; // Integer | 
        try {
            RangerPolicy result = apiInstance.getPolicyForVersionNumber(policyId, versionNo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyForVersionNumber");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long policyId = 789; // Long | 
        Integer versionNo = 56; // Integer | 
        try {
            RangerPolicy result = apiInstance.getPolicyForVersionNumber(policyId, versionNo);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyForVersionNumber");
            e.printStackTrace();
        }
    }
}
Long *policyId = 789; // 
Integer *versionNo = 56; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyForVersionNumberWith:policyId
    versionNo:versionNo
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var policyId = 789; // {{Long}} 
var versionNo = 56; // {{Integer}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyForVersionNumber(policyId, versionNo, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyForVersionNumberExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var policyId = 789;  // Long | 
            var versionNo = 56;  // Integer | 

            try
            {
                RangerPolicy result = apiInstance.getPolicyForVersionNumber(policyId, versionNo);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicyForVersionNumber: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$policyId = 789; // Long | 
$versionNo = 56; // Integer | 

try {
    $result = $api_instance->getPolicyForVersionNumber($policyId, $versionNo);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicyForVersionNumber: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $policyId = 789; # Long | 
my $versionNo = 56; # Integer | 

eval { 
    my $result = $api_instance->getPolicyForVersionNumber(policyId => $policyId, versionNo => $versionNo);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicyForVersionNumber: $@\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.ServiceRESTApi()
policyId = 789 # Long | 
versionNo = 56 # Integer | 

try: 
    api_response = api_instance.get_policy_for_version_number(policyId, versionNo)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicyForVersionNumber: %s\n" % e)

Parameters

Path parameters
Name Description
policyId*
Long (int64)
Required
versionNo*
Integer (int32)
Required

Responses

Status: 200 -


getPolicyFromEventTime


/plugins/policies/eventTime

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/eventTime"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPolicy result = apiInstance.getPolicyFromEventTime();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyFromEventTime");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerPolicy result = apiInstance.getPolicyFromEventTime();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyFromEventTime");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyFromEventTimeWithCompletionHandler: 
              ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyFromEventTime(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyFromEventTimeExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                RangerPolicy result = apiInstance.getPolicyFromEventTime();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicyFromEventTime: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getPolicyFromEventTime();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicyFromEventTime: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getPolicyFromEventTime();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicyFromEventTime: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_policy_from_event_time()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicyFromEventTime: %s\n" % e)

Parameters

Responses

Status: 200 -


getPolicyLabels


/plugins/policyLabels

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policyLabels"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            array['String'] result = apiInstance.getPolicyLabels();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyLabels");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            array['String'] result = apiInstance.getPolicyLabels();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyLabels");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyLabelsWithCompletionHandler: 
              ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyLabels(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyLabelsExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                array['String'] result = apiInstance.getPolicyLabels();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicyLabels: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getPolicyLabels();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicyLabels: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getPolicyLabels();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicyLabels: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_policy_labels()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicyLabels: %s\n" % e)

Parameters

Responses

Status: 200 -


getPolicyVersionList


/plugins/policy/{policyId}/versionList

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policy/{policyId}/versionList"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long policyId = 789; // Long | 
        try {
            VXString result = apiInstance.getPolicyVersionList(policyId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyVersionList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long policyId = 789; // Long | 
        try {
            VXString result = apiInstance.getPolicyVersionList(policyId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getPolicyVersionList");
            e.printStackTrace();
        }
    }
}
Long *policyId = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getPolicyVersionListWith:policyId
              completionHandler: ^(VXString output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var policyId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getPolicyVersionList(policyId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getPolicyVersionListExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var policyId = 789;  // Long | 

            try
            {
                VXString result = apiInstance.getPolicyVersionList(policyId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getPolicyVersionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$policyId = 789; // Long | 

try {
    $result = $api_instance->getPolicyVersionList($policyId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getPolicyVersionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $policyId = 789; # Long | 

eval { 
    my $result = $api_instance->getPolicyVersionList(policyId => $policyId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getPolicyVersionList: $@\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.ServiceRESTApi()
policyId = 789 # Long | 

try: 
    api_response = api_instance.get_policy_version_list(policyId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getPolicyVersionList: %s\n" % e)

Parameters

Path parameters
Name Description
policyId*
Long (int64)
Required

Responses

Status: 200 -


getSecureServicePoliciesIfUpdated


/plugins/secure/policies/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/secure/policies/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownVersion=&pluginCapabilities=&pluginId=&supportsPolicyDeltas=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsPolicyDeltas = true; // Boolean | 
        String zoneName = zoneName_example; // String | 
        try {
            ServicePolicies result = apiInstance.getSecureServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getSecureServicePoliciesIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsPolicyDeltas = true; // Boolean | 
        String zoneName = zoneName_example; // String | 
        try {
            ServicePolicies result = apiInstance.getSecureServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getSecureServicePoliciesIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)
Boolean *supportsPolicyDeltas = true; //  (optional) (default to false)
String *zoneName = zoneName_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getSecureServicePoliciesIfUpdatedWith:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownVersion:lastKnownVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
    supportsPolicyDeltas:supportsPolicyDeltas
    zoneName:zoneName
              completionHandler: ^(ServicePolicies output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example, // {{String}} 
  'supportsPolicyDeltas': true, // {{Boolean}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecureServicePoliciesIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecureServicePoliciesIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 
            var supportsPolicyDeltas = true;  // Boolean |  (optional)  (default to false)
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                ServicePolicies result = apiInstance.getSecureServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getSecureServicePoliciesIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 
$supportsPolicyDeltas = true; // Boolean | 
$zoneName = zoneName_example; // String | 

try {
    $result = $api_instance->getSecureServicePoliciesIfUpdated($serviceName, $clusterName, $lastActivationTime, $lastKnownVersion, $pluginCapabilities, $pluginId, $supportsPolicyDeltas, $zoneName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getSecureServicePoliciesIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 
my $supportsPolicyDeltas = true; # Boolean | 
my $zoneName = zoneName_example; # String | 

eval { 
    my $result = $api_instance->getSecureServicePoliciesIfUpdated(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownVersion => $lastKnownVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId, supportsPolicyDeltas => $supportsPolicyDeltas, zoneName => $zoneName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getSecureServicePoliciesIfUpdated: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)
supportsPolicyDeltas = true # Boolean |  (optional) (default to false)
zoneName = zoneName_example # String |  (optional)

try: 
    api_response = api_instance.get_secure_service_policies_if_updated(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownVersion=lastKnownVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId, supportsPolicyDeltas=supportsPolicyDeltas, zoneName=zoneName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getSecureServicePoliciesIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownVersion
Long (int64)
pluginCapabilities
String
pluginId
String
supportsPolicyDeltas
Boolean
zoneName
String

Responses

Status: 200 -


getService


/plugins/services/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/services/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerService result = apiInstance.getService(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerService result = apiInstance.getService(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getService");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServiceWith:id
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getService(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerService result = apiInstance.getService(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getService($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getService(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getService: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getService: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServiceByName


/plugins/services/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/services/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerService result = apiInstance.getServiceByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerService result = apiInstance.getServiceByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServiceByNameWith:name
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceByNameExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var name = name_example;  // String | 

            try
            {
                RangerService result = apiInstance.getServiceByName(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServiceByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$name = name_example; // String | 

try {
    $result = $api_instance->getServiceByName($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServiceByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getServiceByName(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServiceByName: $@\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.ServiceRESTApi()
name = name_example # String | 

try: 
    api_response = api_instance.get_service_by_name(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServiceByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getServiceDef


/plugins/definitions/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/definitions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerServiceDef result = apiInstance.getServiceDef(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerServiceDef result = apiInstance.getServiceDef(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServiceDefWith:id
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceDef(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceDefExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerServiceDef result = apiInstance.getServiceDef(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServiceDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getServiceDef($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServiceDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getServiceDef(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServiceDef: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service_def(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServiceDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServiceDefByName


/plugins/definitions/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/definitions/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerServiceDef result = apiInstance.getServiceDefByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDefByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerServiceDef result = apiInstance.getServiceDefByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDefByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServiceDefByNameWith:name
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceDefByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceDefByNameExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var name = name_example;  // String | 

            try
            {
                RangerServiceDef result = apiInstance.getServiceDefByName(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServiceDefByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$name = name_example; // String | 

try {
    $result = $api_instance->getServiceDefByName($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServiceDefByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getServiceDefByName(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServiceDefByName: $@\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.ServiceRESTApi()
name = name_example # String | 

try: 
    api_response = api_instance.get_service_def_by_name(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServiceDefByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getServiceDefs


/plugins/definitions

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/definitions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerServiceDefList result = apiInstance.getServiceDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDefs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerServiceDefList result = apiInstance.getServiceDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServiceDefs");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServiceDefsWithCompletionHandler: 
              ^(RangerServiceDefList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceDefs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceDefsExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                RangerServiceDefList result = apiInstance.getServiceDefs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServiceDefs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getServiceDefs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServiceDefs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getServiceDefs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServiceDefs: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_service_defs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServiceDefs: %s\n" % e)

Parameters

Responses

Status: 200 -


getServicePolicies


/plugins/policies/service/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/service/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerPolicyList result = apiInstance.getServicePolicies(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        try {
            RangerPolicyList result = apiInstance.getServicePolicies(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePolicies");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServicePoliciesWith:id
              completionHandler: ^(RangerPolicyList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServicePolicies(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServicePoliciesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerPolicyList result = apiInstance.getServicePolicies(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServicePolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getServicePolicies($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServicePolicies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getServicePolicies(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServicePolicies: $@\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.ServiceRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service_policies(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServicePolicies: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServicePoliciesByName


/plugins/policies/service/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/service/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerPolicyList result = apiInstance.getServicePoliciesByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePoliciesByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String name = name_example; // String | 
        try {
            RangerPolicyList result = apiInstance.getServicePoliciesByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePoliciesByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServicePoliciesByNameWith:name
              completionHandler: ^(RangerPolicyList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServicePoliciesByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServicePoliciesByNameExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var name = name_example;  // String | 

            try
            {
                RangerPolicyList result = apiInstance.getServicePoliciesByName(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServicePoliciesByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$name = name_example; // String | 

try {
    $result = $api_instance->getServicePoliciesByName($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServicePoliciesByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getServicePoliciesByName(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServicePoliciesByName: $@\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.ServiceRESTApi()
name = name_example # String | 

try: 
    api_response = api_instance.get_service_policies_by_name(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServicePoliciesByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getServicePoliciesIfUpdated


/plugins/policies/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownVersion=&pluginCapabilities=&pluginId=&supportsPolicyDeltas=&zoneName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsPolicyDeltas = true; // Boolean | 
        String zoneName = zoneName_example; // String | 
        try {
            ServicePolicies result = apiInstance.getServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePoliciesIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsPolicyDeltas = true; // Boolean | 
        String zoneName = zoneName_example; // String | 
        try {
            ServicePolicies result = apiInstance.getServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServicePoliciesIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)
Boolean *supportsPolicyDeltas = true; //  (optional) (default to false)
String *zoneName = zoneName_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServicePoliciesIfUpdatedWith:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownVersion:lastKnownVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
    supportsPolicyDeltas:supportsPolicyDeltas
    zoneName:zoneName
              completionHandler: ^(ServicePolicies output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example, // {{String}} 
  'supportsPolicyDeltas': true, // {{Boolean}} 
  'zoneName': zoneName_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServicePoliciesIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServicePoliciesIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 
            var supportsPolicyDeltas = true;  // Boolean |  (optional)  (default to false)
            var zoneName = zoneName_example;  // String |  (optional) 

            try
            {
                ServicePolicies result = apiInstance.getServicePoliciesIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsPolicyDeltas, zoneName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServicePoliciesIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 
$supportsPolicyDeltas = true; // Boolean | 
$zoneName = zoneName_example; // String | 

try {
    $result = $api_instance->getServicePoliciesIfUpdated($serviceName, $clusterName, $lastActivationTime, $lastKnownVersion, $pluginCapabilities, $pluginId, $supportsPolicyDeltas, $zoneName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServicePoliciesIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 
my $supportsPolicyDeltas = true; # Boolean | 
my $zoneName = zoneName_example; # String | 

eval { 
    my $result = $api_instance->getServicePoliciesIfUpdated(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownVersion => $lastKnownVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId, supportsPolicyDeltas => $supportsPolicyDeltas, zoneName => $zoneName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServicePoliciesIfUpdated: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)
supportsPolicyDeltas = true # Boolean |  (optional) (default to false)
zoneName = zoneName_example # String |  (optional)

try: 
    api_response = api_instance.get_service_policies_if_updated(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownVersion=lastKnownVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId, supportsPolicyDeltas=supportsPolicyDeltas, zoneName=zoneName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServicePoliciesIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownVersion
Long (int64)
pluginCapabilities
String
pluginId
String
supportsPolicyDeltas
Boolean
zoneName
String

Responses

Status: 200 -


getServices


/plugins/services

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/services"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerServiceList result = apiInstance.getServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServices");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            RangerServiceList result = apiInstance.getServices();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#getServices");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance getServicesWithCompletionHandler: 
              ^(RangerServiceList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServices(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServicesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                RangerServiceList result = apiInstance.getServices();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.getServices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->getServices();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->getServices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->getServices();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->getServices: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.get_services()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->getServices: %s\n" % e)

Parameters

Responses

Status: 200 -


grantAccess


/plugins/services/grant/{serviceName}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/services/grant/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.grantAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#grantAccess");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.grantAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#grantAccess");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRequest *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance grantAccessWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.grantAccess(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class grantAccessExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRequest(); // GrantRevokeRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.grantAccess(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.grantAccess: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRequest | 

try {
    $result = $api_instance->grantAccess($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->grantAccess: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRequest->new(); # GrantRevokeRequest | 

eval { 
    my $result = $api_instance->grantAccess(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->grantAccess: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRequest |  (optional)

try: 
    api_response = api_instance.grant_access(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->grantAccess: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 -


importPoliciesFromFile


/plugins/policies/importPoliciesFromFile

Usage and SDK Samples

curl -X POST\
-H "Content-Type: application/json,multipart/form-data"\
"//plugins/policies/importPoliciesFromFile?importType=&isOverride="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Policies_importPoliciesFromFile_body body = ; // Policies_importPoliciesFromFile_body | 
        String importType = importType_example; // String | 
        Boolean isOverride = true; // Boolean | 
        try {
            apiInstance.importPoliciesFromFile(body, importType, isOverride);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#importPoliciesFromFile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Policies_importPoliciesFromFile_body body = ; // Policies_importPoliciesFromFile_body | 
        String importType = importType_example; // String | 
        Boolean isOverride = true; // Boolean | 
        try {
            apiInstance.importPoliciesFromFile(body, importType, isOverride);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#importPoliciesFromFile");
            e.printStackTrace();
        }
    }
}
Policies_importPoliciesFromFile_body *body = ; //  (optional)
String *importType = importType_example; //  (optional)
Boolean *isOverride = true; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance importPoliciesFromFileWith:body
    importType:importType
    isOverride:isOverride
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{Policies_importPoliciesFromFile_body}} 
  'importType': importType_example // {{String}} 
  'isOverride': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.importPoliciesFromFile(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class importPoliciesFromFileExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new Policies_importPoliciesFromFile_body(); // Policies_importPoliciesFromFile_body |  (optional) 
            var importType = importType_example;  // String |  (optional) 
            var isOverride = true;  // Boolean |  (optional) 

            try
            {
                apiInstance.importPoliciesFromFile(body, importType, isOverride);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.importPoliciesFromFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // Policies_importPoliciesFromFile_body | 
$importType = importType_example; // String | 
$isOverride = true; // Boolean | 

try {
    $api_instance->importPoliciesFromFile($body, $importType, $isOverride);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->importPoliciesFromFile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::Policies_importPoliciesFromFile_body->new(); # Policies_importPoliciesFromFile_body | 
my $importType = importType_example; # String | 
my $isOverride = true; # Boolean | 

eval { 
    $api_instance->importPoliciesFromFile(body => $body, importType => $importType, isOverride => $isOverride);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->importPoliciesFromFile: $@\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.ServiceRESTApi()
body =  # Policies_importPoliciesFromFile_body |  (optional)
importType = importType_example # String |  (optional)
isOverride = true # Boolean |  (optional)

try: 
    api_instance.import_policies_from_file(body=body, importType=importType, isOverride=isOverride)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->importPoliciesFromFile: %s\n" % e)

Parameters

Body parameters
Name Description
body
Form parameters
Name Description
fileDetail
byte[] (binary)
serviceMapStream
byte[] (binary)
uploadedInputStream
byte[] (binary)
zoneMapStream
byte[] (binary)
Query parameters
Name Description
importType
String
isOverride
Boolean

Responses

Status: 201 - Success


lookupResource


/plugins/services/lookupResource/{serviceName}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/services/lookupResource/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        ResourceLookupContext body = ; // ResourceLookupContext | 
        try {
            array['String'] result = apiInstance.lookupResource(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#lookupResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        ResourceLookupContext body = ; // ResourceLookupContext | 
        try {
            array['String'] result = apiInstance.lookupResource(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#lookupResource");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
ResourceLookupContext *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance lookupResourceWith:serviceName
    body:body
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{ResourceLookupContext}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.lookupResource(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class lookupResourceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new ResourceLookupContext(); // ResourceLookupContext |  (optional) 

            try
            {
                array['String'] result = apiInstance.lookupResource(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.lookupResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // ResourceLookupContext | 

try {
    $result = $api_instance->lookupResource($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->lookupResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::ResourceLookupContext->new(); # ResourceLookupContext | 

eval { 
    my $result = $api_instance->lookupResource(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->lookupResource: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
body =  # ResourceLookupContext |  (optional)

try: 
    api_response = api_instance.lookup_resource(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->lookupResource: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 -


purgeEmptyPolicies


/plugins/server/purgepolicies/{serviceName}

Usage and SDK Samples

curl -X DELETE\
"//plugins/server/purgepolicies/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.purgeEmptyPolicies(serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#purgeEmptyPolicies");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            apiInstance.purgeEmptyPolicies(serviceName);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#purgeEmptyPolicies");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance purgeEmptyPoliciesWith:serviceName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.purgeEmptyPolicies(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class purgeEmptyPoliciesExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 

            try
            {
                apiInstance.purgeEmptyPolicies(serviceName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.purgeEmptyPolicies: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 

try {
    $api_instance->purgeEmptyPolicies($serviceName);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->purgeEmptyPolicies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 

eval { 
    $api_instance->purgeEmptyPolicies(serviceName => $serviceName);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->purgeEmptyPolicies: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 

try: 
    api_instance.purge_empty_policies(serviceName)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->purgeEmptyPolicies: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 204 - Success


purgeRecords


/plugins/server/purge/records

Usage and SDK Samples

curl -X DELETE\
"//plugins/server/purge/records?retentionDays=&type="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Integer retentionDays = 56; // Integer | 
        String type = type_example; // String | 
        try {
            apiInstance.purgeRecords(retentionDays, type);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#purgeRecords");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Integer retentionDays = 56; // Integer | 
        String type = type_example; // String | 
        try {
            apiInstance.purgeRecords(retentionDays, type);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#purgeRecords");
            e.printStackTrace();
        }
    }
}
Integer *retentionDays = 56; //  (optional) (default to 180)
String *type = type_example; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance purgeRecordsWith:retentionDays
    type:type
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'retentionDays': 56, // {{Integer}} 
  'type': type_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.purgeRecords(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class purgeRecordsExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var retentionDays = 56;  // Integer |  (optional)  (default to 180)
            var type = type_example;  // String |  (optional) 

            try
            {
                apiInstance.purgeRecords(retentionDays, type);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.purgeRecords: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$retentionDays = 56; // Integer | 
$type = type_example; // String | 

try {
    $api_instance->purgeRecords($retentionDays, $type);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->purgeRecords: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $retentionDays = 56; # Integer | 
my $type = type_example; # String | 

eval { 
    $api_instance->purgeRecords(retentionDays => $retentionDays, type => $type);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->purgeRecords: $@\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.ServiceRESTApi()
retentionDays = 56 # Integer |  (optional) (default to 180)
type = type_example # String |  (optional)

try: 
    api_instance.purge_records(retentionDays=retentionDays, type=type)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->purgeRecords: %s\n" % e)

Parameters

Query parameters
Name Description
retentionDays
Integer (int32)
type
String

Responses

Status: 204 - Success


resetPolicyCache

Resets/ removes service policy cache for given service.


/plugins/policies/cache/reset

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/cache/reset?serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | non-empty serviceName
        try {
            'Boolean' result = apiInstance.resetPolicyCache(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#resetPolicyCache");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | non-empty serviceName
        try {
            'Boolean' result = apiInstance.resetPolicyCache(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#resetPolicyCache");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // non-empty serviceName (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance resetPolicyCacheWith:serviceName
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'serviceName': serviceName_example // {{String}} non-empty serviceName
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.resetPolicyCache(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetPolicyCacheExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | non-empty serviceName (optional) 

            try
            {
                'Boolean' result = apiInstance.resetPolicyCache(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.resetPolicyCache: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | non-empty serviceName

try {
    $result = $api_instance->resetPolicyCache($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->resetPolicyCache: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | non-empty serviceName

eval { 
    my $result = $api_instance->resetPolicyCache(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->resetPolicyCache: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | non-empty serviceName (optional)

try: 
    api_response = api_instance.reset_policy_cache(serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->resetPolicyCache: %s\n" % e)

Parameters

Query parameters
Name Description
serviceName
String
non-empty serviceName

Responses

Status: 200 - true if successfully reseted/ removed for given service, false otherwise.


resetPolicyCacheAll

Resets/ removes service policy cache for all.


/plugins/policies/cache/reset-all

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//plugins/policies/cache/reset-all"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            'Boolean' result = apiInstance.resetPolicyCacheAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#resetPolicyCacheAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        try {
            'Boolean' result = apiInstance.resetPolicyCacheAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#resetPolicyCacheAll");
            e.printStackTrace();
        }
    }
}

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance resetPolicyCacheAllWithCompletionHandler: 
              ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.resetPolicyCacheAll(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetPolicyCacheAllExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();

            try
            {
                'Boolean' result = apiInstance.resetPolicyCacheAll();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.resetPolicyCacheAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();

try {
    $result = $api_instance->resetPolicyCacheAll();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->resetPolicyCacheAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();

eval { 
    my $result = $api_instance->resetPolicyCacheAll();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->resetPolicyCacheAll: $@\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.ServiceRESTApi()

try: 
    api_response = api_instance.reset_policy_cache_all()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->resetPolicyCacheAll: %s\n" % e)

Parameters

Responses

Status: 200 - true if successfully reseted/ removed, false otherwise.


revokeAccess


/plugins/services/revoke/{serviceName}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/services/revoke/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.revokeAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#revokeAccess");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.revokeAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#revokeAccess");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRequest *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance revokeAccessWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.revokeAccess(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class revokeAccessExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRequest(); // GrantRevokeRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.revokeAccess(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.revokeAccess: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRequest | 

try {
    $result = $api_instance->revokeAccess($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->revokeAccess: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRequest->new(); # GrantRevokeRequest | 

eval { 
    my $result = $api_instance->revokeAccess(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->revokeAccess: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRequest |  (optional)

try: 
    api_response = api_instance.revoke_access(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->revokeAccess: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 -


secureGrantAccess


/plugins/secure/services/grant/{serviceName}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/secure/services/grant/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.secureGrantAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#secureGrantAccess");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.secureGrantAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#secureGrantAccess");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRequest *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance secureGrantAccessWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureGrantAccess(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureGrantAccessExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRequest(); // GrantRevokeRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.secureGrantAccess(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.secureGrantAccess: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRequest | 

try {
    $result = $api_instance->secureGrantAccess($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->secureGrantAccess: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRequest->new(); # GrantRevokeRequest | 

eval { 
    my $result = $api_instance->secureGrantAccess(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->secureGrantAccess: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRequest |  (optional)

try: 
    api_response = api_instance.secure_grant_access(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->secureGrantAccess: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 -


secureRevokeAccess


/plugins/secure/services/revoke/{serviceName}

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/secure/services/revoke/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.secureRevokeAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#secureRevokeAccess");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        String serviceName = serviceName_example; // String | 
        GrantRevokeRequest body = ; // GrantRevokeRequest | 
        try {
            RESTResponse result = apiInstance.secureRevokeAccess(serviceName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#secureRevokeAccess");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
GrantRevokeRequest *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance secureRevokeAccessWith:serviceName
    body:body
              completionHandler: ^(RESTResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'body':  // {{GrantRevokeRequest}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureRevokeAccess(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureRevokeAccessExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var serviceName = serviceName_example;  // String | 
            var body = new GrantRevokeRequest(); // GrantRevokeRequest |  (optional) 

            try
            {
                RESTResponse result = apiInstance.secureRevokeAccess(serviceName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.secureRevokeAccess: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$serviceName = serviceName_example; // String | 
$body = ; // GrantRevokeRequest | 

try {
    $result = $api_instance->secureRevokeAccess($serviceName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->secureRevokeAccess: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $body = WWW::SwaggerClient::Object::GrantRevokeRequest->new(); # GrantRevokeRequest | 

eval { 
    my $result = $api_instance->secureRevokeAccess(serviceName => $serviceName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->secureRevokeAccess: $@\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.ServiceRESTApi()
serviceName = serviceName_example # String | 
body =  # GrantRevokeRequest |  (optional)

try: 
    api_response = api_instance.secure_revoke_access(serviceName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->secureRevokeAccess: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Body parameters
Name Description
body

Responses

Status: 201 -


updatePolicy


/plugins/policies/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/policies/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.updatePolicy(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updatePolicy");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        RangerPolicy body = ; // RangerPolicy | 
        try {
            RangerPolicy result = apiInstance.updatePolicy(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updatePolicy");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerPolicy *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance updatePolicyWith:id
    body:body
              completionHandler: ^(RangerPolicy output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerPolicy}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updatePolicy(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updatePolicyExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 
            var body = new RangerPolicy(); // RangerPolicy |  (optional) 

            try
            {
                RangerPolicy result = apiInstance.updatePolicy(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.updatePolicy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 
$body = ; // RangerPolicy | 

try {
    $result = $api_instance->updatePolicy($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->updatePolicy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerPolicy->new(); # RangerPolicy | 

eval { 
    my $result = $api_instance->updatePolicy(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->updatePolicy: $@\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.ServiceRESTApi()
id = 789 # Long | 
body =  # RangerPolicy |  (optional)

try: 
    api_response = api_instance.update_policy(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->updatePolicy: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateService


/plugins/services/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/services/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateService(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updateService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            RangerService result = apiInstance.updateService(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updateService");
            e.printStackTrace();
        }
    }
}
RangerService *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance updateServiceWith:body
              completionHandler: ^(RangerService output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateService(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                RangerService result = apiInstance.updateService(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.updateService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerService | 

try {
    $result = $api_instance->updateService($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->updateService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->updateService(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->updateService: $@\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.ServiceRESTApi()
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.update_service(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->updateService: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateServiceDef


/plugins/definitions/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//plugins/definitions/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDef(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updateServiceDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        Long id = 789; // Long | 
        RangerServiceDef body = ; // RangerServiceDef | 
        try {
            RangerServiceDef result = apiInstance.updateServiceDef(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#updateServiceDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerServiceDef *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance updateServiceDefWith:id
    body:body
              completionHandler: ^(RangerServiceDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerServiceDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceDef(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceDefExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var id = 789;  // Long | 
            var body = new RangerServiceDef(); // RangerServiceDef |  (optional) 

            try
            {
                RangerServiceDef result = apiInstance.updateServiceDef(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.updateServiceDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$id = 789; // Long | 
$body = ; // RangerServiceDef | 

try {
    $result = $api_instance->updateServiceDef($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->updateServiceDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerServiceDef->new(); # RangerServiceDef | 

eval { 
    my $result = $api_instance->updateServiceDef(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->updateServiceDef: $@\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.ServiceRESTApi()
id = 789 # Long | 
body =  # RangerServiceDef |  (optional)

try: 
    api_response = api_instance.update_service_def(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->updateServiceDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


validateConfig


/plugins/services/validateConfig

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,application/xml"\
"//plugins/services/validateConfig"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ServiceRESTApi;

import java.io.File;
import java.util.*;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            VXResponse result = apiInstance.validateConfig(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#validateConfig");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ServiceRESTApi;

public class ServiceRESTApiExample {

    public static void main(String[] args) {
        ServiceRESTApi apiInstance = new ServiceRESTApi();
        RangerService body = ; // RangerService | 
        try {
            VXResponse result = apiInstance.validateConfig(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServiceRESTApi#validateConfig");
            e.printStackTrace();
        }
    }
}
RangerService *body = ; //  (optional)

ServiceRESTApi *apiInstance = [[ServiceRESTApi alloc] init];

[apiInstance validateConfigWith:body
              completionHandler: ^(VXResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.ServiceRESTApi()
var opts = { 
  'body':  // {{RangerService}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.validateConfig(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class validateConfigExample
    {
        public void main()
        {

            var apiInstance = new ServiceRESTApi();
            var body = new RangerService(); // RangerService |  (optional) 

            try
            {
                VXResponse result = apiInstance.validateConfig(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ServiceRESTApi.validateConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiServiceRESTApi();
$body = ; // RangerService | 

try {
    $result = $api_instance->validateConfig($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServiceRESTApi->validateConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ServiceRESTApi;

my $api_instance = WWW::SwaggerClient::ServiceRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerService->new(); # RangerService | 

eval { 
    my $result = $api_instance->validateConfig(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServiceRESTApi->validateConfig: $@\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.ServiceRESTApi()
body =  # RangerService |  (optional)

try: 
    api_response = api_instance.validate_config(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServiceRESTApi->validateConfig: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


TagREST

createServiceResource


/tags/resources

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/resources?updateIfExists="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        RangerServiceResource body = ; // RangerServiceResource | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerServiceResource result = apiInstance.createServiceResource(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createServiceResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        RangerServiceResource body = ; // RangerServiceResource | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerServiceResource result = apiInstance.createServiceResource(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createServiceResource");
            e.printStackTrace();
        }
    }
}
RangerServiceResource *body = ; //  (optional)
Boolean *updateIfExists = true; //  (optional) (default to true)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance createServiceResourceWith:body
    updateIfExists:updateIfExists
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'body':  // {{RangerServiceResource}} 
  'updateIfExists': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createServiceResource(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createServiceResourceExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var body = new RangerServiceResource(); // RangerServiceResource |  (optional) 
            var updateIfExists = true;  // Boolean |  (optional)  (default to true)

            try
            {
                RangerServiceResource result = apiInstance.createServiceResource(body, updateIfExists);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.createServiceResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$body = ; // RangerServiceResource | 
$updateIfExists = true; // Boolean | 

try {
    $result = $api_instance->createServiceResource($body, $updateIfExists);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->createServiceResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerServiceResource->new(); # RangerServiceResource | 
my $updateIfExists = true; # Boolean | 

eval { 
    my $result = $api_instance->createServiceResource(body => $body, updateIfExists => $updateIfExists);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->createServiceResource: $@\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.TagRESTApi()
body =  # RangerServiceResource |  (optional)
updateIfExists = true # Boolean |  (optional) (default to true)

try: 
    api_response = api_instance.create_service_resource(body=body, updateIfExists=updateIfExists)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->createServiceResource: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
updateIfExists
Boolean

Responses

Status: 201 -


createTag


/tags/tags

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/tags?updateIfExists="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        RangerTag body = ; // RangerTag | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerTag result = apiInstance.createTag(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        RangerTag body = ; // RangerTag | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerTag result = apiInstance.createTag(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTag");
            e.printStackTrace();
        }
    }
}
RangerTag *body = ; //  (optional)
Boolean *updateIfExists = true; //  (optional) (default to true)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance createTagWith:body
    updateIfExists:updateIfExists
              completionHandler: ^(RangerTag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'body':  // {{RangerTag}} 
  'updateIfExists': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createTag(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createTagExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var body = new RangerTag(); // RangerTag |  (optional) 
            var updateIfExists = true;  // Boolean |  (optional)  (default to true)

            try
            {
                RangerTag result = apiInstance.createTag(body, updateIfExists);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.createTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$body = ; // RangerTag | 
$updateIfExists = true; // Boolean | 

try {
    $result = $api_instance->createTag($body, $updateIfExists);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->createTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerTag->new(); # RangerTag | 
my $updateIfExists = true; # Boolean | 

eval { 
    my $result = $api_instance->createTag(body => $body, updateIfExists => $updateIfExists);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->createTag: $@\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.TagRESTApi()
body =  # RangerTag |  (optional)
updateIfExists = true # Boolean |  (optional) (default to true)

try: 
    api_response = api_instance.create_tag(body=body, updateIfExists=updateIfExists)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->createTag: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
updateIfExists
Boolean

Responses

Status: 201 -


createTagDef


/tags/tagdefs

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/tagdefs?updateIfExists="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        RangerTagDef body = ; // RangerTagDef | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerTagDef result = apiInstance.createTagDef(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTagDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        RangerTagDef body = ; // RangerTagDef | 
        Boolean updateIfExists = true; // Boolean | 
        try {
            RangerTagDef result = apiInstance.createTagDef(body, updateIfExists);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTagDef");
            e.printStackTrace();
        }
    }
}
RangerTagDef *body = ; //  (optional)
Boolean *updateIfExists = true; //  (optional) (default to true)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance createTagDefWith:body
    updateIfExists:updateIfExists
              completionHandler: ^(RangerTagDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'body':  // {{RangerTagDef}} 
  'updateIfExists': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createTagDef(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createTagDefExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var body = new RangerTagDef(); // RangerTagDef |  (optional) 
            var updateIfExists = true;  // Boolean |  (optional)  (default to true)

            try
            {
                RangerTagDef result = apiInstance.createTagDef(body, updateIfExists);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.createTagDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$body = ; // RangerTagDef | 
$updateIfExists = true; // Boolean | 

try {
    $result = $api_instance->createTagDef($body, $updateIfExists);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->createTagDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $body = WWW::SwaggerClient::Object::RangerTagDef->new(); # RangerTagDef | 
my $updateIfExists = true; # Boolean | 

eval { 
    my $result = $api_instance->createTagDef(body => $body, updateIfExists => $updateIfExists);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->createTagDef: $@\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.TagRESTApi()
body =  # RangerTagDef |  (optional)
updateIfExists = true # Boolean |  (optional) (default to true)

try: 
    api_response = api_instance.create_tag_def(body=body, updateIfExists=updateIfExists)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->createTagDef: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
updateIfExists
Boolean

Responses

Status: 201 -


createTagResourceMap


/tags/tagresourcemaps

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"//tags/tagresourcemaps?lenient=&resource-guid=&tag-guid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Boolean lenient = true; // Boolean | 
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.createTagResourceMap(lenient, resourceGuid, tagGuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTagResourceMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Boolean lenient = true; // Boolean | 
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.createTagResourceMap(lenient, resourceGuid, tagGuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#createTagResourceMap");
            e.printStackTrace();
        }
    }
}
Boolean *lenient = true; //  (optional) (default to false)
String *resourceGuid = resourceGuid_example; //  (optional)
String *tagGuid = tagGuid_example; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance createTagResourceMapWith:lenient
    resourceGuid:resourceGuid
    tagGuid:tagGuid
              completionHandler: ^(RangerTagResourceMap output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'lenient': true, // {{Boolean}} 
  'resourceGuid': resourceGuid_example, // {{String}} 
  'tagGuid': tagGuid_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createTagResourceMap(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createTagResourceMapExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var lenient = true;  // Boolean |  (optional)  (default to false)
            var resourceGuid = resourceGuid_example;  // String |  (optional) 
            var tagGuid = tagGuid_example;  // String |  (optional) 

            try
            {
                RangerTagResourceMap result = apiInstance.createTagResourceMap(lenient, resourceGuid, tagGuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.createTagResourceMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$lenient = true; // Boolean | 
$resourceGuid = resourceGuid_example; // String | 
$tagGuid = tagGuid_example; // String | 

try {
    $result = $api_instance->createTagResourceMap($lenient, $resourceGuid, $tagGuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->createTagResourceMap: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $lenient = true; # Boolean | 
my $resourceGuid = resourceGuid_example; # String | 
my $tagGuid = tagGuid_example; # String | 

eval { 
    my $result = $api_instance->createTagResourceMap(lenient => $lenient, resourceGuid => $resourceGuid, tagGuid => $tagGuid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->createTagResourceMap: $@\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.TagRESTApi()
lenient = true # Boolean |  (optional) (default to false)
resourceGuid = resourceGuid_example # String |  (optional)
tagGuid = tagGuid_example # String |  (optional)

try: 
    api_response = api_instance.create_tag_resource_map(lenient=lenient, resourceGuid=resourceGuid, tagGuid=tagGuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->createTagResourceMap: %s\n" % e)

Parameters

Query parameters
Name Description
lenient
Boolean
resource-guid
String
tag-guid
String

Responses

Status: 201 -


deleteServiceResource


/tags/resource/{id}

Usage and SDK Samples

curl -X DELETE\
"//tags/resource/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceResource(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteServiceResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteServiceResource(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteServiceResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteServiceResourceWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceResource(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceResourceExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteServiceResource(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteServiceResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteServiceResource($id);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteServiceResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteServiceResource(id => $id);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteServiceResource: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_service_resource(id)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteServiceResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteServiceResourceByGuid


/tags/resource/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//tags/resource/guid/{guid}?deleteReferences="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        Boolean deleteReferences = true; // Boolean | 
        try {
            apiInstance.deleteServiceResourceByGuid(guid, deleteReferences);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        Boolean deleteReferences = true; // Boolean | 
        try {
            apiInstance.deleteServiceResourceByGuid(guid, deleteReferences);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
Boolean *deleteReferences = true; //  (optional) (default to false)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteServiceResourceByGuidWith:guid
    deleteReferences:deleteReferences
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 
var opts = { 
  'deleteReferences': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteServiceResourceByGuid(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteServiceResourceByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 
            var deleteReferences = true;  // Boolean |  (optional)  (default to false)

            try
            {
                apiInstance.deleteServiceResourceByGuid(guid, deleteReferences);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteServiceResourceByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 
$deleteReferences = true; // Boolean | 

try {
    $api_instance->deleteServiceResourceByGuid($guid, $deleteReferences);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteServiceResourceByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 
my $deleteReferences = true; # Boolean | 

eval { 
    $api_instance->deleteServiceResourceByGuid(guid => $guid, deleteReferences => $deleteReferences);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteServiceResourceByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 
deleteReferences = true # Boolean |  (optional) (default to false)

try: 
    api_instance.delete_service_resource_by_guid(guid, deleteReferences=deleteReferences)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteServiceResourceByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Query parameters
Name Description
deleteReferences
Boolean

Responses

Status: 204 - Success


deleteTag


/tags/tag/{id}

Usage and SDK Samples

curl -X DELETE\
"//tags/tag/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTag(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTag(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTag");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTag(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteTag(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteTag($id);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteTag(id => $id);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTag: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_tag(id)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTag: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteTagByGuid


/tags/tag/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//tags/tag/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagByGuidWith:guid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                apiInstance.deleteTagByGuid(guid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $api_instance->deleteTagByGuid($guid);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    $api_instance->deleteTagByGuid(guid => $guid);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_instance.delete_tag_by_guid(guid)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 204 - Success


deleteTagDef


/tags/tagdef/{id}

Usage and SDK Samples

curl -X DELETE\
"//tags/tagdef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTagDef(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTagDef(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagDefWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagDef(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagDefExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteTagDef(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteTagDef($id);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteTagDef(id => $id);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagDef: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_tag_def(id)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteTagDefByGuid


/tags/tagdef/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//tags/tagdef/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagDefByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDefByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagDefByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDefByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagDefByGuidWith:guid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagDefByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagDefByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                apiInstance.deleteTagDefByGuid(guid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagDefByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $api_instance->deleteTagDefByGuid($guid);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagDefByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    $api_instance->deleteTagDefByGuid(guid => $guid);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagDefByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_instance.delete_tag_def_by_guid(guid)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagDefByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 204 - Success


deleteTagDeltas2


/tags/server/tagdeltas

Usage and SDK Samples

curl -X DELETE\
"//tags/server/tagdeltas?days="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deleteTagDeltas2(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDeltas2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Integer days = 56; // Integer | 
        try {
            apiInstance.deleteTagDeltas2(days);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagDeltas2");
            e.printStackTrace();
        }
    }
}
Integer *days = 56; //  (optional) (default to 3)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagDeltas2With:days
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'days': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagDeltas2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagDeltas2Example
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var days = 56;  // Integer |  (optional)  (default to 3)

            try
            {
                apiInstance.deleteTagDeltas2(days);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagDeltas2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$days = 56; // Integer | 

try {
    $api_instance->deleteTagDeltas2($days);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagDeltas2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $days = 56; # Integer | 

eval { 
    $api_instance->deleteTagDeltas2(days => $days);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagDeltas2: $@\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.TagRESTApi()
days = 56 # Integer |  (optional) (default to 3)

try: 
    api_instance.delete_tag_deltas2(days=days)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagDeltas2: %s\n" % e)

Parameters

Query parameters
Name Description
days
Integer (int32)

Responses

Status: 204 - Success


deleteTagResourceMap


/tags/tagresourcemap/{id}

Usage and SDK Samples

curl -X DELETE\
"//tags/tagresourcemap/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTagResourceMap(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteTagResourceMap(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMap");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagResourceMapWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagResourceMap(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagResourceMapExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteTagResourceMap(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagResourceMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteTagResourceMap($id);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagResourceMap: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteTagResourceMap(id => $id);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagResourceMap: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_tag_resource_map(id)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagResourceMap: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteTagResourceMapByGuid


/tags/tagresourcemap/guid/{guid}

Usage and SDK Samples

curl -X DELETE\
"//tags/tagresourcemap/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagResourceMapByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMapByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            apiInstance.deleteTagResourceMapByGuid(guid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMapByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagResourceMapByGuidWith:guid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagResourceMapByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagResourceMapByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                apiInstance.deleteTagResourceMapByGuid(guid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagResourceMapByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $api_instance->deleteTagResourceMapByGuid($guid);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagResourceMapByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    $api_instance->deleteTagResourceMapByGuid(guid => $guid);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagResourceMapByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_instance.delete_tag_resource_map_by_guid(guid)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagResourceMapByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 204 - Success


deleteTagResourceMap_1


/tags/tagresourcemaps

Usage and SDK Samples

curl -X DELETE\
"//tags/tagresourcemaps?resource-guid=&tag-guid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            apiInstance.deleteTagResourceMap_0(resourceGuid, tagGuid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMap_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            apiInstance.deleteTagResourceMap_0(resourceGuid, tagGuid);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#deleteTagResourceMap_0");
            e.printStackTrace();
        }
    }
}
String *resourceGuid = resourceGuid_example; //  (optional)
String *tagGuid = tagGuid_example; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance deleteTagResourceMap_1With:resourceGuid
    tagGuid:tagGuid
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'resourceGuid': resourceGuid_example, // {{String}} 
  'tagGuid': tagGuid_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteTagResourceMap_0(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteTagResourceMap_0Example
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var resourceGuid = resourceGuid_example;  // String |  (optional) 
            var tagGuid = tagGuid_example;  // String |  (optional) 

            try
            {
                apiInstance.deleteTagResourceMap_0(resourceGuid, tagGuid);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.deleteTagResourceMap_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$resourceGuid = resourceGuid_example; // String | 
$tagGuid = tagGuid_example; // String | 

try {
    $api_instance->deleteTagResourceMap_0($resourceGuid, $tagGuid);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->deleteTagResourceMap_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $resourceGuid = resourceGuid_example; # String | 
my $tagGuid = tagGuid_example; # String | 

eval { 
    $api_instance->deleteTagResourceMap_0(resourceGuid => $resourceGuid, tagGuid => $tagGuid);
};
if ($@) {
    warn "Exception when calling TagRESTApi->deleteTagResourceMap_0: $@\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.TagRESTApi()
resourceGuid = resourceGuid_example # String |  (optional)
tagGuid = tagGuid_example # String |  (optional)

try: 
    api_instance.delete_tag_resource_map_0(resourceGuid=resourceGuid, tagGuid=tagGuid)
except ApiException as e:
    print("Exception when calling TagRESTApi->deleteTagResourceMap_0: %s\n" % e)

Parameters

Query parameters
Name Description
resource-guid
String
tag-guid
String

Responses

Status: 204 - Success


getAllServiceResources


/tags/resources

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/resources"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerServiceResource] result = apiInstance.getAllServiceResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllServiceResources");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerServiceResource] result = apiInstance.getAllServiceResources();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllServiceResources");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getAllServiceResourcesWithCompletionHandler: 
              ^(array[RangerServiceResource] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllServiceResources(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllServiceResourcesExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                array[RangerServiceResource] result = apiInstance.getAllServiceResources();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getAllServiceResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->getAllServiceResources();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getAllServiceResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->getAllServiceResources();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getAllServiceResources: $@\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.TagRESTApi()

try: 
    api_response = api_instance.get_all_service_resources()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getAllServiceResources: %s\n" % e)

Parameters

Responses

Status: 200 -


getAllTagDefs


/tags/tagdefs

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagdefs"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTagDef] result = apiInstance.getAllTagDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTagDefs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTagDef] result = apiInstance.getAllTagDefs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTagDefs");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getAllTagDefsWithCompletionHandler: 
              ^(array[RangerTagDef] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllTagDefs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllTagDefsExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                array[RangerTagDef] result = apiInstance.getAllTagDefs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getAllTagDefs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->getAllTagDefs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getAllTagDefs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->getAllTagDefs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getAllTagDefs: $@\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.TagRESTApi()

try: 
    api_response = api_instance.get_all_tag_defs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getAllTagDefs: %s\n" % e)

Parameters

Responses

Status: 200 -


getAllTagResourceMaps


/tags/tagresourcemaps

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagresourcemaps"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTagResourceMap] result = apiInstance.getAllTagResourceMaps();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTagResourceMaps");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTagResourceMap] result = apiInstance.getAllTagResourceMaps();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTagResourceMaps");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getAllTagResourceMapsWithCompletionHandler: 
              ^(array[RangerTagResourceMap] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllTagResourceMaps(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllTagResourceMapsExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                array[RangerTagResourceMap] result = apiInstance.getAllTagResourceMaps();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getAllTagResourceMaps: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->getAllTagResourceMaps();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getAllTagResourceMaps: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->getAllTagResourceMaps();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getAllTagResourceMaps: $@\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.TagRESTApi()

try: 
    api_response = api_instance.get_all_tag_resource_maps()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getAllTagResourceMaps: %s\n" % e)

Parameters

Responses

Status: 200 -


getAllTags


/tags/tags

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTag] result = apiInstance.getAllTags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTags");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array[RangerTag] result = apiInstance.getAllTags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getAllTags");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getAllTagsWithCompletionHandler: 
              ^(array[RangerTag] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllTags(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllTagsExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                array[RangerTag] result = apiInstance.getAllTags();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getAllTags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->getAllTags();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getAllTags: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->getAllTags();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getAllTags: $@\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.TagRESTApi()

try: 
    api_response = api_instance.get_all_tags()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getAllTags: %s\n" % e)

Parameters

Responses

Status: 200 -


getSecureServiceTagsIfUpdated


/tags/secure/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/secure/download/{serviceName}?lastActivationTime=&lastKnownVersion=&pluginCapabilities=&pluginId=&supportsTagDeltas="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsTagDeltas = true; // Boolean | 
        try {
            ServiceTags result = apiInstance.getSecureServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getSecureServiceTagsIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsTagDeltas = true; // Boolean | 
        try {
            ServiceTags result = apiInstance.getSecureServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getSecureServiceTagsIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownVersion = 789; //  (optional)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)
Boolean *supportsTagDeltas = true; //  (optional) (default to false)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getSecureServiceTagsIfUpdatedWith:serviceName
    lastActivationTime:lastActivationTime
    lastKnownVersion:lastKnownVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
    supportsTagDeltas:supportsTagDeltas
              completionHandler: ^(ServiceTags output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example, // {{String}} 
  'supportsTagDeltas': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecureServiceTagsIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecureServiceTagsIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var serviceName = serviceName_example;  // String | 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownVersion = 789;  // Long |  (optional) 
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 
            var supportsTagDeltas = true;  // Boolean |  (optional)  (default to false)

            try
            {
                ServiceTags result = apiInstance.getSecureServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getSecureServiceTagsIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$serviceName = serviceName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 
$supportsTagDeltas = true; // Boolean | 

try {
    $result = $api_instance->getSecureServiceTagsIfUpdated($serviceName, $lastActivationTime, $lastKnownVersion, $pluginCapabilities, $pluginId, $supportsTagDeltas);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getSecureServiceTagsIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 
my $supportsTagDeltas = true; # Boolean | 

eval { 
    my $result = $api_instance->getSecureServiceTagsIfUpdated(serviceName => $serviceName, lastActivationTime => $lastActivationTime, lastKnownVersion => $lastKnownVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId, supportsTagDeltas => $supportsTagDeltas);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getSecureServiceTagsIfUpdated: $@\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.TagRESTApi()
serviceName = serviceName_example # String | 
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownVersion = 789 # Long |  (optional)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)
supportsTagDeltas = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.get_secure_service_tags_if_updated(serviceName, lastActivationTime=lastActivationTime, lastKnownVersion=lastKnownVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId, supportsTagDeltas=supportsTagDeltas)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getSecureServiceTagsIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
lastActivationTime
Long (int64)
lastKnownVersion
Long (int64)
pluginCapabilities
String
pluginId
String
supportsTagDeltas
Boolean

Responses

Status: 200 -


getServiceResource


/tags/resource/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/resource/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerServiceResource result = apiInstance.getServiceResource(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerServiceResource result = apiInstance.getServiceResource(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getServiceResourceWith:id
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceResource(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceResourceExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerServiceResource result = apiInstance.getServiceResource(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getServiceResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getServiceResource($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getServiceResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getServiceResource(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getServiceResource: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_service_resource(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getServiceResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getServiceResourceByGuid


/tags/resource/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/resource/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerServiceResource result = apiInstance.getServiceResourceByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerServiceResource result = apiInstance.getServiceResourceByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getServiceResourceByGuidWith:guid
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceResourceByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceResourceByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                RangerServiceResource result = apiInstance.getServiceResourceByGuid(guid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getServiceResourceByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $result = $api_instance->getServiceResourceByGuid($guid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getServiceResourceByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    my $result = $api_instance->getServiceResourceByGuid(guid => $guid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getServiceResourceByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_response = api_instance.get_service_resource_by_guid(guid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getServiceResourceByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 200 -


getServiceResourceByServiceAndResourceSignature


/tags/resource/service/{serviceName}/signature/{resourceSignature}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/resource/service/{serviceName}/signature/{resourceSignature}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceSignature = resourceSignature_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerServiceResource result = apiInstance.getServiceResourceByServiceAndResourceSignature(resourceSignature, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourceByServiceAndResourceSignature");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceSignature = resourceSignature_example; // String | 
        String serviceName = serviceName_example; // String | 
        try {
            RangerServiceResource result = apiInstance.getServiceResourceByServiceAndResourceSignature(resourceSignature, serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourceByServiceAndResourceSignature");
            e.printStackTrace();
        }
    }
}
String *resourceSignature = resourceSignature_example; // 
String *serviceName = serviceName_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getServiceResourceByServiceAndResourceSignatureWith:resourceSignature
    serviceName:serviceName
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var resourceSignature = resourceSignature_example; // {{String}} 
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceResourceByServiceAndResourceSignature(resourceSignature, serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceResourceByServiceAndResourceSignatureExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var resourceSignature = resourceSignature_example;  // String | 
            var serviceName = serviceName_example;  // String | 

            try
            {
                RangerServiceResource result = apiInstance.getServiceResourceByServiceAndResourceSignature(resourceSignature, serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getServiceResourceByServiceAndResourceSignature: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$resourceSignature = resourceSignature_example; // String | 
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getServiceResourceByServiceAndResourceSignature($resourceSignature, $serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getServiceResourceByServiceAndResourceSignature: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $resourceSignature = resourceSignature_example; # String | 
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getServiceResourceByServiceAndResourceSignature(resourceSignature => $resourceSignature, serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getServiceResourceByServiceAndResourceSignature: $@\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.TagRESTApi()
resourceSignature = resourceSignature_example # String | 
serviceName = serviceName_example # String | 

try: 
    api_response = api_instance.get_service_resource_by_service_and_resource_signature(resourceSignature, serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getServiceResourceByServiceAndResourceSignature: %s\n" % e)

Parameters

Path parameters
Name Description
resourceSignature*
String
Required
serviceName*
String
Required

Responses

Status: 200 -


getServiceResourcesByService


/tags/resources/service/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/resources/service/{serviceName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerServiceResource] result = apiInstance.getServiceResourcesByService(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourcesByService");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        try {
            array[RangerServiceResource] result = apiInstance.getServiceResourcesByService(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceResourcesByService");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getServiceResourcesByServiceWith:serviceName
              completionHandler: ^(array[RangerServiceResource] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var serviceName = serviceName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceResourcesByService(serviceName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceResourcesByServiceExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var serviceName = serviceName_example;  // String | 

            try
            {
                array[RangerServiceResource] result = apiInstance.getServiceResourcesByService(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getServiceResourcesByService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$serviceName = serviceName_example; // String | 

try {
    $result = $api_instance->getServiceResourcesByService($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getServiceResourcesByService: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $serviceName = serviceName_example; # String | 

eval { 
    my $result = $api_instance->getServiceResourcesByService(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getServiceResourcesByService: $@\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.TagRESTApi()
serviceName = serviceName_example # String | 

try: 
    api_response = api_instance.get_service_resources_by_service(serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getServiceResourcesByService: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required

Responses

Status: 200 -


getServiceTagsIfUpdated


/tags/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/download/{serviceName}?lastActivationTime=&lastKnownVersion=&pluginCapabilities=&pluginId=&supportsTagDeltas="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsTagDeltas = true; // Boolean | 
        try {
            ServiceTags result = apiInstance.getServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceTagsIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        Boolean supportsTagDeltas = true; // Boolean | 
        try {
            ServiceTags result = apiInstance.getServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getServiceTagsIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownVersion = 789; //  (optional)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)
Boolean *supportsTagDeltas = true; //  (optional) (default to false)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getServiceTagsIfUpdatedWith:serviceName
    lastActivationTime:lastActivationTime
    lastKnownVersion:lastKnownVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
    supportsTagDeltas:supportsTagDeltas
              completionHandler: ^(ServiceTags output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example, // {{String}} 
  'supportsTagDeltas': true // {{Boolean}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getServiceTagsIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getServiceTagsIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var serviceName = serviceName_example;  // String | 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownVersion = 789;  // Long |  (optional) 
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 
            var supportsTagDeltas = true;  // Boolean |  (optional)  (default to false)

            try
            {
                ServiceTags result = apiInstance.getServiceTagsIfUpdated(serviceName, lastActivationTime, lastKnownVersion, pluginCapabilities, pluginId, supportsTagDeltas);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getServiceTagsIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$serviceName = serviceName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 
$supportsTagDeltas = true; // Boolean | 

try {
    $result = $api_instance->getServiceTagsIfUpdated($serviceName, $lastActivationTime, $lastKnownVersion, $pluginCapabilities, $pluginId, $supportsTagDeltas);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getServiceTagsIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 
my $supportsTagDeltas = true; # Boolean | 

eval { 
    my $result = $api_instance->getServiceTagsIfUpdated(serviceName => $serviceName, lastActivationTime => $lastActivationTime, lastKnownVersion => $lastKnownVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId, supportsTagDeltas => $supportsTagDeltas);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getServiceTagsIfUpdated: $@\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.TagRESTApi()
serviceName = serviceName_example # String | 
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownVersion = 789 # Long |  (optional)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)
supportsTagDeltas = true # Boolean |  (optional) (default to false)

try: 
    api_response = api_instance.get_service_tags_if_updated(serviceName, lastActivationTime=lastActivationTime, lastKnownVersion=lastKnownVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId, supportsTagDeltas=supportsTagDeltas)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getServiceTagsIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
lastActivationTime
Long (int64)
lastKnownVersion
Long (int64)
pluginCapabilities
String
pluginId
String
supportsTagDeltas
Boolean

Responses

Status: 200 -


getTag


/tags/tag/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tag/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTag result = apiInstance.getTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTag result = apiInstance.getTag(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTag");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagWith:id
              completionHandler: ^(RangerTag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTag(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerTag result = apiInstance.getTag(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getTag($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getTag(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTag: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_tag(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTag: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getTagByGuid


/tags/tag/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tag/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTag result = apiInstance.getTagByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTag result = apiInstance.getTagByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagByGuidWith:guid
              completionHandler: ^(RangerTag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                RangerTag result = apiInstance.getTagByGuid(guid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $result = $api_instance->getTagByGuid($guid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    my $result = $api_instance->getTagByGuid(guid => $guid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_response = api_instance.get_tag_by_guid(guid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 200 -


getTagDef


/tags/tagdef/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagdef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTagDef result = apiInstance.getTagDef(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTagDef result = apiInstance.getTagDef(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagDefWith:id
              completionHandler: ^(RangerTagDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagDef(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagDefExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerTagDef result = apiInstance.getTagDef(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getTagDef($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getTagDef(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagDef: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_tag_def(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getTagDefByGuid


/tags/tagdef/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagdef/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTagDef result = apiInstance.getTagDefByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDefByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTagDef result = apiInstance.getTagDefByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDefByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagDefByGuidWith:guid
              completionHandler: ^(RangerTagDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagDefByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagDefByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                RangerTagDef result = apiInstance.getTagDefByGuid(guid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagDefByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $result = $api_instance->getTagDefByGuid($guid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagDefByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    my $result = $api_instance->getTagDefByGuid(guid => $guid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagDefByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_response = api_instance.get_tag_def_by_guid(guid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagDefByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 200 -


getTagDefByName


/tags/tagdef/name/{name}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagdef/name/{name}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String name = name_example; // String | 
        try {
            RangerTagDef result = apiInstance.getTagDefByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDefByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String name = name_example; // String | 
        try {
            RangerTagDef result = apiInstance.getTagDefByName(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagDefByName");
            e.printStackTrace();
        }
    }
}
String *name = name_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagDefByNameWith:name
              completionHandler: ^(RangerTagDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var name = name_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagDefByName(name, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagDefByNameExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var name = name_example;  // String | 

            try
            {
                RangerTagDef result = apiInstance.getTagDefByName(name);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagDefByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$name = name_example; // String | 

try {
    $result = $api_instance->getTagDefByName($name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagDefByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $name = name_example; # String | 

eval { 
    my $result = $api_instance->getTagDefByName(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagDefByName: $@\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.TagRESTApi()
name = name_example # String | 

try: 
    api_response = api_instance.get_tag_def_by_name(name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagDefByName: %s\n" % e)

Parameters

Path parameters
Name Description
name*
String
Required

Responses

Status: 200 -


getTagResourceMap


/tags/tagresourcemap/tag-resource-guid

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagresourcemap/tag-resource-guid?resourceGuid=&tagGuid="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMap(resourceGuid, tagGuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String resourceGuid = resourceGuid_example; // String | 
        String tagGuid = tagGuid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMap(resourceGuid, tagGuid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMap");
            e.printStackTrace();
        }
    }
}
String *resourceGuid = resourceGuid_example; //  (optional)
String *tagGuid = tagGuid_example; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagResourceMapWith:resourceGuid
    tagGuid:tagGuid
              completionHandler: ^(RangerTagResourceMap output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'resourceGuid': resourceGuid_example, // {{String}} 
  'tagGuid': tagGuid_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagResourceMap(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagResourceMapExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var resourceGuid = resourceGuid_example;  // String |  (optional) 
            var tagGuid = tagGuid_example;  // String |  (optional) 

            try
            {
                RangerTagResourceMap result = apiInstance.getTagResourceMap(resourceGuid, tagGuid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagResourceMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$resourceGuid = resourceGuid_example; // String | 
$tagGuid = tagGuid_example; // String | 

try {
    $result = $api_instance->getTagResourceMap($resourceGuid, $tagGuid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagResourceMap: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $resourceGuid = resourceGuid_example; # String | 
my $tagGuid = tagGuid_example; # String | 

eval { 
    my $result = $api_instance->getTagResourceMap(resourceGuid => $resourceGuid, tagGuid => $tagGuid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagResourceMap: $@\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.TagRESTApi()
resourceGuid = resourceGuid_example # String |  (optional)
tagGuid = tagGuid_example # String |  (optional)

try: 
    api_response = api_instance.get_tag_resource_map(resourceGuid=resourceGuid, tagGuid=tagGuid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagResourceMap: %s\n" % e)

Parameters

Query parameters
Name Description
resourceGuid
String
tagGuid
String

Responses

Status: 200 -


getTagResourceMapByGuid


/tags/tagresourcemap/guid/{guid}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagresourcemap/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMapByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMapByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMapByGuid(guid);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMapByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagResourceMapByGuidWith:guid
              completionHandler: ^(RangerTagResourceMap output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagResourceMapByGuid(guid, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagResourceMapByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 

            try
            {
                RangerTagResourceMap result = apiInstance.getTagResourceMapByGuid(guid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagResourceMapByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 

try {
    $result = $api_instance->getTagResourceMapByGuid($guid);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagResourceMapByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 

eval { 
    my $result = $api_instance->getTagResourceMapByGuid(guid => $guid);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagResourceMapByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 

try: 
    api_response = api_instance.get_tag_resource_map_by_guid(guid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagResourceMapByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required

Responses

Status: 200 -


getTagResourceMap_2


/tags/tagresourcemap/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tagresourcemap/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMap_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMap_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        try {
            RangerTagResourceMap result = apiInstance.getTagResourceMap_0(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagResourceMap_0");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagResourceMap_2With:id
              completionHandler: ^(RangerTagResourceMap output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagResourceMap_0(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagResourceMap_0Example
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 

            try
            {
                RangerTagResourceMap result = apiInstance.getTagResourceMap_0(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagResourceMap_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getTagResourceMap_0($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagResourceMap_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getTagResourceMap_0(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagResourceMap_0: $@\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.TagRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_tag_resource_map_0(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagResourceMap_0: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getTagTypes


/tags/types

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/types"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array['String'] result = apiInstance.getTagTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagTypes");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            array['String'] result = apiInstance.getTagTypes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagTypes");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagTypesWithCompletionHandler: 
              ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagTypes(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagTypesExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                array['String'] result = apiInstance.getTagTypes();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->getTagTypes();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->getTagTypes();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagTypes: $@\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.TagRESTApi()

try: 
    api_response = api_instance.get_tag_types()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagTypes: %s\n" % e)

Parameters

Responses

Status: 200 -


getTagsByType


/tags/tags/type/{type}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tags/type/{type}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String type = type_example; // String | 
        try {
            array[RangerTag] result = apiInstance.getTagsByType(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagsByType");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String type = type_example; // String | 
        try {
            array[RangerTag] result = apiInstance.getTagsByType(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#getTagsByType");
            e.printStackTrace();
        }
    }
}
String *type = type_example; // 

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance getTagsByTypeWith:type
              completionHandler: ^(array[RangerTag] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var type = type_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getTagsByType(type, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getTagsByTypeExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var type = type_example;  // String | 

            try
            {
                array[RangerTag] result = apiInstance.getTagsByType(type);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.getTagsByType: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$type = type_example; // String | 

try {
    $result = $api_instance->getTagsByType($type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->getTagsByType: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $type = type_example; # String | 

eval { 
    my $result = $api_instance->getTagsByType(type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->getTagsByType: $@\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.TagRESTApi()
type = type_example # String | 

try: 
    api_response = api_instance.get_tags_by_type(type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->getTagsByType: %s\n" % e)

Parameters

Path parameters
Name Description
type*
String
Required

Responses

Status: 200 -


importServiceTags2


/tags/importservicetags

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"//tags/importservicetags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        ServiceTags body = ; // ServiceTags | 
        try {
            apiInstance.importServiceTags2(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#importServiceTags2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        ServiceTags body = ; // ServiceTags | 
        try {
            apiInstance.importServiceTags2(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#importServiceTags2");
            e.printStackTrace();
        }
    }
}
ServiceTags *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance importServiceTags2With:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'body':  // {{ServiceTags}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.importServiceTags2(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class importServiceTags2Example
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var body = new ServiceTags(); // ServiceTags |  (optional) 

            try
            {
                apiInstance.importServiceTags2(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.importServiceTags2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$body = ; // ServiceTags | 

try {
    $api_instance->importServiceTags2($body);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->importServiceTags2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $body = WWW::SwaggerClient::Object::ServiceTags->new(); # ServiceTags | 

eval { 
    $api_instance->importServiceTags2(body => $body);
};
if ($@) {
    warn "Exception when calling TagRESTApi->importServiceTags2: $@\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.TagRESTApi()
body =  # ServiceTags |  (optional)

try: 
    api_instance.import_service_tags2(body=body)
except ApiException as e:
    print("Exception when calling TagRESTApi->importServiceTags2: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


resetTagCache

Resets/ removes tag policy cache for given service.


/tags/tags/cache/reset

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tags/cache/reset?serviceName="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | non-empty service-name
        try {
            'Boolean' result = apiInstance.resetTagCache(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#resetTagCache");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String serviceName = serviceName_example; // String | non-empty service-name
        try {
            'Boolean' result = apiInstance.resetTagCache(serviceName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#resetTagCache");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // non-empty service-name (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance resetTagCacheWith:serviceName
              completionHandler: ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var opts = { 
  'serviceName': serviceName_example // {{String}} non-empty service-name
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.resetTagCache(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetTagCacheExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var serviceName = serviceName_example;  // String | non-empty service-name (optional) 

            try
            {
                'Boolean' result = apiInstance.resetTagCache(serviceName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.resetTagCache: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$serviceName = serviceName_example; // String | non-empty service-name

try {
    $result = $api_instance->resetTagCache($serviceName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->resetTagCache: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $serviceName = serviceName_example; # String | non-empty service-name

eval { 
    my $result = $api_instance->resetTagCache(serviceName => $serviceName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->resetTagCache: $@\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.TagRESTApi()
serviceName = serviceName_example # String | non-empty service-name (optional)

try: 
    api_response = api_instance.reset_tag_cache(serviceName=serviceName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->resetTagCache: %s\n" % e)

Parameters

Query parameters
Name Description
serviceName
String
non-empty service-name

Responses

Status: 200 - true if successfully reseted/ removed for given service, false otherwise.


resetTagCacheAll

Resets/ removes tag policy cache for all.


/tags/tags/cache/reset-all

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//tags/tags/cache/reset-all"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            'Boolean' result = apiInstance.resetTagCacheAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#resetTagCacheAll");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        try {
            'Boolean' result = apiInstance.resetTagCacheAll();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#resetTagCacheAll");
            e.printStackTrace();
        }
    }
}

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance resetTagCacheAllWithCompletionHandler: 
              ^('Boolean' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.resetTagCacheAll(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class resetTagCacheAllExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();

            try
            {
                'Boolean' result = apiInstance.resetTagCacheAll();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.resetTagCacheAll: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();

try {
    $result = $api_instance->resetTagCacheAll();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->resetTagCacheAll: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();

eval { 
    my $result = $api_instance->resetTagCacheAll();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->resetTagCacheAll: $@\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.TagRESTApi()

try: 
    api_response = api_instance.reset_tag_cache_all()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->resetTagCacheAll: %s\n" % e)

Parameters

Responses

Status: 200 - true if successfully reseted/ removed, false otherwise.


updateServiceResource


/tags/resource/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/resource/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerServiceResource body = ; // RangerServiceResource | 
        try {
            RangerServiceResource result = apiInstance.updateServiceResource(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateServiceResource");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerServiceResource body = ; // RangerServiceResource | 
        try {
            RangerServiceResource result = apiInstance.updateServiceResource(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateServiceResource");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerServiceResource *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance updateServiceResourceWith:id
    body:body
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerServiceResource}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceResource(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceResourceExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 
            var body = new RangerServiceResource(); // RangerServiceResource |  (optional) 

            try
            {
                RangerServiceResource result = apiInstance.updateServiceResource(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.updateServiceResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 
$body = ; // RangerServiceResource | 

try {
    $result = $api_instance->updateServiceResource($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->updateServiceResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerServiceResource->new(); # RangerServiceResource | 

eval { 
    my $result = $api_instance->updateServiceResource(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->updateServiceResource: $@\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.TagRESTApi()
id = 789 # Long | 
body =  # RangerServiceResource |  (optional)

try: 
    api_response = api_instance.update_service_resource(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->updateServiceResource: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateServiceResourceByGuid


/tags/resource/guid/{guid}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/resource/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        RangerServiceResource body = ; // RangerServiceResource | 
        try {
            RangerServiceResource result = apiInstance.updateServiceResourceByGuid(guid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        RangerServiceResource body = ; // RangerServiceResource | 
        try {
            RangerServiceResource result = apiInstance.updateServiceResourceByGuid(guid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateServiceResourceByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
RangerServiceResource *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance updateServiceResourceByGuidWith:guid
    body:body
              completionHandler: ^(RangerServiceResource output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 
var opts = { 
  'body':  // {{RangerServiceResource}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateServiceResourceByGuid(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateServiceResourceByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 
            var body = new RangerServiceResource(); // RangerServiceResource |  (optional) 

            try
            {
                RangerServiceResource result = apiInstance.updateServiceResourceByGuid(guid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.updateServiceResourceByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 
$body = ; // RangerServiceResource | 

try {
    $result = $api_instance->updateServiceResourceByGuid($guid, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->updateServiceResourceByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerServiceResource->new(); # RangerServiceResource | 

eval { 
    my $result = $api_instance->updateServiceResourceByGuid(guid => $guid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->updateServiceResourceByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 
body =  # RangerServiceResource |  (optional)

try: 
    api_response = api_instance.update_service_resource_by_guid(guid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->updateServiceResourceByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateTag


/tags/tag/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/tag/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerTag body = ; // RangerTag | 
        try {
            RangerTag result = apiInstance.updateTag(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTag");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerTag body = ; // RangerTag | 
        try {
            RangerTag result = apiInstance.updateTag(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTag");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerTag *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance updateTagWith:id
    body:body
              completionHandler: ^(RangerTag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerTag}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateTag(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateTagExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 
            var body = new RangerTag(); // RangerTag |  (optional) 

            try
            {
                RangerTag result = apiInstance.updateTag(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.updateTag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 
$body = ; // RangerTag | 

try {
    $result = $api_instance->updateTag($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->updateTag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerTag->new(); # RangerTag | 

eval { 
    my $result = $api_instance->updateTag(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->updateTag: $@\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.TagRESTApi()
id = 789 # Long | 
body =  # RangerTag |  (optional)

try: 
    api_response = api_instance.update_tag(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->updateTag: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateTagByGuid


/tags/tag/guid/{guid}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/tag/guid/{guid}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        RangerTag body = ; // RangerTag | 
        try {
            RangerTag result = apiInstance.updateTagByGuid(guid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTagByGuid");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        String guid = guid_example; // String | 
        RangerTag body = ; // RangerTag | 
        try {
            RangerTag result = apiInstance.updateTagByGuid(guid, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTagByGuid");
            e.printStackTrace();
        }
    }
}
String *guid = guid_example; // 
RangerTag *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance updateTagByGuidWith:guid
    body:body
              completionHandler: ^(RangerTag output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var guid = guid_example; // {{String}} 
var opts = { 
  'body':  // {{RangerTag}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateTagByGuid(guid, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateTagByGuidExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var guid = guid_example;  // String | 
            var body = new RangerTag(); // RangerTag |  (optional) 

            try
            {
                RangerTag result = apiInstance.updateTagByGuid(guid, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.updateTagByGuid: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$guid = guid_example; // String | 
$body = ; // RangerTag | 

try {
    $result = $api_instance->updateTagByGuid($guid, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->updateTagByGuid: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $guid = guid_example; # String | 
my $body = WWW::SwaggerClient::Object::RangerTag->new(); # RangerTag | 

eval { 
    my $result = $api_instance->updateTagByGuid(guid => $guid, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->updateTagByGuid: $@\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.TagRESTApi()
guid = guid_example # String | 
body =  # RangerTag |  (optional)

try: 
    api_response = api_instance.update_tag_by_guid(guid, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->updateTagByGuid: %s\n" % e)

Parameters

Path parameters
Name Description
guid*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateTagDef


/tags/tagdef/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//tags/tagdef/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.TagRESTApi;

import java.io.File;
import java.util.*;

public class TagRESTApiExample {

    public static void main(String[] args) {
        
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerTagDef body = ; // RangerTagDef | 
        try {
            RangerTagDef result = apiInstance.updateTagDef(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTagDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.TagRESTApi;

public class TagRESTApiExample {

    public static void main(String[] args) {
        TagRESTApi apiInstance = new TagRESTApi();
        Long id = 789; // Long | 
        RangerTagDef body = ; // RangerTagDef | 
        try {
            RangerTagDef result = apiInstance.updateTagDef(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TagRESTApi#updateTagDef");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
RangerTagDef *body = ; //  (optional)

TagRESTApi *apiInstance = [[TagRESTApi alloc] init];

[apiInstance updateTagDefWith:id
    body:body
              completionHandler: ^(RangerTagDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.TagRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{RangerTagDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateTagDef(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateTagDefExample
    {
        public void main()
        {

            var apiInstance = new TagRESTApi();
            var id = 789;  // Long | 
            var body = new RangerTagDef(); // RangerTagDef |  (optional) 

            try
            {
                RangerTagDef result = apiInstance.updateTagDef(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling TagRESTApi.updateTagDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiTagRESTApi();
$id = 789; // Long | 
$body = ; // RangerTagDef | 

try {
    $result = $api_instance->updateTagDef($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TagRESTApi->updateTagDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::TagRESTApi;

my $api_instance = WWW::SwaggerClient::TagRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::RangerTagDef->new(); # RangerTagDef | 

eval { 
    my $result = $api_instance->updateTagDef(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TagRESTApi->updateTagDef: $@\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.TagRESTApi()
id = 789 # Long | 
body =  # RangerTagDef |  (optional)

try: 
    api_response = api_instance.update_tag_def(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TagRESTApi->updateTagDef: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


UserREST

changeEmailAddress


/users/{userId}/emailchange

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users/{userId}/emailchange"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXPasswordChange body = ; // VXPasswordChange | 
        try {
            VXPortalUser result = apiInstance.changeEmailAddress(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#changeEmailAddress");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXPasswordChange body = ; // VXPasswordChange | 
        try {
            VXPortalUser result = apiInstance.changeEmailAddress(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#changeEmailAddress");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 
VXPasswordChange *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance changeEmailAddressWith:userId
    body:body
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var userId = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXPasswordChange}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.changeEmailAddress(userId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class changeEmailAddressExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var userId = 789;  // Long | 
            var body = new VXPasswordChange(); // VXPasswordChange |  (optional) 

            try
            {
                VXPortalUser result = apiInstance.changeEmailAddress(userId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.changeEmailAddress: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$userId = 789; // Long | 
$body = ; // VXPasswordChange | 

try {
    $result = $api_instance->changeEmailAddress($userId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->changeEmailAddress: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $userId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXPasswordChange->new(); # VXPasswordChange | 

eval { 
    my $result = $api_instance->changeEmailAddress(userId => $userId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->changeEmailAddress: $@\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.UserRESTApi()
userId = 789 # Long | 
body =  # VXPasswordChange |  (optional)

try: 
    api_response = api_instance.change_email_address(userId, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->changeEmailAddress: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 201 -


changePassword


/users/{userId}/passwordchange

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users/{userId}/passwordchange"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXPasswordChange body = ; // VXPasswordChange | 
        try {
            VXResponse result = apiInstance.changePassword(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#changePassword");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXPasswordChange body = ; // VXPasswordChange | 
        try {
            VXResponse result = apiInstance.changePassword(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#changePassword");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 
VXPasswordChange *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance changePasswordWith:userId
    body:body
              completionHandler: ^(VXResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var userId = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXPasswordChange}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.changePassword(userId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class changePasswordExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var userId = 789;  // Long | 
            var body = new VXPasswordChange(); // VXPasswordChange |  (optional) 

            try
            {
                VXResponse result = apiInstance.changePassword(userId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.changePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$userId = 789; // Long | 
$body = ; // VXPasswordChange | 

try {
    $result = $api_instance->changePassword($userId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->changePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $userId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXPasswordChange->new(); # VXPasswordChange | 

eval { 
    my $result = $api_instance->changePassword(userId => $userId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->changePassword: $@\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.UserRESTApi()
userId = 789 # Long | 
body =  # VXPasswordChange |  (optional)

try: 
    api_response = api_instance.change_password(userId, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->changePassword: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 201 -


create


/users

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.create(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#create");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.create(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#create");
            e.printStackTrace();
        }
    }
}
VXPortalUser *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance createWith:body
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var opts = { 
  'body':  // {{VXPortalUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.create(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var body = new VXPortalUser(); // VXPortalUser |  (optional) 

            try
            {
                VXPortalUser result = apiInstance.create(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.create: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$body = ; // VXPortalUser | 

try {
    $result = $api_instance->create($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->create: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXPortalUser->new(); # VXPortalUser | 

eval { 
    my $result = $api_instance->create(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->create: $@\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.UserRESTApi()
body =  # VXPortalUser |  (optional)

try: 
    api_response = api_instance.create(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->create: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createDefaultAccountUser


/users/default

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users/default"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.createDefaultAccountUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#createDefaultAccountUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.createDefaultAccountUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#createDefaultAccountUser");
            e.printStackTrace();
        }
    }
}
VXPortalUser *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance createDefaultAccountUserWith:body
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var opts = { 
  'body':  // {{VXPortalUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createDefaultAccountUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createDefaultAccountUserExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var body = new VXPortalUser(); // VXPortalUser |  (optional) 

            try
            {
                VXPortalUser result = apiInstance.createDefaultAccountUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.createDefaultAccountUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$body = ; // VXPortalUser | 

try {
    $result = $api_instance->createDefaultAccountUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->createDefaultAccountUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXPortalUser->new(); # VXPortalUser | 

eval { 
    my $result = $api_instance->createDefaultAccountUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->createDefaultAccountUser: $@\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.UserRESTApi()
body =  # VXPortalUser |  (optional)

try: 
    api_response = api_instance.create_default_account_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->createDefaultAccountUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deactivateUser

Deactivate the user


/users/{userId}/deactivate

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
"//users/{userId}/deactivate"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXPortalUser result = apiInstance.deactivateUser(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#deactivateUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXPortalUser result = apiInstance.deactivateUser(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#deactivateUser");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance deactivateUserWith:userId
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var userId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.deactivateUser(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deactivateUserExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var userId = 789;  // Long | 

            try
            {
                VXPortalUser result = apiInstance.deactivateUser(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.deactivateUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$userId = 789; // Long | 

try {
    $result = $api_instance->deactivateUser($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->deactivateUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $userId = 789; # Long | 

eval { 
    my $result = $api_instance->deactivateUser(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->deactivateUser: $@\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.UserRESTApi()
userId = 789 # Long | 

try: 
    api_response = api_instance.deactivate_user(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->deactivateUser: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required

Responses

Status: 201 -


getUserProfile

This method returns the VUserProfile for the current session


/users/profile

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//users/profile"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        try {
            VXPortalUser result = apiInstance.getUserProfile();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#getUserProfile");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        try {
            VXPortalUser result = apiInstance.getUserProfile();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#getUserProfile");
            e.printStackTrace();
        }
    }
}

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance getUserProfileWithCompletionHandler: 
              ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserProfile(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserProfileExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();

            try
            {
                VXPortalUser result = apiInstance.getUserProfile();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.getUserProfile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();

try {
    $result = $api_instance->getUserProfile();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->getUserProfile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();

eval { 
    my $result = $api_instance->getUserProfile();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->getUserProfile: $@\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.UserRESTApi()

try: 
    api_response = api_instance.get_user_profile()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->getUserProfile: %s\n" % e)

Parameters

Responses

Status: 200 -


getUserProfileForUser

Return the VUserProfile for the given userId


/users/{userId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//users/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXPortalUser result = apiInstance.getUserProfileForUser(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#getUserProfileForUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXPortalUser result = apiInstance.getUserProfileForUser(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#getUserProfileForUser");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance getUserProfileForUserWith:userId
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var userId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserProfileForUser(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserProfileForUserExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var userId = 789;  // Long | 

            try
            {
                VXPortalUser result = apiInstance.getUserProfileForUser(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.getUserProfileForUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$userId = 789; // Long | 

try {
    $result = $api_instance->getUserProfileForUser($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->getUserProfileForUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $userId = 789; # Long | 

eval { 
    my $result = $api_instance->getUserProfileForUser(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->getUserProfileForUser: $@\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.UserRESTApi()
userId = 789 # Long | 

try: 
    api_response = api_instance.get_user_profile_for_user(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->getUserProfileForUser: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required

Responses

Status: 200 -


searchUsers

Implements the traditional search functionalities for UserProfile


/users

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        try {
            VXPortalUserList result = apiInstance.searchUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#searchUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        try {
            VXPortalUserList result = apiInstance.searchUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#searchUsers");
            e.printStackTrace();
        }
    }
}

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance searchUsersWithCompletionHandler: 
              ^(VXPortalUserList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchUsersExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();

            try
            {
                VXPortalUserList result = apiInstance.searchUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.searchUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();

try {
    $result = $api_instance->searchUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->searchUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();

eval { 
    my $result = $api_instance->searchUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->searchUsers: $@\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.UserRESTApi()

try: 
    api_response = api_instance.search_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->searchUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


setUserRoles


/users/{userId}/roles

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users/{userId}/roles"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXStringList body = ; // VXStringList | 
        try {
            VXResponse result = apiInstance.setUserRoles(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#setUserRoles");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        Long userId = 789; // Long | 
        VXStringList body = ; // VXStringList | 
        try {
            VXResponse result = apiInstance.setUserRoles(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#setUserRoles");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 
VXStringList *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance setUserRolesWith:userId
    body:body
              completionHandler: ^(VXResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var userId = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXStringList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.setUserRoles(userId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setUserRolesExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var userId = 789;  // Long | 
            var body = new VXStringList(); // VXStringList |  (optional) 

            try
            {
                VXResponse result = apiInstance.setUserRoles(userId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.setUserRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$userId = 789; // Long | 
$body = ; // VXStringList | 

try {
    $result = $api_instance->setUserRoles($userId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->setUserRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $userId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXStringList->new(); # VXStringList | 

eval { 
    my $result = $api_instance->setUserRoles(userId => $userId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->setUserRoles: $@\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.UserRESTApi()
userId = 789 # Long | 
body =  # VXStringList |  (optional)

try: 
    api_response = api_instance.set_user_roles(userId, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->setUserRoles: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


update


/users

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserRESTApi;

import java.io.File;
import java.util.*;

public class UserRESTApiExample {

    public static void main(String[] args) {
        
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.update(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#update");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.UserRESTApi;

public class UserRESTApiExample {

    public static void main(String[] args) {
        UserRESTApi apiInstance = new UserRESTApi();
        VXPortalUser body = ; // VXPortalUser | 
        try {
            VXPortalUser result = apiInstance.update(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UserRESTApi#update");
            e.printStackTrace();
        }
    }
}
VXPortalUser *body = ; //  (optional)

UserRESTApi *apiInstance = [[UserRESTApi alloc] init];

[apiInstance updateWith:body
              completionHandler: ^(VXPortalUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.UserRESTApi()
var opts = { 
  'body':  // {{VXPortalUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.update(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateExample
    {
        public void main()
        {

            var apiInstance = new UserRESTApi();
            var body = new VXPortalUser(); // VXPortalUser |  (optional) 

            try
            {
                VXPortalUser result = apiInstance.update(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling UserRESTApi.update: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiUserRESTApi();
$body = ; // VXPortalUser | 

try {
    $result = $api_instance->update($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UserRESTApi->update: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserRESTApi;

my $api_instance = WWW::SwaggerClient::UserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXPortalUser->new(); # VXPortalUser | 

eval { 
    my $result = $api_instance->update(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UserRESTApi->update: $@\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.UserRESTApi()
body =  # VXPortalUser |  (optional)

try: 
    api_response = api_instance.update(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserRESTApi->update: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


XAuditREST

countXAccessAudits


/xaudit/access_audit/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xaudit/access_audit/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXLong result = apiInstance.countXAccessAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#countXAccessAudits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXLong result = apiInstance.countXAccessAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#countXAccessAudits");
            e.printStackTrace();
        }
    }
}

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance countXAccessAuditsWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXAccessAudits(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXAccessAuditsExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();

            try
            {
                VXLong result = apiInstance.countXAccessAudits();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.countXAccessAudits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();

try {
    $result = $api_instance->countXAccessAudits();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->countXAccessAudits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();

eval { 
    my $result = $api_instance->countXAccessAudits();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->countXAccessAudits: $@\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.XAuditRESTApi()

try: 
    api_response = api_instance.count_x_access_audits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->countXAccessAudits: %s\n" % e)

Parameters

Responses

Status: 200 -


countXTrxLogs


/xaudit/trx_log/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xaudit/trx_log/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXLong result = apiInstance.countXTrxLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#countXTrxLogs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXLong result = apiInstance.countXTrxLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#countXTrxLogs");
            e.printStackTrace();
        }
    }
}

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance countXTrxLogsWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXTrxLogs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXTrxLogsExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();

            try
            {
                VXLong result = apiInstance.countXTrxLogs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.countXTrxLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();

try {
    $result = $api_instance->countXTrxLogs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->countXTrxLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();

eval { 
    my $result = $api_instance->countXTrxLogs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->countXTrxLogs: $@\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.XAuditRESTApi()

try: 
    api_response = api_instance.count_x_trx_logs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->countXTrxLogs: %s\n" % e)

Parameters

Responses

Status: 200 -


createXTrxLog


/xaudit/trx_log

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xaudit/trx_log"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        VXTrxLog body = ; // VXTrxLog | 
        try {
            VXTrxLog result = apiInstance.createXTrxLog(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#createXTrxLog");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        VXTrxLog body = ; // VXTrxLog | 
        try {
            VXTrxLog result = apiInstance.createXTrxLog(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#createXTrxLog");
            e.printStackTrace();
        }
    }
}
VXTrxLog *body = ; //  (optional)

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance createXTrxLogWith:body
              completionHandler: ^(VXTrxLog output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var opts = { 
  'body':  // {{VXTrxLog}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXTrxLog(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXTrxLogExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();
            var body = new VXTrxLog(); // VXTrxLog |  (optional) 

            try
            {
                VXTrxLog result = apiInstance.createXTrxLog(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.createXTrxLog: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();
$body = ; // VXTrxLog | 

try {
    $result = $api_instance->createXTrxLog($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->createXTrxLog: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXTrxLog->new(); # VXTrxLog | 

eval { 
    my $result = $api_instance->createXTrxLog(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->createXTrxLog: $@\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.XAuditRESTApi()
body =  # VXTrxLog |  (optional)

try: 
    api_response = api_instance.create_x_trx_log(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->createXTrxLog: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteXTrxLog


/xaudit/trx_log/{id}

Usage and SDK Samples

curl -X DELETE\
"//xaudit/trx_log/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXTrxLog(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#deleteXTrxLog");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXTrxLog(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#deleteXTrxLog");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance deleteXTrxLogWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXTrxLog(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXTrxLogExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXTrxLog(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.deleteXTrxLog: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXTrxLog($id);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->deleteXTrxLog: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXTrxLog(id => $id);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->deleteXTrxLog: $@\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.XAuditRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_trx_log(id)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->deleteXTrxLog: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


getXTrxLog


/xaudit/trx_log/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xaudit/trx_log/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        Long id = 789; // Long | 
        try {
            VXTrxLog result = apiInstance.getXTrxLog(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#getXTrxLog");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        Long id = 789; // Long | 
        try {
            VXTrxLog result = apiInstance.getXTrxLog(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#getXTrxLog");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance getXTrxLogWith:id
              completionHandler: ^(VXTrxLog output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXTrxLog(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXTrxLogExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXTrxLog result = apiInstance.getXTrxLog(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.getXTrxLog: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXTrxLog($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->getXTrxLog: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXTrxLog(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->getXTrxLog: $@\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.XAuditRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_trx_log(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->getXTrxLog: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


searchXAccessAudits

Implements the traditional search functionalities for XAccessAudits


/xaudit/access_audit

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xaudit/access_audit"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXAccessAuditList result = apiInstance.searchXAccessAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#searchXAccessAudits");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXAccessAuditList result = apiInstance.searchXAccessAudits();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#searchXAccessAudits");
            e.printStackTrace();
        }
    }
}

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance searchXAccessAuditsWithCompletionHandler: 
              ^(VXAccessAuditList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXAccessAudits(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXAccessAuditsExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();

            try
            {
                VXAccessAuditList result = apiInstance.searchXAccessAudits();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.searchXAccessAudits: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();

try {
    $result = $api_instance->searchXAccessAudits();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->searchXAccessAudits: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();

eval { 
    my $result = $api_instance->searchXAccessAudits();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->searchXAccessAudits: $@\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.XAuditRESTApi()

try: 
    api_response = api_instance.search_x_access_audits()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->searchXAccessAudits: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXTrxLogs

Implements the traditional search functionalities for XTrxLogs


/xaudit/trx_log

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xaudit/trx_log"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXTrxLogList result = apiInstance.searchXTrxLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#searchXTrxLogs");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        try {
            VXTrxLogList result = apiInstance.searchXTrxLogs();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#searchXTrxLogs");
            e.printStackTrace();
        }
    }
}

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance searchXTrxLogsWithCompletionHandler: 
              ^(VXTrxLogList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXTrxLogs(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXTrxLogsExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();

            try
            {
                VXTrxLogList result = apiInstance.searchXTrxLogs();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.searchXTrxLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();

try {
    $result = $api_instance->searchXTrxLogs();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->searchXTrxLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();

eval { 
    my $result = $api_instance->searchXTrxLogs();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->searchXTrxLogs: $@\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.XAuditRESTApi()

try: 
    api_response = api_instance.search_x_trx_logs()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->searchXTrxLogs: %s\n" % e)

Parameters

Responses

Status: 200 -


updateXTrxLog


/xaudit/trx_log

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xaudit/trx_log"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XAuditRESTApi;

import java.io.File;
import java.util.*;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        VXTrxLog body = ; // VXTrxLog | 
        try {
            VXTrxLog result = apiInstance.updateXTrxLog(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#updateXTrxLog");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XAuditRESTApi;

public class XAuditRESTApiExample {

    public static void main(String[] args) {
        XAuditRESTApi apiInstance = new XAuditRESTApi();
        VXTrxLog body = ; // VXTrxLog | 
        try {
            VXTrxLog result = apiInstance.updateXTrxLog(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XAuditRESTApi#updateXTrxLog");
            e.printStackTrace();
        }
    }
}
VXTrxLog *body = ; //  (optional)

XAuditRESTApi *apiInstance = [[XAuditRESTApi alloc] init];

[apiInstance updateXTrxLogWith:body
              completionHandler: ^(VXTrxLog output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XAuditRESTApi()
var opts = { 
  'body':  // {{VXTrxLog}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXTrxLog(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXTrxLogExample
    {
        public void main()
        {

            var apiInstance = new XAuditRESTApi();
            var body = new VXTrxLog(); // VXTrxLog |  (optional) 

            try
            {
                VXTrxLog result = apiInstance.updateXTrxLog(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XAuditRESTApi.updateXTrxLog: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXAuditRESTApi();
$body = ; // VXTrxLog | 

try {
    $result = $api_instance->updateXTrxLog($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XAuditRESTApi->updateXTrxLog: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XAuditRESTApi;

my $api_instance = WWW::SwaggerClient::XAuditRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXTrxLog->new(); # VXTrxLog | 

eval { 
    my $result = $api_instance->updateXTrxLog(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XAuditRESTApi->updateXTrxLog: $@\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.XAuditRESTApi()
body =  # VXTrxLog |  (optional)

try: 
    api_response = api_instance.update_x_trx_log(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XAuditRESTApi->updateXTrxLog: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


XKeyREST

createKey

Implements the create key functionality


/keys/key

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//keys/key?provider="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XKeyRESTApi;

import java.io.File;
import java.util.*;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        VXKmsKey body = ; // VXKmsKey | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.createKey(body, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#createKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XKeyRESTApi;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        VXKmsKey body = ; // VXKmsKey | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.createKey(body, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#createKey");
            e.printStackTrace();
        }
    }
}
VXKmsKey *body = ; //  (optional)
String *provider = provider_example; //  (optional)

XKeyRESTApi *apiInstance = [[XKeyRESTApi alloc] init];

[apiInstance createKeyWith:body
    provider:provider
              completionHandler: ^(VXKmsKey output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XKeyRESTApi()
var opts = { 
  'body':  // {{VXKmsKey}} 
  'provider': provider_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createKey(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createKeyExample
    {
        public void main()
        {

            var apiInstance = new XKeyRESTApi();
            var body = new VXKmsKey(); // VXKmsKey |  (optional) 
            var provider = provider_example;  // String |  (optional) 

            try
            {
                VXKmsKey result = apiInstance.createKey(body, provider);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XKeyRESTApi.createKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXKeyRESTApi();
$body = ; // VXKmsKey | 
$provider = provider_example; // String | 

try {
    $result = $api_instance->createKey($body, $provider);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XKeyRESTApi->createKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XKeyRESTApi;

my $api_instance = WWW::SwaggerClient::XKeyRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXKmsKey->new(); # VXKmsKey | 
my $provider = provider_example; # String | 

eval { 
    my $result = $api_instance->createKey(body => $body, provider => $provider);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XKeyRESTApi->createKey: $@\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.XKeyRESTApi()
body =  # VXKmsKey |  (optional)
provider = provider_example # String |  (optional)

try: 
    api_response = api_instance.create_key(body=body, provider=provider)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XKeyRESTApi->createKey: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
provider
String

Responses

Status: 201 -


deleteKey

Implements the delete key functionality


/keys/key/{alias}

Usage and SDK Samples

curl -X DELETE\
"//keys/key/{alias}?provider="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XKeyRESTApi;

import java.io.File;
import java.util.*;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String alias = alias_example; // String | 
        String provider = provider_example; // String | 
        try {
            apiInstance.deleteKey(alias, provider);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#deleteKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XKeyRESTApi;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String alias = alias_example; // String | 
        String provider = provider_example; // String | 
        try {
            apiInstance.deleteKey(alias, provider);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#deleteKey");
            e.printStackTrace();
        }
    }
}
String *alias = alias_example; // 
String *provider = provider_example; //  (optional)

XKeyRESTApi *apiInstance = [[XKeyRESTApi alloc] init];

[apiInstance deleteKeyWith:alias
    provider:provider
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XKeyRESTApi()
var alias = alias_example; // {{String}} 
var opts = { 
  'provider': provider_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteKey(alias, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteKeyExample
    {
        public void main()
        {

            var apiInstance = new XKeyRESTApi();
            var alias = alias_example;  // String | 
            var provider = provider_example;  // String |  (optional) 

            try
            {
                apiInstance.deleteKey(alias, provider);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XKeyRESTApi.deleteKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXKeyRESTApi();
$alias = alias_example; // String | 
$provider = provider_example; // String | 

try {
    $api_instance->deleteKey($alias, $provider);
} catch (Exception $e) {
    echo 'Exception when calling XKeyRESTApi->deleteKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XKeyRESTApi;

my $api_instance = WWW::SwaggerClient::XKeyRESTApi->new();
my $alias = alias_example; # String | 
my $provider = provider_example; # String | 

eval { 
    $api_instance->deleteKey(alias => $alias, provider => $provider);
};
if ($@) {
    warn "Exception when calling XKeyRESTApi->deleteKey: $@\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.XKeyRESTApi()
alias = alias_example # String | 
provider = provider_example # String |  (optional)

try: 
    api_instance.delete_key(alias, provider=provider)
except ApiException as e:
    print("Exception when calling XKeyRESTApi->deleteKey: %s\n" % e)

Parameters

Path parameters
Name Description
alias*
String
Required
Query parameters
Name Description
provider
String

Responses

Status: 204 - Success


getKey


/keys/key/{alias}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//keys/key/{alias}?provider="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XKeyRESTApi;

import java.io.File;
import java.util.*;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String alias = alias_example; // String | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.getKey(alias, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#getKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XKeyRESTApi;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String alias = alias_example; // String | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.getKey(alias, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#getKey");
            e.printStackTrace();
        }
    }
}
String *alias = alias_example; // 
String *provider = provider_example; //  (optional)

XKeyRESTApi *apiInstance = [[XKeyRESTApi alloc] init];

[apiInstance getKeyWith:alias
    provider:provider
              completionHandler: ^(VXKmsKey output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XKeyRESTApi()
var alias = alias_example; // {{String}} 
var opts = { 
  'provider': provider_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getKey(alias, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getKeyExample
    {
        public void main()
        {

            var apiInstance = new XKeyRESTApi();
            var alias = alias_example;  // String | 
            var provider = provider_example;  // String |  (optional) 

            try
            {
                VXKmsKey result = apiInstance.getKey(alias, provider);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XKeyRESTApi.getKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXKeyRESTApi();
$alias = alias_example; // String | 
$provider = provider_example; // String | 

try {
    $result = $api_instance->getKey($alias, $provider);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XKeyRESTApi->getKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XKeyRESTApi;

my $api_instance = WWW::SwaggerClient::XKeyRESTApi->new();
my $alias = alias_example; # String | 
my $provider = provider_example; # String | 

eval { 
    my $result = $api_instance->getKey(alias => $alias, provider => $provider);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XKeyRESTApi->getKey: $@\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.XKeyRESTApi()
alias = alias_example # String | 
provider = provider_example # String |  (optional)

try: 
    api_response = api_instance.get_key(alias, provider=provider)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XKeyRESTApi->getKey: %s\n" % e)

Parameters

Path parameters
Name Description
alias*
String
Required
Query parameters
Name Description
provider
String

Responses

Status: 200 -


rolloverKey

Implements the Rollover key functionality


/keys/key

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//keys/key?provider="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XKeyRESTApi;

import java.io.File;
import java.util.*;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        VXKmsKey body = ; // VXKmsKey | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.rolloverKey(body, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#rolloverKey");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XKeyRESTApi;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        VXKmsKey body = ; // VXKmsKey | 
        String provider = provider_example; // String | 
        try {
            VXKmsKey result = apiInstance.rolloverKey(body, provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#rolloverKey");
            e.printStackTrace();
        }
    }
}
VXKmsKey *body = ; //  (optional)
String *provider = provider_example; //  (optional)

XKeyRESTApi *apiInstance = [[XKeyRESTApi alloc] init];

[apiInstance rolloverKeyWith:body
    provider:provider
              completionHandler: ^(VXKmsKey output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XKeyRESTApi()
var opts = { 
  'body':  // {{VXKmsKey}} 
  'provider': provider_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.rolloverKey(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class rolloverKeyExample
    {
        public void main()
        {

            var apiInstance = new XKeyRESTApi();
            var body = new VXKmsKey(); // VXKmsKey |  (optional) 
            var provider = provider_example;  // String |  (optional) 

            try
            {
                VXKmsKey result = apiInstance.rolloverKey(body, provider);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XKeyRESTApi.rolloverKey: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXKeyRESTApi();
$body = ; // VXKmsKey | 
$provider = provider_example; // String | 

try {
    $result = $api_instance->rolloverKey($body, $provider);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XKeyRESTApi->rolloverKey: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XKeyRESTApi;

my $api_instance = WWW::SwaggerClient::XKeyRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXKmsKey->new(); # VXKmsKey | 
my $provider = provider_example; # String | 

eval { 
    my $result = $api_instance->rolloverKey(body => $body, provider => $provider);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XKeyRESTApi->rolloverKey: $@\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.XKeyRESTApi()
body =  # VXKmsKey |  (optional)
provider = provider_example # String |  (optional)

try: 
    api_response = api_instance.rollover_key(body=body, provider=provider)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XKeyRESTApi->rolloverKey: %s\n" % e)

Parameters

Body parameters
Name Description
body
Query parameters
Name Description
provider
String

Responses

Status: 204 -


searchKeys

Implements the traditional search functionalities for Keys


/keys/keys

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//keys/keys?provider="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XKeyRESTApi;

import java.io.File;
import java.util.*;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String provider = provider_example; // String | 
        try {
            VXKmsKeyList result = apiInstance.searchKeys(provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#searchKeys");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XKeyRESTApi;

public class XKeyRESTApiExample {

    public static void main(String[] args) {
        XKeyRESTApi apiInstance = new XKeyRESTApi();
        String provider = provider_example; // String | 
        try {
            VXKmsKeyList result = apiInstance.searchKeys(provider);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XKeyRESTApi#searchKeys");
            e.printStackTrace();
        }
    }
}
String *provider = provider_example; //  (optional)

XKeyRESTApi *apiInstance = [[XKeyRESTApi alloc] init];

[apiInstance searchKeysWith:provider
              completionHandler: ^(VXKmsKeyList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XKeyRESTApi()
var opts = { 
  'provider': provider_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchKeys(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchKeysExample
    {
        public void main()
        {

            var apiInstance = new XKeyRESTApi();
            var provider = provider_example;  // String |  (optional) 

            try
            {
                VXKmsKeyList result = apiInstance.searchKeys(provider);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XKeyRESTApi.searchKeys: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXKeyRESTApi();
$provider = provider_example; // String | 

try {
    $result = $api_instance->searchKeys($provider);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XKeyRESTApi->searchKeys: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XKeyRESTApi;

my $api_instance = WWW::SwaggerClient::XKeyRESTApi->new();
my $provider = provider_example; # String | 

eval { 
    my $result = $api_instance->searchKeys(provider => $provider);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XKeyRESTApi->searchKeys: $@\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.XKeyRESTApi()
provider = provider_example # String |  (optional)

try: 
    api_response = api_instance.search_keys(provider=provider)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XKeyRESTApi->searchKeys: %s\n" % e)

Parameters

Query parameters
Name Description
provider
String

Responses

Status: 200 -


XUserREST

addOrUpdateGroupUsersList


/xusers/ugsync/groupusers

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/groupusers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[GroupUserInfo] body = ; // array[GroupUserInfo] | 
        try {
            'Integer' result = apiInstance.addOrUpdateGroupUsersList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateGroupUsersList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[GroupUserInfo] body = ; // array[GroupUserInfo] | 
        try {
            'Integer' result = apiInstance.addOrUpdateGroupUsersList(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateGroupUsersList");
            e.printStackTrace();
        }
    }
}
array[GroupUserInfo] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance addOrUpdateGroupUsersListWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{array[GroupUserInfo]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addOrUpdateGroupUsersList(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addOrUpdateGroupUsersListExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new array[GroupUserInfo](); // array[GroupUserInfo] |  (optional) 

            try
            {
                'Integer' result = apiInstance.addOrUpdateGroupUsersList(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.addOrUpdateGroupUsersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // array[GroupUserInfo] | 

try {
    $result = $api_instance->addOrUpdateGroupUsersList($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->addOrUpdateGroupUsersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = [WWW::SwaggerClient::Object::array[GroupUserInfo]->new()]; # array[GroupUserInfo] | 

eval { 
    my $result = $api_instance->addOrUpdateGroupUsersList(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->addOrUpdateGroupUsersList: $@\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.XUserRESTApi()
body =  # array[GroupUserInfo] |  (optional)

try: 
    api_response = api_instance.add_or_update_group_users_list(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->addOrUpdateGroupUsersList: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


addOrUpdateGroups


/xusers/ugsync/groups

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupList body = ; // VXGroupList | 
        try {
            'Integer' result = apiInstance.addOrUpdateGroups(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupList body = ; // VXGroupList | 
        try {
            'Integer' result = apiInstance.addOrUpdateGroups(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateGroups");
            e.printStackTrace();
        }
    }
}
VXGroupList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance addOrUpdateGroupsWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroupList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addOrUpdateGroups(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addOrUpdateGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroupList(); // VXGroupList |  (optional) 

            try
            {
                'Integer' result = apiInstance.addOrUpdateGroups(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.addOrUpdateGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroupList | 

try {
    $result = $api_instance->addOrUpdateGroups($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->addOrUpdateGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroupList->new(); # VXGroupList | 

eval { 
    my $result = $api_instance->addOrUpdateGroups(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->addOrUpdateGroups: $@\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.XUserRESTApi()
body =  # VXGroupList |  (optional)

try: 
    api_response = api_instance.add_or_update_groups(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->addOrUpdateGroups: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


addOrUpdateUsers


/xusers/ugsync/users

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserList body = ; // VXUserList | 
        try {
            'String' result = apiInstance.addOrUpdateUsers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserList body = ; // VXUserList | 
        try {
            'String' result = apiInstance.addOrUpdateUsers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#addOrUpdateUsers");
            e.printStackTrace();
        }
    }
}
VXUserList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance addOrUpdateUsersWith:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUserList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.addOrUpdateUsers(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addOrUpdateUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUserList(); // VXUserList |  (optional) 

            try
            {
                'String' result = apiInstance.addOrUpdateUsers(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.addOrUpdateUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUserList | 

try {
    $result = $api_instance->addOrUpdateUsers($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->addOrUpdateUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUserList->new(); # VXUserList | 

eval { 
    my $result = $api_instance->addOrUpdateUsers(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->addOrUpdateUsers: $@\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.XUserRESTApi()
body =  # VXUserList |  (optional)

try: 
    api_response = api_instance.add_or_update_users(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->addOrUpdateUsers: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


countXGroupPermission


/xusers/permission/group/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/group/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroupPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroupPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroupPermission");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXGroupPermissionWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXGroupPermission(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXGroupPermission();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXGroupPermission();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXGroupPermission();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXGroupPermission: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_group_permission()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXGroupPermission: %s\n" % e)

Parameters

Responses

Status: 200 -


countXGroupUsers


/xusers/groupusers/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groupusers/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroupUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroupUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXGroupUsersWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXGroupUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXGroupUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXGroupUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXGroupUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXGroupUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXGroupUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXGroupUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXGroupUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_group_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXGroupUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


countXGroups


/xusers/groups/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groups/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXGroups");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXGroupsWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXGroups();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXGroups();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXGroups();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXGroups: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_groups()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXGroups: %s\n" % e)

Parameters

Responses

Status: 200 -


countXModuleDef


/xusers/permission/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXModuleDef();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXModuleDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXModuleDef();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXModuleDef");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXModuleDefWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXModuleDef(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXModuleDefExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXModuleDef();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXModuleDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXModuleDef();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXModuleDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXModuleDef();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXModuleDef: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_module_def()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXModuleDef: %s\n" % e)

Parameters

Responses

Status: 200 -


countXUserPermission


/xusers/permission/user/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/user/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXUserPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXUserPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXUserPermission");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXUserPermissionWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXUserPermission(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXUserPermission();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXUserPermission();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXUserPermission();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXUserPermission: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_user_permission()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXUserPermission: %s\n" % e)

Parameters

Responses

Status: 200 -


countXUsers


/xusers/users/count

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/users/count"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXLong result = apiInstance.countXUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#countXUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance countXUsersWithCompletionHandler: 
              ^(VXLong output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.countXUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class countXUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXLong result = apiInstance.countXUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.countXUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->countXUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->countXUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->countXUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->countXUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.count_x_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->countXUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


createExternalUser


/xusers/users/external

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/users/external"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.createExternalUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createExternalUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.createExternalUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createExternalUser");
            e.printStackTrace();
        }
    }
}
VXUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createExternalUserWith:body
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createExternalUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createExternalUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUser(); // VXUser |  (optional) 

            try
            {
                VXUser result = apiInstance.createExternalUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createExternalUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUser | 

try {
    $result = $api_instance->createExternalUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createExternalUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUser->new(); # VXUser | 

eval { 
    my $result = $api_instance->createExternalUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createExternalUser: $@\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.XUserRESTApi()
body =  # VXUser |  (optional)

try: 
    api_response = api_instance.create_external_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createExternalUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXGroup


/xusers/groups

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.createXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.createXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroup");
            e.printStackTrace();
        }
    }
}
VXGroup *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXGroupWith:body
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroup}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXGroup(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroup(); // VXGroup |  (optional) 

            try
            {
                VXGroup result = apiInstance.createXGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroup | 

try {
    $result = $api_instance->createXGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroup->new(); # VXGroup | 

eval { 
    my $result = $api_instance->createXGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXGroup: $@\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.XUserRESTApi()
body =  # VXGroup |  (optional)

try: 
    api_response = api_instance.create_x_group(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXGroupPermission


/xusers/permission/group

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission/group"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupPermission body = ; // VXGroupPermission | 
        try {
            VXGroupPermission result = apiInstance.createXGroupPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupPermission body = ; // VXGroupPermission | 
        try {
            VXGroupPermission result = apiInstance.createXGroupPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupPermission");
            e.printStackTrace();
        }
    }
}
VXGroupPermission *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXGroupPermissionWith:body
              completionHandler: ^(VXGroupPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroupPermission}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXGroupPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroupPermission(); // VXGroupPermission |  (optional) 

            try
            {
                VXGroupPermission result = apiInstance.createXGroupPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroupPermission | 

try {
    $result = $api_instance->createXGroupPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroupPermission->new(); # VXGroupPermission | 

eval { 
    my $result = $api_instance->createXGroupPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXGroupPermission: $@\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.XUserRESTApi()
body =  # VXGroupPermission |  (optional)

try: 
    api_response = api_instance.create_x_group_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXGroupPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXGroupUser


/xusers/groupusers

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/groupusers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUser body = ; // VXGroupUser | 
        try {
            VXGroupUser result = apiInstance.createXGroupUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUser body = ; // VXGroupUser | 
        try {
            VXGroupUser result = apiInstance.createXGroupUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupUser");
            e.printStackTrace();
        }
    }
}
VXGroupUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXGroupUserWith:body
              completionHandler: ^(VXGroupUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroupUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXGroupUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXGroupUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroupUser(); // VXGroupUser |  (optional) 

            try
            {
                VXGroupUser result = apiInstance.createXGroupUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXGroupUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroupUser | 

try {
    $result = $api_instance->createXGroupUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXGroupUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroupUser->new(); # VXGroupUser | 

eval { 
    my $result = $api_instance->createXGroupUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXGroupUser: $@\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.XUserRESTApi()
body =  # VXGroupUser |  (optional)

try: 
    api_response = api_instance.create_x_group_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXGroupUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXGroupUserFromMap


/xusers/groups/groupinfo

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/groups/groupinfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUserInfo body = ; // VXGroupUserInfo | 
        try {
            VXGroupUserInfo result = apiInstance.createXGroupUserFromMap(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupUserFromMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUserInfo body = ; // VXGroupUserInfo | 
        try {
            VXGroupUserInfo result = apiInstance.createXGroupUserFromMap(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXGroupUserFromMap");
            e.printStackTrace();
        }
    }
}
VXGroupUserInfo *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXGroupUserFromMapWith:body
              completionHandler: ^(VXGroupUserInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroupUserInfo}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXGroupUserFromMap(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXGroupUserFromMapExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroupUserInfo(); // VXGroupUserInfo |  (optional) 

            try
            {
                VXGroupUserInfo result = apiInstance.createXGroupUserFromMap(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXGroupUserFromMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroupUserInfo | 

try {
    $result = $api_instance->createXGroupUserFromMap($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXGroupUserFromMap: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroupUserInfo->new(); # VXGroupUserInfo | 

eval { 
    my $result = $api_instance->createXGroupUserFromMap(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXGroupUserFromMap: $@\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.XUserRESTApi()
body =  # VXGroupUserInfo |  (optional)

try: 
    api_response = api_instance.create_x_group_user_from_map(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXGroupUserFromMap: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXModuleDefPermission


/xusers/permission

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXModuleDef body = ; // VXModuleDef | 
        try {
            VXModuleDef result = apiInstance.createXModuleDefPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXModuleDef body = ; // VXModuleDef | 
        try {
            VXModuleDef result = apiInstance.createXModuleDefPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
VXModuleDef *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXModuleDefPermissionWith:body
              completionHandler: ^(VXModuleDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXModuleDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXModuleDefPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXModuleDefPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXModuleDef(); // VXModuleDef |  (optional) 

            try
            {
                VXModuleDef result = apiInstance.createXModuleDefPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXModuleDefPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXModuleDef | 

try {
    $result = $api_instance->createXModuleDefPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXModuleDefPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXModuleDef->new(); # VXModuleDef | 

eval { 
    my $result = $api_instance->createXModuleDefPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXModuleDefPermission: $@\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.XUserRESTApi()
body =  # VXModuleDef |  (optional)

try: 
    api_response = api_instance.create_x_module_def_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXModuleDefPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXUser


/xusers/users

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.createXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.createXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUser");
            e.printStackTrace();
        }
    }
}
VXUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXUserWith:body
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUser(); // VXUser |  (optional) 

            try
            {
                VXUser result = apiInstance.createXUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUser | 

try {
    $result = $api_instance->createXUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUser->new(); # VXUser | 

eval { 
    my $result = $api_instance->createXUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXUser: $@\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.XUserRESTApi()
body =  # VXUser |  (optional)

try: 
    api_response = api_instance.create_x_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXUserGroupFromMap


/xusers/users/userinfo

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/users/userinfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserGroupInfo body = ; // VXUserGroupInfo | 
        try {
            VXUserGroupInfo result = apiInstance.createXUserGroupFromMap(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUserGroupFromMap");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserGroupInfo body = ; // VXUserGroupInfo | 
        try {
            VXUserGroupInfo result = apiInstance.createXUserGroupFromMap(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUserGroupFromMap");
            e.printStackTrace();
        }
    }
}
VXUserGroupInfo *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXUserGroupFromMapWith:body
              completionHandler: ^(VXUserGroupInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUserGroupInfo}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXUserGroupFromMap(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXUserGroupFromMapExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUserGroupInfo(); // VXUserGroupInfo |  (optional) 

            try
            {
                VXUserGroupInfo result = apiInstance.createXUserGroupFromMap(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXUserGroupFromMap: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUserGroupInfo | 

try {
    $result = $api_instance->createXUserGroupFromMap($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXUserGroupFromMap: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUserGroupInfo->new(); # VXUserGroupInfo | 

eval { 
    my $result = $api_instance->createXUserGroupFromMap(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXUserGroupFromMap: $@\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.XUserRESTApi()
body =  # VXUserGroupInfo |  (optional)

try: 
    api_response = api_instance.create_x_user_group_from_map(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXUserGroupFromMap: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


createXUserPermission


/xusers/permission/user

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserPermission body = ; // VXUserPermission | 
        try {
            VXUserPermission result = apiInstance.createXUserPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserPermission body = ; // VXUserPermission | 
        try {
            VXUserPermission result = apiInstance.createXUserPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#createXUserPermission");
            e.printStackTrace();
        }
    }
}
VXUserPermission *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance createXUserPermissionWith:body
              completionHandler: ^(VXUserPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUserPermission}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createXUserPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class createXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUserPermission(); // VXUserPermission |  (optional) 

            try
            {
                VXUserPermission result = apiInstance.createXUserPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.createXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUserPermission | 

try {
    $result = $api_instance->createXUserPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->createXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUserPermission->new(); # VXUserPermission | 

eval { 
    my $result = $api_instance->createXUserPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->createXUserPermission: $@\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.XUserRESTApi()
body =  # VXUserPermission |  (optional)

try: 
    api_response = api_instance.create_x_user_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->createXUserPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


deleteGroupsByGroupName


/xusers/secure/groups/delete

Usage and SDK Samples

curl -X DELETE\
-H "Content-Type: application/json,application/xml"\
"//xusers/secure/groups/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXStringList body = ; // VXStringList | 
        try {
            apiInstance.deleteGroupsByGroupName(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteGroupsByGroupName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXStringList body = ; // VXStringList | 
        try {
            apiInstance.deleteGroupsByGroupName(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteGroupsByGroupName");
            e.printStackTrace();
        }
    }
}
VXStringList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteGroupsByGroupNameWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXStringList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteGroupsByGroupName(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteGroupsByGroupNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXStringList(); // VXStringList |  (optional) 

            try
            {
                apiInstance.deleteGroupsByGroupName(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteGroupsByGroupName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXStringList | 

try {
    $api_instance->deleteGroupsByGroupName($body);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteGroupsByGroupName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXStringList->new(); # VXStringList | 

eval { 
    $api_instance->deleteGroupsByGroupName(body => $body);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteGroupsByGroupName: $@\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.XUserRESTApi()
body =  # VXStringList |  (optional)

try: 
    api_instance.delete_groups_by_group_name(body=body)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteGroupsByGroupName: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


deleteSingleGroupByGroupId


/xusers/secure/groups/id/{groupId}

Usage and SDK Samples

curl -X DELETE\
"//xusers/secure/groups/id/{groupId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long groupId = 789; // Long | 
        try {
            apiInstance.deleteSingleGroupByGroupId(groupId);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleGroupByGroupId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long groupId = 789; // Long | 
        try {
            apiInstance.deleteSingleGroupByGroupId(groupId);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleGroupByGroupId");
            e.printStackTrace();
        }
    }
}
Long *groupId = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteSingleGroupByGroupIdWith:groupId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSingleGroupByGroupId(groupId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSingleGroupByGroupIdExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupId = 789;  // Long | 

            try
            {
                apiInstance.deleteSingleGroupByGroupId(groupId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteSingleGroupByGroupId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupId = 789; // Long | 

try {
    $api_instance->deleteSingleGroupByGroupId($groupId);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteSingleGroupByGroupId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupId = 789; # Long | 

eval { 
    $api_instance->deleteSingleGroupByGroupId(groupId => $groupId);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteSingleGroupByGroupId: $@\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.XUserRESTApi()
groupId = 789 # Long | 

try: 
    api_instance.delete_single_group_by_group_id(groupId)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteSingleGroupByGroupId: %s\n" % e)

Parameters

Path parameters
Name Description
groupId*
Long (int64)
Required

Responses

Status: 204 - Success


deleteSingleGroupByGroupName


/xusers/secure/groups/{groupName}

Usage and SDK Samples

curl -X DELETE\
"//xusers/secure/groups/{groupName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            apiInstance.deleteSingleGroupByGroupName(groupName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleGroupByGroupName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            apiInstance.deleteSingleGroupByGroupName(groupName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleGroupByGroupName");
            e.printStackTrace();
        }
    }
}
String *groupName = groupName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteSingleGroupByGroupNameWith:groupName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupName = groupName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSingleGroupByGroupName(groupName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSingleGroupByGroupNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupName = groupName_example;  // String | 

            try
            {
                apiInstance.deleteSingleGroupByGroupName(groupName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteSingleGroupByGroupName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupName = groupName_example; // String | 

try {
    $api_instance->deleteSingleGroupByGroupName($groupName);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteSingleGroupByGroupName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupName = groupName_example; # String | 

eval { 
    $api_instance->deleteSingleGroupByGroupName(groupName => $groupName);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteSingleGroupByGroupName: $@\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.XUserRESTApi()
groupName = groupName_example # String | 

try: 
    api_instance.delete_single_group_by_group_name(groupName)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteSingleGroupByGroupName: %s\n" % e)

Parameters

Path parameters
Name Description
groupName*
String
Required

Responses

Status: 204 - Success


deleteSingleUserByUserId


/xusers/secure/users/id/{userId}

Usage and SDK Samples

curl -X DELETE\
"//xusers/secure/users/id/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            apiInstance.deleteSingleUserByUserId(userId);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleUserByUserId");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            apiInstance.deleteSingleUserByUserId(userId);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleUserByUserId");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteSingleUserByUserIdWith:userId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSingleUserByUserId(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSingleUserByUserIdExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userId = 789;  // Long | 

            try
            {
                apiInstance.deleteSingleUserByUserId(userId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteSingleUserByUserId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userId = 789; // Long | 

try {
    $api_instance->deleteSingleUserByUserId($userId);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteSingleUserByUserId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userId = 789; # Long | 

eval { 
    $api_instance->deleteSingleUserByUserId(userId => $userId);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteSingleUserByUserId: $@\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.XUserRESTApi()
userId = 789 # Long | 

try: 
    api_instance.delete_single_user_by_user_id(userId)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteSingleUserByUserId: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required

Responses

Status: 204 - Success


deleteSingleUserByUserName


/xusers/secure/users/{userName}

Usage and SDK Samples

curl -X DELETE\
"//xusers/secure/users/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteSingleUserByUserName(userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleUserByUserName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteSingleUserByUserName(userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteSingleUserByUserName");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteSingleUserByUserNameWith:userName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userName = userName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteSingleUserByUserName(userName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteSingleUserByUserNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userName = userName_example;  // String | 

            try
            {
                apiInstance.deleteSingleUserByUserName(userName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteSingleUserByUserName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userName = userName_example; // String | 

try {
    $api_instance->deleteSingleUserByUserName($userName);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteSingleUserByUserName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userName = userName_example; # String | 

eval { 
    $api_instance->deleteSingleUserByUserName(userName => $userName);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteSingleUserByUserName: $@\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.XUserRESTApi()
userName = userName_example # String | 

try: 
    api_instance.delete_single_user_by_user_name(userName)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteSingleUserByUserName: %s\n" % e)

Parameters

Path parameters
Name Description
userName*
String
Required

Responses

Status: 204 - Success


deleteUsersByUserName


/xusers/secure/users/delete

Usage and SDK Samples

curl -X DELETE\
-H "Content-Type: application/json,application/xml"\
"//xusers/secure/users/delete"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXStringList body = ; // VXStringList | 
        try {
            apiInstance.deleteUsersByUserName(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteUsersByUserName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXStringList body = ; // VXStringList | 
        try {
            apiInstance.deleteUsersByUserName(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteUsersByUserName");
            e.printStackTrace();
        }
    }
}
VXStringList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteUsersByUserNameWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXStringList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteUsersByUserName(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteUsersByUserNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXStringList(); // VXStringList |  (optional) 

            try
            {
                apiInstance.deleteUsersByUserName(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteUsersByUserName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXStringList | 

try {
    $api_instance->deleteUsersByUserName($body);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteUsersByUserName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXStringList->new(); # VXStringList | 

eval { 
    $api_instance->deleteUsersByUserName(body => $body);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteUsersByUserName: $@\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.XUserRESTApi()
body =  # VXStringList |  (optional)

try: 
    api_instance.delete_users_by_user_name(body=body)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteUsersByUserName: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


deleteXGroup


/xusers/groups/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroup(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroup(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroup");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXGroupWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXGroup(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXGroup(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXGroup($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXGroup(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXGroup: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_group(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXGroup: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXGroupAndXUser


/xusers/group/{groupName}/user/{userName}

Usage and SDK Samples

curl -X DELETE\
"//xusers/group/{groupName}/user/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteXGroupAndXUser(groupName, userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupAndXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteXGroupAndXUser(groupName, userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupAndXUser");
            e.printStackTrace();
        }
    }
}
String *groupName = groupName_example; // 
String *userName = userName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXGroupAndXUserWith:groupName
    userName:userName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupName = groupName_example; // {{String}} 
var userName = userName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXGroupAndXUser(groupName, userName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXGroupAndXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupName = groupName_example;  // String | 
            var userName = userName_example;  // String | 

            try
            {
                apiInstance.deleteXGroupAndXUser(groupName, userName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXGroupAndXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupName = groupName_example; // String | 
$userName = userName_example; // String | 

try {
    $api_instance->deleteXGroupAndXUser($groupName, $userName);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXGroupAndXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupName = groupName_example; # String | 
my $userName = userName_example; # String | 

eval { 
    $api_instance->deleteXGroupAndXUser(groupName => $groupName, userName => $userName);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXGroupAndXUser: $@\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.XUserRESTApi()
groupName = groupName_example # String | 
userName = userName_example # String | 

try: 
    api_instance.delete_x_group_and_x_user(groupName, userName)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXGroupAndXUser: %s\n" % e)

Parameters

Path parameters
Name Description
groupName*
String
Required
userName*
String
Required

Responses

Status: 204 - Success


deleteXGroupByGroupName


/xusers/groups/groupName/{groupName}

Usage and SDK Samples

curl -X DELETE\
"//xusers/groups/groupName/{groupName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            apiInstance.deleteXGroupByGroupName(groupName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupByGroupName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            apiInstance.deleteXGroupByGroupName(groupName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupByGroupName");
            e.printStackTrace();
        }
    }
}
String *groupName = groupName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXGroupByGroupNameWith:groupName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupName = groupName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXGroupByGroupName(groupName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXGroupByGroupNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupName = groupName_example;  // String | 

            try
            {
                apiInstance.deleteXGroupByGroupName(groupName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXGroupByGroupName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupName = groupName_example; // String | 

try {
    $api_instance->deleteXGroupByGroupName($groupName);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXGroupByGroupName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupName = groupName_example; # String | 

eval { 
    $api_instance->deleteXGroupByGroupName(groupName => $groupName);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXGroupByGroupName: $@\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.XUserRESTApi()
groupName = groupName_example # String | 

try: 
    api_instance.delete_x_group_by_group_name(groupName)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXGroupByGroupName: %s\n" % e)

Parameters

Path parameters
Name Description
groupName*
String
Required

Responses

Status: 204 - Success


deleteXGroupPermission


/xusers/permission/group/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/permission/group/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroupPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroupPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXGroupPermissionWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXGroupPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXGroupPermission(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXGroupPermission($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXGroupPermission(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXGroupPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_group_permission(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXGroupPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXGroupUser


/xusers/groupusers/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/groupusers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroupUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXGroupUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXGroupUser");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXGroupUserWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXGroupUser(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXGroupUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXGroupUser(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXGroupUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXGroupUser($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXGroupUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXGroupUser(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXGroupUser: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_group_user(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXGroupUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXModuleDefPermission


/xusers/permission/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/permission/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXModuleDefPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXModuleDefPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXModuleDefPermissionWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXModuleDefPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXModuleDefPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXModuleDefPermission(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXModuleDefPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXModuleDefPermission($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXModuleDefPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXModuleDefPermission(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXModuleDefPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_module_def_permission(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXModuleDefPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXUser


/xusers/users/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXUser(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUser");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXUserWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXUser(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXUser(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXUser($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXUser(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXUser: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_user(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


deleteXUserByUserName


/xusers/users/userName/{userName}

Usage and SDK Samples

curl -X DELETE\
"//xusers/users/userName/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteXUserByUserName(userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUserByUserName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            apiInstance.deleteXUserByUserName(userName);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUserByUserName");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXUserByUserNameWith:userName
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userName = userName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXUserByUserName(userName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXUserByUserNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userName = userName_example;  // String | 

            try
            {
                apiInstance.deleteXUserByUserName(userName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXUserByUserName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userName = userName_example; // String | 

try {
    $api_instance->deleteXUserByUserName($userName);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXUserByUserName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userName = userName_example; # String | 

eval { 
    $api_instance->deleteXUserByUserName(userName => $userName);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXUserByUserName: $@\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.XUserRESTApi()
userName = userName_example # String | 

try: 
    api_instance.delete_x_user_by_user_name(userName)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXUserByUserName: %s\n" % e)

Parameters

Path parameters
Name Description
userName*
String
Required

Responses

Status: 204 - Success


deleteXUserPermission


/xusers/permission/user/{id}

Usage and SDK Samples

curl -X DELETE\
"//xusers/permission/user/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXUserPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            apiInstance.deleteXUserPermission(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#deleteXUserPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance deleteXUserPermissionWith:id
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteXUserPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                apiInstance.deleteXUserPermission(id);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.deleteXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $api_instance->deleteXUserPermission($id);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->deleteXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    $api_instance->deleteXUserPermission(id => $id);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->deleteXUserPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_instance.delete_x_user_permission(id)
except ApiException as e:
    print("Exception when calling XUserRESTApi->deleteXUserPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 204 - Success


forceDeleteExternalGroups

Proceed with <tt>caution</tt>: Force deletes groups from the ranger db, <tt>Delete</tt> happens one at a time with immediate commit on the transaction.


/xusers/delete/external/groups

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"//xusers/delete/external/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            byte[] result = apiInstance.forceDeleteExternalGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#forceDeleteExternalGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            byte[] result = apiInstance.forceDeleteExternalGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#forceDeleteExternalGroups");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance forceDeleteExternalGroupsWithCompletionHandler: 
              ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.forceDeleteExternalGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class forceDeleteExternalGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                byte[] result = apiInstance.forceDeleteExternalGroups();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.forceDeleteExternalGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->forceDeleteExternalGroups();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->forceDeleteExternalGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->forceDeleteExternalGroups();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->forceDeleteExternalGroups: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.force_delete_external_groups()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->forceDeleteExternalGroups: %s\n" % e)

Parameters

Responses

Status: 204 -


forceDeleteExternalUsers

Proceed with <tt>caution</tt>: Force deletes users from the ranger db, <tt>Delete</tt> happens one at a time with immediate commit on the transaction.


/xusers/delete/external/users

Usage and SDK Samples

curl -X DELETE\
-H "Accept: application/json"\
"//xusers/delete/external/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            byte[] result = apiInstance.forceDeleteExternalUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#forceDeleteExternalUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            byte[] result = apiInstance.forceDeleteExternalUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#forceDeleteExternalUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance forceDeleteExternalUsersWithCompletionHandler: 
              ^(byte[] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.forceDeleteExternalUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class forceDeleteExternalUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                byte[] result = apiInstance.forceDeleteExternalUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.forceDeleteExternalUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->forceDeleteExternalUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->forceDeleteExternalUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->forceDeleteExternalUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->forceDeleteExternalUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.force_delete_external_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->forceDeleteExternalUsers: %s\n" % e)

Parameters

Responses

Status: 204 -


getAllGroupUsers


/xusers/ugsync/groupusers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/ugsync/groupusers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            map['String', array['String']] result = apiInstance.getAllGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAllGroupUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            map['String', array['String']] result = apiInstance.getAllGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAllGroupUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getAllGroupUsersWithCompletionHandler: 
              ^(map['String', array['String']] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAllGroupUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAllGroupUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                map['String', array['String']] result = apiInstance.getAllGroupUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getAllGroupUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->getAllGroupUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getAllGroupUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->getAllGroupUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getAllGroupUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.get_all_group_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getAllGroupUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


getAuthSession


/xusers/authSessions/info

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/authSessions/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXAuthSession result = apiInstance.getAuthSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAuthSession");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXAuthSession result = apiInstance.getAuthSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAuthSession");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getAuthSessionWithCompletionHandler: 
              ^(VXAuthSession output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuthSession(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuthSessionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXAuthSession result = apiInstance.getAuthSession();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getAuthSession: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->getAuthSession();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getAuthSession: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->getAuthSession();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getAuthSession: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.get_auth_session()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getAuthSession: %s\n" % e)

Parameters

Responses

Status: 200 -


getAuthSessions


/xusers/authSessions

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/authSessions"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXAuthSessionList result = apiInstance.getAuthSessions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAuthSessions");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXAuthSessionList result = apiInstance.getAuthSessions();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getAuthSessions");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getAuthSessionsWithCompletionHandler: 
              ^(VXAuthSessionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAuthSessions(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getAuthSessionsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXAuthSessionList result = apiInstance.getAuthSessions();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getAuthSessions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->getAuthSessions();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getAuthSessions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->getAuthSessions();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getAuthSessions: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.get_auth_sessions()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getAuthSessions: %s\n" % e)

Parameters

Responses

Status: 200 -


getGroupsLookup


/xusers/lookup/groups

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/lookup/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXStringList result = apiInstance.getGroupsLookup();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getGroupsLookup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXStringList result = apiInstance.getGroupsLookup();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getGroupsLookup");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getGroupsLookupWithCompletionHandler: 
              ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getGroupsLookup(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getGroupsLookupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXStringList result = apiInstance.getGroupsLookup();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getGroupsLookup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->getGroupsLookup();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getGroupsLookup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->getGroupsLookup();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getGroupsLookup: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.get_groups_lookup()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getGroupsLookup: %s\n" % e)

Parameters

Responses

Status: 200 -


getRangerUserStoreIfUpdated


/xusers/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownUserStoreVersion=&pluginCapabilities=&pluginId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerUserStore result = apiInstance.getRangerUserStoreIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getRangerUserStoreIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerUserStore result = apiInstance.getRangerUserStoreIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getRangerUserStoreIfUpdated");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownUserStoreVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getRangerUserStoreIfUpdatedWith:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownUserStoreVersion:lastKnownUserStoreVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
              completionHandler: ^(RangerUserStore output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownUserStoreVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getRangerUserStoreIfUpdated(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getRangerUserStoreIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownUserStoreVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 

            try
            {
                RangerUserStore result = apiInstance.getRangerUserStoreIfUpdated(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getRangerUserStoreIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownUserStoreVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 

try {
    $result = $api_instance->getRangerUserStoreIfUpdated($serviceName, $clusterName, $lastActivationTime, $lastKnownUserStoreVersion, $pluginCapabilities, $pluginId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getRangerUserStoreIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownUserStoreVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 

eval { 
    my $result = $api_instance->getRangerUserStoreIfUpdated(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownUserStoreVersion => $lastKnownUserStoreVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getRangerUserStoreIfUpdated: $@\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.XUserRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownUserStoreVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)

try: 
    api_response = api_instance.get_ranger_user_store_if_updated(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownUserStoreVersion=lastKnownUserStoreVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getRangerUserStoreIfUpdated: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownUserStoreVersion
Long (int64)
pluginCapabilities
String
pluginId
String

Responses

Status: 200 -


getSecureRangerUserStoreIfUpdated


/xusers/secure/download

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json,application/xml"\
"//xusers/secure/download?lastActivationTime=&lastKnownUserStoreVersion="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        try {
            RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated(lastActivationTime, lastKnownUserStoreVersion);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getSecureRangerUserStoreIfUpdated");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        try {
            RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated(lastActivationTime, lastKnownUserStoreVersion);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getSecureRangerUserStoreIfUpdated");
            e.printStackTrace();
        }
    }
}
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownUserStoreVersion = 789; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getSecureRangerUserStoreIfUpdatedWith:lastActivationTime
    lastKnownUserStoreVersion:lastKnownUserStoreVersion
              completionHandler: ^(RangerUserStore output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownUserStoreVersion': 789 // {{Long}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecureRangerUserStoreIfUpdated(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecureRangerUserStoreIfUpdatedExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownUserStoreVersion = 789;  // Long |  (optional) 

            try
            {
                RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated(lastActivationTime, lastKnownUserStoreVersion);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getSecureRangerUserStoreIfUpdated: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$lastActivationTime = 789; // Long | 
$lastKnownUserStoreVersion = 789; // Long | 

try {
    $result = $api_instance->getSecureRangerUserStoreIfUpdated($lastActivationTime, $lastKnownUserStoreVersion);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $lastActivationTime = 789; # Long | 
my $lastKnownUserStoreVersion = 789; # Long | 

eval { 
    my $result = $api_instance->getSecureRangerUserStoreIfUpdated(lastActivationTime => $lastActivationTime, lastKnownUserStoreVersion => $lastKnownUserStoreVersion);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated: $@\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.XUserRESTApi()
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownUserStoreVersion = 789 # Long |  (optional)

try: 
    api_response = api_instance.get_secure_ranger_user_store_if_updated(lastActivationTime=lastActivationTime, lastKnownUserStoreVersion=lastKnownUserStoreVersion)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated: %s\n" % e)

Parameters

Query parameters
Name Description
lastActivationTime
Long (int64)
lastKnownUserStoreVersion
Long (int64)

Responses

Status: 200 -


getSecureRangerUserStoreIfUpdated_1


/xusers/secure/download/{serviceName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/secure/download/{serviceName}?clusterName=&lastActivationTime=&lastKnownUserStoreVersion=&pluginCapabilities=&pluginId="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated_0(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getSecureRangerUserStoreIfUpdated_0");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String serviceName = serviceName_example; // String | 
        String clusterName = clusterName_example; // String | 
        Long lastActivationTime = 789; // Long | 
        Long lastKnownUserStoreVersion = 789; // Long | 
        String pluginCapabilities = pluginCapabilities_example; // String | 
        String pluginId = pluginId_example; // String | 
        try {
            RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated_0(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getSecureRangerUserStoreIfUpdated_0");
            e.printStackTrace();
        }
    }
}
String *serviceName = serviceName_example; // 
String *clusterName = clusterName_example; //  (optional)
Long *lastActivationTime = 789; //  (optional) (default to 0)
Long *lastKnownUserStoreVersion = 789; //  (optional) (default to -1)
String *pluginCapabilities = pluginCapabilities_example; //  (optional)
String *pluginId = pluginId_example; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getSecureRangerUserStoreIfUpdated_1With:serviceName
    clusterName:clusterName
    lastActivationTime:lastActivationTime
    lastKnownUserStoreVersion:lastKnownUserStoreVersion
    pluginCapabilities:pluginCapabilities
    pluginId:pluginId
              completionHandler: ^(RangerUserStore output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var serviceName = serviceName_example; // {{String}} 
var opts = { 
  'clusterName': clusterName_example, // {{String}} 
  'lastActivationTime': 789, // {{Long}} 
  'lastKnownUserStoreVersion': 789, // {{Long}} 
  'pluginCapabilities': pluginCapabilities_example, // {{String}} 
  'pluginId': pluginId_example // {{String}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getSecureRangerUserStoreIfUpdated_0(serviceName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getSecureRangerUserStoreIfUpdated_0Example
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var serviceName = serviceName_example;  // String | 
            var clusterName = clusterName_example;  // String |  (optional) 
            var lastActivationTime = 789;  // Long |  (optional)  (default to 0)
            var lastKnownUserStoreVersion = 789;  // Long |  (optional)  (default to -1)
            var pluginCapabilities = pluginCapabilities_example;  // String |  (optional) 
            var pluginId = pluginId_example;  // String |  (optional) 

            try
            {
                RangerUserStore result = apiInstance.getSecureRangerUserStoreIfUpdated_0(serviceName, clusterName, lastActivationTime, lastKnownUserStoreVersion, pluginCapabilities, pluginId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getSecureRangerUserStoreIfUpdated_0: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$serviceName = serviceName_example; // String | 
$clusterName = clusterName_example; // String | 
$lastActivationTime = 789; // Long | 
$lastKnownUserStoreVersion = 789; // Long | 
$pluginCapabilities = pluginCapabilities_example; // String | 
$pluginId = pluginId_example; // String | 

try {
    $result = $api_instance->getSecureRangerUserStoreIfUpdated_0($serviceName, $clusterName, $lastActivationTime, $lastKnownUserStoreVersion, $pluginCapabilities, $pluginId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated_0: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $serviceName = serviceName_example; # String | 
my $clusterName = clusterName_example; # String | 
my $lastActivationTime = 789; # Long | 
my $lastKnownUserStoreVersion = 789; # Long | 
my $pluginCapabilities = pluginCapabilities_example; # String | 
my $pluginId = pluginId_example; # String | 

eval { 
    my $result = $api_instance->getSecureRangerUserStoreIfUpdated_0(serviceName => $serviceName, clusterName => $clusterName, lastActivationTime => $lastActivationTime, lastKnownUserStoreVersion => $lastKnownUserStoreVersion, pluginCapabilities => $pluginCapabilities, pluginId => $pluginId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated_0: $@\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.XUserRESTApi()
serviceName = serviceName_example # String | 
clusterName = clusterName_example # String |  (optional)
lastActivationTime = 789 # Long |  (optional) (default to 0)
lastKnownUserStoreVersion = 789 # Long |  (optional) (default to -1)
pluginCapabilities = pluginCapabilities_example # String |  (optional)
pluginId = pluginId_example # String |  (optional)

try: 
    api_response = api_instance.get_secure_ranger_user_store_if_updated_0(serviceName, clusterName=clusterName, lastActivationTime=lastActivationTime, lastKnownUserStoreVersion=lastKnownUserStoreVersion, pluginCapabilities=pluginCapabilities, pluginId=pluginId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getSecureRangerUserStoreIfUpdated_0: %s\n" % e)

Parameters

Path parameters
Name Description
serviceName*
String
Required
Query parameters
Name Description
clusterName
String
lastActivationTime
Long (int64)
lastKnownUserStoreVersion
Long (int64)
pluginCapabilities
String
pluginId
String

Responses

Status: 200 -


getUserRolesByExternalID


/xusers/secure/users/external/{userId}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/secure/users/external/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXStringList result = apiInstance.getUserRolesByExternalID(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUserRolesByExternalID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXStringList result = apiInstance.getUserRolesByExternalID(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUserRolesByExternalID");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getUserRolesByExternalIDWith:userId
              completionHandler: ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserRolesByExternalID(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserRolesByExternalIDExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userId = 789;  // Long | 

            try
            {
                VXStringList result = apiInstance.getUserRolesByExternalID(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getUserRolesByExternalID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userId = 789; // Long | 

try {
    $result = $api_instance->getUserRolesByExternalID($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getUserRolesByExternalID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userId = 789; # Long | 

eval { 
    my $result = $api_instance->getUserRolesByExternalID(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getUserRolesByExternalID: $@\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.XUserRESTApi()
userId = 789 # Long | 

try: 
    api_response = api_instance.get_user_roles_by_external_id(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getUserRolesByExternalID: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required

Responses

Status: 200 -


getUserRolesByName


/xusers/secure/users/roles/userName/{userName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/secure/users/roles/userName/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            VXStringList result = apiInstance.getUserRolesByName(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUserRolesByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            VXStringList result = apiInstance.getUserRolesByName(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUserRolesByName");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getUserRolesByNameWith:userName
              completionHandler: ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userName = userName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUserRolesByName(userName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUserRolesByNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userName = userName_example;  // String | 

            try
            {
                VXStringList result = apiInstance.getUserRolesByName(userName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getUserRolesByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userName = userName_example; // String | 

try {
    $result = $api_instance->getUserRolesByName($userName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getUserRolesByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userName = userName_example; # String | 

eval { 
    my $result = $api_instance->getUserRolesByName(userName => $userName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getUserRolesByName: $@\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.XUserRESTApi()
userName = userName_example # String | 

try: 
    api_response = api_instance.get_user_roles_by_name(userName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getUserRolesByName: %s\n" % e)

Parameters

Path parameters
Name Description
userName*
String
Required

Responses

Status: 200 -


getUsersLookup


/xusers/lookup/users

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/lookup/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXStringList result = apiInstance.getUsersLookup();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUsersLookup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXStringList result = apiInstance.getUsersLookup();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getUsersLookup");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getUsersLookupWithCompletionHandler: 
              ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUsersLookup(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getUsersLookupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXStringList result = apiInstance.getUsersLookup();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getUsersLookup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->getUsersLookup();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getUsersLookup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->getUsersLookup();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getUsersLookup: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.get_users_lookup()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getUsersLookup: %s\n" % e)

Parameters

Responses

Status: 200 -


getXGroup


/xusers/groups/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroup result = apiInstance.getXGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroup result = apiInstance.getXGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroup");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupWith:id
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroup(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXGroup result = apiInstance.getXGroup(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXGroup($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXGroup(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroup: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_group(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroup: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXGroupByGroupName


/xusers/groups/groupName/{groupName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groups/groupName/{groupName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            VXGroup result = apiInstance.getXGroupByGroupName(groupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupByGroupName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            VXGroup result = apiInstance.getXGroupByGroupName(groupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupByGroupName");
            e.printStackTrace();
        }
    }
}
String *groupName = groupName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupByGroupNameWith:groupName
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupName = groupName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroupByGroupName(groupName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupByGroupNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupName = groupName_example;  // String | 

            try
            {
                VXGroup result = apiInstance.getXGroupByGroupName(groupName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroupByGroupName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupName = groupName_example; // String | 

try {
    $result = $api_instance->getXGroupByGroupName($groupName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroupByGroupName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupName = groupName_example; # String | 

eval { 
    my $result = $api_instance->getXGroupByGroupName(groupName => $groupName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroupByGroupName: $@\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.XUserRESTApi()
groupName = groupName_example # String | 

try: 
    api_response = api_instance.get_x_group_by_group_name(groupName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroupByGroupName: %s\n" % e)

Parameters

Path parameters
Name Description
groupName*
String
Required

Responses

Status: 200 -


getXGroupPermission


/xusers/permission/group/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/group/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroupPermission result = apiInstance.getXGroupPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroupPermission result = apiInstance.getXGroupPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupPermissionWith:id
              completionHandler: ^(VXGroupPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroupPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXGroupPermission result = apiInstance.getXGroupPermission(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXGroupPermission($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXGroupPermission(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroupPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_group_permission(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroupPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXGroupUser


/xusers/groupusers/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groupusers/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroupUser result = apiInstance.getXGroupUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroupUser result = apiInstance.getXGroupUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUser");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupUserWith:id
              completionHandler: ^(VXGroupUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroupUser(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXGroupUser result = apiInstance.getXGroupUser(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroupUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXGroupUser($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroupUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXGroupUser(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroupUser: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_group_user(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroupUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXGroupUsers


/xusers/{groupId}/users

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/{groupId}/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long groupId = 789; // Long | 
        try {
            VXUserList result = apiInstance.getXGroupUsers(groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long groupId = 789; // Long | 
        try {
            VXUserList result = apiInstance.getXGroupUsers(groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUsers");
            e.printStackTrace();
        }
    }
}
Long *groupId = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupUsersWith:groupId
              completionHandler: ^(VXUserList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroupUsers(groupId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupId = 789;  // Long | 

            try
            {
                VXUserList result = apiInstance.getXGroupUsers(groupId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroupUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupId = 789; // Long | 

try {
    $result = $api_instance->getXGroupUsers($groupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroupUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupId = 789; # Long | 

eval { 
    my $result = $api_instance->getXGroupUsers(groupId => $groupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroupUsers: $@\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.XUserRESTApi()
groupId = 789 # Long | 

try: 
    api_response = api_instance.get_x_group_users(groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroupUsers: %s\n" % e)

Parameters

Path parameters
Name Description
groupId*
Long (int64)
Required

Responses

Status: 200 -


getXGroupUsersByGroupName

Implements the traditional search functionalities for XGroupUsers by Group name


/xusers/groupusers/groupName/{groupName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groupusers/groupName/{groupName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            VXGroupUserInfo result = apiInstance.getXGroupUsersByGroupName(groupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUsersByGroupName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String groupName = groupName_example; // String | 
        try {
            VXGroupUserInfo result = apiInstance.getXGroupUsersByGroupName(groupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXGroupUsersByGroupName");
            e.printStackTrace();
        }
    }
}
String *groupName = groupName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXGroupUsersByGroupNameWith:groupName
              completionHandler: ^(VXGroupUserInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var groupName = groupName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXGroupUsersByGroupName(groupName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXGroupUsersByGroupNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var groupName = groupName_example;  // String | 

            try
            {
                VXGroupUserInfo result = apiInstance.getXGroupUsersByGroupName(groupName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXGroupUsersByGroupName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$groupName = groupName_example; // String | 

try {
    $result = $api_instance->getXGroupUsersByGroupName($groupName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXGroupUsersByGroupName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $groupName = groupName_example; # String | 

eval { 
    my $result = $api_instance->getXGroupUsersByGroupName(groupName => $groupName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXGroupUsersByGroupName: $@\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.XUserRESTApi()
groupName = groupName_example # String | 

try: 
    api_response = api_instance.get_x_group_users_by_group_name(groupName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXGroupUsersByGroupName: %s\n" % e)

Parameters

Path parameters
Name Description
groupName*
String
Required

Responses

Status: 200 -


getXModuleDefPermission


/xusers/permission/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXModuleDef result = apiInstance.getXModuleDefPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXModuleDef result = apiInstance.getXModuleDefPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXModuleDefPermissionWith:id
              completionHandler: ^(VXModuleDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXModuleDefPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXModuleDefPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXModuleDef result = apiInstance.getXModuleDefPermission(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXModuleDefPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXModuleDefPermission($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXModuleDefPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXModuleDefPermission(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXModuleDefPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_module_def_permission(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXModuleDefPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXUser


/xusers/users/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUser result = apiInstance.getXUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUser result = apiInstance.getXUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUser");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXUserWith:id
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXUser(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXUser result = apiInstance.getXUser(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXUser($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXUser(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXUser: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_user(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


getXUserByUserName


/xusers/users/userName/{userName}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/users/userName/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            VXUser result = apiInstance.getXUserByUserName(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserByUserName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        try {
            VXUser result = apiInstance.getXUserByUserName(userName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserByUserName");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXUserByUserNameWith:userName
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userName = userName_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXUserByUserName(userName, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXUserByUserNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userName = userName_example;  // String | 

            try
            {
                VXUser result = apiInstance.getXUserByUserName(userName);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXUserByUserName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userName = userName_example; // String | 

try {
    $result = $api_instance->getXUserByUserName($userName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXUserByUserName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userName = userName_example; # String | 

eval { 
    my $result = $api_instance->getXUserByUserName(userName => $userName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXUserByUserName: $@\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.XUserRESTApi()
userName = userName_example # String | 

try: 
    api_response = api_instance.get_x_user_by_user_name(userName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXUserByUserName: %s\n" % e)

Parameters

Path parameters
Name Description
userName*
String
Required

Responses

Status: 200 -


getXUserGroups


/xusers/{userId}/groups

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/{userId}/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXGroupList result = apiInstance.getXUserGroups(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        try {
            VXGroupList result = apiInstance.getXUserGroups(userId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserGroups");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXUserGroupsWith:userId
              completionHandler: ^(VXGroupList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXUserGroups(userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXUserGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userId = 789;  // Long | 

            try
            {
                VXGroupList result = apiInstance.getXUserGroups(userId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXUserGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userId = 789; // Long | 

try {
    $result = $api_instance->getXUserGroups($userId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXUserGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userId = 789; # Long | 

eval { 
    my $result = $api_instance->getXUserGroups(userId => $userId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXUserGroups: $@\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.XUserRESTApi()
userId = 789 # Long | 

try: 
    api_response = api_instance.get_x_user_groups(userId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXUserGroups: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required

Responses

Status: 200 -


getXUserPermission


/xusers/permission/user/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/user/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUserPermission result = apiInstance.getXUserPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUserPermission result = apiInstance.getXUserPermission(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#getXUserPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance getXUserPermissionWith:id
              completionHandler: ^(VXUserPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getXUserPermission(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class getXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXUserPermission result = apiInstance.getXUserPermission(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.getXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->getXUserPermission($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->getXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->getXUserPermission(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->getXUserPermission: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.get_x_user_permission(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->getXUserPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


modifyGroupsVisibility


/xusers/secure/groups/visibility

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"//xusers/secure/groups/visibility"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyGroupsVisibility(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyGroupsVisibility");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyGroupsVisibility(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyGroupsVisibility");
            e.printStackTrace();
        }
    }
}
map[String, Integer] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance modifyGroupsVisibilityWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{map[String, Integer]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.modifyGroupsVisibility(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class modifyGroupsVisibilityExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new map[String, Integer](); // map[String, Integer] |  (optional) 

            try
            {
                apiInstance.modifyGroupsVisibility(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.modifyGroupsVisibility: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // map[String, Integer] | 

try {
    $api_instance->modifyGroupsVisibility($body);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->modifyGroupsVisibility: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::map[String, Integer]->new(); # map[String, Integer] | 

eval { 
    $api_instance->modifyGroupsVisibility(body => $body);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->modifyGroupsVisibility: $@\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.XUserRESTApi()
body =  # map[String, Integer] |  (optional)

try: 
    api_instance.modify_groups_visibility(body=body)
except ApiException as e:
    print("Exception when calling XUserRESTApi->modifyGroupsVisibility: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


modifyUserActiveStatus


/xusers/secure/users/activestatus

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json,application/xml"\
"//xusers/secure/users/activestatus"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyUserActiveStatus(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyUserActiveStatus");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyUserActiveStatus(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyUserActiveStatus");
            e.printStackTrace();
        }
    }
}
map[String, Integer] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance modifyUserActiveStatusWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{map[String, Integer]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.modifyUserActiveStatus(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class modifyUserActiveStatusExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new map[String, Integer](); // map[String, Integer] |  (optional) 

            try
            {
                apiInstance.modifyUserActiveStatus(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.modifyUserActiveStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // map[String, Integer] | 

try {
    $api_instance->modifyUserActiveStatus($body);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->modifyUserActiveStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::map[String, Integer]->new(); # map[String, Integer] | 

eval { 
    $api_instance->modifyUserActiveStatus(body => $body);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->modifyUserActiveStatus: $@\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.XUserRESTApi()
body =  # map[String, Integer] |  (optional)

try: 
    api_instance.modify_user_active_status(body=body)
except ApiException as e:
    print("Exception when calling XUserRESTApi->modifyUserActiveStatus: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


modifyUserVisibility


/xusers/secure/users/visibility

Usage and SDK Samples

curl -X PUT\
-H "Content-Type: application/json"\
"//xusers/secure/users/visibility"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyUserVisibility(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyUserVisibility");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        map[String, Integer] body = ; // map[String, Integer] | 
        try {
            apiInstance.modifyUserVisibility(body);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#modifyUserVisibility");
            e.printStackTrace();
        }
    }
}
map[String, Integer] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance modifyUserVisibilityWith:body
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{map[String, Integer]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.modifyUserVisibility(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class modifyUserVisibilityExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new map[String, Integer](); // map[String, Integer] |  (optional) 

            try
            {
                apiInstance.modifyUserVisibility(body);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.modifyUserVisibility: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // map[String, Integer] | 

try {
    $api_instance->modifyUserVisibility($body);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->modifyUserVisibility: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::map[String, Integer]->new(); # map[String, Integer] | 

eval { 
    $api_instance->modifyUserVisibility(body => $body);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->modifyUserVisibility: $@\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.XUserRESTApi()
body =  # map[String, Integer] |  (optional)

try: 
    api_instance.modify_user_visibility(body=body)
except ApiException as e:
    print("Exception when calling XUserRESTApi->modifyUserVisibility: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 - Success


postUserGroupAuditInfo


/xusers/ugsync/auditinfo

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/auditinfo"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUgsyncAuditInfo body = ; // VXUgsyncAuditInfo | 
        try {
            VXUgsyncAuditInfo result = apiInstance.postUserGroupAuditInfo(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#postUserGroupAuditInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUgsyncAuditInfo body = ; // VXUgsyncAuditInfo | 
        try {
            VXUgsyncAuditInfo result = apiInstance.postUserGroupAuditInfo(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#postUserGroupAuditInfo");
            e.printStackTrace();
        }
    }
}
VXUgsyncAuditInfo *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance postUserGroupAuditInfoWith:body
              completionHandler: ^(VXUgsyncAuditInfo output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUgsyncAuditInfo}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.postUserGroupAuditInfo(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class postUserGroupAuditInfoExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUgsyncAuditInfo(); // VXUgsyncAuditInfo |  (optional) 

            try
            {
                VXUgsyncAuditInfo result = apiInstance.postUserGroupAuditInfo(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.postUserGroupAuditInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUgsyncAuditInfo | 

try {
    $result = $api_instance->postUserGroupAuditInfo($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->postUserGroupAuditInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUgsyncAuditInfo->new(); # VXUgsyncAuditInfo | 

eval { 
    my $result = $api_instance->postUserGroupAuditInfo(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->postUserGroupAuditInfo: $@\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.XUserRESTApi()
body =  # VXUgsyncAuditInfo |  (optional)

try: 
    api_response = api_instance.post_user_group_audit_info(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->postUserGroupAuditInfo: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


searchXGroupPermission


/xusers/permission/group

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/group"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupPermissionList result = apiInstance.searchXGroupPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupPermissionList result = apiInstance.searchXGroupPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroupPermission");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXGroupPermissionWithCompletionHandler: 
              ^(VXGroupPermissionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXGroupPermission(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXGroupPermissionList result = apiInstance.searchXGroupPermission();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXGroupPermission();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXGroupPermission();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXGroupPermission: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_group_permission()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXGroupPermission: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXGroupUsers

Implements the traditional search functionalities for XGroupUsers


/xusers/groupusers

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groupusers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupUserList result = apiInstance.searchXGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroupUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupUserList result = apiInstance.searchXGroupUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroupUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXGroupUsersWithCompletionHandler: 
              ^(VXGroupUserList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXGroupUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXGroupUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXGroupUserList result = apiInstance.searchXGroupUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXGroupUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXGroupUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXGroupUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXGroupUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXGroupUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_group_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXGroupUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXGroups

Implements the traditional search functionalities for XGroups


/xusers/groups

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupList result = apiInstance.searchXGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXGroupList result = apiInstance.searchXGroups();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXGroups");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXGroupsWithCompletionHandler: 
              ^(VXGroupList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXGroups(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXGroupList result = apiInstance.searchXGroups();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXGroups();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXGroups();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXGroups: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_groups()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXGroups: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXModuleDef


/xusers/permission

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXModuleDefList result = apiInstance.searchXModuleDef();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXModuleDef");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXModuleDefList result = apiInstance.searchXModuleDef();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXModuleDef");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXModuleDefWithCompletionHandler: 
              ^(VXModuleDefList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXModuleDef(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXModuleDefExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXModuleDefList result = apiInstance.searchXModuleDef();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXModuleDef: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXModuleDef();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXModuleDef: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXModuleDef();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXModuleDef: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_module_def()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXModuleDef: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXModuleDefList


/xusers/permissionlist

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permissionlist"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXModulePermissionList result = apiInstance.searchXModuleDefList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXModuleDefList");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXModulePermissionList result = apiInstance.searchXModuleDefList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXModuleDefList");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXModuleDefListWithCompletionHandler: 
              ^(VXModulePermissionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXModuleDefList(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXModuleDefListExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXModulePermissionList result = apiInstance.searchXModuleDefList();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXModuleDefList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXModuleDefList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXModuleDefList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXModuleDefList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXModuleDefList: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_module_def_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXModuleDefList: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXUserPermission


/xusers/permission/user

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/permission/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXUserPermissionList result = apiInstance.searchXUserPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXUserPermissionList result = apiInstance.searchXUserPermission();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXUserPermission");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXUserPermissionWithCompletionHandler: 
              ^(VXUserPermissionList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXUserPermission(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXUserPermissionList result = apiInstance.searchXUserPermission();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXUserPermission();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXUserPermission();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXUserPermission: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_user_permission()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXUserPermission: %s\n" % e)

Parameters

Responses

Status: 200 -


searchXUsers

Implements the traditional search functionalities for XUsers


/xusers/users

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXUserList result = apiInstance.searchXUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        try {
            VXUserList result = apiInstance.searchXUsers();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#searchXUsers");
            e.printStackTrace();
        }
    }
}

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance searchXUsersWithCompletionHandler: 
              ^(VXUserList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchXUsers(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchXUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();

            try
            {
                VXUserList result = apiInstance.searchXUsers();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.searchXUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();

try {
    $result = $api_instance->searchXUsers();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->searchXUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();

eval { 
    my $result = $api_instance->searchXUsers();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->searchXUsers: $@\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.XUserRESTApi()

try: 
    api_response = api_instance.search_x_users()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->searchXUsers: %s\n" % e)

Parameters

Responses

Status: 200 -


secureCreateXGroup


/xusers/secure/groups

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.secureCreateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureCreateXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.secureCreateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureCreateXGroup");
            e.printStackTrace();
        }
    }
}
VXGroup *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureCreateXGroupWith:body
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroup}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureCreateXGroup(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureCreateXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroup(); // VXGroup |  (optional) 

            try
            {
                VXGroup result = apiInstance.secureCreateXGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureCreateXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroup | 

try {
    $result = $api_instance->secureCreateXGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureCreateXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroup->new(); # VXGroup | 

eval { 
    my $result = $api_instance->secureCreateXGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureCreateXGroup: $@\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.XUserRESTApi()
body =  # VXGroup |  (optional)

try: 
    api_response = api_instance.secure_create_x_group(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureCreateXGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


secureCreateXUser


/xusers/secure/users

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.secureCreateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureCreateXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.secureCreateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureCreateXUser");
            e.printStackTrace();
        }
    }
}
VXUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureCreateXUserWith:body
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureCreateXUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureCreateXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUser(); // VXUser |  (optional) 

            try
            {
                VXUser result = apiInstance.secureCreateXUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureCreateXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUser | 

try {
    $result = $api_instance->secureCreateXUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureCreateXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUser->new(); # VXUser | 

eval { 
    my $result = $api_instance->secureCreateXUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureCreateXUser: $@\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.XUserRESTApi()
body =  # VXUser |  (optional)

try: 
    api_response = api_instance.secure_create_x_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureCreateXUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


secureGetXGroup


/xusers/secure/groups/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/secure/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroup result = apiInstance.secureGetXGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureGetXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXGroup result = apiInstance.secureGetXGroup(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureGetXGroup");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureGetXGroupWith:id
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureGetXGroup(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureGetXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXGroup result = apiInstance.secureGetXGroup(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureGetXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->secureGetXGroup($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureGetXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->secureGetXGroup(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureGetXGroup: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.secure_get_x_group(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureGetXGroup: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


secureGetXUser


/xusers/secure/users/{id}

Usage and SDK Samples

curl -X GET\
-H "Accept: application/json"\
"//xusers/secure/users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUser result = apiInstance.secureGetXUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureGetXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        try {
            VXUser result = apiInstance.secureGetXUser(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureGetXUser");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureGetXUserWith:id
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureGetXUser(id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureGetXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 

            try
            {
                VXUser result = apiInstance.secureGetXUser(id);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureGetXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 

try {
    $result = $api_instance->secureGetXUser($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureGetXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 

eval { 
    my $result = $api_instance->secureGetXUser(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureGetXUser: $@\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.XUserRESTApi()
id = 789 # Long | 

try: 
    api_response = api_instance.secure_get_x_user(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureGetXUser: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required

Responses

Status: 200 -


secureUpdateXGroup


/xusers/secure/groups/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/groups/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.secureUpdateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureUpdateXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.secureUpdateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureUpdateXGroup");
            e.printStackTrace();
        }
    }
}
VXGroup *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureUpdateXGroupWith:body
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroup}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureUpdateXGroup(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureUpdateXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroup(); // VXGroup |  (optional) 

            try
            {
                VXGroup result = apiInstance.secureUpdateXGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureUpdateXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroup | 

try {
    $result = $api_instance->secureUpdateXGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureUpdateXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroup->new(); # VXGroup | 

eval { 
    my $result = $api_instance->secureUpdateXGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureUpdateXGroup: $@\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.XUserRESTApi()
body =  # VXGroup |  (optional)

try: 
    api_response = api_instance.secure_update_x_group(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureUpdateXGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


secureUpdateXUser


/xusers/secure/users/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/users/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.secureUpdateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureUpdateXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.secureUpdateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#secureUpdateXUser");
            e.printStackTrace();
        }
    }
}
VXUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance secureUpdateXUserWith:body
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.secureUpdateXUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class secureUpdateXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUser(); // VXUser |  (optional) 

            try
            {
                VXUser result = apiInstance.secureUpdateXUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.secureUpdateXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUser | 

try {
    $result = $api_instance->secureUpdateXUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->secureUpdateXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUser->new(); # VXUser | 

eval { 
    my $result = $api_instance->secureUpdateXUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->secureUpdateXUser: $@\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.XUserRESTApi()
body =  # VXUser |  (optional)

try: 
    api_response = api_instance.secure_update_x_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->secureUpdateXUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


setUserRolesByExternalID


/xusers/secure/users/roles/{userId}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/users/roles/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        VXStringList body = ; // VXStringList | 
        try {
            VXStringList result = apiInstance.setUserRolesByExternalID(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setUserRolesByExternalID");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long userId = 789; // Long | 
        VXStringList body = ; // VXStringList | 
        try {
            VXStringList result = apiInstance.setUserRolesByExternalID(userId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setUserRolesByExternalID");
            e.printStackTrace();
        }
    }
}
Long *userId = 789; // 
VXStringList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance setUserRolesByExternalIDWith:userId
    body:body
              completionHandler: ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userId = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXStringList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.setUserRolesByExternalID(userId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setUserRolesByExternalIDExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userId = 789;  // Long | 
            var body = new VXStringList(); // VXStringList |  (optional) 

            try
            {
                VXStringList result = apiInstance.setUserRolesByExternalID(userId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.setUserRolesByExternalID: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userId = 789; // Long | 
$body = ; // VXStringList | 

try {
    $result = $api_instance->setUserRolesByExternalID($userId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->setUserRolesByExternalID: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXStringList->new(); # VXStringList | 

eval { 
    my $result = $api_instance->setUserRolesByExternalID(userId => $userId, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->setUserRolesByExternalID: $@\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.XUserRESTApi()
userId = 789 # Long | 
body =  # VXStringList |  (optional)

try: 
    api_response = api_instance.set_user_roles_by_external_id(userId, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->setUserRolesByExternalID: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


setUserRolesByName


/xusers/secure/users/roles/userName/{userName}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/secure/users/roles/userName/{userName}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        VXStringList body = ; // VXStringList | 
        try {
            VXStringList result = apiInstance.setUserRolesByName(userName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setUserRolesByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        String userName = userName_example; // String | 
        VXStringList body = ; // VXStringList | 
        try {
            VXStringList result = apiInstance.setUserRolesByName(userName, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setUserRolesByName");
            e.printStackTrace();
        }
    }
}
String *userName = userName_example; // 
VXStringList *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance setUserRolesByNameWith:userName
    body:body
              completionHandler: ^(VXStringList output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var userName = userName_example; // {{String}} 
var opts = { 
  'body':  // {{VXStringList}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.setUserRolesByName(userName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setUserRolesByNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var userName = userName_example;  // String | 
            var body = new VXStringList(); // VXStringList |  (optional) 

            try
            {
                VXStringList result = apiInstance.setUserRolesByName(userName, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.setUserRolesByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$userName = userName_example; // String | 
$body = ; // VXStringList | 

try {
    $result = $api_instance->setUserRolesByName($userName, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->setUserRolesByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $userName = userName_example; # String | 
my $body = WWW::SwaggerClient::Object::VXStringList->new(); # VXStringList | 

eval { 
    my $result = $api_instance->setUserRolesByName(userName => $userName, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->setUserRolesByName: $@\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.XUserRESTApi()
userName = userName_example # String | 
body =  # VXStringList |  (optional)

try: 
    api_response = api_instance.set_user_roles_by_name(userName, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->setUserRolesByName: %s\n" % e)

Parameters

Path parameters
Name Description
userName*
String
Required
Body parameters
Name Description
body

Responses

Status: 204 -


setXUserRolesByName


/xusers/users/roleassignments

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json,application/xml"\
"//xusers/users/roleassignments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        UsersGroupRoleAssignments body = ; // UsersGroupRoleAssignments | 
        try {
            array['String'] result = apiInstance.setXUserRolesByName(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setXUserRolesByName");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        UsersGroupRoleAssignments body = ; // UsersGroupRoleAssignments | 
        try {
            array['String'] result = apiInstance.setXUserRolesByName(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#setXUserRolesByName");
            e.printStackTrace();
        }
    }
}
UsersGroupRoleAssignments *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance setXUserRolesByNameWith:body
              completionHandler: ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{UsersGroupRoleAssignments}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.setXUserRolesByName(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class setXUserRolesByNameExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new UsersGroupRoleAssignments(); // UsersGroupRoleAssignments |  (optional) 

            try
            {
                array['String'] result = apiInstance.setXUserRolesByName(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.setXUserRolesByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // UsersGroupRoleAssignments | 

try {
    $result = $api_instance->setXUserRolesByName($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->setXUserRolesByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::UsersGroupRoleAssignments->new(); # UsersGroupRoleAssignments | 

eval { 
    my $result = $api_instance->setXUserRolesByName(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->setXUserRolesByName: $@\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.XUserRESTApi()
body =  # UsersGroupRoleAssignments |  (optional)

try: 
    api_response = api_instance.set_x_user_roles_by_name(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->setXUserRolesByName: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


updateDeletedGroups


/xusers/ugsync/groups/visibility

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/groups/visibility"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[String] body = ; // array[String] | 
        try {
            'Integer' result = apiInstance.updateDeletedGroups(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateDeletedGroups");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[String] body = ; // array[String] | 
        try {
            'Integer' result = apiInstance.updateDeletedGroups(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateDeletedGroups");
            e.printStackTrace();
        }
    }
}
array[String] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateDeletedGroupsWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateDeletedGroups(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateDeletedGroupsExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                'Integer' result = apiInstance.updateDeletedGroups(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateDeletedGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // array[String] | 

try {
    $result = $api_instance->updateDeletedGroups($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateDeletedGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->updateDeletedGroups(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateDeletedGroups: $@\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.XUserRESTApi()
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.update_deleted_groups(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateDeletedGroups: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


updateDeletedUsers


/xusers/ugsync/users/visibility

Usage and SDK Samples

curl -X POST\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/ugsync/users/visibility"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[String] body = ; // array[String] | 
        try {
            'Integer' result = apiInstance.updateDeletedUsers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateDeletedUsers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        array[String] body = ; // array[String] | 
        try {
            'Integer' result = apiInstance.updateDeletedUsers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateDeletedUsers");
            e.printStackTrace();
        }
    }
}
array[String] *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateDeletedUsersWith:body
              completionHandler: ^('Integer' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{array[String]}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateDeletedUsers(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateDeletedUsersExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new array[String](); // array[String] |  (optional) 

            try
            {
                'Integer' result = apiInstance.updateDeletedUsers(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateDeletedUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // array[String] | 

try {
    $result = $api_instance->updateDeletedUsers($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateDeletedUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = [WWW::SwaggerClient::Object::array[String]->new()]; # array[String] | 

eval { 
    my $result = $api_instance->updateDeletedUsers(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateDeletedUsers: $@\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.XUserRESTApi()
body =  # array[String] |  (optional)

try: 
    api_response = api_instance.update_deleted_users(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateDeletedUsers: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 201 -


updateXGroup


/xusers/groups

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/groups"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.updateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroup");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroup body = ; // VXGroup | 
        try {
            VXGroup result = apiInstance.updateXGroup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroup");
            e.printStackTrace();
        }
    }
}
VXGroup *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXGroupWith:body
              completionHandler: ^(VXGroup output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroup}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXGroup(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXGroupExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroup(); // VXGroup |  (optional) 

            try
            {
                VXGroup result = apiInstance.updateXGroup(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroup | 

try {
    $result = $api_instance->updateXGroup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroup->new(); # VXGroup | 

eval { 
    my $result = $api_instance->updateXGroup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXGroup: $@\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.XUserRESTApi()
body =  # VXGroup |  (optional)

try: 
    api_response = api_instance.update_x_group(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXGroup: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateXGroupPermission


/xusers/permission/group/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission/group/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        VXGroupPermission body = ; // VXGroupPermission | 
        try {
            VXGroupPermission result = apiInstance.updateXGroupPermission(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroupPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        Long id = 789; // Long | 
        VXGroupPermission body = ; // VXGroupPermission | 
        try {
            VXGroupPermission result = apiInstance.updateXGroupPermission(id, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroupPermission");
            e.printStackTrace();
        }
    }
}
Long *id = 789; // 
VXGroupPermission *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXGroupPermissionWith:id
    body:body
              completionHandler: ^(VXGroupPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var id = 789; // {{Long}} 
var opts = { 
  'body':  // {{VXGroupPermission}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXGroupPermission(id, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXGroupPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var id = 789;  // Long | 
            var body = new VXGroupPermission(); // VXGroupPermission |  (optional) 

            try
            {
                VXGroupPermission result = apiInstance.updateXGroupPermission(id, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXGroupPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$id = 789; // Long | 
$body = ; // VXGroupPermission | 

try {
    $result = $api_instance->updateXGroupPermission($id, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXGroupPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $id = 789; # Long | 
my $body = WWW::SwaggerClient::Object::VXGroupPermission->new(); # VXGroupPermission | 

eval { 
    my $result = $api_instance->updateXGroupPermission(id => $id, body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXGroupPermission: $@\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.XUserRESTApi()
id = 789 # Long | 
body =  # VXGroupPermission |  (optional)

try: 
    api_response = api_instance.update_x_group_permission(id, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXGroupPermission: %s\n" % e)

Parameters

Path parameters
Name Description
id*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 204 -


updateXGroupUser


/xusers/groupusers

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/groupusers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUser body = ; // VXGroupUser | 
        try {
            VXGroupUser result = apiInstance.updateXGroupUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroupUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXGroupUser body = ; // VXGroupUser | 
        try {
            VXGroupUser result = apiInstance.updateXGroupUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXGroupUser");
            e.printStackTrace();
        }
    }
}
VXGroupUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXGroupUserWith:body
              completionHandler: ^(VXGroupUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXGroupUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXGroupUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXGroupUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXGroupUser(); // VXGroupUser |  (optional) 

            try
            {
                VXGroupUser result = apiInstance.updateXGroupUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXGroupUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXGroupUser | 

try {
    $result = $api_instance->updateXGroupUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXGroupUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXGroupUser->new(); # VXGroupUser | 

eval { 
    my $result = $api_instance->updateXGroupUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXGroupUser: $@\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.XUserRESTApi()
body =  # VXGroupUser |  (optional)

try: 
    api_response = api_instance.update_x_group_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXGroupUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateXModuleDefPermission


/xusers/permission/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXModuleDef body = ; // VXModuleDef | 
        try {
            VXModuleDef result = apiInstance.updateXModuleDefPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXModuleDef body = ; // VXModuleDef | 
        try {
            VXModuleDef result = apiInstance.updateXModuleDefPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXModuleDefPermission");
            e.printStackTrace();
        }
    }
}
VXModuleDef *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXModuleDefPermissionWith:body
              completionHandler: ^(VXModuleDef output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXModuleDef}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXModuleDefPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXModuleDefPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXModuleDef(); // VXModuleDef |  (optional) 

            try
            {
                VXModuleDef result = apiInstance.updateXModuleDefPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXModuleDefPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXModuleDef | 

try {
    $result = $api_instance->updateXModuleDefPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXModuleDefPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXModuleDef->new(); # VXModuleDef | 

eval { 
    my $result = $api_instance->updateXModuleDefPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXModuleDefPermission: $@\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.XUserRESTApi()
body =  # VXModuleDef |  (optional)

try: 
    api_response = api_instance.update_x_module_def_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXModuleDefPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateXUser


/xusers/users

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/users"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.updateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUser body = ; // VXUser | 
        try {
            VXUser result = apiInstance.updateXUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXUser");
            e.printStackTrace();
        }
    }
}
VXUser *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXUserWith:body
              completionHandler: ^(VXUser output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUser}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXUser(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXUserExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUser(); // VXUser |  (optional) 

            try
            {
                VXUser result = apiInstance.updateXUser(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUser | 

try {
    $result = $api_instance->updateXUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUser->new(); # VXUser | 

eval { 
    my $result = $api_instance->updateXUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXUser: $@\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.XUserRESTApi()
body =  # VXUser |  (optional)

try: 
    api_response = api_instance.update_x_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXUser: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -


updateXUserPermission


/xusers/permission/user/{id}

Usage and SDK Samples

curl -X PUT\
-H "Accept: application/json"\
-H "Content-Type: application/json"\
"//xusers/permission/user/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.XUserRESTApi;

import java.io.File;
import java.util.*;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserPermission body = ; // VXUserPermission | 
        try {
            VXUserPermission result = apiInstance.updateXUserPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXUserPermission");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.XUserRESTApi;

public class XUserRESTApiExample {

    public static void main(String[] args) {
        XUserRESTApi apiInstance = new XUserRESTApi();
        VXUserPermission body = ; // VXUserPermission | 
        try {
            VXUserPermission result = apiInstance.updateXUserPermission(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling XUserRESTApi#updateXUserPermission");
            e.printStackTrace();
        }
    }
}
VXUserPermission *body = ; //  (optional)

XUserRESTApi *apiInstance = [[XUserRESTApi alloc] init];

[apiInstance updateXUserPermissionWith:body
              completionHandler: ^(VXUserPermission output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var RangerRestApi = require('ranger_rest_api');

var api = new RangerRestApi.XUserRESTApi()
var opts = { 
  'body':  // {{VXUserPermission}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.updateXUserPermission(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateXUserPermissionExample
    {
        public void main()
        {

            var apiInstance = new XUserRESTApi();
            var body = new VXUserPermission(); // VXUserPermission |  (optional) 

            try
            {
                VXUserPermission result = apiInstance.updateXUserPermission(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling XUserRESTApi.updateXUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\ApiXUserRESTApi();
$body = ; // VXUserPermission | 

try {
    $result = $api_instance->updateXUserPermission($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling XUserRESTApi->updateXUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::XUserRESTApi;

my $api_instance = WWW::SwaggerClient::XUserRESTApi->new();
my $body = WWW::SwaggerClient::Object::VXUserPermission->new(); # VXUserPermission | 

eval { 
    my $result = $api_instance->updateXUserPermission(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling XUserRESTApi->updateXUserPermission: $@\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.XUserRESTApi()
body =  # VXUserPermission |  (optional)

try: 
    api_response = api_instance.update_x_user_permission(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling XUserRESTApi->updateXUserPermission: %s\n" % e)

Parameters

Body parameters
Name Description
body

Responses

Status: 204 -