Cloudera Documentation

CCF - WebApi

AWSCloudCredential

awsCcfResources

Retrieve AWS resources tagged with the CCF ownership tag


/api/v1/aws/ccf-resources

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/ccf-resources" \
 -d '{
  "projectValue" : "projectValue",
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsCcfResourceListCommand awsCcfResourceListCommand = ; // AwsCcfResourceListCommand | 

        try {
            array[AwsCcfResourceDto] result = apiInstance.awsCcfResources(awsCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsCcfResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsCcfResourceListCommand awsCcfResourceListCommand = new AwsCcfResourceListCommand(); // AwsCcfResourceListCommand | 

try {
    final result = await api_instance.awsCcfResources(awsCcfResourceListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsCcfResources: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsCcfResourceListCommand awsCcfResourceListCommand = ; // AwsCcfResourceListCommand | 

        try {
            array[AwsCcfResourceDto] result = apiInstance.awsCcfResources(awsCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsCcfResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsCcfResourceListCommand *awsCcfResourceListCommand = ; //  (optional)

// Retrieve AWS resources tagged with the CCF ownership tag
[apiInstance awsCcfResourcesWith:awsCcfResourceListCommand
              completionHandler: ^(array[AwsCcfResourceDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsCcfResourceListCommand':  // {AwsCcfResourceListCommand} 
};

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

namespace Example
{
    public class awsCcfResourcesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsCcfResourceListCommand = new AwsCcfResourceListCommand(); // AwsCcfResourceListCommand |  (optional) 

            try {
                // Retrieve AWS resources tagged with the CCF ownership tag
                array[AwsCcfResourceDto] result = apiInstance.awsCcfResources(awsCcfResourceListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsCcfResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsCcfResourceListCommand = ; // AwsCcfResourceListCommand | 

try {
    $result = $api_instance->awsCcfResources($awsCcfResourceListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsCcfResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsCcfResourceListCommand = WWW::OPenAPIClient::Object::AwsCcfResourceListCommand->new(); # AwsCcfResourceListCommand | 

eval {
    my $result = $api_instance->awsCcfResources(awsCcfResourceListCommand => $awsCcfResourceListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsCcfResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsCcfResourceListCommand =  # AwsCcfResourceListCommand |  (optional)

try:
    # Retrieve AWS resources tagged with the CCF ownership tag
    api_response = api_instance.aws_ccf_resources(awsCcfResourceListCommand=awsCcfResourceListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsCcfResources: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsCcfResourceListCommand = ; // AwsCcfResourceListCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsCcfResources(awsCcfResourceListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsCcfResourceListCommand

Responses


awsCreate

Add Aws credentials


/api/v1/aws/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/create" \
 -d '{
  "awsRegion" : "awsRegion",
  "awsAccessKeyId" : "awsAccessKeyId",
  "azCount" : 0,
  "externalId" : "externalId",
  "privateOnly" : true,
  "organizationId" : 6,
  "ipMode" : "",
  "efsFileSystemId" : "efsFileSystemId",
  "importedVpcId" : "importedVpcId",
  "roleArn" : "roleArn",
  "name" : "name",
  "vpcMode" : "",
  "subnets" : [ {
    "awsSubnetId" : "awsSubnetId",
    "subnetType" : ""
  }, {
    "awsSubnetId" : "awsSubnetId",
    "subnetType" : ""
  } ],
  "sharedFileSystemEnabled" : true,
  "usePreinstalledImage" : true,
  "awsSecretAccessKey" : "awsSecretAccessKey",
  "kubernetesImage" : "kubernetesImage"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        CreateAwsCloudCommand createAwsCloudCommand = ; // CreateAwsCloudCommand | 

        try {
            ApiResponse result = apiInstance.awsCreate(createAwsCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAwsCloudCommand createAwsCloudCommand = new CreateAwsCloudCommand(); // CreateAwsCloudCommand | 

try {
    final result = await api_instance.awsCreate(createAwsCloudCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsCreate: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        CreateAwsCloudCommand createAwsCloudCommand = ; // CreateAwsCloudCommand | 

        try {
            ApiResponse result = apiInstance.awsCreate(createAwsCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
CreateAwsCloudCommand *createAwsCloudCommand = ; //  (optional)

// Add Aws credentials
[apiInstance awsCreateWith:createAwsCloudCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'createAwsCloudCommand':  // {CreateAwsCloudCommand} 
};

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

namespace Example
{
    public class awsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var createAwsCloudCommand = new CreateAwsCloudCommand(); // CreateAwsCloudCommand |  (optional) 

            try {
                // Add Aws credentials
                ApiResponse result = apiInstance.awsCreate(createAwsCloudCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$createAwsCloudCommand = ; // CreateAwsCloudCommand | 

try {
    $result = $api_instance->awsCreate($createAwsCloudCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $createAwsCloudCommand = WWW::OPenAPIClient::Object::CreateAwsCloudCommand->new(); # CreateAwsCloudCommand | 

eval {
    my $result = $api_instance->awsCreate(createAwsCloudCommand => $createAwsCloudCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
createAwsCloudCommand =  # CreateAwsCloudCommand |  (optional)

try:
    # Add Aws credentials
    api_response = api_instance.aws_create(createAwsCloudCommand=createAwsCloudCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsCreate: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let createAwsCloudCommand = ; // CreateAwsCloudCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsCreate(createAwsCloudCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAwsCloudCommand

Responses


awsEfsFileSystemByVpcList

Retrieve aws efs file system by vpc list


/api/v1/aws/efs-file-system-by-vpc-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/efs-file-system-by-vpc-list" \
 -d '{
  "awsRegion" : "awsRegion",
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "vpcId" : "vpcId",
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsFileSystemsCommand awsFileSystemsCommand = ; // AwsFileSystemsCommand | 

        try {
            array[EfsFileSystemDto] result = apiInstance.awsEfsFileSystemByVpcList(awsFileSystemsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEfsFileSystemByVpcList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsFileSystemsCommand awsFileSystemsCommand = new AwsFileSystemsCommand(); // AwsFileSystemsCommand | 

try {
    final result = await api_instance.awsEfsFileSystemByVpcList(awsFileSystemsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsEfsFileSystemByVpcList: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsFileSystemsCommand awsFileSystemsCommand = ; // AwsFileSystemsCommand | 

        try {
            array[EfsFileSystemDto] result = apiInstance.awsEfsFileSystemByVpcList(awsFileSystemsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEfsFileSystemByVpcList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsFileSystemsCommand *awsFileSystemsCommand = ; //  (optional)

// Retrieve aws efs file system by vpc list
[apiInstance awsEfsFileSystemByVpcListWith:awsFileSystemsCommand
              completionHandler: ^(array[EfsFileSystemDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsFileSystemsCommand':  // {AwsFileSystemsCommand} 
};

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

namespace Example
{
    public class awsEfsFileSystemByVpcListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsFileSystemsCommand = new AwsFileSystemsCommand(); // AwsFileSystemsCommand |  (optional) 

            try {
                // Retrieve aws efs file system by vpc list
                array[EfsFileSystemDto] result = apiInstance.awsEfsFileSystemByVpcList(awsFileSystemsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsEfsFileSystemByVpcList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsFileSystemsCommand = ; // AwsFileSystemsCommand | 

try {
    $result = $api_instance->awsEfsFileSystemByVpcList($awsFileSystemsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsEfsFileSystemByVpcList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsFileSystemsCommand = WWW::OPenAPIClient::Object::AwsFileSystemsCommand->new(); # AwsFileSystemsCommand | 

eval {
    my $result = $api_instance->awsEfsFileSystemByVpcList(awsFileSystemsCommand => $awsFileSystemsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsEfsFileSystemByVpcList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsFileSystemsCommand =  # AwsFileSystemsCommand |  (optional)

try:
    # Retrieve aws efs file system by vpc list
    api_response = api_instance.aws_efs_file_system_by_vpc_list(awsFileSystemsCommand=awsFileSystemsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsEfsFileSystemByVpcList: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsFileSystemsCommand = ; // AwsFileSystemsCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsEfsFileSystemByVpcList(awsFileSystemsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsFileSystemsCommand

Responses


awsEksClusters

Retrieve eks clusters list


/api/v1/aws/eks-clusters/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/aws/eks-clusters/{cloudId}?Region=region_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String region = region_example; // String | 

        try {
            array['String'] result = apiInstance.awsEksClusters(cloudId, region);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEksClusters");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 
final String region = new String(); // String | 

try {
    final result = await api_instance.awsEksClusters(cloudId, region);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsEksClusters: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String region = region_example; // String | 

        try {
            array['String'] result = apiInstance.awsEksClusters(cloudId, region);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEksClusters");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)
String *region = region_example; //  (optional) (default to null)

// Retrieve eks clusters list
[apiInstance awsEksClustersWith:cloudId
    region:region
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var cloudId = 56; // {Integer} 
var opts = {
  'region': region_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.awsEksClusters(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class awsEksClustersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)
            var region = region_example;  // String |  (optional)  (default to null)

            try {
                // Retrieve eks clusters list
                array['String'] result = apiInstance.awsEksClusters(cloudId, region);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsEksClusters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$cloudId = 56; // Integer | 
$region = region_example; // String | 

try {
    $result = $api_instance->awsEksClusters($cloudId, $region);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsEksClusters: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $cloudId = 56; # Integer | 
my $region = region_example; # String | 

eval {
    my $result = $api_instance->awsEksClusters(cloudId => $cloudId, region => $region);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsEksClusters: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
cloudId = 56 # Integer |  (default to null)
region = region_example # String |  (optional) (default to null)

try:
    # Retrieve eks clusters list
    api_response = api_instance.aws_eks_clusters(cloudId, region=region)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsEksClusters: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer
    let region = region_example; // String

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsEksClusters(cloudId, region, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required
Query parameters
Name Description
Region
String

Responses


awsEksNodeGroups

Retrieve eks node group list


/api/v1/aws/eks-node-groups/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/aws/eks-node-groups/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer projectId = 56; // Integer | 

        try {
            array[AwsEksNodeGroupDto] result = apiInstance.awsEksNodeGroups(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEksNodeGroups");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.awsEksNodeGroups(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsEksNodeGroups: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer projectId = 56; // Integer | 

        try {
            array[AwsEksNodeGroupDto] result = apiInstance.awsEksNodeGroups(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsEksNodeGroups");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Retrieve eks node group list
[apiInstance awsEksNodeGroupsWith:projectId
              completionHandler: ^(array[AwsEksNodeGroupDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var projectId = 56; // {Integer} 

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

namespace Example
{
    public class awsEksNodeGroupsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Retrieve eks node group list
                array[AwsEksNodeGroupDto] result = apiInstance.awsEksNodeGroups(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsEksNodeGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->awsEksNodeGroups($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsEksNodeGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->awsEksNodeGroups(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsEksNodeGroups: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
projectId = 56 # Integer |  (default to null)

try:
    # Retrieve eks node group list
    api_response = api_instance.aws_eks_node_groups(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsEksNodeGroups: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsEksNodeGroups(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


awsGetEksAuthInfo

Get EKS auth info


/api/v1/aws/eks-auth-info

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/eks-auth-info" \
 -d '{
  "kubeConfigName" : "kubeConfigName",
  "configToken" : "configToken",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        GetEksClusterAuthCommand getEksClusterAuthCommand = ; // GetEksClusterAuthCommand | 

        try {
            AwsEksClusterDto result = apiInstance.awsGetEksAuthInfo(getEksClusterAuthCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsGetEksAuthInfo");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GetEksClusterAuthCommand getEksClusterAuthCommand = new GetEksClusterAuthCommand(); // GetEksClusterAuthCommand | 

try {
    final result = await api_instance.awsGetEksAuthInfo(getEksClusterAuthCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsGetEksAuthInfo: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        GetEksClusterAuthCommand getEksClusterAuthCommand = ; // GetEksClusterAuthCommand | 

        try {
            AwsEksClusterDto result = apiInstance.awsGetEksAuthInfo(getEksClusterAuthCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsGetEksAuthInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
GetEksClusterAuthCommand *getEksClusterAuthCommand = ; //  (optional)

// Get EKS auth info
[apiInstance awsGetEksAuthInfoWith:getEksClusterAuthCommand
              completionHandler: ^(AwsEksClusterDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'getEksClusterAuthCommand':  // {GetEksClusterAuthCommand} 
};

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

namespace Example
{
    public class awsGetEksAuthInfoExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var getEksClusterAuthCommand = new GetEksClusterAuthCommand(); // GetEksClusterAuthCommand |  (optional) 

            try {
                // Get EKS auth info
                AwsEksClusterDto result = apiInstance.awsGetEksAuthInfo(getEksClusterAuthCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsGetEksAuthInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$getEksClusterAuthCommand = ; // GetEksClusterAuthCommand | 

try {
    $result = $api_instance->awsGetEksAuthInfo($getEksClusterAuthCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsGetEksAuthInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $getEksClusterAuthCommand = WWW::OPenAPIClient::Object::GetEksClusterAuthCommand->new(); # GetEksClusterAuthCommand | 

eval {
    my $result = $api_instance->awsGetEksAuthInfo(getEksClusterAuthCommand => $getEksClusterAuthCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsGetEksAuthInfo: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
getEksClusterAuthCommand =  # GetEksClusterAuthCommand |  (optional)

try:
    # Get EKS auth info
    api_response = api_instance.aws_get_eks_auth_info(getEksClusterAuthCommand=getEksClusterAuthCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsGetEksAuthInfo: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let getEksClusterAuthCommand = ; // GetEksClusterAuthCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsGetEksAuthInfo(getEksClusterAuthCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
getEksClusterAuthCommand

Responses


awsKubernetesImages

Retrieve AWS images available for Kubernetes nodes using inline credentials


/api/v1/aws/kubernetes-images

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/kubernetes-images" \
 -d '{
  "awsRegion" : "awsRegion",
  "search" : "search",
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsKubernetesImageListQuery awsKubernetesImageListQuery = ; // AwsKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.awsKubernetesImages(awsKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsKubernetesImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsKubernetesImageListQuery awsKubernetesImageListQuery = new AwsKubernetesImageListQuery(); // AwsKubernetesImageListQuery | 

try {
    final result = await api_instance.awsKubernetesImages(awsKubernetesImageListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsKubernetesImages: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsKubernetesImageListQuery awsKubernetesImageListQuery = ; // AwsKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.awsKubernetesImages(awsKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsKubernetesImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsKubernetesImageListQuery *awsKubernetesImageListQuery = ; //  (optional)

// Retrieve AWS images available for Kubernetes nodes using inline credentials
[apiInstance awsKubernetesImagesWith:awsKubernetesImageListQuery
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsKubernetesImageListQuery':  // {AwsKubernetesImageListQuery} 
};

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

namespace Example
{
    public class awsKubernetesImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsKubernetesImageListQuery = new AwsKubernetesImageListQuery(); // AwsKubernetesImageListQuery |  (optional) 

            try {
                // Retrieve AWS images available for Kubernetes nodes using inline credentials
                array[CommonStringBasedDropdownDto] result = apiInstance.awsKubernetesImages(awsKubernetesImageListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsKubernetesImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsKubernetesImageListQuery = ; // AwsKubernetesImageListQuery | 

try {
    $result = $api_instance->awsKubernetesImages($awsKubernetesImageListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsKubernetesImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsKubernetesImageListQuery = WWW::OPenAPIClient::Object::AwsKubernetesImageListQuery->new(); # AwsKubernetesImageListQuery | 

eval {
    my $result = $api_instance->awsKubernetesImages(awsKubernetesImageListQuery => $awsKubernetesImageListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsKubernetesImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsKubernetesImageListQuery =  # AwsKubernetesImageListQuery |  (optional)

try:
    # Retrieve AWS images available for Kubernetes nodes using inline credentials
    api_response = api_instance.aws_kubernetes_images(awsKubernetesImageListQuery=awsKubernetesImageListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsKubernetesImages: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsKubernetesImageListQuery = ; // AwsKubernetesImageListQuery

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsKubernetesImages(awsKubernetesImageListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsKubernetesImageListQuery

Responses


awsList

Retrieve list of aws cloud credentials


/api/v1/aws/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/aws/list?OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AwsCredentialList result = apiInstance.awsList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.awsList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsList: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AwsCredentialList result = apiInstance.awsList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// Retrieve list of aws cloud credentials
[apiInstance awsListWith:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    domainId:domainId
    limit:limit
    offset:offset
              completionHandler: ^(AwsCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

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

namespace Example
{
    public class awsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Retrieve list of aws cloud credentials
                AwsCredentialList result = apiInstance.awsList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$organizationId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$domainId = 56; // Integer | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->awsList($organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $domainId, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $organizationId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $domainId = 56; # Integer | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->awsList(organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, domainId => $domainId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
organizationId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # Retrieve list of aws cloud credentials
    api_response = api_instance.aws_list(organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, domainId=domainId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsList: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
SortBy
String
SortDirection
String
Search
SearchId
String
Id
Integer (int32)
DomainId
Integer (int32)
Limit
Integer (int32)
Offset
Integer (int32)

Responses


awsOwners

Retrieve aws verified owner list


/api/v1/aws/owners

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/aws/owners"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.awsOwners();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsOwners");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.awsOwners();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsOwners: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.awsOwners();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsOwners");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];

// Retrieve aws verified owner list
[apiInstance awsOwnersWithCompletionHandler: 
              ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.awsOwners(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class awsOwnersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();

            try {
                // Retrieve aws verified owner list
                array[CommonStringBasedDropdownDto] result = apiInstance.awsOwners();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsOwners: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();

try {
    $result = $api_instance->awsOwners();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsOwners: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();

eval {
    my $result = $api_instance->awsOwners();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsOwners: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()

try:
    # Retrieve aws verified owner list
    api_response = api_instance.aws_owners()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsOwners: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsOwners(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


awsRegionlist

Retrieve aws regions list


/api/v1/aws/regions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/regions" \
 -d '{
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "cloudId" : 0,
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        RegionListCommand regionListCommand = ; // RegionListCommand | 

        try {
            array[AwsRegionDto] result = apiInstance.awsRegionlist(regionListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsRegionlist");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RegionListCommand regionListCommand = new RegionListCommand(); // RegionListCommand | 

try {
    final result = await api_instance.awsRegionlist(regionListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsRegionlist: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        RegionListCommand regionListCommand = ; // RegionListCommand | 

        try {
            array[AwsRegionDto] result = apiInstance.awsRegionlist(regionListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsRegionlist");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
RegionListCommand *regionListCommand = ; //  (optional)

// Retrieve aws regions list
[apiInstance awsRegionlistWith:regionListCommand
              completionHandler: ^(array[AwsRegionDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'regionListCommand':  // {RegionListCommand} 
};

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

namespace Example
{
    public class awsRegionlistExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var regionListCommand = new RegionListCommand(); // RegionListCommand |  (optional) 

            try {
                // Retrieve aws regions list
                array[AwsRegionDto] result = apiInstance.awsRegionlist(regionListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsRegionlist: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$regionListCommand = ; // RegionListCommand | 

try {
    $result = $api_instance->awsRegionlist($regionListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsRegionlist: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $regionListCommand = WWW::OPenAPIClient::Object::RegionListCommand->new(); # RegionListCommand | 

eval {
    my $result = $api_instance->awsRegionlist(regionListCommand => $regionListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsRegionlist: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
regionListCommand =  # RegionListCommand |  (optional)

try:
    # Retrieve aws regions list
    api_response = api_instance.aws_regionlist(regionListCommand=regionListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsRegionlist: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let regionListCommand = ; // RegionListCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsRegionlist(regionListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
regionListCommand

Responses


awsSubnetList

Retrieve aws subnet list


/api/v1/aws/subnet-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/subnet-list" \
 -d '{
  "awsRegion" : "awsRegion",
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "vpcId" : "vpcId",
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsSubnetListCommand awsSubnetListCommand = ; // AwsSubnetListCommand | 

        try {
            array[AwsSubnetDto] result = apiInstance.awsSubnetList(awsSubnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsSubnetList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsSubnetListCommand awsSubnetListCommand = new AwsSubnetListCommand(); // AwsSubnetListCommand | 

try {
    final result = await api_instance.awsSubnetList(awsSubnetListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsSubnetList: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsSubnetListCommand awsSubnetListCommand = ; // AwsSubnetListCommand | 

        try {
            array[AwsSubnetDto] result = apiInstance.awsSubnetList(awsSubnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsSubnetList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsSubnetListCommand *awsSubnetListCommand = ; //  (optional)

// Retrieve aws subnet list
[apiInstance awsSubnetListWith:awsSubnetListCommand
              completionHandler: ^(array[AwsSubnetDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsSubnetListCommand':  // {AwsSubnetListCommand} 
};

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

namespace Example
{
    public class awsSubnetListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsSubnetListCommand = new AwsSubnetListCommand(); // AwsSubnetListCommand |  (optional) 

            try {
                // Retrieve aws subnet list
                array[AwsSubnetDto] result = apiInstance.awsSubnetList(awsSubnetListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsSubnetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsSubnetListCommand = ; // AwsSubnetListCommand | 

try {
    $result = $api_instance->awsSubnetList($awsSubnetListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsSubnetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsSubnetListCommand = WWW::OPenAPIClient::Object::AwsSubnetListCommand->new(); # AwsSubnetListCommand | 

eval {
    my $result = $api_instance->awsSubnetList(awsSubnetListCommand => $awsSubnetListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsSubnetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsSubnetListCommand =  # AwsSubnetListCommand |  (optional)

try:
    # Retrieve aws subnet list
    api_response = api_instance.aws_subnet_list(awsSubnetListCommand=awsSubnetListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsSubnetList: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsSubnetListCommand = ; // AwsSubnetListCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsSubnetList(awsSubnetListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsSubnetListCommand

Responses


awsUpdate

Update AWS credentials


/api/v1/aws/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/update" \
 -d '{
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "name" : "name",
  "externalId" : "externalId",
  "id" : 0,
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        UpdateAwsCommand updateAwsCommand = ; // UpdateAwsCommand | 

        try {
            Object result = apiInstance.awsUpdate(updateAwsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateAwsCommand updateAwsCommand = new UpdateAwsCommand(); // UpdateAwsCommand | 

try {
    final result = await api_instance.awsUpdate(updateAwsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsUpdate: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        UpdateAwsCommand updateAwsCommand = ; // UpdateAwsCommand | 

        try {
            Object result = apiInstance.awsUpdate(updateAwsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
UpdateAwsCommand *updateAwsCommand = ; //  (optional)

// Update AWS credentials
[apiInstance awsUpdateWith:updateAwsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'updateAwsCommand':  // {UpdateAwsCommand} 
};

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

namespace Example
{
    public class awsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var updateAwsCommand = new UpdateAwsCommand(); // UpdateAwsCommand |  (optional) 

            try {
                // Update AWS credentials
                Object result = apiInstance.awsUpdate(updateAwsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$updateAwsCommand = ; // UpdateAwsCommand | 

try {
    $result = $api_instance->awsUpdate($updateAwsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $updateAwsCommand = WWW::OPenAPIClient::Object::UpdateAwsCommand->new(); # UpdateAwsCommand | 

eval {
    my $result = $api_instance->awsUpdate(updateAwsCommand => $updateAwsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
updateAwsCommand =  # UpdateAwsCommand |  (optional)

try:
    # Update AWS credentials
    api_response = api_instance.aws_update(updateAwsCommand=updateAwsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsUpdate: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let updateAwsCommand = ; // UpdateAwsCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsUpdate(updateAwsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateAwsCommand

Responses


awsValidateOwners

Aws validate owners


/api/v1/aws/validate-owners

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/validate-owners" \
 -d '{
  "cloudId" : 0,
  "owners" : [ "owners", "owners" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsValidateOwnerCommand awsValidateOwnerCommand = ; // AwsValidateOwnerCommand | 

        try {
            Object result = apiInstance.awsValidateOwners(awsValidateOwnerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsValidateOwners");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsValidateOwnerCommand awsValidateOwnerCommand = new AwsValidateOwnerCommand(); // AwsValidateOwnerCommand | 

try {
    final result = await api_instance.awsValidateOwners(awsValidateOwnerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsValidateOwners: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsValidateOwnerCommand awsValidateOwnerCommand = ; // AwsValidateOwnerCommand | 

        try {
            Object result = apiInstance.awsValidateOwners(awsValidateOwnerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsValidateOwners");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsValidateOwnerCommand *awsValidateOwnerCommand = ; //  (optional)

// Aws validate owners
[apiInstance awsValidateOwnersWith:awsValidateOwnerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsValidateOwnerCommand':  // {AwsValidateOwnerCommand} 
};

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

namespace Example
{
    public class awsValidateOwnersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsValidateOwnerCommand = new AwsValidateOwnerCommand(); // AwsValidateOwnerCommand |  (optional) 

            try {
                // Aws validate owners
                Object result = apiInstance.awsValidateOwners(awsValidateOwnerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsValidateOwners: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsValidateOwnerCommand = ; // AwsValidateOwnerCommand | 

try {
    $result = $api_instance->awsValidateOwners($awsValidateOwnerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsValidateOwners: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsValidateOwnerCommand = WWW::OPenAPIClient::Object::AwsValidateOwnerCommand->new(); # AwsValidateOwnerCommand | 

eval {
    my $result = $api_instance->awsValidateOwners(awsValidateOwnerCommand => $awsValidateOwnerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsValidateOwners: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsValidateOwnerCommand =  # AwsValidateOwnerCommand |  (optional)

try:
    # Aws validate owners
    api_response = api_instance.aws_validate_owners(awsValidateOwnerCommand=awsValidateOwnerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsValidateOwners: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsValidateOwnerCommand = ; // AwsValidateOwnerCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsValidateOwners(awsValidateOwnerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsValidateOwnerCommand

Responses


awsVpcList

Retrieve aws vpc list


/api/v1/aws/vpc-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/vpc-list" \
 -d '{
  "ipMode" : "",
  "awsRegion" : "awsRegion",
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsVpcListCommand awsVpcListCommand = ; // AwsVpcListCommand | 

        try {
            array[AwsVpcDto] result = apiInstance.awsVpcList(awsVpcListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsVpcList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsVpcListCommand awsVpcListCommand = new AwsVpcListCommand(); // AwsVpcListCommand | 

try {
    final result = await api_instance.awsVpcList(awsVpcListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsVpcList: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AwsVpcListCommand awsVpcListCommand = ; // AwsVpcListCommand | 

        try {
            array[AwsVpcDto] result = apiInstance.awsVpcList(awsVpcListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsVpcList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AwsVpcListCommand *awsVpcListCommand = ; //  (optional)

// Retrieve aws vpc list
[apiInstance awsVpcListWith:awsVpcListCommand
              completionHandler: ^(array[AwsVpcDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'awsVpcListCommand':  // {AwsVpcListCommand} 
};

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

namespace Example
{
    public class awsVpcListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var awsVpcListCommand = new AwsVpcListCommand(); // AwsVpcListCommand |  (optional) 

            try {
                // Retrieve aws vpc list
                array[AwsVpcDto] result = apiInstance.awsVpcList(awsVpcListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsVpcList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$awsVpcListCommand = ; // AwsVpcListCommand | 

try {
    $result = $api_instance->awsVpcList($awsVpcListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsVpcList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $awsVpcListCommand = WWW::OPenAPIClient::Object::AwsVpcListCommand->new(); # AwsVpcListCommand | 

eval {
    my $result = $api_instance->awsVpcList(awsVpcListCommand => $awsVpcListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsVpcList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
awsVpcListCommand =  # AwsVpcListCommand |  (optional)

try:
    # Retrieve aws vpc list
    api_response = api_instance.aws_vpc_list(awsVpcListCommand=awsVpcListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsVpcList: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let awsVpcListCommand = ; // AwsVpcListCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsVpcList(awsVpcListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsVpcListCommand

Responses


awsZones

Fetch Aws zones


/api/v1/aws/zones

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/aws/zones" \
 -d '{
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "cloudId" : 0,
  "externalId" : "externalId",
  "region" : "region",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AWSCloudCredentialApi;

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

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AmazonAvailabilityZonesCommand amazonAvailabilityZonesCommand = ; // AmazonAvailabilityZonesCommand | 

        try {
            AzResult result = apiInstance.awsZones(amazonAvailabilityZonesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsZones");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AmazonAvailabilityZonesCommand amazonAvailabilityZonesCommand = new AmazonAvailabilityZonesCommand(); // AmazonAvailabilityZonesCommand | 

try {
    final result = await api_instance.awsZones(amazonAvailabilityZonesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->awsZones: $e\n');
}

import org.openapitools.client.api.AWSCloudCredentialApi;

public class AWSCloudCredentialApiExample {
    public static void main(String[] args) {
        AWSCloudCredentialApi apiInstance = new AWSCloudCredentialApi();
        AmazonAvailabilityZonesCommand amazonAvailabilityZonesCommand = ; // AmazonAvailabilityZonesCommand | 

        try {
            AzResult result = apiInstance.awsZones(amazonAvailabilityZonesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AWSCloudCredentialApi#awsZones");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AWSCloudCredentialApi *apiInstance = [[AWSCloudCredentialApi alloc] init];
AmazonAvailabilityZonesCommand *amazonAvailabilityZonesCommand = ; //  (optional)

// Fetch Aws zones
[apiInstance awsZonesWith:amazonAvailabilityZonesCommand
              completionHandler: ^(AzResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AWSCloudCredentialApi()
var opts = {
  'amazonAvailabilityZonesCommand':  // {AmazonAvailabilityZonesCommand} 
};

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

namespace Example
{
    public class awsZonesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AWSCloudCredentialApi();
            var amazonAvailabilityZonesCommand = new AmazonAvailabilityZonesCommand(); // AmazonAvailabilityZonesCommand |  (optional) 

            try {
                // Fetch Aws zones
                AzResult result = apiInstance.awsZones(amazonAvailabilityZonesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AWSCloudCredentialApi.awsZones: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AWSCloudCredentialApi();
$amazonAvailabilityZonesCommand = ; // AmazonAvailabilityZonesCommand | 

try {
    $result = $api_instance->awsZones($amazonAvailabilityZonesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AWSCloudCredentialApi->awsZones: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AWSCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AWSCloudCredentialApi->new();
my $amazonAvailabilityZonesCommand = WWW::OPenAPIClient::Object::AmazonAvailabilityZonesCommand->new(); # AmazonAvailabilityZonesCommand | 

eval {
    my $result = $api_instance->awsZones(amazonAvailabilityZonesCommand => $amazonAvailabilityZonesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AWSCloudCredentialApi->awsZones: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AWSCloudCredentialApi()
amazonAvailabilityZonesCommand =  # AmazonAvailabilityZonesCommand |  (optional)

try:
    # Fetch Aws zones
    api_response = api_instance.aws_zones(amazonAvailabilityZonesCommand=amazonAvailabilityZonesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AWSCloudCredentialApi->awsZones: %s\n" % e)
extern crate AWSCloudCredentialApi;

pub fn main() {
    let amazonAvailabilityZonesCommand = ; // AmazonAvailabilityZonesCommand

    let mut context = AWSCloudCredentialApi::Context::default();
    let result = client.awsZones(amazonAvailabilityZonesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
amazonAvailabilityZonesCommand

Responses


AccessProfiles

accessprofilesCreate

Create access profile


/api/v1/accessprofiles/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/accessprofiles/create" \
 -d '{
  "organizationId" : 0,
  "allowedHosts" : [ {
    "ipAddress" : "ipAddress",
    "description" : "description",
    "maskBits" : 6
  }, {
    "ipAddress" : "ipAddress",
    "description" : "description",
    "maskBits" : 6
  } ],
  "noProxies" : [ {
    "address" : "address"
  }, {
    "address" : "address"
  } ],
  "httpProxy" : "httpProxy",
  "trustedRegistries" : [ {
    "registry" : "registry",
    "caPem" : "caPem"
  }, {
    "registry" : "registry",
    "caPem" : "caPem"
  } ],
  "ntpServers" : [ {
    "address" : "address"
  }, {
    "address" : "address"
  } ],
  "name" : "name",
  "dnsServers" : [ {
    "address" : "address"
  }, {
    "address" : "address"
  } ],
  "sshUsers" : [ {
    "sshPublicKey" : "sshPublicKey",
    "name" : "name"
  }, {
    "sshPublicKey" : "sshPublicKey",
    "name" : "name"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        CreateAccessProfileCommand createAccessProfileCommand = ; // CreateAccessProfileCommand | 

        try {
            ApiResponse result = apiInstance.accessprofilesCreate(createAccessProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAccessProfileCommand createAccessProfileCommand = new CreateAccessProfileCommand(); // CreateAccessProfileCommand | 

try {
    final result = await api_instance.accessprofilesCreate(createAccessProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesCreate: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        CreateAccessProfileCommand createAccessProfileCommand = ; // CreateAccessProfileCommand | 

        try {
            ApiResponse result = apiInstance.accessprofilesCreate(createAccessProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
CreateAccessProfileCommand *createAccessProfileCommand = ; //  (optional)

// Create access profile
[apiInstance accessprofilesCreateWith:createAccessProfileCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var opts = {
  'createAccessProfileCommand':  // {CreateAccessProfileCommand} 
};

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

namespace Example
{
    public class accessprofilesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var createAccessProfileCommand = new CreateAccessProfileCommand(); // CreateAccessProfileCommand |  (optional) 

            try {
                // Create access profile
                ApiResponse result = apiInstance.accessprofilesCreate(createAccessProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$createAccessProfileCommand = ; // CreateAccessProfileCommand | 

try {
    $result = $api_instance->accessprofilesCreate($createAccessProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $createAccessProfileCommand = WWW::OPenAPIClient::Object::CreateAccessProfileCommand->new(); # CreateAccessProfileCommand | 

eval {
    my $result = $api_instance->accessprofilesCreate(createAccessProfileCommand => $createAccessProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
createAccessProfileCommand =  # CreateAccessProfileCommand |  (optional)

try:
    # Create access profile
    api_response = api_instance.accessprofiles_create(createAccessProfileCommand=createAccessProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesCreate: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let createAccessProfileCommand = ; // CreateAccessProfileCommand

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesCreate(createAccessProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAccessProfileCommand

Responses


accessprofilesDelete

Delete access profile by Id


/api/v1/accessprofiles/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/accessprofiles/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.accessprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.accessprofilesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesDelete: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.accessprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete access profile by Id
[apiInstance accessprofilesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class accessprofilesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete access profile by Id
                Object result = apiInstance.accessprofilesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->accessprofilesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->accessprofilesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete access profile by Id
    api_response = api_instance.accessprofiles_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesDelete: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


accessprofilesDropdown

Retrieve access profiles by organization Id


/api/v1/accessprofiles/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/accessprofiles/list?OrganizationId=56&Search=search_example&Offset=56&Limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 

        try {
            array[CommonDropdownDto] result = apiInstance.accessprofilesDropdown(organizationId, search, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 
final Integer offset = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 

try {
    final result = await api_instance.accessprofilesDropdown(organizationId, search, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesDropdown: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 

        try {
            array[CommonDropdownDto] result = apiInstance.accessprofilesDropdown(organizationId, search, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to 0)
Integer *limit = 56; //  (optional) (default to 1000)

// Retrieve access profiles by organization Id
[apiInstance accessprofilesDropdownWith:organizationId
    search:search
    offset:offset
    limit:limit
              completionHandler: ^(array[CommonDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'search': search_example, // {String} 
  'offset': 56, // {Integer} 
  'limit': 56 // {Integer} 
};

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

namespace Example
{
    public class accessprofilesDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to 0)
            var limit = 56;  // Integer |  (optional)  (default to 1000)

            try {
                // Retrieve access profiles by organization Id
                array[CommonDropdownDto] result = apiInstance.accessprofilesDropdown(organizationId, search, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$organizationId = 56; // Integer | 
$search = search_example; // String | 
$offset = 56; // Integer | 
$limit = 56; // Integer | 

try {
    $result = $api_instance->accessprofilesDropdown($organizationId, $search, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 

eval {
    my $result = $api_instance->accessprofilesDropdown(organizationId => $organizationId, search => $search, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to 0)
limit = 56 # Integer |  (optional) (default to 1000)

try:
    # Retrieve access profiles by organization Id
    api_response = api_instance.accessprofiles_dropdown(organizationId=organizationId, search=search, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesDropdown: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesDropdown(organizationId, search, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Search
Offset
Integer (int32)
Limit
Integer (int32)

Responses


accessprofilesList

Retrieve all access profiles


/api/v1/accessprofiles

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/accessprofiles?OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56&Offset=56&Limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer organizationId = 56; // Integer | Id should be positive integer
        String sortBy = sortBy_example; // String | Sort By: ( name )
        String sortDirection = sortDirection_example; // String | asc|desc
        String search = search_example; // String | Search related data
        String searchId = searchId_example; // String | Entity id
        Integer id = 56; // Integer | Id should be positive integer
        Integer domainId = 56; // Integer | Id should be positive integer
        Integer offset = 56; // Integer | By default value is 0
        Integer limit = 56; // Integer | By default value is 50

        try {
            AccessProfilesList result = apiInstance.accessprofilesList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Id should be positive integer
final String sortBy = new String(); // String | Sort By: ( name )
final String sortDirection = new String(); // String | asc|desc
final String search = new String(); // String | Search related data
final String searchId = new String(); // String | Entity id
final Integer id = new Integer(); // Integer | Id should be positive integer
final Integer domainId = new Integer(); // Integer | Id should be positive integer
final Integer offset = new Integer(); // Integer | By default value is 0
final Integer limit = new Integer(); // Integer | By default value is 50

try {
    final result = await api_instance.accessprofilesList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesList: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer organizationId = 56; // Integer | Id should be positive integer
        String sortBy = sortBy_example; // String | Sort By: ( name )
        String sortDirection = sortDirection_example; // String | asc|desc
        String search = search_example; // String | Search related data
        String searchId = searchId_example; // String | Entity id
        Integer id = 56; // Integer | Id should be positive integer
        Integer domainId = 56; // Integer | Id should be positive integer
        Integer offset = 56; // Integer | By default value is 0
        Integer limit = 56; // Integer | By default value is 50

        try {
            AccessProfilesList result = apiInstance.accessprofilesList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
Integer *organizationId = 56; // Id should be positive integer (optional) (default to null)
String *sortBy = sortBy_example; // Sort By: ( name ) (optional) (default to null)
String *sortDirection = sortDirection_example; // asc|desc (optional) (default to null)
String *search = search_example; // Search related data (optional) (default to null)
String *searchId = searchId_example; // Entity id (optional) (default to null)
Integer *id = 56; // Id should be positive integer (optional) (default to null)
Integer *domainId = 56; // Id should be positive integer (optional) (default to null)
Integer *offset = 56; // By default value is 0 (optional) (default to 0)
Integer *limit = 56; // By default value is 50 (optional) (default to 50)

// Retrieve all access profiles
[apiInstance accessprofilesListWith:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    domainId:domainId
    offset:offset
    limit:limit
              completionHandler: ^(AccessProfilesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} Id should be positive integer
  'sortBy': sortBy_example, // {String} Sort By: ( name )
  'sortDirection': sortDirection_example, // {String} asc|desc
  'search': search_example, // {String} Search related data
  'searchId': searchId_example, // {String} Entity id
  'id': 56, // {Integer} Id should be positive integer
  'domainId': 56, // {Integer} Id should be positive integer
  'offset': 56, // {Integer} By default value is 0
  'limit': 56 // {Integer} By default value is 50
};

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

namespace Example
{
    public class accessprofilesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var organizationId = 56;  // Integer | Id should be positive integer (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Sort By: ( name ) (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | asc|desc (optional)  (default to null)
            var search = search_example;  // String | Search related data (optional)  (default to null)
            var searchId = searchId_example;  // String | Entity id (optional)  (default to null)
            var id = 56;  // Integer | Id should be positive integer (optional)  (default to null)
            var domainId = 56;  // Integer | Id should be positive integer (optional)  (default to null)
            var offset = 56;  // Integer | By default value is 0 (optional)  (default to 0)
            var limit = 56;  // Integer | By default value is 50 (optional)  (default to 50)

            try {
                // Retrieve all access profiles
                AccessProfilesList result = apiInstance.accessprofilesList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$organizationId = 56; // Integer | Id should be positive integer
$sortBy = sortBy_example; // String | Sort By: ( name )
$sortDirection = sortDirection_example; // String | asc|desc
$search = search_example; // String | Search related data
$searchId = searchId_example; // String | Entity id
$id = 56; // Integer | Id should be positive integer
$domainId = 56; // Integer | Id should be positive integer
$offset = 56; // Integer | By default value is 0
$limit = 56; // Integer | By default value is 50

try {
    $result = $api_instance->accessprofilesList($organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $domainId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $organizationId = 56; # Integer | Id should be positive integer
my $sortBy = sortBy_example; # String | Sort By: ( name )
my $sortDirection = sortDirection_example; # String | asc|desc
my $search = search_example; # String | Search related data
my $searchId = searchId_example; # String | Entity id
my $id = 56; # Integer | Id should be positive integer
my $domainId = 56; # Integer | Id should be positive integer
my $offset = 56; # Integer | By default value is 0
my $limit = 56; # Integer | By default value is 50

eval {
    my $result = $api_instance->accessprofilesList(organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, domainId => $domainId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
organizationId = 56 # Integer | Id should be positive integer (optional) (default to null)
sortBy = sortBy_example # String | Sort By: ( name ) (optional) (default to null)
sortDirection = sortDirection_example # String | asc|desc (optional) (default to null)
search = search_example # String | Search related data (optional) (default to null)
searchId = searchId_example # String | Entity id (optional) (default to null)
id = 56 # Integer | Id should be positive integer (optional) (default to null)
domainId = 56 # Integer | Id should be positive integer (optional) (default to null)
offset = 56 # Integer | By default value is 0 (optional) (default to 0)
limit = 56 # Integer | By default value is 50 (optional) (default to 50)

try:
    # Retrieve all access profiles
    api_response = api_instance.accessprofiles_list(organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, domainId=domainId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesList: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Id should be positive integer
SortBy
String
Sort By: ( name )
SortDirection
String
asc|desc
Search
SearchId
String
Entity id
Id
Integer (int32)
Id should be positive integer
DomainId
Integer (int32)
Id should be positive integer
Offset
Integer (int32)
By default value is 0
Limit
Integer (int32)
By default value is 50

Responses


accessprofilesLockManager

Lock/unlock access profiles


/api/v1/accessprofiles/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/accessprofiles/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        AccessProfilesLockManagementCommand accessProfilesLockManagementCommand = ; // AccessProfilesLockManagementCommand | 

        try {
            Object result = apiInstance.accessprofilesLockManager(accessProfilesLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AccessProfilesLockManagementCommand accessProfilesLockManagementCommand = new AccessProfilesLockManagementCommand(); // AccessProfilesLockManagementCommand | 

try {
    final result = await api_instance.accessprofilesLockManager(accessProfilesLockManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesLockManager: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        AccessProfilesLockManagementCommand accessProfilesLockManagementCommand = ; // AccessProfilesLockManagementCommand | 

        try {
            Object result = apiInstance.accessprofilesLockManager(accessProfilesLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
AccessProfilesLockManagementCommand *accessProfilesLockManagementCommand = ; //  (optional)

// Lock/unlock access profiles
[apiInstance accessprofilesLockManagerWith:accessProfilesLockManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var opts = {
  'accessProfilesLockManagementCommand':  // {AccessProfilesLockManagementCommand} 
};

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

namespace Example
{
    public class accessprofilesLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var accessProfilesLockManagementCommand = new AccessProfilesLockManagementCommand(); // AccessProfilesLockManagementCommand |  (optional) 

            try {
                // Lock/unlock access profiles
                Object result = apiInstance.accessprofilesLockManager(accessProfilesLockManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$accessProfilesLockManagementCommand = ; // AccessProfilesLockManagementCommand | 

try {
    $result = $api_instance->accessprofilesLockManager($accessProfilesLockManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $accessProfilesLockManagementCommand = WWW::OPenAPIClient::Object::AccessProfilesLockManagementCommand->new(); # AccessProfilesLockManagementCommand | 

eval {
    my $result = $api_instance->accessprofilesLockManager(accessProfilesLockManagementCommand => $accessProfilesLockManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
accessProfilesLockManagementCommand =  # AccessProfilesLockManagementCommand |  (optional)

try:
    # Lock/unlock access profiles
    api_response = api_instance.accessprofiles_lock_manager(accessProfilesLockManagementCommand=accessProfilesLockManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesLockManager: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let accessProfilesLockManagementCommand = ; // AccessProfilesLockManagementCommand

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesLockManager(accessProfilesLockManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
accessProfilesLockManagementCommand

Responses


accessprofilesUpdate

Update access profile


/api/v1/accessprofiles/update/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/accessprofiles/update/{id}" \
 -d '{
  "httpProxy" : "httpProxy",
  "name" : "name"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AccessProfilesApi;

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

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer id = 56; // Integer | 
        UpdateAccessProfileDto updateAccessProfileDto = ; // UpdateAccessProfileDto | 

        try {
            Object result = apiInstance.accessprofilesUpdate(id, updateAccessProfileDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final UpdateAccessProfileDto updateAccessProfileDto = new UpdateAccessProfileDto(); // UpdateAccessProfileDto | 

try {
    final result = await api_instance.accessprofilesUpdate(id, updateAccessProfileDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->accessprofilesUpdate: $e\n');
}

import org.openapitools.client.api.AccessProfilesApi;

public class AccessProfilesApiExample {
    public static void main(String[] args) {
        AccessProfilesApi apiInstance = new AccessProfilesApi();
        Integer id = 56; // Integer | 
        UpdateAccessProfileDto updateAccessProfileDto = ; // UpdateAccessProfileDto | 

        try {
            Object result = apiInstance.accessprofilesUpdate(id, updateAccessProfileDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AccessProfilesApi#accessprofilesUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AccessProfilesApi *apiInstance = [[AccessProfilesApi alloc] init];
Integer *id = 56; //  (default to null)
UpdateAccessProfileDto *updateAccessProfileDto = ; //  (optional)

// Update access profile
[apiInstance accessprofilesUpdateWith:id
    updateAccessProfileDto:updateAccessProfileDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AccessProfilesApi()
var id = 56; // {Integer} 
var opts = {
  'updateAccessProfileDto':  // {UpdateAccessProfileDto} 
};

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

namespace Example
{
    public class accessprofilesUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AccessProfilesApi();
            var id = 56;  // Integer |  (default to null)
            var updateAccessProfileDto = new UpdateAccessProfileDto(); // UpdateAccessProfileDto |  (optional) 

            try {
                // Update access profile
                Object result = apiInstance.accessprofilesUpdate(id, updateAccessProfileDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AccessProfilesApi.accessprofilesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AccessProfilesApi();
$id = 56; // Integer | 
$updateAccessProfileDto = ; // UpdateAccessProfileDto | 

try {
    $result = $api_instance->accessprofilesUpdate($id, $updateAccessProfileDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccessProfilesApi->accessprofilesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AccessProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AccessProfilesApi->new();
my $id = 56; # Integer | 
my $updateAccessProfileDto = WWW::OPenAPIClient::Object::UpdateAccessProfileDto->new(); # UpdateAccessProfileDto | 

eval {
    my $result = $api_instance->accessprofilesUpdate(id => $id, updateAccessProfileDto => $updateAccessProfileDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AccessProfilesApi->accessprofilesUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AccessProfilesApi()
id = 56 # Integer |  (default to null)
updateAccessProfileDto =  # UpdateAccessProfileDto |  (optional)

try:
    # Update access profile
    api_response = api_instance.accessprofiles_update(id, updateAccessProfileDto=updateAccessProfileDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AccessProfilesApi->accessprofilesUpdate: %s\n" % e)
extern crate AccessProfilesApi;

pub fn main() {
    let id = 56; // Integer
    let updateAccessProfileDto = ; // UpdateAccessProfileDto

    let mut context = AccessProfilesApi::Context::default();
    let result = client.accessprofilesUpdate(id, updateAccessProfileDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
updateAccessProfileDto

Responses


Admin

usersOverloadProtectionStatus

Get overload protection status


/api/v1/users/overload-protection

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/users/overload-protection"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminApi;

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

public class AdminApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AdminApi apiInstance = new AdminApi();

        try {
            Object result = apiInstance.usersOverloadProtectionStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminApi#usersOverloadProtectionStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.usersOverloadProtectionStatus();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersOverloadProtectionStatus: $e\n');
}

import org.openapitools.client.api.AdminApi;

public class AdminApiExample {
    public static void main(String[] args) {
        AdminApi apiInstance = new AdminApi();

        try {
            Object result = apiInstance.usersOverloadProtectionStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminApi#usersOverloadProtectionStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AdminApi *apiInstance = [[AdminApi alloc] init];

// Get overload protection status
[apiInstance usersOverloadProtectionStatusWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AdminApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersOverloadProtectionStatus(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersOverloadProtectionStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AdminApi();

            try {
                // Get overload protection status
                Object result = apiInstance.usersOverloadProtectionStatus();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminApi.usersOverloadProtectionStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminApi();

try {
    $result = $api_instance->usersOverloadProtectionStatus();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AdminApi->usersOverloadProtectionStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdminApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminApi->new();

eval {
    my $result = $api_instance->usersOverloadProtectionStatus();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminApi->usersOverloadProtectionStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AdminApi()

try:
    # Get overload protection status
    api_response = api_instance.users_overload_protection_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminApi->usersOverloadProtectionStatus: %s\n" % e)
extern crate AdminApi;

pub fn main() {

    let mut context = AdminApi::Context::default();
    let result = client.usersOverloadProtectionStatus(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


usersToggleOverloadProtection

Set overload protection mode


/api/v1/users/toggleoverloadprotection

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/toggleoverloadprotection" \
 -d '{
  "mode" : "Normal"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AdminApi;

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

public class AdminApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AdminApi apiInstance = new AdminApi();
        ToggleOverloadProtectionCommand toggleOverloadProtectionCommand = ; // ToggleOverloadProtectionCommand | 

        try {
            Object result = apiInstance.usersToggleOverloadProtection(toggleOverloadProtectionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminApi#usersToggleOverloadProtection");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ToggleOverloadProtectionCommand toggleOverloadProtectionCommand = new ToggleOverloadProtectionCommand(); // ToggleOverloadProtectionCommand | 

try {
    final result = await api_instance.usersToggleOverloadProtection(toggleOverloadProtectionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersToggleOverloadProtection: $e\n');
}

import org.openapitools.client.api.AdminApi;

public class AdminApiExample {
    public static void main(String[] args) {
        AdminApi apiInstance = new AdminApi();
        ToggleOverloadProtectionCommand toggleOverloadProtectionCommand = ; // ToggleOverloadProtectionCommand | 

        try {
            Object result = apiInstance.usersToggleOverloadProtection(toggleOverloadProtectionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AdminApi#usersToggleOverloadProtection");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AdminApi *apiInstance = [[AdminApi alloc] init];
ToggleOverloadProtectionCommand *toggleOverloadProtectionCommand = ; //  (optional)

// Set overload protection mode
[apiInstance usersToggleOverloadProtectionWith:toggleOverloadProtectionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AdminApi()
var opts = {
  'toggleOverloadProtectionCommand':  // {ToggleOverloadProtectionCommand} 
};

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

namespace Example
{
    public class usersToggleOverloadProtectionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AdminApi();
            var toggleOverloadProtectionCommand = new ToggleOverloadProtectionCommand(); // ToggleOverloadProtectionCommand |  (optional) 

            try {
                // Set overload protection mode
                Object result = apiInstance.usersToggleOverloadProtection(toggleOverloadProtectionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AdminApi.usersToggleOverloadProtection: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AdminApi();
$toggleOverloadProtectionCommand = ; // ToggleOverloadProtectionCommand | 

try {
    $result = $api_instance->usersToggleOverloadProtection($toggleOverloadProtectionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AdminApi->usersToggleOverloadProtection: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AdminApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AdminApi->new();
my $toggleOverloadProtectionCommand = WWW::OPenAPIClient::Object::ToggleOverloadProtectionCommand->new(); # ToggleOverloadProtectionCommand | 

eval {
    my $result = $api_instance->usersToggleOverloadProtection(toggleOverloadProtectionCommand => $toggleOverloadProtectionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AdminApi->usersToggleOverloadProtection: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AdminApi()
toggleOverloadProtectionCommand =  # ToggleOverloadProtectionCommand |  (optional)

try:
    # Set overload protection mode
    api_response = api_instance.users_toggle_overload_protection(toggleOverloadProtectionCommand=toggleOverloadProtectionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AdminApi->usersToggleOverloadProtection: %s\n" % e)
extern crate AdminApi;

pub fn main() {
    let toggleOverloadProtectionCommand = ; // ToggleOverloadProtectionCommand

    let mut context = AdminApi::Context::default();
    let result = client.usersToggleOverloadProtection(toggleOverloadProtectionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
toggleOverloadProtectionCommand

Responses


AlertingIntegrations

alertingintegrationsCreate

Create alerting profile alerting integration


/api/v1/alertingintegrations/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingintegrations/create" \
 -d '{
  "alertingProfileId" : 0,
  "url" : "url",
  "token" : "token",
  "alertingIntegrationType" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingIntegrationsApi;

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

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        CreateAlertingIntegrationCommand createAlertingIntegrationCommand = ; // CreateAlertingIntegrationCommand | 

        try {
            ApiResponse result = apiInstance.alertingintegrationsCreate(createAlertingIntegrationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAlertingIntegrationCommand createAlertingIntegrationCommand = new CreateAlertingIntegrationCommand(); // CreateAlertingIntegrationCommand | 

try {
    final result = await api_instance.alertingintegrationsCreate(createAlertingIntegrationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingintegrationsCreate: $e\n');
}

import org.openapitools.client.api.AlertingIntegrationsApi;

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        CreateAlertingIntegrationCommand createAlertingIntegrationCommand = ; // CreateAlertingIntegrationCommand | 

        try {
            ApiResponse result = apiInstance.alertingintegrationsCreate(createAlertingIntegrationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingIntegrationsApi *apiInstance = [[AlertingIntegrationsApi alloc] init];
CreateAlertingIntegrationCommand *createAlertingIntegrationCommand = ; //  (optional)

// Create alerting profile alerting integration
[apiInstance alertingintegrationsCreateWith:createAlertingIntegrationCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingIntegrationsApi()
var opts = {
  'createAlertingIntegrationCommand':  // {CreateAlertingIntegrationCommand} 
};

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

namespace Example
{
    public class alertingintegrationsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingIntegrationsApi();
            var createAlertingIntegrationCommand = new CreateAlertingIntegrationCommand(); // CreateAlertingIntegrationCommand |  (optional) 

            try {
                // Create alerting profile alerting integration
                ApiResponse result = apiInstance.alertingintegrationsCreate(createAlertingIntegrationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingIntegrationsApi.alertingintegrationsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingIntegrationsApi();
$createAlertingIntegrationCommand = ; // CreateAlertingIntegrationCommand | 

try {
    $result = $api_instance->alertingintegrationsCreate($createAlertingIntegrationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingIntegrationsApi->alertingintegrationsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingIntegrationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingIntegrationsApi->new();
my $createAlertingIntegrationCommand = WWW::OPenAPIClient::Object::CreateAlertingIntegrationCommand->new(); # CreateAlertingIntegrationCommand | 

eval {
    my $result = $api_instance->alertingintegrationsCreate(createAlertingIntegrationCommand => $createAlertingIntegrationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingIntegrationsApi->alertingintegrationsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingIntegrationsApi()
createAlertingIntegrationCommand =  # CreateAlertingIntegrationCommand |  (optional)

try:
    # Create alerting profile alerting integration
    api_response = api_instance.alertingintegrations_create(createAlertingIntegrationCommand=createAlertingIntegrationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingIntegrationsApi->alertingintegrationsCreate: %s\n" % e)
extern crate AlertingIntegrationsApi;

pub fn main() {
    let createAlertingIntegrationCommand = ; // CreateAlertingIntegrationCommand

    let mut context = AlertingIntegrationsApi::Context::default();
    let result = client.alertingintegrationsCreate(createAlertingIntegrationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAlertingIntegrationCommand

Responses


alertingintegrationsDelete

Delete alerting profile alerting integration


/api/v1/alertingintegrations/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/alertingintegrations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingIntegrationsApi;

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

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.alertingintegrationsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.alertingintegrationsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingintegrationsDelete: $e\n');
}

import org.openapitools.client.api.AlertingIntegrationsApi;

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.alertingintegrationsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingIntegrationsApi *apiInstance = [[AlertingIntegrationsApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete alerting profile alerting integration
[apiInstance alertingintegrationsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingIntegrationsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class alertingintegrationsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingIntegrationsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete alerting profile alerting integration
                Object result = apiInstance.alertingintegrationsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingIntegrationsApi.alertingintegrationsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingIntegrationsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->alertingintegrationsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingIntegrationsApi->alertingintegrationsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingIntegrationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingIntegrationsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->alertingintegrationsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingIntegrationsApi->alertingintegrationsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingIntegrationsApi()
id = 56 # Integer |  (default to null)

try:
    # Delete alerting profile alerting integration
    api_response = api_instance.alertingintegrations_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingIntegrationsApi->alertingintegrationsDelete: %s\n" % e)
extern crate AlertingIntegrationsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = AlertingIntegrationsApi::Context::default();
    let result = client.alertingintegrationsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


alertingintegrationsEdit

Edit alerting profile alerting integration


/api/v1/alertingintegrations/edit

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingintegrations/edit" \
 -d '{
  "alertingProfileId" : 6,
  "id" : 0,
  "url" : "url",
  "token" : "token",
  "alertingIntegrationType" : "Opsgenie"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingIntegrationsApi;

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

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        EditAlertingIntegrationCommand editAlertingIntegrationCommand = ; // EditAlertingIntegrationCommand | 

        try {
            Object result = apiInstance.alertingintegrationsEdit(editAlertingIntegrationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditAlertingIntegrationCommand editAlertingIntegrationCommand = new EditAlertingIntegrationCommand(); // EditAlertingIntegrationCommand | 

try {
    final result = await api_instance.alertingintegrationsEdit(editAlertingIntegrationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingintegrationsEdit: $e\n');
}

import org.openapitools.client.api.AlertingIntegrationsApi;

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        EditAlertingIntegrationCommand editAlertingIntegrationCommand = ; // EditAlertingIntegrationCommand | 

        try {
            Object result = apiInstance.alertingintegrationsEdit(editAlertingIntegrationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingIntegrationsApi *apiInstance = [[AlertingIntegrationsApi alloc] init];
EditAlertingIntegrationCommand *editAlertingIntegrationCommand = ; //  (optional)

// Edit alerting profile alerting integration
[apiInstance alertingintegrationsEditWith:editAlertingIntegrationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingIntegrationsApi()
var opts = {
  'editAlertingIntegrationCommand':  // {EditAlertingIntegrationCommand} 
};

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

namespace Example
{
    public class alertingintegrationsEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingIntegrationsApi();
            var editAlertingIntegrationCommand = new EditAlertingIntegrationCommand(); // EditAlertingIntegrationCommand |  (optional) 

            try {
                // Edit alerting profile alerting integration
                Object result = apiInstance.alertingintegrationsEdit(editAlertingIntegrationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingIntegrationsApi.alertingintegrationsEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingIntegrationsApi();
$editAlertingIntegrationCommand = ; // EditAlertingIntegrationCommand | 

try {
    $result = $api_instance->alertingintegrationsEdit($editAlertingIntegrationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingIntegrationsApi->alertingintegrationsEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingIntegrationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingIntegrationsApi->new();
my $editAlertingIntegrationCommand = WWW::OPenAPIClient::Object::EditAlertingIntegrationCommand->new(); # EditAlertingIntegrationCommand | 

eval {
    my $result = $api_instance->alertingintegrationsEdit(editAlertingIntegrationCommand => $editAlertingIntegrationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingIntegrationsApi->alertingintegrationsEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingIntegrationsApi()
editAlertingIntegrationCommand =  # EditAlertingIntegrationCommand |  (optional)

try:
    # Edit alerting profile alerting integration
    api_response = api_instance.alertingintegrations_edit(editAlertingIntegrationCommand=editAlertingIntegrationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingIntegrationsApi->alertingintegrationsEdit: %s\n" % e)
extern crate AlertingIntegrationsApi;

pub fn main() {
    let editAlertingIntegrationCommand = ; // EditAlertingIntegrationCommand

    let mut context = AlertingIntegrationsApi::Context::default();
    let result = client.alertingintegrationsEdit(editAlertingIntegrationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editAlertingIntegrationCommand

Responses


alertingintegrationsList

List alerting integrations by profile id


/api/v1/alertingintegrations/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/alertingintegrations/{id}?search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingIntegrationsApi;

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

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[AlertingIntegrationsListDto] result = apiInstance.alertingintegrationsList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.alertingintegrationsList(id, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingintegrationsList: $e\n');
}

import org.openapitools.client.api.AlertingIntegrationsApi;

public class AlertingIntegrationsApiExample {
    public static void main(String[] args) {
        AlertingIntegrationsApi apiInstance = new AlertingIntegrationsApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[AlertingIntegrationsListDto] result = apiInstance.alertingintegrationsList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingIntegrationsApi#alertingintegrationsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingIntegrationsApi *apiInstance = [[AlertingIntegrationsApi alloc] init];
Integer *id = 56; //  (default to null)
String *search = search_example; //  (optional) (default to null)

// List alerting integrations by profile id
[apiInstance alertingintegrationsListWith:id
    search:search
              completionHandler: ^(array[AlertingIntegrationsListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingIntegrationsApi()
var id = 56; // {Integer} 
var opts = {
  'search': search_example // {String} 
};

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

namespace Example
{
    public class alertingintegrationsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingIntegrationsApi();
            var id = 56;  // Integer |  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // List alerting integrations by profile id
                array[AlertingIntegrationsListDto] result = apiInstance.alertingintegrationsList(id, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingIntegrationsApi.alertingintegrationsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingIntegrationsApi();
$id = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->alertingintegrationsList($id, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingIntegrationsApi->alertingintegrationsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingIntegrationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingIntegrationsApi->new();
my $id = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->alertingintegrationsList(id => $id, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingIntegrationsApi->alertingintegrationsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingIntegrationsApi()
id = 56 # Integer |  (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # List alerting integrations by profile id
    api_response = api_instance.alertingintegrations_list(id, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingIntegrationsApi->alertingintegrationsList: %s\n" % e)
extern crate AlertingIntegrationsApi;

pub fn main() {
    let id = 56; // Integer
    let search = search_example; // String

    let mut context = AlertingIntegrationsApi::Context::default();
    let result = client.alertingintegrationsList(id, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
search

Responses


AlertingProfiles

alertingprofilesAssignEmail

Assign Alerting emails


/api/v1/alertingprofiles/assignemails/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/assignemails/{id}" \
 -d '{
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 
        array[AlertingEmailDto] alertingEmailDto = ; // array[AlertingEmailDto] | 

        try {
            Object result = apiInstance.alertingprofilesAssignEmail(id, alertingEmailDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAssignEmail");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[AlertingEmailDto] alertingEmailDto = new array[AlertingEmailDto](); // array[AlertingEmailDto] | 

try {
    final result = await api_instance.alertingprofilesAssignEmail(id, alertingEmailDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesAssignEmail: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 
        array[AlertingEmailDto] alertingEmailDto = ; // array[AlertingEmailDto] | 

        try {
            Object result = apiInstance.alertingprofilesAssignEmail(id, alertingEmailDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAssignEmail");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
Integer *id = 56; //  (default to null)
array[AlertingEmailDto] *alertingEmailDto = ; //  (optional)

// Assign Alerting emails
[apiInstance alertingprofilesAssignEmailWith:id
    alertingEmailDto:alertingEmailDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var id = 56; // {Integer} 
var opts = {
  'alertingEmailDto':  // {array[AlertingEmailDto]} 
};

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

namespace Example
{
    public class alertingprofilesAssignEmailExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var id = 56;  // Integer |  (default to null)
            var alertingEmailDto = new array[AlertingEmailDto](); // array[AlertingEmailDto] |  (optional) 

            try {
                // Assign Alerting emails
                Object result = apiInstance.alertingprofilesAssignEmail(id, alertingEmailDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesAssignEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$id = 56; // Integer | 
$alertingEmailDto = ; // array[AlertingEmailDto] | 

try {
    $result = $api_instance->alertingprofilesAssignEmail($id, $alertingEmailDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesAssignEmail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $id = 56; # Integer | 
my $alertingEmailDto = [WWW::OPenAPIClient::Object::array[AlertingEmailDto]->new()]; # array[AlertingEmailDto] | 

eval {
    my $result = $api_instance->alertingprofilesAssignEmail(id => $id, alertingEmailDto => $alertingEmailDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesAssignEmail: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
id = 56 # Integer |  (default to null)
alertingEmailDto =  # array[AlertingEmailDto] |  (optional)

try:
    # Assign Alerting emails
    api_response = api_instance.alertingprofiles_assign_email(id, alertingEmailDto=alertingEmailDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesAssignEmail: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let id = 56; // Integer
    let alertingEmailDto = ; // array[AlertingEmailDto]

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesAssignEmail(id, alertingEmailDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
alertingEmailDto

Responses


alertingprofilesAssignWebhooks

Assign Alerting webhooks


/api/v1/alertingprofiles/assignwebhooks/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/assignwebhooks/{id}" \
 -d '{
  "headers" : [ {
    "id" : 6,
    "value" : "value",
    "key" : "key"
  }, {
    "id" : 6,
    "value" : "value",
    "key" : "key"
  } ],
  "id" : 0,
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 
        array[AlertingWebhookDto] alertingWebhookDto = ; // array[AlertingWebhookDto] | 

        try {
            Object result = apiInstance.alertingprofilesAssignWebhooks(id, alertingWebhookDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAssignWebhooks");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[AlertingWebhookDto] alertingWebhookDto = new array[AlertingWebhookDto](); // array[AlertingWebhookDto] | 

try {
    final result = await api_instance.alertingprofilesAssignWebhooks(id, alertingWebhookDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesAssignWebhooks: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 
        array[AlertingWebhookDto] alertingWebhookDto = ; // array[AlertingWebhookDto] | 

        try {
            Object result = apiInstance.alertingprofilesAssignWebhooks(id, alertingWebhookDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAssignWebhooks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
Integer *id = 56; //  (default to null)
array[AlertingWebhookDto] *alertingWebhookDto = ; //  (optional)

// Assign Alerting webhooks
[apiInstance alertingprofilesAssignWebhooksWith:id
    alertingWebhookDto:alertingWebhookDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var id = 56; // {Integer} 
var opts = {
  'alertingWebhookDto':  // {array[AlertingWebhookDto]} 
};

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

namespace Example
{
    public class alertingprofilesAssignWebhooksExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var id = 56;  // Integer |  (default to null)
            var alertingWebhookDto = new array[AlertingWebhookDto](); // array[AlertingWebhookDto] |  (optional) 

            try {
                // Assign Alerting webhooks
                Object result = apiInstance.alertingprofilesAssignWebhooks(id, alertingWebhookDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesAssignWebhooks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$id = 56; // Integer | 
$alertingWebhookDto = ; // array[AlertingWebhookDto] | 

try {
    $result = $api_instance->alertingprofilesAssignWebhooks($id, $alertingWebhookDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesAssignWebhooks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $id = 56; # Integer | 
my $alertingWebhookDto = [WWW::OPenAPIClient::Object::array[AlertingWebhookDto]->new()]; # array[AlertingWebhookDto] | 

eval {
    my $result = $api_instance->alertingprofilesAssignWebhooks(id => $id, alertingWebhookDto => $alertingWebhookDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesAssignWebhooks: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
id = 56 # Integer |  (default to null)
alertingWebhookDto =  # array[AlertingWebhookDto] |  (optional)

try:
    # Assign Alerting webhooks
    api_response = api_instance.alertingprofiles_assign_webhooks(id, alertingWebhookDto=alertingWebhookDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesAssignWebhooks: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let id = 56; // Integer
    let alertingWebhookDto = ; // array[AlertingWebhookDto]

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesAssignWebhooks(id, alertingWebhookDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
alertingWebhookDto

Responses


alertingprofilesAttach

Attach alerting profile to project


/api/v1/alertingprofiles/attach

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/attach" \
 -d '{
  "alertingProfileId" : 6,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

        try {
            Object result = apiInstance.alertingprofilesAttach(attachDetachAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAttach");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = new AttachDetachAlertingProfileCommand(); // AttachDetachAlertingProfileCommand | 

try {
    final result = await api_instance.alertingprofilesAttach(attachDetachAlertingProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesAttach: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

        try {
            Object result = apiInstance.alertingprofilesAttach(attachDetachAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesAttach");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
AttachDetachAlertingProfileCommand *attachDetachAlertingProfileCommand = ; //  (optional)

// Attach alerting profile to project
[apiInstance alertingprofilesAttachWith:attachDetachAlertingProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'attachDetachAlertingProfileCommand':  // {AttachDetachAlertingProfileCommand} 
};

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

namespace Example
{
    public class alertingprofilesAttachExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var attachDetachAlertingProfileCommand = new AttachDetachAlertingProfileCommand(); // AttachDetachAlertingProfileCommand |  (optional) 

            try {
                // Attach alerting profile to project
                Object result = apiInstance.alertingprofilesAttach(attachDetachAlertingProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesAttach: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

try {
    $result = $api_instance->alertingprofilesAttach($attachDetachAlertingProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesAttach: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $attachDetachAlertingProfileCommand = WWW::OPenAPIClient::Object::AttachDetachAlertingProfileCommand->new(); # AttachDetachAlertingProfileCommand | 

eval {
    my $result = $api_instance->alertingprofilesAttach(attachDetachAlertingProfileCommand => $attachDetachAlertingProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesAttach: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
attachDetachAlertingProfileCommand =  # AttachDetachAlertingProfileCommand |  (optional)

try:
    # Attach alerting profile to project
    api_response = api_instance.alertingprofiles_attach(attachDetachAlertingProfileCommand=attachDetachAlertingProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesAttach: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesAttach(attachDetachAlertingProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
attachDetachAlertingProfileCommand

Responses


alertingprofilesCreate

Add Alerting profile


/api/v1/alertingprofiles/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/create" \
 -d '{
  "organizationId" : 6,
  "emails" : [ {
    "email" : "email"
  }, {
    "email" : "email"
  } ],
  "slackConfigurationId" : 0,
  "reminder" : "",
  "webhooks" : [ {
    "headers" : [ {
      "id" : 6,
      "value" : "value",
      "key" : "key"
    }, {
      "id" : 6,
      "value" : "value",
      "key" : "key"
    } ],
    "id" : 0,
    "url" : "url"
  }, {
    "headers" : [ {
      "id" : 6,
      "value" : "value",
      "key" : "key"
    }, {
      "id" : 6,
      "value" : "value",
      "key" : "key"
    } ],
    "id" : 0,
    "url" : "url"
  } ],
  "name" : "name",
  "alertingIntegrations" : [ {
    "url" : "url",
    "token" : "token",
    "alertingIntegrationType" : ""
  }, {
    "url" : "url",
    "token" : "token",
    "alertingIntegrationType" : ""
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        CreateAlertingProfileCommand createAlertingProfileCommand = ; // CreateAlertingProfileCommand | 

        try {
            ApiResponse result = apiInstance.alertingprofilesCreate(createAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAlertingProfileCommand createAlertingProfileCommand = new CreateAlertingProfileCommand(); // CreateAlertingProfileCommand | 

try {
    final result = await api_instance.alertingprofilesCreate(createAlertingProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesCreate: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        CreateAlertingProfileCommand createAlertingProfileCommand = ; // CreateAlertingProfileCommand | 

        try {
            ApiResponse result = apiInstance.alertingprofilesCreate(createAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
CreateAlertingProfileCommand *createAlertingProfileCommand = ; //  (optional)

// Add Alerting profile
[apiInstance alertingprofilesCreateWith:createAlertingProfileCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'createAlertingProfileCommand':  // {CreateAlertingProfileCommand} 
};

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

namespace Example
{
    public class alertingprofilesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var createAlertingProfileCommand = new CreateAlertingProfileCommand(); // CreateAlertingProfileCommand |  (optional) 

            try {
                // Add Alerting profile
                ApiResponse result = apiInstance.alertingprofilesCreate(createAlertingProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$createAlertingProfileCommand = ; // CreateAlertingProfileCommand | 

try {
    $result = $api_instance->alertingprofilesCreate($createAlertingProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $createAlertingProfileCommand = WWW::OPenAPIClient::Object::CreateAlertingProfileCommand->new(); # CreateAlertingProfileCommand | 

eval {
    my $result = $api_instance->alertingprofilesCreate(createAlertingProfileCommand => $createAlertingProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
createAlertingProfileCommand =  # CreateAlertingProfileCommand |  (optional)

try:
    # Add Alerting profile
    api_response = api_instance.alertingprofiles_create(createAlertingProfileCommand=createAlertingProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesCreate: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let createAlertingProfileCommand = ; // CreateAlertingProfileCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesCreate(createAlertingProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAlertingProfileCommand

Responses


alertingprofilesDelete

Remove Alerting profiles by Id


/api/v1/alertingprofiles/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/alertingprofiles/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.alertingprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.alertingprofilesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesDelete: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.alertingprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
Integer *id = 56; //  (default to null)

// Remove Alerting profiles by Id
[apiInstance alertingprofilesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class alertingprofilesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Remove Alerting profiles by Id
                Object result = apiInstance.alertingprofilesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->alertingprofilesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->alertingprofilesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
id = 56 # Integer |  (default to null)

try:
    # Remove Alerting profiles by Id
    api_response = api_instance.alertingprofiles_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesDelete: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


alertingprofilesDetach

Detach alerting profile from project


/api/v1/alertingprofiles/detach

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/detach" \
 -d '{
  "alertingProfileId" : 6,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

        try {
            Object result = apiInstance.alertingprofilesDetach(attachDetachAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDetach");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = new AttachDetachAlertingProfileCommand(); // AttachDetachAlertingProfileCommand | 

try {
    final result = await api_instance.alertingprofilesDetach(attachDetachAlertingProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesDetach: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AttachDetachAlertingProfileCommand attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

        try {
            Object result = apiInstance.alertingprofilesDetach(attachDetachAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDetach");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
AttachDetachAlertingProfileCommand *attachDetachAlertingProfileCommand = ; //  (optional)

// Detach alerting profile from project
[apiInstance alertingprofilesDetachWith:attachDetachAlertingProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'attachDetachAlertingProfileCommand':  // {AttachDetachAlertingProfileCommand} 
};

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

namespace Example
{
    public class alertingprofilesDetachExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var attachDetachAlertingProfileCommand = new AttachDetachAlertingProfileCommand(); // AttachDetachAlertingProfileCommand |  (optional) 

            try {
                // Detach alerting profile from project
                Object result = apiInstance.alertingprofilesDetach(attachDetachAlertingProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesDetach: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand | 

try {
    $result = $api_instance->alertingprofilesDetach($attachDetachAlertingProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesDetach: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $attachDetachAlertingProfileCommand = WWW::OPenAPIClient::Object::AttachDetachAlertingProfileCommand->new(); # AttachDetachAlertingProfileCommand | 

eval {
    my $result = $api_instance->alertingprofilesDetach(attachDetachAlertingProfileCommand => $attachDetachAlertingProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesDetach: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
attachDetachAlertingProfileCommand =  # AttachDetachAlertingProfileCommand |  (optional)

try:
    # Detach alerting profile from project
    api_response = api_instance.alertingprofiles_detach(attachDetachAlertingProfileCommand=attachDetachAlertingProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesDetach: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let attachDetachAlertingProfileCommand = ; // AttachDetachAlertingProfileCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesDetach(attachDetachAlertingProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
attachDetachAlertingProfileCommand

Responses


alertingprofilesDropdown

Retrieve all Alerting profiles for organization


/api/v1/alertingprofiles/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/alertingprofiles/list?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[CommonDropdownDto] result = apiInstance.alertingprofilesDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.alertingprofilesDropdown(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesDropdown: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[CommonDropdownDto] result = apiInstance.alertingprofilesDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)

// Retrieve all Alerting profiles for organization
[apiInstance alertingprofilesDropdownWith:organizationId
    search:search
              completionHandler: ^(array[CommonDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'search': search_example // {String} 
};

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

namespace Example
{
    public class alertingprofilesDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // Retrieve all Alerting profiles for organization
                array[CommonDropdownDto] result = apiInstance.alertingprofilesDropdown(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$organizationId = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->alertingprofilesDropdown($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->alertingprofilesDropdown(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # Retrieve all Alerting profiles for organization
    api_response = api_instance.alertingprofiles_dropdown(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesDropdown: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesDropdown(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Search

Responses


alertingprofilesEdit

Update Alerting profile


/api/v1/alertingprofiles/edit

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/edit" \
 -d '{
  "slackConfigurationId" : 6,
  "reminder" : "",
  "name" : "name",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        UpdateAlertingProfileCommand updateAlertingProfileCommand = ; // UpdateAlertingProfileCommand | 

        try {
            ApiResponse result = apiInstance.alertingprofilesEdit(updateAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateAlertingProfileCommand updateAlertingProfileCommand = new UpdateAlertingProfileCommand(); // UpdateAlertingProfileCommand | 

try {
    final result = await api_instance.alertingprofilesEdit(updateAlertingProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesEdit: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        UpdateAlertingProfileCommand updateAlertingProfileCommand = ; // UpdateAlertingProfileCommand | 

        try {
            ApiResponse result = apiInstance.alertingprofilesEdit(updateAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
UpdateAlertingProfileCommand *updateAlertingProfileCommand = ; //  (optional)

// Update Alerting profile
[apiInstance alertingprofilesEditWith:updateAlertingProfileCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'updateAlertingProfileCommand':  // {UpdateAlertingProfileCommand} 
};

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

namespace Example
{
    public class alertingprofilesEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var updateAlertingProfileCommand = new UpdateAlertingProfileCommand(); // UpdateAlertingProfileCommand |  (optional) 

            try {
                // Update Alerting profile
                ApiResponse result = apiInstance.alertingprofilesEdit(updateAlertingProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$updateAlertingProfileCommand = ; // UpdateAlertingProfileCommand | 

try {
    $result = $api_instance->alertingprofilesEdit($updateAlertingProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $updateAlertingProfileCommand = WWW::OPenAPIClient::Object::UpdateAlertingProfileCommand->new(); # UpdateAlertingProfileCommand | 

eval {
    my $result = $api_instance->alertingprofilesEdit(updateAlertingProfileCommand => $updateAlertingProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
updateAlertingProfileCommand =  # UpdateAlertingProfileCommand |  (optional)

try:
    # Update Alerting profile
    api_response = api_instance.alertingprofiles_edit(updateAlertingProfileCommand=updateAlertingProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesEdit: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let updateAlertingProfileCommand = ; // UpdateAlertingProfileCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesEdit(updateAlertingProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateAlertingProfileCommand

Responses


alertingprofilesList

Retrieve all Alerting profiles


/api/v1/alertingprofiles

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/alertingprofiles?OrganizationId=56&DomainId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56&SearchId=searchId_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 
        String searchId = searchId_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AlertingProfilesList result = apiInstance.alertingprofilesList(organizationId, domainId, sortBy, sortDirection, search, id, searchId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final String searchId = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.alertingprofilesList(organizationId, domainId, sortBy, sortDirection, search, id, searchId, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesList: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 
        String searchId = searchId_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AlertingProfilesList result = apiInstance.alertingprofilesList(organizationId, domainId, sortBy, sortDirection, search, id, searchId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// Retrieve all Alerting profiles
[apiInstance alertingprofilesListWith:organizationId
    domainId:domainId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
    searchId:searchId
    limit:limit
    offset:offset
              completionHandler: ^(AlertingProfilesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'id': 56, // {Integer} 
  'searchId': searchId_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

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

namespace Example
{
    public class alertingprofilesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Retrieve all Alerting profiles
                AlertingProfilesList result = apiInstance.alertingprofilesList(organizationId, domainId, sortBy, sortDirection, search, id, searchId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$organizationId = 56; // Integer | 
$domainId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$id = 56; // Integer | 
$searchId = searchId_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->alertingprofilesList($organizationId, $domainId, $sortBy, $sortDirection, $search, $id, $searchId, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $organizationId = 56; # Integer | 
my $domainId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $id = 56; # Integer | 
my $searchId = searchId_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->alertingprofilesList(organizationId => $organizationId, domainId => $domainId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id, searchId => $searchId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
organizationId = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # Retrieve all Alerting profiles
    api_response = api_instance.alertingprofiles_list(organizationId=organizationId, domainId=domainId, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id, searchId=searchId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesList: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer
    let searchId = searchId_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesList(organizationId, domainId, sortBy, sortDirection, search, id, searchId, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
DomainId
Integer (int32)
SortBy
String
SortDirection
String
Search
Id
Integer (int32)
SearchId
String
Limit
Integer (int32)
Offset
Integer (int32)

Responses


alertingprofilesLockManager

Lock/Unlock Alerting profiles


/api/v1/alertingprofiles/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AlertingProfilesLockManagerCommand alertingProfilesLockManagerCommand = ; // AlertingProfilesLockManagerCommand | 

        try {
            Object result = apiInstance.alertingprofilesLockManager(alertingProfilesLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AlertingProfilesLockManagerCommand alertingProfilesLockManagerCommand = new AlertingProfilesLockManagerCommand(); // AlertingProfilesLockManagerCommand | 

try {
    final result = await api_instance.alertingprofilesLockManager(alertingProfilesLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesLockManager: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        AlertingProfilesLockManagerCommand alertingProfilesLockManagerCommand = ; // AlertingProfilesLockManagerCommand | 

        try {
            Object result = apiInstance.alertingprofilesLockManager(alertingProfilesLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
AlertingProfilesLockManagerCommand *alertingProfilesLockManagerCommand = ; //  (optional)

// Lock/Unlock Alerting profiles
[apiInstance alertingprofilesLockManagerWith:alertingProfilesLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'alertingProfilesLockManagerCommand':  // {AlertingProfilesLockManagerCommand} 
};

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

namespace Example
{
    public class alertingprofilesLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var alertingProfilesLockManagerCommand = new AlertingProfilesLockManagerCommand(); // AlertingProfilesLockManagerCommand |  (optional) 

            try {
                // Lock/Unlock Alerting profiles
                Object result = apiInstance.alertingprofilesLockManager(alertingProfilesLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$alertingProfilesLockManagerCommand = ; // AlertingProfilesLockManagerCommand | 

try {
    $result = $api_instance->alertingprofilesLockManager($alertingProfilesLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $alertingProfilesLockManagerCommand = WWW::OPenAPIClient::Object::AlertingProfilesLockManagerCommand->new(); # AlertingProfilesLockManagerCommand | 

eval {
    my $result = $api_instance->alertingprofilesLockManager(alertingProfilesLockManagerCommand => $alertingProfilesLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
alertingProfilesLockManagerCommand =  # AlertingProfilesLockManagerCommand |  (optional)

try:
    # Lock/Unlock Alerting profiles
    api_response = api_instance.alertingprofiles_lock_manager(alertingProfilesLockManagerCommand=alertingProfilesLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesLockManager: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let alertingProfilesLockManagerCommand = ; // AlertingProfilesLockManagerCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesLockManager(alertingProfilesLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
alertingProfilesLockManagerCommand

Responses


alertingprofilesVerify

Verify webhook endpoint


/api/v1/alertingprofiles/verifywebhook

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/alertingprofiles/verifywebhook" \
 -d '{
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AlertingProfilesApi;

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

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        VerifyWebhookCommand verifyWebhookCommand = ; // VerifyWebhookCommand | 

        try {
            Object result = apiInstance.alertingprofilesVerify(verifyWebhookCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesVerify");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VerifyWebhookCommand verifyWebhookCommand = new VerifyWebhookCommand(); // VerifyWebhookCommand | 

try {
    final result = await api_instance.alertingprofilesVerify(verifyWebhookCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->alertingprofilesVerify: $e\n');
}

import org.openapitools.client.api.AlertingProfilesApi;

public class AlertingProfilesApiExample {
    public static void main(String[] args) {
        AlertingProfilesApi apiInstance = new AlertingProfilesApi();
        VerifyWebhookCommand verifyWebhookCommand = ; // VerifyWebhookCommand | 

        try {
            Object result = apiInstance.alertingprofilesVerify(verifyWebhookCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AlertingProfilesApi#alertingprofilesVerify");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AlertingProfilesApi *apiInstance = [[AlertingProfilesApi alloc] init];
VerifyWebhookCommand *verifyWebhookCommand = ; //  (optional)

// Verify webhook endpoint
[apiInstance alertingprofilesVerifyWith:verifyWebhookCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AlertingProfilesApi()
var opts = {
  'verifyWebhookCommand':  // {VerifyWebhookCommand} 
};

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

namespace Example
{
    public class alertingprofilesVerifyExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AlertingProfilesApi();
            var verifyWebhookCommand = new VerifyWebhookCommand(); // VerifyWebhookCommand |  (optional) 

            try {
                // Verify webhook endpoint
                Object result = apiInstance.alertingprofilesVerify(verifyWebhookCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AlertingProfilesApi.alertingprofilesVerify: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AlertingProfilesApi();
$verifyWebhookCommand = ; // VerifyWebhookCommand | 

try {
    $result = $api_instance->alertingprofilesVerify($verifyWebhookCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AlertingProfilesApi->alertingprofilesVerify: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AlertingProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AlertingProfilesApi->new();
my $verifyWebhookCommand = WWW::OPenAPIClient::Object::VerifyWebhookCommand->new(); # VerifyWebhookCommand | 

eval {
    my $result = $api_instance->alertingprofilesVerify(verifyWebhookCommand => $verifyWebhookCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AlertingProfilesApi->alertingprofilesVerify: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AlertingProfilesApi()
verifyWebhookCommand =  # VerifyWebhookCommand |  (optional)

try:
    # Verify webhook endpoint
    api_response = api_instance.alertingprofiles_verify(verifyWebhookCommand=verifyWebhookCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AlertingProfilesApi->alertingprofilesVerify: %s\n" % e)
extern crate AlertingProfilesApi;

pub fn main() {
    let verifyWebhookCommand = ; // VerifyWebhookCommand

    let mut context = AlertingProfilesApi::Context::default();
    let result = client.alertingprofilesVerify(verifyWebhookCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
verifyWebhookCommand

Responses


AllowedHost

allowedhostCreate

Create access profile allowed host


/api/v1/allowedhost/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/allowedhost/create" \
 -d '{
  "ipAddress" : "ipAddress",
  "accessProfileId" : 0,
  "description" : "description",
  "maskBits" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AllowedHostApi;

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

public class AllowedHostApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AllowedHostApi apiInstance = new AllowedHostApi();
        CreateAllowedHostCommand createAllowedHostCommand = ; // CreateAllowedHostCommand | 

        try {
            ApiResponse result = apiInstance.allowedhostCreate(createAllowedHostCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAllowedHostCommand createAllowedHostCommand = new CreateAllowedHostCommand(); // CreateAllowedHostCommand | 

try {
    final result = await api_instance.allowedhostCreate(createAllowedHostCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->allowedhostCreate: $e\n');
}

import org.openapitools.client.api.AllowedHostApi;

public class AllowedHostApiExample {
    public static void main(String[] args) {
        AllowedHostApi apiInstance = new AllowedHostApi();
        CreateAllowedHostCommand createAllowedHostCommand = ; // CreateAllowedHostCommand | 

        try {
            ApiResponse result = apiInstance.allowedhostCreate(createAllowedHostCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AllowedHostApi *apiInstance = [[AllowedHostApi alloc] init];
CreateAllowedHostCommand *createAllowedHostCommand = ; //  (optional)

// Create access profile allowed host
[apiInstance allowedhostCreateWith:createAllowedHostCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AllowedHostApi()
var opts = {
  'createAllowedHostCommand':  // {CreateAllowedHostCommand} 
};

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

namespace Example
{
    public class allowedhostCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AllowedHostApi();
            var createAllowedHostCommand = new CreateAllowedHostCommand(); // CreateAllowedHostCommand |  (optional) 

            try {
                // Create access profile allowed host
                ApiResponse result = apiInstance.allowedhostCreate(createAllowedHostCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AllowedHostApi.allowedhostCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AllowedHostApi();
$createAllowedHostCommand = ; // CreateAllowedHostCommand | 

try {
    $result = $api_instance->allowedhostCreate($createAllowedHostCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllowedHostApi->allowedhostCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AllowedHostApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AllowedHostApi->new();
my $createAllowedHostCommand = WWW::OPenAPIClient::Object::CreateAllowedHostCommand->new(); # CreateAllowedHostCommand | 

eval {
    my $result = $api_instance->allowedhostCreate(createAllowedHostCommand => $createAllowedHostCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllowedHostApi->allowedhostCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AllowedHostApi()
createAllowedHostCommand =  # CreateAllowedHostCommand |  (optional)

try:
    # Create access profile allowed host
    api_response = api_instance.allowedhost_create(createAllowedHostCommand=createAllowedHostCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllowedHostApi->allowedhostCreate: %s\n" % e)
extern crate AllowedHostApi;

pub fn main() {
    let createAllowedHostCommand = ; // CreateAllowedHostCommand

    let mut context = AllowedHostApi::Context::default();
    let result = client.allowedhostCreate(createAllowedHostCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAllowedHostCommand

Responses


allowedhostDelete

Delete access profile allowed host


/api/v1/allowedhost/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/allowedhost/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AllowedHostApi;

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

public class AllowedHostApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.allowedhostDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.allowedhostDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->allowedhostDelete: $e\n');
}

import org.openapitools.client.api.AllowedHostApi;

public class AllowedHostApiExample {
    public static void main(String[] args) {
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.allowedhostDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AllowedHostApi *apiInstance = [[AllowedHostApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete access profile allowed host
[apiInstance allowedhostDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AllowedHostApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class allowedhostDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AllowedHostApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete access profile allowed host
                Object result = apiInstance.allowedhostDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AllowedHostApi.allowedhostDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AllowedHostApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->allowedhostDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllowedHostApi->allowedhostDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AllowedHostApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AllowedHostApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->allowedhostDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllowedHostApi->allowedhostDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AllowedHostApi()
id = 56 # Integer |  (default to null)

try:
    # Delete access profile allowed host
    api_response = api_instance.allowedhost_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllowedHostApi->allowedhostDelete: %s\n" % e)
extern crate AllowedHostApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = AllowedHostApi::Context::default();
    let result = client.allowedhostDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


allowedhostEdit

Edit access profile allowed host


/api/v1/allowedhost/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/allowedhost/edit/{id}" \
 -d '{
  "ipAddress" : "ipAddress",
  "description" : "description",
  "maskBits" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AllowedHostApi;

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

public class AllowedHostApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer id = 56; // Integer | 
        EditAllowedHostDto editAllowedHostDto = ; // EditAllowedHostDto | 

        try {
            Object result = apiInstance.allowedhostEdit(id, editAllowedHostDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final EditAllowedHostDto editAllowedHostDto = new EditAllowedHostDto(); // EditAllowedHostDto | 

try {
    final result = await api_instance.allowedhostEdit(id, editAllowedHostDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->allowedhostEdit: $e\n');
}

import org.openapitools.client.api.AllowedHostApi;

public class AllowedHostApiExample {
    public static void main(String[] args) {
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer id = 56; // Integer | 
        EditAllowedHostDto editAllowedHostDto = ; // EditAllowedHostDto | 

        try {
            Object result = apiInstance.allowedhostEdit(id, editAllowedHostDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AllowedHostApi *apiInstance = [[AllowedHostApi alloc] init];
Integer *id = 56; //  (default to null)
EditAllowedHostDto *editAllowedHostDto = ; //  (optional)

// Edit access profile allowed host
[apiInstance allowedhostEditWith:id
    editAllowedHostDto:editAllowedHostDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AllowedHostApi()
var id = 56; // {Integer} 
var opts = {
  'editAllowedHostDto':  // {EditAllowedHostDto} 
};

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

namespace Example
{
    public class allowedhostEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AllowedHostApi();
            var id = 56;  // Integer |  (default to null)
            var editAllowedHostDto = new EditAllowedHostDto(); // EditAllowedHostDto |  (optional) 

            try {
                // Edit access profile allowed host
                Object result = apiInstance.allowedhostEdit(id, editAllowedHostDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AllowedHostApi.allowedhostEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AllowedHostApi();
$id = 56; // Integer | 
$editAllowedHostDto = ; // EditAllowedHostDto | 

try {
    $result = $api_instance->allowedhostEdit($id, $editAllowedHostDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllowedHostApi->allowedhostEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AllowedHostApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AllowedHostApi->new();
my $id = 56; # Integer | 
my $editAllowedHostDto = WWW::OPenAPIClient::Object::EditAllowedHostDto->new(); # EditAllowedHostDto | 

eval {
    my $result = $api_instance->allowedhostEdit(id => $id, editAllowedHostDto => $editAllowedHostDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllowedHostApi->allowedhostEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AllowedHostApi()
id = 56 # Integer |  (default to null)
editAllowedHostDto =  # EditAllowedHostDto |  (optional)

try:
    # Edit access profile allowed host
    api_response = api_instance.allowedhost_edit(id, editAllowedHostDto=editAllowedHostDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllowedHostApi->allowedhostEdit: %s\n" % e)
extern crate AllowedHostApi;

pub fn main() {
    let id = 56; // Integer
    let editAllowedHostDto = ; // EditAllowedHostDto

    let mut context = AllowedHostApi::Context::default();
    let result = client.allowedhostEdit(id, editAllowedHostDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
editAllowedHostDto

Responses


allowedhostList

List allowed hosts by access profile id


/api/v1/allowedhost/list/{accessProfileId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/allowedhost/list/{accessProfileId}?Offset=56&Limit=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AllowedHostApi;

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

public class AllowedHostApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer accessProfileId = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        String search = search_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 

        try {
            AllowedHostList result = apiInstance.allowedhostList(accessProfileId, offset, limit, search, sortBy, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accessProfileId = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final String search = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 

try {
    final result = await api_instance.allowedhostList(accessProfileId, offset, limit, search, sortBy, sortDirection);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->allowedhostList: $e\n');
}

import org.openapitools.client.api.AllowedHostApi;

public class AllowedHostApiExample {
    public static void main(String[] args) {
        AllowedHostApi apiInstance = new AllowedHostApi();
        Integer accessProfileId = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        String search = search_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 

        try {
            AllowedHostList result = apiInstance.allowedhostList(accessProfileId, offset, limit, search, sortBy, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AllowedHostApi#allowedhostList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AllowedHostApi *apiInstance = [[AllowedHostApi alloc] init];
Integer *accessProfileId = 56; //  (default to null)
Integer *offset = 56; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)

// List allowed hosts by access profile id
[apiInstance allowedhostListWith:accessProfileId
    offset:offset
    limit:limit
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
              completionHandler: ^(AllowedHostList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AllowedHostApi()
var accessProfileId = 56; // {Integer} 
var opts = {
  'offset': 56, // {Integer} 
  'limit': 56, // {Integer} 
  'search': search_example, // {String} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.allowedhostList(accessProfileId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class allowedhostListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AllowedHostApi();
            var accessProfileId = 56;  // Integer |  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)

            try {
                // List allowed hosts by access profile id
                AllowedHostList result = apiInstance.allowedhostList(accessProfileId, offset, limit, search, sortBy, sortDirection);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AllowedHostApi.allowedhostList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AllowedHostApi();
$accessProfileId = 56; // Integer | 
$offset = 56; // Integer | 
$limit = 56; // Integer | 
$search = search_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 

try {
    $result = $api_instance->allowedhostList($accessProfileId, $offset, $limit, $search, $sortBy, $sortDirection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AllowedHostApi->allowedhostList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AllowedHostApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AllowedHostApi->new();
my $accessProfileId = 56; # Integer | 
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 
my $search = search_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 

eval {
    my $result = $api_instance->allowedhostList(accessProfileId => $accessProfileId, offset => $offset, limit => $limit, search => $search, sortBy => $sortBy, sortDirection => $sortDirection);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AllowedHostApi->allowedhostList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AllowedHostApi()
accessProfileId = 56 # Integer |  (default to null)
offset = 56 # Integer |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)

try:
    # List allowed hosts by access profile id
    api_response = api_instance.allowedhost_list(accessProfileId, offset=offset, limit=limit, search=search, sortBy=sortBy, sortDirection=sortDirection)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AllowedHostApi->allowedhostList: %s\n" % e)
extern crate AllowedHostApi;

pub fn main() {
    let accessProfileId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String

    let mut context = AllowedHostApi::Context::default();
    let result = client.allowedhostList(accessProfileId, offset, limit, search, sortBy, sortDirection, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
accessProfileId*
Integer (int32)
Required
Query parameters
Name Description
Offset
Integer (int32)
Limit
Integer (int32)
Search
SortBy
String
SortDirection
String

Responses


AppRepositories

repositoryAvailableList

Retrieve available repositories


/api/v1/repository/available

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/repository/available?Offset=56&Limit=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=id_example&OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String id = id_example; // String | Search by id substring
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AppRepositoryList result = apiInstance.repositoryAvailableList(offset, limit, sortBy, sortDirection, search, id, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryAvailableList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer limit = new Integer(); // Integer | Page size
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String id = new String(); // String | Search by id substring
final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.repositoryAvailableList(offset, limit, sortBy, sortDirection, search, id, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryAvailableList: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String id = id_example; // String | Search by id substring
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AppRepositoryList result = apiInstance.repositoryAvailableList(offset, limit, sortBy, sortDirection, search, id, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryAvailableList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *id = id_example; // Search by id substring (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Retrieve available repositories
[apiInstance repositoryAvailableListWith:offset
    limit:limit
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
    organizationId:organizationId
              completionHandler: ^(AppRepositoryList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'offset': 56, // {Integer} Number of items to skip
  'limit': 56, // {Integer} Page size
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'id': id_example, // {String} Search by id substring
  'organizationId': 56 // {Integer} Optional organization id filter
};

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

namespace Example
{
    public class repositoryAvailableListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var id = id_example;  // String | Search by id substring (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve available repositories
                AppRepositoryList result = apiInstance.repositoryAvailableList(offset, limit, sortBy, sortDirection, search, id, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryAvailableList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$offset = 56; // Integer | Number of items to skip
$limit = 56; // Integer | Page size
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$id = id_example; // String | Search by id substring
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->repositoryAvailableList($offset, $limit, $sortBy, $sortDirection, $search, $id, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryAvailableList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $offset = 56; # Integer | Number of items to skip
my $limit = 56; # Integer | Page size
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $id = id_example; # String | Search by id substring
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->repositoryAvailableList(offset => $offset, limit => $limit, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryAvailableList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
offset = 56 # Integer | Number of items to skip (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
id = id_example # String | Search by id substring (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve available repositories
    api_response = api_instance.repository_available_list(offset=offset, limit=limit, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryAvailableList: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = id_example; // String
    let organizationId = 56; // Integer

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryAvailableList(offset, limit, sortBy, sortDirection, search, id, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Offset
Integer (int32)
Number of items to skip
Limit
Integer (int32)
Page size
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Id
String
Search by id substring
OrganizationId
Integer (int32)
Optional organization id filter

Responses


repositoryBind

Bind repo to organization


/api/v1/repository/bind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/repository/bind" \
 -d '{
  "organizationId" : 6,
  "appRepoIds" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        BindAppRepositoryCommand bindAppRepositoryCommand = ; // BindAppRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryBind(bindAppRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryBind");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BindAppRepositoryCommand bindAppRepositoryCommand = new BindAppRepositoryCommand(); // BindAppRepositoryCommand | 

try {
    final result = await api_instance.repositoryBind(bindAppRepositoryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryBind: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        BindAppRepositoryCommand bindAppRepositoryCommand = ; // BindAppRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryBind(bindAppRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryBind");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
BindAppRepositoryCommand *bindAppRepositoryCommand = ; //  (optional)

// Bind repo to organization
[apiInstance repositoryBindWith:bindAppRepositoryCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'bindAppRepositoryCommand':  // {BindAppRepositoryCommand} 
};

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

namespace Example
{
    public class repositoryBindExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var bindAppRepositoryCommand = new BindAppRepositoryCommand(); // BindAppRepositoryCommand |  (optional) 

            try {
                // Bind repo to organization
                Object result = apiInstance.repositoryBind(bindAppRepositoryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryBind: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$bindAppRepositoryCommand = ; // BindAppRepositoryCommand | 

try {
    $result = $api_instance->repositoryBind($bindAppRepositoryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryBind: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $bindAppRepositoryCommand = WWW::OPenAPIClient::Object::BindAppRepositoryCommand->new(); # BindAppRepositoryCommand | 

eval {
    my $result = $api_instance->repositoryBind(bindAppRepositoryCommand => $bindAppRepositoryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryBind: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
bindAppRepositoryCommand =  # BindAppRepositoryCommand |  (optional)

try:
    # Bind repo to organization
    api_response = api_instance.repository_bind(bindAppRepositoryCommand=bindAppRepositoryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryBind: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let bindAppRepositoryCommand = ; // BindAppRepositoryCommand

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryBind(bindAppRepositoryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bindAppRepositoryCommand

Responses


repositoryDelete

Unbind repo from organization


/api/v1/repository/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/repository/delete" \
 -d '{
  "appRepoId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        DeleteRepositoryCommand deleteRepositoryCommand = ; // DeleteRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryDelete(deleteRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteRepositoryCommand deleteRepositoryCommand = new DeleteRepositoryCommand(); // DeleteRepositoryCommand | 

try {
    final result = await api_instance.repositoryDelete(deleteRepositoryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryDelete: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        DeleteRepositoryCommand deleteRepositoryCommand = ; // DeleteRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryDelete(deleteRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
DeleteRepositoryCommand *deleteRepositoryCommand = ; //  (optional)

// Unbind repo from organization
[apiInstance repositoryDeleteWith:deleteRepositoryCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'deleteRepositoryCommand':  // {DeleteRepositoryCommand} 
};

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

namespace Example
{
    public class repositoryDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var deleteRepositoryCommand = new DeleteRepositoryCommand(); // DeleteRepositoryCommand |  (optional) 

            try {
                // Unbind repo from organization
                Object result = apiInstance.repositoryDelete(deleteRepositoryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$deleteRepositoryCommand = ; // DeleteRepositoryCommand | 

try {
    $result = $api_instance->repositoryDelete($deleteRepositoryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $deleteRepositoryCommand = WWW::OPenAPIClient::Object::DeleteRepositoryCommand->new(); # DeleteRepositoryCommand | 

eval {
    my $result = $api_instance->repositoryDelete(deleteRepositoryCommand => $deleteRepositoryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
deleteRepositoryCommand =  # DeleteRepositoryCommand |  (optional)

try:
    # Unbind repo from organization
    api_response = api_instance.repository_delete(deleteRepositoryCommand=deleteRepositoryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryDelete: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let deleteRepositoryCommand = ; // DeleteRepositoryCommand

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryDelete(deleteRepositoryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteRepositoryCommand

Responses


repositoryImport

Import repo to artifact


/api/v1/repository/import

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/repository/import" \
 -d '{
  "organizationId" : "",
  "password" : "password",
  "name" : "name",
  "url" : "url",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        ImportRepoCommand importRepoCommand = ; // ImportRepoCommand | 

        try {
            Object result = apiInstance.repositoryImport(importRepoCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryImport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportRepoCommand importRepoCommand = new ImportRepoCommand(); // ImportRepoCommand | 

try {
    final result = await api_instance.repositoryImport(importRepoCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryImport: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        ImportRepoCommand importRepoCommand = ; // ImportRepoCommand | 

        try {
            Object result = apiInstance.repositoryImport(importRepoCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryImport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
ImportRepoCommand *importRepoCommand = ; //  (optional)

// Import repo to artifact
[apiInstance repositoryImportWith:importRepoCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'importRepoCommand':  // {ImportRepoCommand} 
};

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

namespace Example
{
    public class repositoryImportExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var importRepoCommand = new ImportRepoCommand(); // ImportRepoCommand |  (optional) 

            try {
                // Import repo to artifact
                Object result = apiInstance.repositoryImport(importRepoCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryImport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$importRepoCommand = ; // ImportRepoCommand | 

try {
    $result = $api_instance->repositoryImport($importRepoCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryImport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $importRepoCommand = WWW::OPenAPIClient::Object::ImportRepoCommand->new(); # ImportRepoCommand | 

eval {
    my $result = $api_instance->repositoryImport(importRepoCommand => $importRepoCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryImport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
importRepoCommand =  # ImportRepoCommand |  (optional)

try:
    # Import repo to artifact
    api_response = api_instance.repository_import(importRepoCommand=importRepoCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryImport: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let importRepoCommand = ; // ImportRepoCommand

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryImport(importRepoCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importRepoCommand

Responses


repositoryList

Retrieve repo names

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/repository/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/repository/list?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            array['String'] result = apiInstance.repositoryList(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.repositoryList(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryList: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            array['String'] result = apiInstance.repositoryList(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Retrieve repo names
[apiInstance repositoryListWith:organizationId
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'organizationId': 56 // {Integer} Optional organization id filter
};

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

namespace Example
{
    public class repositoryListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve repo names
                array['String'] result = apiInstance.repositoryList(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->repositoryList($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->repositoryList(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve repo names
    api_response = api_instance.repository_list(organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryList: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryList(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter

Responses


repositoryUnbind

Unbind repo from organization


/api/v1/repository/unbind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/repository/unbind" \
 -d '{
  "organizationId" : 6,
  "appRepoIds" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        UnbindAppRepositoryCommand unbindAppRepositoryCommand = ; // UnbindAppRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryUnbind(unbindAppRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryUnbind");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UnbindAppRepositoryCommand unbindAppRepositoryCommand = new UnbindAppRepositoryCommand(); // UnbindAppRepositoryCommand | 

try {
    final result = await api_instance.repositoryUnbind(unbindAppRepositoryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryUnbind: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        UnbindAppRepositoryCommand unbindAppRepositoryCommand = ; // UnbindAppRepositoryCommand | 

        try {
            Object result = apiInstance.repositoryUnbind(unbindAppRepositoryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryUnbind");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
UnbindAppRepositoryCommand *unbindAppRepositoryCommand = ; //  (optional)

// Unbind repo from organization
[apiInstance repositoryUnbindWith:unbindAppRepositoryCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'unbindAppRepositoryCommand':  // {UnbindAppRepositoryCommand} 
};

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

namespace Example
{
    public class repositoryUnbindExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var unbindAppRepositoryCommand = new UnbindAppRepositoryCommand(); // UnbindAppRepositoryCommand |  (optional) 

            try {
                // Unbind repo from organization
                Object result = apiInstance.repositoryUnbind(unbindAppRepositoryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryUnbind: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$unbindAppRepositoryCommand = ; // UnbindAppRepositoryCommand | 

try {
    $result = $api_instance->repositoryUnbind($unbindAppRepositoryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryUnbind: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $unbindAppRepositoryCommand = WWW::OPenAPIClient::Object::UnbindAppRepositoryCommand->new(); # UnbindAppRepositoryCommand | 

eval {
    my $result = $api_instance->repositoryUnbind(unbindAppRepositoryCommand => $unbindAppRepositoryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryUnbind: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
unbindAppRepositoryCommand =  # UnbindAppRepositoryCommand |  (optional)

try:
    # Unbind repo from organization
    api_response = api_instance.repository_unbind(unbindAppRepositoryCommand=unbindAppRepositoryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryUnbind: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let unbindAppRepositoryCommand = ; // UnbindAppRepositoryCommand

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryUnbind(unbindAppRepositoryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unbindAppRepositoryCommand

Responses


repositoryUpdatePassword

Update repo password


/api/v1/repository/update-password

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/repository/update-password" \
 -d '{
  "organizationId" : 6,
  "password" : "password",
  "appRepoId" : 0,
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AppRepositoriesApi;

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

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        UpdateRepoPasswordCommand updateRepoPasswordCommand = ; // UpdateRepoPasswordCommand | 

        try {
            Object result = apiInstance.repositoryUpdatePassword(updateRepoPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryUpdatePassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateRepoPasswordCommand updateRepoPasswordCommand = new UpdateRepoPasswordCommand(); // UpdateRepoPasswordCommand | 

try {
    final result = await api_instance.repositoryUpdatePassword(updateRepoPasswordCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->repositoryUpdatePassword: $e\n');
}

import org.openapitools.client.api.AppRepositoriesApi;

public class AppRepositoriesApiExample {
    public static void main(String[] args) {
        AppRepositoriesApi apiInstance = new AppRepositoriesApi();
        UpdateRepoPasswordCommand updateRepoPasswordCommand = ; // UpdateRepoPasswordCommand | 

        try {
            Object result = apiInstance.repositoryUpdatePassword(updateRepoPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AppRepositoriesApi#repositoryUpdatePassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AppRepositoriesApi *apiInstance = [[AppRepositoriesApi alloc] init];
UpdateRepoPasswordCommand *updateRepoPasswordCommand = ; //  (optional)

// Update repo password
[apiInstance repositoryUpdatePasswordWith:updateRepoPasswordCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AppRepositoriesApi()
var opts = {
  'updateRepoPasswordCommand':  // {UpdateRepoPasswordCommand} 
};

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

namespace Example
{
    public class repositoryUpdatePasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AppRepositoriesApi();
            var updateRepoPasswordCommand = new UpdateRepoPasswordCommand(); // UpdateRepoPasswordCommand |  (optional) 

            try {
                // Update repo password
                Object result = apiInstance.repositoryUpdatePassword(updateRepoPasswordCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AppRepositoriesApi.repositoryUpdatePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AppRepositoriesApi();
$updateRepoPasswordCommand = ; // UpdateRepoPasswordCommand | 

try {
    $result = $api_instance->repositoryUpdatePassword($updateRepoPasswordCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AppRepositoriesApi->repositoryUpdatePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AppRepositoriesApi->new();
my $updateRepoPasswordCommand = WWW::OPenAPIClient::Object::UpdateRepoPasswordCommand->new(); # UpdateRepoPasswordCommand | 

eval {
    my $result = $api_instance->repositoryUpdatePassword(updateRepoPasswordCommand => $updateRepoPasswordCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AppRepositoriesApi->repositoryUpdatePassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AppRepositoriesApi()
updateRepoPasswordCommand =  # UpdateRepoPasswordCommand |  (optional)

try:
    # Update repo password
    api_response = api_instance.repository_update_password(updateRepoPasswordCommand=updateRepoPasswordCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AppRepositoriesApi->repositoryUpdatePassword: %s\n" % e)
extern crate AppRepositoriesApi;

pub fn main() {
    let updateRepoPasswordCommand = ; // UpdateRepoPasswordCommand

    let mut context = AppRepositoriesApi::Context::default();
    let result = client.repositoryUpdatePassword(updateRepoPasswordCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateRepoPasswordCommand

Responses


AuthManagement

authForgotPassword

Generate reset password token if you forgot password


/api/v1/auth/forgotpassword

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/forgotpassword" \
 -d '{
  "domainName" : "domainName",
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        ForgotPasswordCommand forgotPasswordCommand = ; // ForgotPasswordCommand | 

        try {
            Object result = apiInstance.authForgotPassword(forgotPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authForgotPassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ForgotPasswordCommand forgotPasswordCommand = new ForgotPasswordCommand(); // ForgotPasswordCommand | 

try {
    final result = await api_instance.authForgotPassword(forgotPasswordCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authForgotPassword: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        ForgotPasswordCommand forgotPasswordCommand = ; // ForgotPasswordCommand | 

        try {
            Object result = apiInstance.authForgotPassword(forgotPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authForgotPassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
ForgotPasswordCommand *forgotPasswordCommand = ; //  (optional)

// Generate reset password token if you forgot password
[apiInstance authForgotPasswordWith:forgotPasswordCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'forgotPasswordCommand':  // {ForgotPasswordCommand} 
};

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

namespace Example
{
    public class authForgotPasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var forgotPasswordCommand = new ForgotPasswordCommand(); // ForgotPasswordCommand |  (optional) 

            try {
                // Generate reset password token if you forgot password
                Object result = apiInstance.authForgotPassword(forgotPasswordCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authForgotPassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$forgotPasswordCommand = ; // ForgotPasswordCommand | 

try {
    $result = $api_instance->authForgotPassword($forgotPasswordCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authForgotPassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $forgotPasswordCommand = WWW::OPenAPIClient::Object::ForgotPasswordCommand->new(); # ForgotPasswordCommand | 

eval {
    my $result = $api_instance->authForgotPassword(forgotPasswordCommand => $forgotPasswordCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authForgotPassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
forgotPasswordCommand =  # ForgotPasswordCommand |  (optional)

try:
    # Generate reset password token if you forgot password
    api_response = api_instance.auth_forgot_password(forgotPasswordCommand=forgotPasswordCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authForgotPassword: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let forgotPasswordCommand = ; // ForgotPasswordCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authForgotPassword(forgotPasswordCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
forgotPasswordCommand

Responses


authLogin

Login to API


/api/v1/auth/login

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/login" \
 -d '{
  "mode" : "mode",
  "password" : "password",
  "secretKey" : "secretKey",
  "accessKey" : "accessKey",
  "domainName" : "domainName",
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        LoginCommand loginCommand = ; // LoginCommand | 

        try {
            GetToken result = apiInstance.authLogin(loginCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authLogin");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LoginCommand loginCommand = new LoginCommand(); // LoginCommand | 

try {
    final result = await api_instance.authLogin(loginCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authLogin: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        LoginCommand loginCommand = ; // LoginCommand | 

        try {
            GetToken result = apiInstance.authLogin(loginCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authLogin");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
LoginCommand *loginCommand = ; //  (optional)

// Login to API
[apiInstance authLoginWith:loginCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'loginCommand':  // {LoginCommand} 
};

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

namespace Example
{
    public class authLoginExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var loginCommand = new LoginCommand(); // LoginCommand |  (optional) 

            try {
                // Login to API
                GetToken result = apiInstance.authLogin(loginCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authLogin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$loginCommand = ; // LoginCommand | 

try {
    $result = $api_instance->authLogin($loginCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authLogin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $loginCommand = WWW::OPenAPIClient::Object::LoginCommand->new(); # LoginCommand | 

eval {
    my $result = $api_instance->authLogin(loginCommand => $loginCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authLogin: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
loginCommand =  # LoginCommand |  (optional)

try:
    # Login to API
    api_response = api_instance.auth_login(loginCommand=loginCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authLogin: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let loginCommand = ; // LoginCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authLogin(loginCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
loginCommand

Responses


authRefresh

Refresh bearer token that generated automatically by API


/api/v1/auth/refresh

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/refresh" \
 -d '{
  "token" : "token",
  "refreshToken" : "refreshToken"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        RefreshTokenCommand refreshTokenCommand = ; // RefreshTokenCommand | 

        try {
            GetToken result = apiInstance.authRefresh(refreshTokenCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authRefresh");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RefreshTokenCommand refreshTokenCommand = new RefreshTokenCommand(); // RefreshTokenCommand | 

try {
    final result = await api_instance.authRefresh(refreshTokenCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authRefresh: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        RefreshTokenCommand refreshTokenCommand = ; // RefreshTokenCommand | 

        try {
            GetToken result = apiInstance.authRefresh(refreshTokenCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authRefresh");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
RefreshTokenCommand *refreshTokenCommand = ; //  (optional)

// Refresh bearer token that generated automatically by API
[apiInstance authRefreshWith:refreshTokenCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'refreshTokenCommand':  // {RefreshTokenCommand} 
};

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

namespace Example
{
    public class authRefreshExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var refreshTokenCommand = new RefreshTokenCommand(); // RefreshTokenCommand |  (optional) 

            try {
                // Refresh bearer token that generated automatically by API
                GetToken result = apiInstance.authRefresh(refreshTokenCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authRefresh: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$refreshTokenCommand = ; // RefreshTokenCommand | 

try {
    $result = $api_instance->authRefresh($refreshTokenCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authRefresh: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $refreshTokenCommand = WWW::OPenAPIClient::Object::RefreshTokenCommand->new(); # RefreshTokenCommand | 

eval {
    my $result = $api_instance->authRefresh(refreshTokenCommand => $refreshTokenCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authRefresh: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
refreshTokenCommand =  # RefreshTokenCommand |  (optional)

try:
    # Refresh bearer token that generated automatically by API
    api_response = api_instance.auth_refresh(refreshTokenCommand=refreshTokenCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authRefresh: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let refreshTokenCommand = ; // RefreshTokenCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authRefresh(refreshTokenCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
refreshTokenCommand

Responses


authResetPassword

Reset password


/api/v1/auth/resetpassword

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/resetpassword" \
 -d '{
  "domainName" : "domainName",
  "newPassword" : "newPassword",
  "email" : "email",
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        ResetPasswordCommand resetPasswordCommand = ; // ResetPasswordCommand | 

        try {
            Object result = apiInstance.authResetPassword(resetPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authResetPassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ResetPasswordCommand resetPasswordCommand = new ResetPasswordCommand(); // ResetPasswordCommand | 

try {
    final result = await api_instance.authResetPassword(resetPasswordCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authResetPassword: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        ResetPasswordCommand resetPasswordCommand = ; // ResetPasswordCommand | 

        try {
            Object result = apiInstance.authResetPassword(resetPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authResetPassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
ResetPasswordCommand *resetPasswordCommand = ; //  (optional)

// Reset password
[apiInstance authResetPasswordWith:resetPasswordCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'resetPasswordCommand':  // {ResetPasswordCommand} 
};

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

namespace Example
{
    public class authResetPasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var resetPasswordCommand = new ResetPasswordCommand(); // ResetPasswordCommand |  (optional) 

            try {
                // Reset password
                Object result = apiInstance.authResetPassword(resetPasswordCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authResetPassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$resetPasswordCommand = ; // ResetPasswordCommand | 

try {
    $result = $api_instance->authResetPassword($resetPasswordCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authResetPassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $resetPasswordCommand = WWW::OPenAPIClient::Object::ResetPasswordCommand->new(); # ResetPasswordCommand | 

eval {
    my $result = $api_instance->authResetPassword(resetPasswordCommand => $resetPasswordCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authResetPassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
resetPasswordCommand =  # ResetPasswordCommand |  (optional)

try:
    # Reset password
    api_response = api_instance.auth_reset_password(resetPasswordCommand=resetPasswordCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authResetPassword: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let resetPasswordCommand = ; // ResetPasswordCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authResetPassword(resetPasswordCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
resetPasswordCommand

Responses


authSsoCallbackPost

Handle SSO callback from identity provider (POST with body)


/api/v1/auth/sso/callback

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/sso/callback" \
 -d '{
  "code" : "code",
  "state" : "state"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        SsoCallbackCommand ssoCallbackCommand = ; // SsoCallbackCommand | 

        try {
            GetToken result = apiInstance.authSsoCallbackPost(ssoCallbackCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authSsoCallbackPost");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SsoCallbackCommand ssoCallbackCommand = new SsoCallbackCommand(); // SsoCallbackCommand | 

try {
    final result = await api_instance.authSsoCallbackPost(ssoCallbackCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authSsoCallbackPost: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        SsoCallbackCommand ssoCallbackCommand = ; // SsoCallbackCommand | 

        try {
            GetToken result = apiInstance.authSsoCallbackPost(ssoCallbackCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authSsoCallbackPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
SsoCallbackCommand *ssoCallbackCommand = ; // 

// Handle SSO callback from identity provider (POST with body)
[apiInstance authSsoCallbackPostWith:ssoCallbackCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var ssoCallbackCommand = ; // {SsoCallbackCommand} 

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

namespace Example
{
    public class authSsoCallbackPostExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var ssoCallbackCommand = new SsoCallbackCommand(); // SsoCallbackCommand | 

            try {
                // Handle SSO callback from identity provider (POST with body)
                GetToken result = apiInstance.authSsoCallbackPost(ssoCallbackCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authSsoCallbackPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$ssoCallbackCommand = ; // SsoCallbackCommand | 

try {
    $result = $api_instance->authSsoCallbackPost($ssoCallbackCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authSsoCallbackPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $ssoCallbackCommand = WWW::OPenAPIClient::Object::SsoCallbackCommand->new(); # SsoCallbackCommand | 

eval {
    my $result = $api_instance->authSsoCallbackPost(ssoCallbackCommand => $ssoCallbackCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authSsoCallbackPost: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
ssoCallbackCommand =  # SsoCallbackCommand | 

try:
    # Handle SSO callback from identity provider (POST with body)
    api_response = api_instance.auth_sso_callback_post(ssoCallbackCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authSsoCallbackPost: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let ssoCallbackCommand = ; // SsoCallbackCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authSsoCallbackPost(ssoCallbackCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ssoCallbackCommand *

Responses


authSsoInit

Initiate SSO login flow

Initiates an OIDC SSO login flow for the specified domain. You can optionally include uiRedirectHost in the request body to override the redirect URI for the authorization request and token exchange. Only loopback addresses (localhost or 127.0.0.1) are accepted. Use host or host:port format without a protocol or path (for example, localhost:4200). The value must exactly match an entry in AllowedSsoRedirectHosts, including the port when configured; an empty list disables this override. When set and allowed, the API uses http://host:port/sso-complete as the redirect URI. Register that URI in your identity provider before you start the flow.


/api/v1/auth/sso/init

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/auth/sso/init" \
 -d '{
  "uiRedirectHost" : "uiRedirectHost",
  "domainName" : "domainName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        SsoInitCommand ssoInitCommand = ; // SsoInitCommand | 

        try {
            SsoInitResult result = apiInstance.authSsoInit(ssoInitCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authSsoInit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SsoInitCommand ssoInitCommand = new SsoInitCommand(); // SsoInitCommand | 

try {
    final result = await api_instance.authSsoInit(ssoInitCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->authSsoInit: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        SsoInitCommand ssoInitCommand = ; // SsoInitCommand | 

        try {
            SsoInitResult result = apiInstance.authSsoInit(ssoInitCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#authSsoInit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
SsoInitCommand *ssoInitCommand = ; // 

// Initiate SSO login flow
[apiInstance authSsoInitWith:ssoInitCommand
              completionHandler: ^(SsoInitResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var ssoInitCommand = ; // {SsoInitCommand} 

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

namespace Example
{
    public class authSsoInitExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var ssoInitCommand = new SsoInitCommand(); // SsoInitCommand | 

            try {
                // Initiate SSO login flow
                SsoInitResult result = apiInstance.authSsoInit(ssoInitCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.authSsoInit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$ssoInitCommand = ; // SsoInitCommand | 

try {
    $result = $api_instance->authSsoInit($ssoInitCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->authSsoInit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $ssoInitCommand = WWW::OPenAPIClient::Object::SsoInitCommand->new(); # SsoInitCommand | 

eval {
    my $result = $api_instance->authSsoInit(ssoInitCommand => $ssoInitCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->authSsoInit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
ssoInitCommand =  # SsoInitCommand | 

try:
    # Initiate SSO login flow
    api_response = api_instance.auth_sso_init(ssoInitCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->authSsoInit: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let ssoInitCommand = ; // SsoInitCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.authSsoInit(ssoInitCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ssoInitCommand *

Responses


twoFactorAuthComplete

Ensure recovery codes saved


/api/v1/two-factor-auth/complete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/complete" \
 -d '{
  "data" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        EnsureCodesDownloadedCommand ensureCodesDownloadedCommand = ; // EnsureCodesDownloadedCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthComplete(ensureCodesDownloadedCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthComplete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnsureCodesDownloadedCommand ensureCodesDownloadedCommand = new EnsureCodesDownloadedCommand(); // EnsureCodesDownloadedCommand | 

try {
    final result = await api_instance.twoFactorAuthComplete(ensureCodesDownloadedCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthComplete: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        EnsureCodesDownloadedCommand ensureCodesDownloadedCommand = ; // EnsureCodesDownloadedCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthComplete(ensureCodesDownloadedCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthComplete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
EnsureCodesDownloadedCommand *ensureCodesDownloadedCommand = ; //  (optional)

// Ensure recovery codes saved
[apiInstance twoFactorAuthCompleteWith:ensureCodesDownloadedCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'ensureCodesDownloadedCommand':  // {EnsureCodesDownloadedCommand} 
};

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

namespace Example
{
    public class twoFactorAuthCompleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var ensureCodesDownloadedCommand = new EnsureCodesDownloadedCommand(); // EnsureCodesDownloadedCommand |  (optional) 

            try {
                // Ensure recovery codes saved
                GetToken result = apiInstance.twoFactorAuthComplete(ensureCodesDownloadedCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthComplete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$ensureCodesDownloadedCommand = ; // EnsureCodesDownloadedCommand | 

try {
    $result = $api_instance->twoFactorAuthComplete($ensureCodesDownloadedCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthComplete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $ensureCodesDownloadedCommand = WWW::OPenAPIClient::Object::EnsureCodesDownloadedCommand->new(); # EnsureCodesDownloadedCommand | 

eval {
    my $result = $api_instance->twoFactorAuthComplete(ensureCodesDownloadedCommand => $ensureCodesDownloadedCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthComplete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
ensureCodesDownloadedCommand =  # EnsureCodesDownloadedCommand |  (optional)

try:
    # Ensure recovery codes saved
    api_response = api_instance.two_factor_auth_complete(ensureCodesDownloadedCommand=ensureCodesDownloadedCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthComplete: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let ensureCodesDownloadedCommand = ; // EnsureCodesDownloadedCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthComplete(ensureCodesDownloadedCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ensureCodesDownloadedCommand

Responses


twoFactorAuthDisable

Disable 2fa by code


/api/v1/two-factor-auth/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/disable" \
 -d '{
  "code" : "code",
  "isRecoveryCode" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        DisableTwoFactorAuthCommand disableTwoFactorAuthCommand = ; // DisableTwoFactorAuthCommand | 

        try {
            Object result = apiInstance.twoFactorAuthDisable(disableTwoFactorAuthCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableTwoFactorAuthCommand disableTwoFactorAuthCommand = new DisableTwoFactorAuthCommand(); // DisableTwoFactorAuthCommand | 

try {
    final result = await api_instance.twoFactorAuthDisable(disableTwoFactorAuthCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthDisable: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        DisableTwoFactorAuthCommand disableTwoFactorAuthCommand = ; // DisableTwoFactorAuthCommand | 

        try {
            Object result = apiInstance.twoFactorAuthDisable(disableTwoFactorAuthCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
DisableTwoFactorAuthCommand *disableTwoFactorAuthCommand = ; //  (optional)

// Disable 2fa by code
[apiInstance twoFactorAuthDisableWith:disableTwoFactorAuthCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'disableTwoFactorAuthCommand':  // {DisableTwoFactorAuthCommand} 
};

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

namespace Example
{
    public class twoFactorAuthDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var disableTwoFactorAuthCommand = new DisableTwoFactorAuthCommand(); // DisableTwoFactorAuthCommand |  (optional) 

            try {
                // Disable 2fa by code
                Object result = apiInstance.twoFactorAuthDisable(disableTwoFactorAuthCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$disableTwoFactorAuthCommand = ; // DisableTwoFactorAuthCommand | 

try {
    $result = $api_instance->twoFactorAuthDisable($disableTwoFactorAuthCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $disableTwoFactorAuthCommand = WWW::OPenAPIClient::Object::DisableTwoFactorAuthCommand->new(); # DisableTwoFactorAuthCommand | 

eval {
    my $result = $api_instance->twoFactorAuthDisable(disableTwoFactorAuthCommand => $disableTwoFactorAuthCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
disableTwoFactorAuthCommand =  # DisableTwoFactorAuthCommand |  (optional)

try:
    # Disable 2fa by code
    api_response = api_instance.two_factor_auth_disable(disableTwoFactorAuthCommand=disableTwoFactorAuthCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthDisable: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let disableTwoFactorAuthCommand = ; // DisableTwoFactorAuthCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthDisable(disableTwoFactorAuthCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableTwoFactorAuthCommand

Responses


twoFactorAuthLogin

Login with TOTP


/api/v1/two-factor-auth/login

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/login" \
 -d '{
  "verificationCode" : "verificationCode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthLoginCommand twoFactorAuthLoginCommand = ; // TwoFactorAuthLoginCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthLogin(twoFactorAuthLoginCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthLogin");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TwoFactorAuthLoginCommand twoFactorAuthLoginCommand = new TwoFactorAuthLoginCommand(); // TwoFactorAuthLoginCommand | 

try {
    final result = await api_instance.twoFactorAuthLogin(twoFactorAuthLoginCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthLogin: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthLoginCommand twoFactorAuthLoginCommand = ; // TwoFactorAuthLoginCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthLogin(twoFactorAuthLoginCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthLogin");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
TwoFactorAuthLoginCommand *twoFactorAuthLoginCommand = ; //  (optional)

// Login with TOTP
[apiInstance twoFactorAuthLoginWith:twoFactorAuthLoginCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'twoFactorAuthLoginCommand':  // {TwoFactorAuthLoginCommand} 
};

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

namespace Example
{
    public class twoFactorAuthLoginExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var twoFactorAuthLoginCommand = new TwoFactorAuthLoginCommand(); // TwoFactorAuthLoginCommand |  (optional) 

            try {
                // Login with TOTP
                GetToken result = apiInstance.twoFactorAuthLogin(twoFactorAuthLoginCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthLogin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$twoFactorAuthLoginCommand = ; // TwoFactorAuthLoginCommand | 

try {
    $result = $api_instance->twoFactorAuthLogin($twoFactorAuthLoginCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthLogin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $twoFactorAuthLoginCommand = WWW::OPenAPIClient::Object::TwoFactorAuthLoginCommand->new(); # TwoFactorAuthLoginCommand | 

eval {
    my $result = $api_instance->twoFactorAuthLogin(twoFactorAuthLoginCommand => $twoFactorAuthLoginCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthLogin: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
twoFactorAuthLoginCommand =  # TwoFactorAuthLoginCommand |  (optional)

try:
    # Login with TOTP
    api_response = api_instance.two_factor_auth_login(twoFactorAuthLoginCommand=twoFactorAuthLoginCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthLogin: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let twoFactorAuthLoginCommand = ; // TwoFactorAuthLoginCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthLogin(twoFactorAuthLoginCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
twoFactorAuthLoginCommand

Responses


twoFactorAuthRecovery

Login with recovery code


/api/v1/two-factor-auth/recovery

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/recovery" \
 -d '{
  "recoveryCode" : "recoveryCode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthRecoveryCommand twoFactorAuthRecoveryCommand = ; // TwoFactorAuthRecoveryCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthRecovery(twoFactorAuthRecoveryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthRecovery");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TwoFactorAuthRecoveryCommand twoFactorAuthRecoveryCommand = new TwoFactorAuthRecoveryCommand(); // TwoFactorAuthRecoveryCommand | 

try {
    final result = await api_instance.twoFactorAuthRecovery(twoFactorAuthRecoveryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthRecovery: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthRecoveryCommand twoFactorAuthRecoveryCommand = ; // TwoFactorAuthRecoveryCommand | 

        try {
            GetToken result = apiInstance.twoFactorAuthRecovery(twoFactorAuthRecoveryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthRecovery");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
TwoFactorAuthRecoveryCommand *twoFactorAuthRecoveryCommand = ; //  (optional)

// Login with recovery code
[apiInstance twoFactorAuthRecoveryWith:twoFactorAuthRecoveryCommand
              completionHandler: ^(GetToken output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'twoFactorAuthRecoveryCommand':  // {TwoFactorAuthRecoveryCommand} 
};

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

namespace Example
{
    public class twoFactorAuthRecoveryExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var twoFactorAuthRecoveryCommand = new TwoFactorAuthRecoveryCommand(); // TwoFactorAuthRecoveryCommand |  (optional) 

            try {
                // Login with recovery code
                GetToken result = apiInstance.twoFactorAuthRecovery(twoFactorAuthRecoveryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthRecovery: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$twoFactorAuthRecoveryCommand = ; // TwoFactorAuthRecoveryCommand | 

try {
    $result = $api_instance->twoFactorAuthRecovery($twoFactorAuthRecoveryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthRecovery: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $twoFactorAuthRecoveryCommand = WWW::OPenAPIClient::Object::TwoFactorAuthRecoveryCommand->new(); # TwoFactorAuthRecoveryCommand | 

eval {
    my $result = $api_instance->twoFactorAuthRecovery(twoFactorAuthRecoveryCommand => $twoFactorAuthRecoveryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthRecovery: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
twoFactorAuthRecoveryCommand =  # TwoFactorAuthRecoveryCommand |  (optional)

try:
    # Login with recovery code
    api_response = api_instance.two_factor_auth_recovery(twoFactorAuthRecoveryCommand=twoFactorAuthRecoveryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthRecovery: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let twoFactorAuthRecoveryCommand = ; // TwoFactorAuthRecoveryCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthRecovery(twoFactorAuthRecoveryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
twoFactorAuthRecoveryCommand

Responses


twoFactorAuthSetup

Setup 2fa


/api/v1/two-factor-auth/setup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/setup" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        Object body = Object; // Object | 

        try {
            TwoFactorAuthSetupResult result = apiInstance.twoFactorAuthSetup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthSetup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.twoFactorAuthSetup(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthSetup: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        Object body = Object; // Object | 

        try {
            TwoFactorAuthSetupResult result = apiInstance.twoFactorAuthSetup(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthSetup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
Object *body = Object; //  (optional)

// Setup 2fa
[apiInstance twoFactorAuthSetupWith:body
              completionHandler: ^(TwoFactorAuthSetupResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class twoFactorAuthSetupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Setup 2fa
                TwoFactorAuthSetupResult result = apiInstance.twoFactorAuthSetup(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthSetup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$body = Object; // Object | 

try {
    $result = $api_instance->twoFactorAuthSetup($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthSetup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->twoFactorAuthSetup(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthSetup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
body = Object # Object |  (optional)

try:
    # Setup 2fa
    api_response = api_instance.two_factor_auth_setup(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthSetup: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let body = Object; // Object

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthSetup(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


twoFactorAuthVerify

Verify 2fa code


/api/v1/two-factor-auth/verify

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/two-factor-auth/verify" \
 -d '{
  "verificationCode" : "verificationCode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthManagementApi;

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

public class AuthManagementApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthVerifyCommand twoFactorAuthVerifyCommand = ; // TwoFactorAuthVerifyCommand | 

        try {
            TwoFactorAuthVerifyResult result = apiInstance.twoFactorAuthVerify(twoFactorAuthVerifyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthVerify");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TwoFactorAuthVerifyCommand twoFactorAuthVerifyCommand = new TwoFactorAuthVerifyCommand(); // TwoFactorAuthVerifyCommand | 

try {
    final result = await api_instance.twoFactorAuthVerify(twoFactorAuthVerifyCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->twoFactorAuthVerify: $e\n');
}

import org.openapitools.client.api.AuthManagementApi;

public class AuthManagementApiExample {
    public static void main(String[] args) {
        AuthManagementApi apiInstance = new AuthManagementApi();
        TwoFactorAuthVerifyCommand twoFactorAuthVerifyCommand = ; // TwoFactorAuthVerifyCommand | 

        try {
            TwoFactorAuthVerifyResult result = apiInstance.twoFactorAuthVerify(twoFactorAuthVerifyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AuthManagementApi#twoFactorAuthVerify");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AuthManagementApi *apiInstance = [[AuthManagementApi alloc] init];
TwoFactorAuthVerifyCommand *twoFactorAuthVerifyCommand = ; //  (optional)

// Verify 2fa code
[apiInstance twoFactorAuthVerifyWith:twoFactorAuthVerifyCommand
              completionHandler: ^(TwoFactorAuthVerifyResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AuthManagementApi()
var opts = {
  'twoFactorAuthVerifyCommand':  // {TwoFactorAuthVerifyCommand} 
};

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

namespace Example
{
    public class twoFactorAuthVerifyExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AuthManagementApi();
            var twoFactorAuthVerifyCommand = new TwoFactorAuthVerifyCommand(); // TwoFactorAuthVerifyCommand |  (optional) 

            try {
                // Verify 2fa code
                TwoFactorAuthVerifyResult result = apiInstance.twoFactorAuthVerify(twoFactorAuthVerifyCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AuthManagementApi.twoFactorAuthVerify: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthManagementApi();
$twoFactorAuthVerifyCommand = ; // TwoFactorAuthVerifyCommand | 

try {
    $result = $api_instance->twoFactorAuthVerify($twoFactorAuthVerifyCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AuthManagementApi->twoFactorAuthVerify: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthManagementApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthManagementApi->new();
my $twoFactorAuthVerifyCommand = WWW::OPenAPIClient::Object::TwoFactorAuthVerifyCommand->new(); # TwoFactorAuthVerifyCommand | 

eval {
    my $result = $api_instance->twoFactorAuthVerify(twoFactorAuthVerifyCommand => $twoFactorAuthVerifyCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AuthManagementApi->twoFactorAuthVerify: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AuthManagementApi()
twoFactorAuthVerifyCommand =  # TwoFactorAuthVerifyCommand |  (optional)

try:
    # Verify 2fa code
    api_response = api_instance.two_factor_auth_verify(twoFactorAuthVerifyCommand=twoFactorAuthVerifyCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AuthManagementApi->twoFactorAuthVerify: %s\n" % e)
extern crate AuthManagementApi;

pub fn main() {
    let twoFactorAuthVerifyCommand = ; // TwoFactorAuthVerifyCommand

    let mut context = AuthManagementApi::Context::default();
    let result = client.twoFactorAuthVerify(twoFactorAuthVerifyCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
twoFactorAuthVerifyCommand

Responses


Autoscaling

autoscalingDisable

Disable autoscaling


/api/v1/autoscaling/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/autoscaling/disable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AutoscalingApi;

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

public class AutoscalingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AutoscalingApi apiInstance = new AutoscalingApi();
        DisableAutoscalingCommand disableAutoscalingCommand = ; // DisableAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingDisable(disableAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableAutoscalingCommand disableAutoscalingCommand = new DisableAutoscalingCommand(); // DisableAutoscalingCommand | 

try {
    final result = await api_instance.autoscalingDisable(disableAutoscalingCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->autoscalingDisable: $e\n');
}

import org.openapitools.client.api.AutoscalingApi;

public class AutoscalingApiExample {
    public static void main(String[] args) {
        AutoscalingApi apiInstance = new AutoscalingApi();
        DisableAutoscalingCommand disableAutoscalingCommand = ; // DisableAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingDisable(disableAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AutoscalingApi *apiInstance = [[AutoscalingApi alloc] init];
DisableAutoscalingCommand *disableAutoscalingCommand = ; //  (optional)

// Disable autoscaling
[apiInstance autoscalingDisableWith:disableAutoscalingCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AutoscalingApi()
var opts = {
  'disableAutoscalingCommand':  // {DisableAutoscalingCommand} 
};

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

namespace Example
{
    public class autoscalingDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AutoscalingApi();
            var disableAutoscalingCommand = new DisableAutoscalingCommand(); // DisableAutoscalingCommand |  (optional) 

            try {
                // Disable autoscaling
                Object result = apiInstance.autoscalingDisable(disableAutoscalingCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AutoscalingApi.autoscalingDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AutoscalingApi();
$disableAutoscalingCommand = ; // DisableAutoscalingCommand | 

try {
    $result = $api_instance->autoscalingDisable($disableAutoscalingCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AutoscalingApi->autoscalingDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AutoscalingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AutoscalingApi->new();
my $disableAutoscalingCommand = WWW::OPenAPIClient::Object::DisableAutoscalingCommand->new(); # DisableAutoscalingCommand | 

eval {
    my $result = $api_instance->autoscalingDisable(disableAutoscalingCommand => $disableAutoscalingCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AutoscalingApi->autoscalingDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AutoscalingApi()
disableAutoscalingCommand =  # DisableAutoscalingCommand |  (optional)

try:
    # Disable autoscaling
    api_response = api_instance.autoscaling_disable(disableAutoscalingCommand=disableAutoscalingCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AutoscalingApi->autoscalingDisable: %s\n" % e)
extern crate AutoscalingApi;

pub fn main() {
    let disableAutoscalingCommand = ; // DisableAutoscalingCommand

    let mut context = AutoscalingApi::Context::default();
    let result = client.autoscalingDisable(disableAutoscalingCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableAutoscalingCommand

Responses


autoscalingEdit

Edit autoscaling


/api/v1/autoscaling/edit

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/autoscaling/edit" \
 -d '{
  "minSize" : 6,
  "maxSize" : 1,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AutoscalingApi;

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

public class AutoscalingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AutoscalingApi apiInstance = new AutoscalingApi();
        EditAutoscalingCommand editAutoscalingCommand = ; // EditAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingEdit(editAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditAutoscalingCommand editAutoscalingCommand = new EditAutoscalingCommand(); // EditAutoscalingCommand | 

try {
    final result = await api_instance.autoscalingEdit(editAutoscalingCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->autoscalingEdit: $e\n');
}

import org.openapitools.client.api.AutoscalingApi;

public class AutoscalingApiExample {
    public static void main(String[] args) {
        AutoscalingApi apiInstance = new AutoscalingApi();
        EditAutoscalingCommand editAutoscalingCommand = ; // EditAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingEdit(editAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AutoscalingApi *apiInstance = [[AutoscalingApi alloc] init];
EditAutoscalingCommand *editAutoscalingCommand = ; //  (optional)

// Edit autoscaling
[apiInstance autoscalingEditWith:editAutoscalingCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AutoscalingApi()
var opts = {
  'editAutoscalingCommand':  // {EditAutoscalingCommand} 
};

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

namespace Example
{
    public class autoscalingEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AutoscalingApi();
            var editAutoscalingCommand = new EditAutoscalingCommand(); // EditAutoscalingCommand |  (optional) 

            try {
                // Edit autoscaling
                Object result = apiInstance.autoscalingEdit(editAutoscalingCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AutoscalingApi.autoscalingEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AutoscalingApi();
$editAutoscalingCommand = ; // EditAutoscalingCommand | 

try {
    $result = $api_instance->autoscalingEdit($editAutoscalingCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AutoscalingApi->autoscalingEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AutoscalingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AutoscalingApi->new();
my $editAutoscalingCommand = WWW::OPenAPIClient::Object::EditAutoscalingCommand->new(); # EditAutoscalingCommand | 

eval {
    my $result = $api_instance->autoscalingEdit(editAutoscalingCommand => $editAutoscalingCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AutoscalingApi->autoscalingEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AutoscalingApi()
editAutoscalingCommand =  # EditAutoscalingCommand |  (optional)

try:
    # Edit autoscaling
    api_response = api_instance.autoscaling_edit(editAutoscalingCommand=editAutoscalingCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AutoscalingApi->autoscalingEdit: %s\n" % e)
extern crate AutoscalingApi;

pub fn main() {
    let editAutoscalingCommand = ; // EditAutoscalingCommand

    let mut context = AutoscalingApi::Context::default();
    let result = client.autoscalingEdit(editAutoscalingCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editAutoscalingCommand

Responses


autoscalingEnable

Enable autoscaling


/api/v1/autoscaling/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/autoscaling/enable" \
 -d '{
  "flavor" : "flavor",
  "diskSize" : 5.962133916683182,
  "spotEnabled" : true,
  "minSize" : 6,
  "maxSize" : 1,
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AutoscalingApi;

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

public class AutoscalingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AutoscalingApi apiInstance = new AutoscalingApi();
        EnableAutoscalingCommand enableAutoscalingCommand = ; // EnableAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingEnable(enableAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableAutoscalingCommand enableAutoscalingCommand = new EnableAutoscalingCommand(); // EnableAutoscalingCommand | 

try {
    final result = await api_instance.autoscalingEnable(enableAutoscalingCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->autoscalingEnable: $e\n');
}

import org.openapitools.client.api.AutoscalingApi;

public class AutoscalingApiExample {
    public static void main(String[] args) {
        AutoscalingApi apiInstance = new AutoscalingApi();
        EnableAutoscalingCommand enableAutoscalingCommand = ; // EnableAutoscalingCommand | 

        try {
            Object result = apiInstance.autoscalingEnable(enableAutoscalingCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AutoscalingApi#autoscalingEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AutoscalingApi *apiInstance = [[AutoscalingApi alloc] init];
EnableAutoscalingCommand *enableAutoscalingCommand = ; //  (optional)

// Enable autoscaling
[apiInstance autoscalingEnableWith:enableAutoscalingCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AutoscalingApi()
var opts = {
  'enableAutoscalingCommand':  // {EnableAutoscalingCommand} 
};

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

namespace Example
{
    public class autoscalingEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AutoscalingApi();
            var enableAutoscalingCommand = new EnableAutoscalingCommand(); // EnableAutoscalingCommand |  (optional) 

            try {
                // Enable autoscaling
                Object result = apiInstance.autoscalingEnable(enableAutoscalingCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AutoscalingApi.autoscalingEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AutoscalingApi();
$enableAutoscalingCommand = ; // EnableAutoscalingCommand | 

try {
    $result = $api_instance->autoscalingEnable($enableAutoscalingCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AutoscalingApi->autoscalingEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AutoscalingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AutoscalingApi->new();
my $enableAutoscalingCommand = WWW::OPenAPIClient::Object::EnableAutoscalingCommand->new(); # EnableAutoscalingCommand | 

eval {
    my $result = $api_instance->autoscalingEnable(enableAutoscalingCommand => $enableAutoscalingCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AutoscalingApi->autoscalingEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AutoscalingApi()
enableAutoscalingCommand =  # EnableAutoscalingCommand |  (optional)

try:
    # Enable autoscaling
    api_response = api_instance.autoscaling_enable(enableAutoscalingCommand=enableAutoscalingCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AutoscalingApi->autoscalingEnable: %s\n" % e)
extern crate AutoscalingApi;

pub fn main() {
    let enableAutoscalingCommand = ; // EnableAutoscalingCommand

    let mut context = AutoscalingApi::Context::default();
    let result = client.autoscalingEnable(enableAutoscalingCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableAutoscalingCommand

Responses


AzureCloudCredential

azureAksClusters

Fetch AKS cluster list


/api/v1/azure/aks-clusters

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/aks-clusters" \
 -d '{
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AksClusterListCommand aksClusterListCommand = ; // AksClusterListCommand | 

        try {
            array[AzureAksClusterDto] result = apiInstance.azureAksClusters(aksClusterListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureAksClusters");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AksClusterListCommand aksClusterListCommand = new AksClusterListCommand(); // AksClusterListCommand | 

try {
    final result = await api_instance.azureAksClusters(aksClusterListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureAksClusters: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AksClusterListCommand aksClusterListCommand = ; // AksClusterListCommand | 

        try {
            array[AzureAksClusterDto] result = apiInstance.azureAksClusters(aksClusterListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureAksClusters");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AksClusterListCommand *aksClusterListCommand = ; //  (optional)

// Fetch AKS cluster list
[apiInstance azureAksClustersWith:aksClusterListCommand
              completionHandler: ^(array[AzureAksClusterDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'aksClusterListCommand':  // {AksClusterListCommand} 
};

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

namespace Example
{
    public class azureAksClustersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var aksClusterListCommand = new AksClusterListCommand(); // AksClusterListCommand |  (optional) 

            try {
                // Fetch AKS cluster list
                array[AzureAksClusterDto] result = apiInstance.azureAksClusters(aksClusterListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureAksClusters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$aksClusterListCommand = ; // AksClusterListCommand | 

try {
    $result = $api_instance->azureAksClusters($aksClusterListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureAksClusters: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $aksClusterListCommand = WWW::OPenAPIClient::Object::AksClusterListCommand->new(); # AksClusterListCommand | 

eval {
    my $result = $api_instance->azureAksClusters(aksClusterListCommand => $aksClusterListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureAksClusters: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
aksClusterListCommand =  # AksClusterListCommand |  (optional)

try:
    # Fetch AKS cluster list
    api_response = api_instance.azure_aks_clusters(aksClusterListCommand=aksClusterListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureAksClusters: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let aksClusterListCommand = ; // AksClusterListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureAksClusters(aksClusterListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
aksClusterListCommand

Responses


azureCcfResources

Retrieve Azure resources tagged with the CCF ownership tag


/api/v1/azure/ccf-resources

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/ccf-resources" \
 -d '{
  "projectValue" : "projectValue",
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureCcfResourceListCommand azureCcfResourceListCommand = ; // AzureCcfResourceListCommand | 

        try {
            array[AzureCcfResourceDto] result = apiInstance.azureCcfResources(azureCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureCcfResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureCcfResourceListCommand azureCcfResourceListCommand = new AzureCcfResourceListCommand(); // AzureCcfResourceListCommand | 

try {
    final result = await api_instance.azureCcfResources(azureCcfResourceListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureCcfResources: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureCcfResourceListCommand azureCcfResourceListCommand = ; // AzureCcfResourceListCommand | 

        try {
            array[AzureCcfResourceDto] result = apiInstance.azureCcfResources(azureCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureCcfResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureCcfResourceListCommand *azureCcfResourceListCommand = ; //  (optional)

// Retrieve Azure resources tagged with the CCF ownership tag
[apiInstance azureCcfResourcesWith:azureCcfResourceListCommand
              completionHandler: ^(array[AzureCcfResourceDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureCcfResourceListCommand':  // {AzureCcfResourceListCommand} 
};

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

namespace Example
{
    public class azureCcfResourcesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureCcfResourceListCommand = new AzureCcfResourceListCommand(); // AzureCcfResourceListCommand |  (optional) 

            try {
                // Retrieve Azure resources tagged with the CCF ownership tag
                array[AzureCcfResourceDto] result = apiInstance.azureCcfResources(azureCcfResourceListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureCcfResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureCcfResourceListCommand = ; // AzureCcfResourceListCommand | 

try {
    $result = $api_instance->azureCcfResources($azureCcfResourceListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureCcfResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureCcfResourceListCommand = WWW::OPenAPIClient::Object::AzureCcfResourceListCommand->new(); # AzureCcfResourceListCommand | 

eval {
    my $result = $api_instance->azureCcfResources(azureCcfResourceListCommand => $azureCcfResourceListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureCcfResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureCcfResourceListCommand =  # AzureCcfResourceListCommand |  (optional)

try:
    # Retrieve Azure resources tagged with the CCF ownership tag
    api_response = api_instance.azure_ccf_resources(azureCcfResourceListCommand=azureCcfResourceListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureCcfResources: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureCcfResourceListCommand = ; // AzureCcfResourceListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureCcfResources(azureCcfResourceListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureCcfResourceListCommand

Responses


azureCreate

Add Azure credentials


/api/v1/azure/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/create" \
 -d '{
  "existingVirtualNetworkResourceGroupName" : "existingVirtualNetworkResourceGroupName",
  "azureClientSecret" : "azureClientSecret",
  "existingVirtualNetworkName" : "existingVirtualNetworkName",
  "azCount" : 0,
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId",
  "organizationId" : 6,
  "ipMode" : "",
  "azureClientId" : "azureClientId",
  "vnetMode" : "",
  "azureLocation" : "azureLocation",
  "name" : "name",
  "subnets" : [ {
    "subnetName" : "subnetName"
  }, {
    "subnetName" : "subnetName"
  } ],
  "importedFileShareId" : "importedFileShareId",
  "sharedFileSystemEnabled" : true,
  "importedFileShareResourceGroupName" : "importedFileShareResourceGroupName",
  "usePreinstalledImage" : true,
  "kubernetesImage" : "kubernetesImage"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        CreateAzureCloudCommand createAzureCloudCommand = ; // CreateAzureCloudCommand | 

        try {
            ApiResponse result = apiInstance.azureCreate(createAzureCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAzureCloudCommand createAzureCloudCommand = new CreateAzureCloudCommand(); // CreateAzureCloudCommand | 

try {
    final result = await api_instance.azureCreate(createAzureCloudCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureCreate: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        CreateAzureCloudCommand createAzureCloudCommand = ; // CreateAzureCloudCommand | 

        try {
            ApiResponse result = apiInstance.azureCreate(createAzureCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
CreateAzureCloudCommand *createAzureCloudCommand = ; //  (optional)

// Add Azure credentials
[apiInstance azureCreateWith:createAzureCloudCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'createAzureCloudCommand':  // {CreateAzureCloudCommand} 
};

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

namespace Example
{
    public class azureCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var createAzureCloudCommand = new CreateAzureCloudCommand(); // CreateAzureCloudCommand |  (optional) 

            try {
                // Add Azure credentials
                ApiResponse result = apiInstance.azureCreate(createAzureCloudCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$createAzureCloudCommand = ; // CreateAzureCloudCommand | 

try {
    $result = $api_instance->azureCreate($createAzureCloudCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $createAzureCloudCommand = WWW::OPenAPIClient::Object::CreateAzureCloudCommand->new(); # CreateAzureCloudCommand | 

eval {
    my $result = $api_instance->azureCreate(createAzureCloudCommand => $createAzureCloudCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
createAzureCloudCommand =  # CreateAzureCloudCommand |  (optional)

try:
    # Add Azure credentials
    api_response = api_instance.azure_create(createAzureCloudCommand=createAzureCloudCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureCreate: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let createAzureCloudCommand = ; // CreateAzureCloudCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureCreate(createAzureCloudCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAzureCloudCommand

Responses


azureDashboard

Fetch Azure quota list


/api/v1/azure/quota/list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/quota/list" \
 -d '{
  "cloudId" : 0,
  "filterBy" : "filterBy"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureDashboardCommand azureDashboardCommand = ; // AzureDashboardCommand | 

        try {
            array[AzureQuotaListRecordDto] result = apiInstance.azureDashboard(azureDashboardCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureDashboard");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureDashboardCommand azureDashboardCommand = new AzureDashboardCommand(); // AzureDashboardCommand | 

try {
    final result = await api_instance.azureDashboard(azureDashboardCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureDashboard: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureDashboardCommand azureDashboardCommand = ; // AzureDashboardCommand | 

        try {
            array[AzureQuotaListRecordDto] result = apiInstance.azureDashboard(azureDashboardCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureDashboard");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureDashboardCommand *azureDashboardCommand = ; //  (optional)

// Fetch Azure quota list
[apiInstance azureDashboardWith:azureDashboardCommand
              completionHandler: ^(array[AzureQuotaListRecordDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureDashboardCommand':  // {AzureDashboardCommand} 
};

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

namespace Example
{
    public class azureDashboardExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureDashboardCommand = new AzureDashboardCommand(); // AzureDashboardCommand |  (optional) 

            try {
                // Fetch Azure quota list
                array[AzureQuotaListRecordDto] result = apiInstance.azureDashboard(azureDashboardCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureDashboard: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureDashboardCommand = ; // AzureDashboardCommand | 

try {
    $result = $api_instance->azureDashboard($azureDashboardCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureDashboard: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureDashboardCommand = WWW::OPenAPIClient::Object::AzureDashboardCommand->new(); # AzureDashboardCommand | 

eval {
    my $result = $api_instance->azureDashboard(azureDashboardCommand => $azureDashboardCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureDashboard: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureDashboardCommand =  # AzureDashboardCommand |  (optional)

try:
    # Fetch Azure quota list
    api_response = api_instance.azure_dashboard(azureDashboardCommand=azureDashboardCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureDashboard: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureDashboardCommand = ; // AzureDashboardCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureDashboard(azureDashboardCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureDashboardCommand

Responses


azureFileShareList

Retrieve Azure File Shares within a resource group


/api/v1/azure/file-share-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/file-share-list" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "resourceGroupName" : "resourceGroupName",
  "cloudId" : 0,
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureFileShareListCommand azureFileShareListCommand = ; // AzureFileShareListCommand | 

        try {
            array[AzureFileShareDto] result = apiInstance.azureFileShareList(azureFileShareListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureFileShareList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureFileShareListCommand azureFileShareListCommand = new AzureFileShareListCommand(); // AzureFileShareListCommand | 

try {
    final result = await api_instance.azureFileShareList(azureFileShareListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureFileShareList: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureFileShareListCommand azureFileShareListCommand = ; // AzureFileShareListCommand | 

        try {
            array[AzureFileShareDto] result = apiInstance.azureFileShareList(azureFileShareListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureFileShareList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureFileShareListCommand *azureFileShareListCommand = ; //  (optional)

// Retrieve Azure File Shares within a resource group
[apiInstance azureFileShareListWith:azureFileShareListCommand
              completionHandler: ^(array[AzureFileShareDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureFileShareListCommand':  // {AzureFileShareListCommand} 
};

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

namespace Example
{
    public class azureFileShareListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureFileShareListCommand = new AzureFileShareListCommand(); // AzureFileShareListCommand |  (optional) 

            try {
                // Retrieve Azure File Shares within a resource group
                array[AzureFileShareDto] result = apiInstance.azureFileShareList(azureFileShareListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureFileShareList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureFileShareListCommand = ; // AzureFileShareListCommand | 

try {
    $result = $api_instance->azureFileShareList($azureFileShareListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureFileShareList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureFileShareListCommand = WWW::OPenAPIClient::Object::AzureFileShareListCommand->new(); # AzureFileShareListCommand | 

eval {
    my $result = $api_instance->azureFileShareList(azureFileShareListCommand => $azureFileShareListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureFileShareList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureFileShareListCommand =  # AzureFileShareListCommand |  (optional)

try:
    # Retrieve Azure File Shares within a resource group
    api_response = api_instance.azure_file_share_list(azureFileShareListCommand=azureFileShareListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureFileShareList: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureFileShareListCommand = ; // AzureFileShareListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureFileShareList(azureFileShareListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureFileShareListCommand

Responses


azureKubernetesImages

Retrieve Azure images available for Kubernetes nodes using inline credentials


/api/v1/azure/kubernetes-images

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/kubernetes-images" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "azureLocation" : "azureLocation",
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureKubernetesImageListQuery azureKubernetesImageListQuery = ; // AzureKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.azureKubernetesImages(azureKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureKubernetesImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureKubernetesImageListQuery azureKubernetesImageListQuery = new AzureKubernetesImageListQuery(); // AzureKubernetesImageListQuery | 

try {
    final result = await api_instance.azureKubernetesImages(azureKubernetesImageListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureKubernetesImages: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureKubernetesImageListQuery azureKubernetesImageListQuery = ; // AzureKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.azureKubernetesImages(azureKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureKubernetesImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureKubernetesImageListQuery *azureKubernetesImageListQuery = ; //  (optional)

// Retrieve Azure images available for Kubernetes nodes using inline credentials
[apiInstance azureKubernetesImagesWith:azureKubernetesImageListQuery
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureKubernetesImageListQuery':  // {AzureKubernetesImageListQuery} 
};

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

namespace Example
{
    public class azureKubernetesImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureKubernetesImageListQuery = new AzureKubernetesImageListQuery(); // AzureKubernetesImageListQuery |  (optional) 

            try {
                // Retrieve Azure images available for Kubernetes nodes using inline credentials
                array[CommonStringBasedDropdownDto] result = apiInstance.azureKubernetesImages(azureKubernetesImageListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureKubernetesImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureKubernetesImageListQuery = ; // AzureKubernetesImageListQuery | 

try {
    $result = $api_instance->azureKubernetesImages($azureKubernetesImageListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureKubernetesImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureKubernetesImageListQuery = WWW::OPenAPIClient::Object::AzureKubernetesImageListQuery->new(); # AzureKubernetesImageListQuery | 

eval {
    my $result = $api_instance->azureKubernetesImages(azureKubernetesImageListQuery => $azureKubernetesImageListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureKubernetesImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureKubernetesImageListQuery =  # AzureKubernetesImageListQuery |  (optional)

try:
    # Retrieve Azure images available for Kubernetes nodes using inline credentials
    api_response = api_instance.azure_kubernetes_images(azureKubernetesImageListQuery=azureKubernetesImageListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureKubernetesImages: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureKubernetesImageListQuery = ; // AzureKubernetesImageListQuery

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureKubernetesImages(azureKubernetesImageListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureKubernetesImageListQuery

Responses


azureList

Retrieve list of azure cloud credentials


/api/v1/azure/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/azure/list?OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureCredentialList result = apiInstance.azureList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.azureList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureList: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureCredentialList result = apiInstance.azureList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// Retrieve list of azure cloud credentials
[apiInstance azureListWith:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    domainId:domainId
    limit:limit
    offset:offset
              completionHandler: ^(AzureCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

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

namespace Example
{
    public class azureListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Retrieve list of azure cloud credentials
                AzureCredentialList result = apiInstance.azureList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$organizationId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$domainId = 56; // Integer | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->azureList($organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $domainId, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $organizationId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $domainId = 56; # Integer | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->azureList(organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, domainId => $domainId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
organizationId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # Retrieve list of azure cloud credentials
    api_response = api_instance.azure_list(organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, domainId=domainId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureList: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureList(organizationId, sortBy, sortDirection, search, searchId, id, domainId, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
SortBy
String
SortDirection
String
Search
SearchId
String
Id
Integer (int32)
DomainId
Integer (int32)
Limit
Integer (int32)
Offset
Integer (int32)

Responses


azureLocations

Fetch Azure location list


/api/v1/azure/locations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/locations" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureLocationsCommand azureLocationsCommand = ; // AzureLocationsCommand | 

        try {
            array['String'] result = apiInstance.azureLocations(azureLocationsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureLocations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureLocationsCommand azureLocationsCommand = new AzureLocationsCommand(); // AzureLocationsCommand | 

try {
    final result = await api_instance.azureLocations(azureLocationsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureLocations: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureLocationsCommand azureLocationsCommand = ; // AzureLocationsCommand | 

        try {
            array['String'] result = apiInstance.azureLocations(azureLocationsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureLocations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureLocationsCommand *azureLocationsCommand = ; //  (optional)

// Fetch Azure location list
[apiInstance azureLocationsWith:azureLocationsCommand
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureLocationsCommand':  // {AzureLocationsCommand} 
};

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

namespace Example
{
    public class azureLocationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureLocationsCommand = new AzureLocationsCommand(); // AzureLocationsCommand |  (optional) 

            try {
                // Fetch Azure location list
                array['String'] result = apiInstance.azureLocations(azureLocationsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureLocations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureLocationsCommand = ; // AzureLocationsCommand | 

try {
    $result = $api_instance->azureLocations($azureLocationsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureLocations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureLocationsCommand = WWW::OPenAPIClient::Object::AzureLocationsCommand->new(); # AzureLocationsCommand | 

eval {
    my $result = $api_instance->azureLocations(azureLocationsCommand => $azureLocationsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureLocations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureLocationsCommand =  # AzureLocationsCommand |  (optional)

try:
    # Fetch Azure location list
    api_response = api_instance.azure_locations(azureLocationsCommand=azureLocationsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureLocations: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureLocationsCommand = ; // AzureLocationsCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureLocations(azureLocationsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureLocationsCommand

Responses


azureOffers

List Azure offer list by publisher


/api/v1/azure/offers/{cloudId}/{publisher}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/azure/offers/{cloudId}/{publisher}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String publisher = publisher_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureOffersList result = apiInstance.azureOffers(cloudId, publisher, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureOffers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 
final String publisher = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.azureOffers(cloudId, publisher, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureOffers: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String publisher = publisher_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureOffersList result = apiInstance.azureOffers(cloudId, publisher, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureOffers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)
String *publisher = publisher_example; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List Azure offer list by publisher
[apiInstance azureOffersWith:cloudId
    publisher:publisher
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(AzureOffersList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var cloudId = 56; // {Integer} 
var publisher = publisher_example; // {String} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.azureOffers(cloudId, publisher, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class azureOffersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)
            var publisher = publisher_example;  // String |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List Azure offer list by publisher
                AzureOffersList result = apiInstance.azureOffers(cloudId, publisher, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureOffers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$cloudId = 56; // Integer | 
$publisher = publisher_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->azureOffers($cloudId, $publisher, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureOffers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $cloudId = 56; # Integer | 
my $publisher = publisher_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->azureOffers(cloudId => $cloudId, publisher => $publisher, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureOffers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
cloudId = 56 # Integer |  (default to null)
publisher = publisher_example # String |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List Azure offer list by publisher
    api_response = api_instance.azure_offers(cloudId, publisher, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureOffers: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer
    let publisher = publisher_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureOffers(cloudId, publisher, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required
publisher*
String
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


azurePublishers

List Azure publishers list


/api/v1/azure/publishers/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/azure/publishers/{cloudId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzurePublishersList result = apiInstance.azurePublishers(cloudId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azurePublishers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.azurePublishers(cloudId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azurePublishers: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzurePublishersList result = apiInstance.azurePublishers(cloudId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azurePublishers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List Azure publishers list
[apiInstance azurePublishersWith:cloudId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(AzurePublishersList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var cloudId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.azurePublishers(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class azurePublishersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List Azure publishers list
                AzurePublishersList result = apiInstance.azurePublishers(cloudId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azurePublishers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$cloudId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->azurePublishers($cloudId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azurePublishers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $cloudId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->azurePublishers(cloudId => $cloudId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azurePublishers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
cloudId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List Azure publishers list
    api_response = api_instance.azure_publishers(cloudId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azurePublishers: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azurePublishers(cloudId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


azureSkus

List Azure skus list by publisher and offer


/api/v1/azure/skus/{cloudId}/{publisher}/{offer}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/azure/skus/{cloudId}/{publisher}/{offer}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String publisher = publisher_example; // String | 
        String offer = offer_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureSkusList result = apiInstance.azureSkus(cloudId, publisher, offer, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureSkus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 
final String publisher = new String(); // String | 
final String offer = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.azureSkus(cloudId, publisher, offer, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureSkus: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        String publisher = publisher_example; // String | 
        String offer = offer_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            AzureSkusList result = apiInstance.azureSkus(cloudId, publisher, offer, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureSkus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)
String *publisher = publisher_example; //  (default to null)
String *offer = offer_example; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List Azure skus list by publisher and offer
[apiInstance azureSkusWith:cloudId
    publisher:publisher
    offer:offer
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(AzureSkusList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var cloudId = 56; // {Integer} 
var publisher = publisher_example; // {String} 
var offer = offer_example; // {String} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.azureSkus(cloudId, publisher, offer, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class azureSkusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)
            var publisher = publisher_example;  // String |  (default to null)
            var offer = offer_example;  // String |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List Azure skus list by publisher and offer
                AzureSkusList result = apiInstance.azureSkus(cloudId, publisher, offer, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureSkus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$cloudId = 56; // Integer | 
$publisher = publisher_example; // String | 
$offer = offer_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->azureSkus($cloudId, $publisher, $offer, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureSkus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $cloudId = 56; # Integer | 
my $publisher = publisher_example; # String | 
my $offer = offer_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->azureSkus(cloudId => $cloudId, publisher => $publisher, offer => $offer, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureSkus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
cloudId = 56 # Integer |  (default to null)
publisher = publisher_example # String |  (default to null)
offer = offer_example # String |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List Azure skus list by publisher and offer
    api_response = api_instance.azure_skus(cloudId, publisher, offer, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureSkus: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer
    let publisher = publisher_example; // String
    let offer = offer_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureSkus(cloudId, publisher, offer, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required
publisher*
String
Required
offer*
String
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


azureSubscriptions

Azure subscriptions list


/api/v1/azure/subscriptions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/subscriptions" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "azureTenantId" : "azureTenantId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureSubscriptionListCommand azureSubscriptionListCommand = ; // AzureSubscriptionListCommand | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.azureSubscriptions(azureSubscriptionListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureSubscriptions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureSubscriptionListCommand azureSubscriptionListCommand = new AzureSubscriptionListCommand(); // AzureSubscriptionListCommand | 

try {
    final result = await api_instance.azureSubscriptions(azureSubscriptionListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureSubscriptions: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureSubscriptionListCommand azureSubscriptionListCommand = ; // AzureSubscriptionListCommand | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.azureSubscriptions(azureSubscriptionListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureSubscriptions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureSubscriptionListCommand *azureSubscriptionListCommand = ; //  (optional)

// Azure subscriptions list
[apiInstance azureSubscriptionsWith:azureSubscriptionListCommand
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureSubscriptionListCommand':  // {AzureSubscriptionListCommand} 
};

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

namespace Example
{
    public class azureSubscriptionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureSubscriptionListCommand = new AzureSubscriptionListCommand(); // AzureSubscriptionListCommand |  (optional) 

            try {
                // Azure subscriptions list
                array[CommonStringBasedDropdownDto] result = apiInstance.azureSubscriptions(azureSubscriptionListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureSubscriptions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureSubscriptionListCommand = ; // AzureSubscriptionListCommand | 

try {
    $result = $api_instance->azureSubscriptions($azureSubscriptionListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureSubscriptions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureSubscriptionListCommand = WWW::OPenAPIClient::Object::AzureSubscriptionListCommand->new(); # AzureSubscriptionListCommand | 

eval {
    my $result = $api_instance->azureSubscriptions(azureSubscriptionListCommand => $azureSubscriptionListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureSubscriptions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureSubscriptionListCommand =  # AzureSubscriptionListCommand |  (optional)

try:
    # Azure subscriptions list
    api_response = api_instance.azure_subscriptions(azureSubscriptionListCommand=azureSubscriptionListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureSubscriptions: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureSubscriptionListCommand = ; // AzureSubscriptionListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureSubscriptions(azureSubscriptionListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureSubscriptionListCommand

Responses


azureUpdate

Update Azure credentials


/api/v1/azure/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/update" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "name" : "name",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        UpdateAzureCommand updateAzureCommand = ; // UpdateAzureCommand | 

        try {
            Object result = apiInstance.azureUpdate(updateAzureCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateAzureCommand updateAzureCommand = new UpdateAzureCommand(); // UpdateAzureCommand | 

try {
    final result = await api_instance.azureUpdate(updateAzureCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureUpdate: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        UpdateAzureCommand updateAzureCommand = ; // UpdateAzureCommand | 

        try {
            Object result = apiInstance.azureUpdate(updateAzureCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
UpdateAzureCommand *updateAzureCommand = ; //  (optional)

// Update Azure credentials
[apiInstance azureUpdateWith:updateAzureCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'updateAzureCommand':  // {UpdateAzureCommand} 
};

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

namespace Example
{
    public class azureUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var updateAzureCommand = new UpdateAzureCommand(); // UpdateAzureCommand |  (optional) 

            try {
                // Update Azure credentials
                Object result = apiInstance.azureUpdate(updateAzureCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$updateAzureCommand = ; // UpdateAzureCommand | 

try {
    $result = $api_instance->azureUpdate($updateAzureCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $updateAzureCommand = WWW::OPenAPIClient::Object::UpdateAzureCommand->new(); # UpdateAzureCommand | 

eval {
    my $result = $api_instance->azureUpdate(updateAzureCommand => $updateAzureCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
updateAzureCommand =  # UpdateAzureCommand |  (optional)

try:
    # Update Azure credentials
    api_response = api_instance.azure_update(updateAzureCommand=updateAzureCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureUpdate: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let updateAzureCommand = ; // UpdateAzureCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureUpdate(updateAzureCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateAzureCommand

Responses


azureVnetList

Retrieve VNets within an Azure resource group


/api/v1/azure/vnet-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/vnet-list" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "ipMode" : "",
  "azureClientId" : "azureClientId",
  "resourceGroupName" : "resourceGroupName",
  "cloudId" : 0,
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetListCommand azureVnetListCommand = ; // AzureVnetListCommand | 

        try {
            array[AzureVnetDto] result = apiInstance.azureVnetList(azureVnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureVnetListCommand azureVnetListCommand = new AzureVnetListCommand(); // AzureVnetListCommand | 

try {
    final result = await api_instance.azureVnetList(azureVnetListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureVnetList: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetListCommand azureVnetListCommand = ; // AzureVnetListCommand | 

        try {
            array[AzureVnetDto] result = apiInstance.azureVnetList(azureVnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureVnetListCommand *azureVnetListCommand = ; //  (optional)

// Retrieve VNets within an Azure resource group
[apiInstance azureVnetListWith:azureVnetListCommand
              completionHandler: ^(array[AzureVnetDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureVnetListCommand':  // {AzureVnetListCommand} 
};

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

namespace Example
{
    public class azureVnetListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureVnetListCommand = new AzureVnetListCommand(); // AzureVnetListCommand |  (optional) 

            try {
                // Retrieve VNets within an Azure resource group
                array[AzureVnetDto] result = apiInstance.azureVnetList(azureVnetListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureVnetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureVnetListCommand = ; // AzureVnetListCommand | 

try {
    $result = $api_instance->azureVnetList($azureVnetListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureVnetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureVnetListCommand = WWW::OPenAPIClient::Object::AzureVnetListCommand->new(); # AzureVnetListCommand | 

eval {
    my $result = $api_instance->azureVnetList(azureVnetListCommand => $azureVnetListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureVnetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureVnetListCommand =  # AzureVnetListCommand |  (optional)

try:
    # Retrieve VNets within an Azure resource group
    api_response = api_instance.azure_vnet_list(azureVnetListCommand=azureVnetListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureVnetList: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureVnetListCommand = ; // AzureVnetListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureVnetList(azureVnetListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureVnetListCommand

Responses


azureVnetResourceGroupList

Retrieve Azure resource groups that contain VNets


/api/v1/azure/vnet-resource-group-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/vnet-resource-group-list" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "cloudId" : 0,
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetResourceGroupListCommand azureVnetResourceGroupListCommand = ; // AzureVnetResourceGroupListCommand | 

        try {
            array['String'] result = apiInstance.azureVnetResourceGroupList(azureVnetResourceGroupListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetResourceGroupList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureVnetResourceGroupListCommand azureVnetResourceGroupListCommand = new AzureVnetResourceGroupListCommand(); // AzureVnetResourceGroupListCommand | 

try {
    final result = await api_instance.azureVnetResourceGroupList(azureVnetResourceGroupListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureVnetResourceGroupList: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetResourceGroupListCommand azureVnetResourceGroupListCommand = ; // AzureVnetResourceGroupListCommand | 

        try {
            array['String'] result = apiInstance.azureVnetResourceGroupList(azureVnetResourceGroupListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetResourceGroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureVnetResourceGroupListCommand *azureVnetResourceGroupListCommand = ; //  (optional)

// Retrieve Azure resource groups that contain VNets
[apiInstance azureVnetResourceGroupListWith:azureVnetResourceGroupListCommand
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureVnetResourceGroupListCommand':  // {AzureVnetResourceGroupListCommand} 
};

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

namespace Example
{
    public class azureVnetResourceGroupListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureVnetResourceGroupListCommand = new AzureVnetResourceGroupListCommand(); // AzureVnetResourceGroupListCommand |  (optional) 

            try {
                // Retrieve Azure resource groups that contain VNets
                array['String'] result = apiInstance.azureVnetResourceGroupList(azureVnetResourceGroupListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureVnetResourceGroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureVnetResourceGroupListCommand = ; // AzureVnetResourceGroupListCommand | 

try {
    $result = $api_instance->azureVnetResourceGroupList($azureVnetResourceGroupListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureVnetResourceGroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureVnetResourceGroupListCommand = WWW::OPenAPIClient::Object::AzureVnetResourceGroupListCommand->new(); # AzureVnetResourceGroupListCommand | 

eval {
    my $result = $api_instance->azureVnetResourceGroupList(azureVnetResourceGroupListCommand => $azureVnetResourceGroupListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureVnetResourceGroupList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureVnetResourceGroupListCommand =  # AzureVnetResourceGroupListCommand |  (optional)

try:
    # Retrieve Azure resource groups that contain VNets
    api_response = api_instance.azure_vnet_resource_group_list(azureVnetResourceGroupListCommand=azureVnetResourceGroupListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureVnetResourceGroupList: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureVnetResourceGroupListCommand = ; // AzureVnetResourceGroupListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureVnetResourceGroupList(azureVnetResourceGroupListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureVnetResourceGroupListCommand

Responses


azureVnetSubnetList

Retrieve subnets within an Azure VNet


/api/v1/azure/vnet-subnet-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/vnet-subnet-list" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "ipMode" : "",
  "azureClientId" : "azureClientId",
  "resourceGroupName" : "resourceGroupName",
  "cloudId" : 0,
  "azureTenantId" : "azureTenantId",
  "vnetName" : "vnetName",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetSubnetListCommand azureVnetSubnetListCommand = ; // AzureVnetSubnetListCommand | 

        try {
            array[AzureSubnetDto] result = apiInstance.azureVnetSubnetList(azureVnetSubnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetSubnetList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureVnetSubnetListCommand azureVnetSubnetListCommand = new AzureVnetSubnetListCommand(); // AzureVnetSubnetListCommand | 

try {
    final result = await api_instance.azureVnetSubnetList(azureVnetSubnetListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureVnetSubnetList: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureVnetSubnetListCommand azureVnetSubnetListCommand = ; // AzureVnetSubnetListCommand | 

        try {
            array[AzureSubnetDto] result = apiInstance.azureVnetSubnetList(azureVnetSubnetListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureVnetSubnetList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureVnetSubnetListCommand *azureVnetSubnetListCommand = ; //  (optional)

// Retrieve subnets within an Azure VNet
[apiInstance azureVnetSubnetListWith:azureVnetSubnetListCommand
              completionHandler: ^(array[AzureSubnetDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureVnetSubnetListCommand':  // {AzureVnetSubnetListCommand} 
};

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

namespace Example
{
    public class azureVnetSubnetListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureVnetSubnetListCommand = new AzureVnetSubnetListCommand(); // AzureVnetSubnetListCommand |  (optional) 

            try {
                // Retrieve subnets within an Azure VNet
                array[AzureSubnetDto] result = apiInstance.azureVnetSubnetList(azureVnetSubnetListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureVnetSubnetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureVnetSubnetListCommand = ; // AzureVnetSubnetListCommand | 

try {
    $result = $api_instance->azureVnetSubnetList($azureVnetSubnetListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureVnetSubnetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureVnetSubnetListCommand = WWW::OPenAPIClient::Object::AzureVnetSubnetListCommand->new(); # AzureVnetSubnetListCommand | 

eval {
    my $result = $api_instance->azureVnetSubnetList(azureVnetSubnetListCommand => $azureVnetSubnetListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureVnetSubnetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureVnetSubnetListCommand =  # AzureVnetSubnetListCommand |  (optional)

try:
    # Retrieve subnets within an Azure VNet
    api_response = api_instance.azure_vnet_subnet_list(azureVnetSubnetListCommand=azureVnetSubnetListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureVnetSubnetList: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureVnetSubnetListCommand = ; // AzureVnetSubnetListCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureVnetSubnetList(azureVnetSubnetListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureVnetSubnetListCommand

Responses


azureZones

Fetch Azure zone list


/api/v1/azure/zones

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/azure/zones" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "azureLocation" : "azureLocation",
  "cloudId" : 0,
  "azureTenantId" : "azureTenantId",
  "azureSubscriptionId" : "azureSubscriptionId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AzureCloudCredentialApi;

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

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureZonesCommand azureZonesCommand = ; // AzureZonesCommand | 

        try {
            AzResult result = apiInstance.azureZones(azureZonesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureZones");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AzureZonesCommand azureZonesCommand = new AzureZonesCommand(); // AzureZonesCommand | 

try {
    final result = await api_instance.azureZones(azureZonesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->azureZones: $e\n');
}

import org.openapitools.client.api.AzureCloudCredentialApi;

public class AzureCloudCredentialApiExample {
    public static void main(String[] args) {
        AzureCloudCredentialApi apiInstance = new AzureCloudCredentialApi();
        AzureZonesCommand azureZonesCommand = ; // AzureZonesCommand | 

        try {
            AzResult result = apiInstance.azureZones(azureZonesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling AzureCloudCredentialApi#azureZones");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
AzureCloudCredentialApi *apiInstance = [[AzureCloudCredentialApi alloc] init];
AzureZonesCommand *azureZonesCommand = ; //  (optional)

// Fetch Azure zone list
[apiInstance azureZonesWith:azureZonesCommand
              completionHandler: ^(AzResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.AzureCloudCredentialApi()
var opts = {
  'azureZonesCommand':  // {AzureZonesCommand} 
};

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

namespace Example
{
    public class azureZonesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new AzureCloudCredentialApi();
            var azureZonesCommand = new AzureZonesCommand(); // AzureZonesCommand |  (optional) 

            try {
                // Fetch Azure zone list
                AzResult result = apiInstance.azureZones(azureZonesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling AzureCloudCredentialApi.azureZones: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AzureCloudCredentialApi();
$azureZonesCommand = ; // AzureZonesCommand | 

try {
    $result = $api_instance->azureZones($azureZonesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AzureCloudCredentialApi->azureZones: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AzureCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AzureCloudCredentialApi->new();
my $azureZonesCommand = WWW::OPenAPIClient::Object::AzureZonesCommand->new(); # AzureZonesCommand | 

eval {
    my $result = $api_instance->azureZones(azureZonesCommand => $azureZonesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AzureCloudCredentialApi->azureZones: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.AzureCloudCredentialApi()
azureZonesCommand =  # AzureZonesCommand |  (optional)

try:
    # Fetch Azure zone list
    api_response = api_instance.azure_zones(azureZonesCommand=azureZonesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling AzureCloudCredentialApi->azureZones: %s\n" % e)
extern crate AzureCloudCredentialApi;

pub fn main() {
    let azureZonesCommand = ; // AzureZonesCommand

    let mut context = AzureCloudCredentialApi::Context::default();
    let result = client.azureZones(azureZonesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
azureZonesCommand

Responses


BackupPolicy

backupByName

Get backup info by name


/api/v1/backup/{projectId}/{name}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/{projectId}/{name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            BackupDto result = apiInstance.backupByName(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupByName");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String name = new String(); // String | 

try {
    final result = await api_instance.backupByName(projectId, name);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupByName: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            BackupDto result = apiInstance.backupByName(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupByName");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *name = name_example; //  (default to null)

// Get backup info by name
[apiInstance backupByNameWith:projectId
    name:name
              completionHandler: ^(BackupDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
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.backupByName(projectId, name, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupByNameExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var name = name_example;  // String |  (default to null)

            try {
                // Get backup info by name
                BackupDto result = apiInstance.backupByName(projectId, name);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupByName: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$name = name_example; // String | 

try {
    $result = $api_instance->backupByName($projectId, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupByName: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $name = name_example; # String | 

eval {
    my $result = $api_instance->backupByName(projectId => $projectId, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupByName: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
name = name_example # String |  (default to null)

try:
    # Get backup info by name
    api_response = api_instance.backup_by_name(projectId, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupByName: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let name = name_example; // String

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupByName(projectId, name, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
name*
String
Required

Responses


backupCreate

Add backup policy


/api/v1/backup/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/create" \
 -d '{
  "cronPeriod" : "cronPeriod",
  "name" : "name",
  "projectId" : 0,
  "includeNamespaces" : [ "includeNamespaces", "includeNamespaces" ],
  "retentionPeriod" : "720h"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        CreateBackupPolicyCommand createBackupPolicyCommand = ; // CreateBackupPolicyCommand | 

        try {
            Object result = apiInstance.backupCreate(createBackupPolicyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateBackupPolicyCommand createBackupPolicyCommand = new CreateBackupPolicyCommand(); // CreateBackupPolicyCommand | 

try {
    final result = await api_instance.backupCreate(createBackupPolicyCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupCreate: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        CreateBackupPolicyCommand createBackupPolicyCommand = ; // CreateBackupPolicyCommand | 

        try {
            Object result = apiInstance.backupCreate(createBackupPolicyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
CreateBackupPolicyCommand *createBackupPolicyCommand = ; //  (optional)

// Add backup policy
[apiInstance backupCreateWith:createBackupPolicyCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'createBackupPolicyCommand':  // {CreateBackupPolicyCommand} 
};

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

namespace Example
{
    public class backupCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var createBackupPolicyCommand = new CreateBackupPolicyCommand(); // CreateBackupPolicyCommand |  (optional) 

            try {
                // Add backup policy
                Object result = apiInstance.backupCreate(createBackupPolicyCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$createBackupPolicyCommand = ; // CreateBackupPolicyCommand | 

try {
    $result = $api_instance->backupCreate($createBackupPolicyCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $createBackupPolicyCommand = WWW::OPenAPIClient::Object::CreateBackupPolicyCommand->new(); # CreateBackupPolicyCommand | 

eval {
    my $result = $api_instance->backupCreate(createBackupPolicyCommand => $createBackupPolicyCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
createBackupPolicyCommand =  # CreateBackupPolicyCommand |  (optional)

try:
    # Add backup policy
    api_response = api_instance.backup_create(createBackupPolicyCommand=createBackupPolicyCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupCreate: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let createBackupPolicyCommand = ; // CreateBackupPolicyCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupCreate(createBackupPolicyCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createBackupPolicyCommand

Responses


backupDeleteBackup

Remove policy backup


/api/v1/backup/delete/backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/delete/backup" \
 -d '{
  "name" : "name",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteBackupCommand deleteBackupCommand = ; // DeleteBackupCommand | 

        try {
            Object result = apiInstance.backupDeleteBackup(deleteBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteBackupCommand deleteBackupCommand = new DeleteBackupCommand(); // DeleteBackupCommand | 

try {
    final result = await api_instance.backupDeleteBackup(deleteBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDeleteBackup: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteBackupCommand deleteBackupCommand = ; // DeleteBackupCommand | 

        try {
            Object result = apiInstance.backupDeleteBackup(deleteBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
DeleteBackupCommand *deleteBackupCommand = ; //  (optional)

// Remove policy backup
[apiInstance backupDeleteBackupWith:deleteBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'deleteBackupCommand':  // {DeleteBackupCommand} 
};

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

namespace Example
{
    public class backupDeleteBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var deleteBackupCommand = new DeleteBackupCommand(); // DeleteBackupCommand |  (optional) 

            try {
                // Remove policy backup
                Object result = apiInstance.backupDeleteBackup(deleteBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDeleteBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$deleteBackupCommand = ; // DeleteBackupCommand | 

try {
    $result = $api_instance->backupDeleteBackup($deleteBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDeleteBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $deleteBackupCommand = WWW::OPenAPIClient::Object::DeleteBackupCommand->new(); # DeleteBackupCommand | 

eval {
    my $result = $api_instance->backupDeleteBackup(deleteBackupCommand => $deleteBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDeleteBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
deleteBackupCommand =  # DeleteBackupCommand |  (optional)

try:
    # Remove policy backup
    api_response = api_instance.backup_delete_backup(deleteBackupCommand=deleteBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDeleteBackup: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let deleteBackupCommand = ; // DeleteBackupCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDeleteBackup(deleteBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteBackupCommand

Responses


backupDeleteBackupLocation

Remove backup location from project


/api/v1/backup/delete/location

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/delete/location" \
 -d '{
  "storageLocation" : "storageLocation",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteBackupStorageLocationCommand deleteBackupStorageLocationCommand = ; // DeleteBackupStorageLocationCommand | 

        try {
            Object result = apiInstance.backupDeleteBackupLocation(deleteBackupStorageLocationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteBackupLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteBackupStorageLocationCommand deleteBackupStorageLocationCommand = new DeleteBackupStorageLocationCommand(); // DeleteBackupStorageLocationCommand | 

try {
    final result = await api_instance.backupDeleteBackupLocation(deleteBackupStorageLocationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDeleteBackupLocation: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteBackupStorageLocationCommand deleteBackupStorageLocationCommand = ; // DeleteBackupStorageLocationCommand | 

        try {
            Object result = apiInstance.backupDeleteBackupLocation(deleteBackupStorageLocationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteBackupLocation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
DeleteBackupStorageLocationCommand *deleteBackupStorageLocationCommand = ; //  (optional)

// Remove backup location from project
[apiInstance backupDeleteBackupLocationWith:deleteBackupStorageLocationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'deleteBackupStorageLocationCommand':  // {DeleteBackupStorageLocationCommand} 
};

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

namespace Example
{
    public class backupDeleteBackupLocationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var deleteBackupStorageLocationCommand = new DeleteBackupStorageLocationCommand(); // DeleteBackupStorageLocationCommand |  (optional) 

            try {
                // Remove backup location from project
                Object result = apiInstance.backupDeleteBackupLocation(deleteBackupStorageLocationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDeleteBackupLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$deleteBackupStorageLocationCommand = ; // DeleteBackupStorageLocationCommand | 

try {
    $result = $api_instance->backupDeleteBackupLocation($deleteBackupStorageLocationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDeleteBackupLocation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $deleteBackupStorageLocationCommand = WWW::OPenAPIClient::Object::DeleteBackupStorageLocationCommand->new(); # DeleteBackupStorageLocationCommand | 

eval {
    my $result = $api_instance->backupDeleteBackupLocation(deleteBackupStorageLocationCommand => $deleteBackupStorageLocationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDeleteBackupLocation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
deleteBackupStorageLocationCommand =  # DeleteBackupStorageLocationCommand |  (optional)

try:
    # Remove backup location from project
    api_response = api_instance.backup_delete_backup_location(deleteBackupStorageLocationCommand=deleteBackupStorageLocationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDeleteBackupLocation: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let deleteBackupStorageLocationCommand = ; // DeleteBackupStorageLocationCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDeleteBackupLocation(deleteBackupStorageLocationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteBackupStorageLocationCommand

Responses


backupDeleteRestore

Remove policy restore


/api/v1/backup/delete/restore

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/delete/restore" \
 -d '{
  "name" : "name",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteRestoreCommand deleteRestoreCommand = ; // DeleteRestoreCommand | 

        try {
            Object result = apiInstance.backupDeleteRestore(deleteRestoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteRestore");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteRestoreCommand deleteRestoreCommand = new DeleteRestoreCommand(); // DeleteRestoreCommand | 

try {
    final result = await api_instance.backupDeleteRestore(deleteRestoreCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDeleteRestore: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteRestoreCommand deleteRestoreCommand = ; // DeleteRestoreCommand | 

        try {
            Object result = apiInstance.backupDeleteRestore(deleteRestoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteRestore");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
DeleteRestoreCommand *deleteRestoreCommand = ; //  (optional)

// Remove policy restore
[apiInstance backupDeleteRestoreWith:deleteRestoreCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'deleteRestoreCommand':  // {DeleteRestoreCommand} 
};

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

namespace Example
{
    public class backupDeleteRestoreExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var deleteRestoreCommand = new DeleteRestoreCommand(); // DeleteRestoreCommand |  (optional) 

            try {
                // Remove policy restore
                Object result = apiInstance.backupDeleteRestore(deleteRestoreCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDeleteRestore: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$deleteRestoreCommand = ; // DeleteRestoreCommand | 

try {
    $result = $api_instance->backupDeleteRestore($deleteRestoreCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDeleteRestore: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $deleteRestoreCommand = WWW::OPenAPIClient::Object::DeleteRestoreCommand->new(); # DeleteRestoreCommand | 

eval {
    my $result = $api_instance->backupDeleteRestore(deleteRestoreCommand => $deleteRestoreCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDeleteRestore: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
deleteRestoreCommand =  # DeleteRestoreCommand |  (optional)

try:
    # Remove policy restore
    api_response = api_instance.backup_delete_restore(deleteRestoreCommand=deleteRestoreCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDeleteRestore: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let deleteRestoreCommand = ; // DeleteRestoreCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDeleteRestore(deleteRestoreCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteRestoreCommand

Responses


backupDeleteSchedule

Remove policy schedule


/api/v1/backup/delete/schedule

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/delete/schedule" \
 -d '{
  "name" : "name",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteScheduleCommand deleteScheduleCommand = ; // DeleteScheduleCommand | 

        try {
            Object result = apiInstance.backupDeleteSchedule(deleteScheduleCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteSchedule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteScheduleCommand deleteScheduleCommand = new DeleteScheduleCommand(); // DeleteScheduleCommand | 

try {
    final result = await api_instance.backupDeleteSchedule(deleteScheduleCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDeleteSchedule: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        DeleteScheduleCommand deleteScheduleCommand = ; // DeleteScheduleCommand | 

        try {
            Object result = apiInstance.backupDeleteSchedule(deleteScheduleCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDeleteSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
DeleteScheduleCommand *deleteScheduleCommand = ; //  (optional)

// Remove policy schedule
[apiInstance backupDeleteScheduleWith:deleteScheduleCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'deleteScheduleCommand':  // {DeleteScheduleCommand} 
};

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

namespace Example
{
    public class backupDeleteScheduleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var deleteScheduleCommand = new DeleteScheduleCommand(); // DeleteScheduleCommand |  (optional) 

            try {
                // Remove policy schedule
                Object result = apiInstance.backupDeleteSchedule(deleteScheduleCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDeleteSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$deleteScheduleCommand = ; // DeleteScheduleCommand | 

try {
    $result = $api_instance->backupDeleteSchedule($deleteScheduleCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDeleteSchedule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $deleteScheduleCommand = WWW::OPenAPIClient::Object::DeleteScheduleCommand->new(); # DeleteScheduleCommand | 

eval {
    my $result = $api_instance->backupDeleteSchedule(deleteScheduleCommand => $deleteScheduleCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDeleteSchedule: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
deleteScheduleCommand =  # DeleteScheduleCommand |  (optional)

try:
    # Remove policy schedule
    api_response = api_instance.backup_delete_schedule(deleteScheduleCommand=deleteScheduleCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDeleteSchedule: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let deleteScheduleCommand = ; // DeleteScheduleCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDeleteSchedule(deleteScheduleCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteScheduleCommand

Responses


backupDescribeBackup

Get backup info by name


/api/v1/backup/describe/backup/{projectId}/{name}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/backup/describe/backup/{projectId}/{name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeBackup(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String name = new String(); // String | 

try {
    final result = await api_instance.backupDescribeBackup(projectId, name);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDescribeBackup: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeBackup(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *name = name_example; //  (default to null)

// Get backup info by name
[apiInstance backupDescribeBackupWith:projectId
    name:name
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
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.backupDescribeBackup(projectId, name, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupDescribeBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var name = name_example;  // String |  (default to null)

            try {
                // Get backup info by name
                'String' result = apiInstance.backupDescribeBackup(projectId, name);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDescribeBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$name = name_example; // String | 

try {
    $result = $api_instance->backupDescribeBackup($projectId, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDescribeBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $name = name_example; # String | 

eval {
    my $result = $api_instance->backupDescribeBackup(projectId => $projectId, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDescribeBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
name = name_example # String |  (default to null)

try:
    # Get backup info by name
    api_response = api_instance.backup_describe_backup(projectId, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDescribeBackup: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let name = name_example; // String

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDescribeBackup(projectId, name, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
name*
String
Required

Responses


backupDescribeRestore

Get restore info by name


/api/v1/backup/describe/restore/{projectId}/{name}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/backup/describe/restore/{projectId}/{name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeRestore(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeRestore");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String name = new String(); // String | 

try {
    final result = await api_instance.backupDescribeRestore(projectId, name);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDescribeRestore: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeRestore(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeRestore");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *name = name_example; //  (default to null)

// Get restore info by name
[apiInstance backupDescribeRestoreWith:projectId
    name:name
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
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.backupDescribeRestore(projectId, name, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupDescribeRestoreExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var name = name_example;  // String |  (default to null)

            try {
                // Get restore info by name
                'String' result = apiInstance.backupDescribeRestore(projectId, name);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDescribeRestore: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$name = name_example; // String | 

try {
    $result = $api_instance->backupDescribeRestore($projectId, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDescribeRestore: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $name = name_example; # String | 

eval {
    my $result = $api_instance->backupDescribeRestore(projectId => $projectId, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDescribeRestore: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
name = name_example # String |  (default to null)

try:
    # Get restore info by name
    api_response = api_instance.backup_describe_restore(projectId, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDescribeRestore: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let name = name_example; // String

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDescribeRestore(projectId, name, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
name*
String
Required

Responses


backupDescribeSchedule

Get schedule info by name


/api/v1/backup/describe/schedule/{projectId}/{name}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/backup/describe/schedule/{projectId}/{name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeSchedule(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeSchedule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String name = new String(); // String | 

try {
    final result = await api_instance.backupDescribeSchedule(projectId, name);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupDescribeSchedule: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String name = name_example; // String | 

        try {
            'String' result = apiInstance.backupDescribeSchedule(projectId, name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupDescribeSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *name = name_example; //  (default to null)

// Get schedule info by name
[apiInstance backupDescribeScheduleWith:projectId
    name:name
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
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.backupDescribeSchedule(projectId, name, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupDescribeScheduleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var name = name_example;  // String |  (default to null)

            try {
                // Get schedule info by name
                'String' result = apiInstance.backupDescribeSchedule(projectId, name);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupDescribeSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$name = name_example; // String | 

try {
    $result = $api_instance->backupDescribeSchedule($projectId, $name);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupDescribeSchedule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $name = name_example; # String | 

eval {
    my $result = $api_instance->backupDescribeSchedule(projectId => $projectId, name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupDescribeSchedule: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
name = name_example # String |  (default to null)

try:
    # Get schedule info by name
    api_response = api_instance.backup_describe_schedule(projectId, name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupDescribeSchedule: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let name = name_example; // String

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupDescribeSchedule(projectId, name, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
name*
String
Required

Responses


backupImportBackupStorage

Import backup storage from source project to target project


/api/v1/backup/location

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/location" \
 -d '{
  "targetProjectId" : 0,
  "sourceProjectId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        ImportBackupStorageLocationCommand importBackupStorageLocationCommand = ; // ImportBackupStorageLocationCommand | 

        try {
            Object result = apiInstance.backupImportBackupStorage(importBackupStorageLocationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupImportBackupStorage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportBackupStorageLocationCommand importBackupStorageLocationCommand = new ImportBackupStorageLocationCommand(); // ImportBackupStorageLocationCommand | 

try {
    final result = await api_instance.backupImportBackupStorage(importBackupStorageLocationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupImportBackupStorage: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        ImportBackupStorageLocationCommand importBackupStorageLocationCommand = ; // ImportBackupStorageLocationCommand | 

        try {
            Object result = apiInstance.backupImportBackupStorage(importBackupStorageLocationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupImportBackupStorage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
ImportBackupStorageLocationCommand *importBackupStorageLocationCommand = ; //  (optional)

// Import backup storage from source project to target project
[apiInstance backupImportBackupStorageWith:importBackupStorageLocationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'importBackupStorageLocationCommand':  // {ImportBackupStorageLocationCommand} 
};

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

namespace Example
{
    public class backupImportBackupStorageExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var importBackupStorageLocationCommand = new ImportBackupStorageLocationCommand(); // ImportBackupStorageLocationCommand |  (optional) 

            try {
                // Import backup storage from source project to target project
                Object result = apiInstance.backupImportBackupStorage(importBackupStorageLocationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupImportBackupStorage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$importBackupStorageLocationCommand = ; // ImportBackupStorageLocationCommand | 

try {
    $result = $api_instance->backupImportBackupStorage($importBackupStorageLocationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupImportBackupStorage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $importBackupStorageLocationCommand = WWW::OPenAPIClient::Object::ImportBackupStorageLocationCommand->new(); # ImportBackupStorageLocationCommand | 

eval {
    my $result = $api_instance->backupImportBackupStorage(importBackupStorageLocationCommand => $importBackupStorageLocationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupImportBackupStorage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
importBackupStorageLocationCommand =  # ImportBackupStorageLocationCommand |  (optional)

try:
    # Import backup storage from source project to target project
    api_response = api_instance.backup_import_backup_storage(importBackupStorageLocationCommand=importBackupStorageLocationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupImportBackupStorage: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let importBackupStorageLocationCommand = ; // ImportBackupStorageLocationCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupImportBackupStorage(importBackupStorageLocationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importBackupStorageLocationCommand

Responses


backupListAllBackupStorages

List all backup locations


/api/v1/backup/location/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/location/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllBackupStorageLocations result = apiInstance.backupListAllBackupStorages(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllBackupStorages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.backupListAllBackupStorages(projectId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupListAllBackupStorages: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllBackupStorageLocations result = apiInstance.backupListAllBackupStorages(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllBackupStorages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List all backup locations
[apiInstance backupListAllBackupStoragesWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(ListAllBackupStorageLocations output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.backupListAllBackupStorages(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupListAllBackupStoragesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List all backup locations
                ListAllBackupStorageLocations result = apiInstance.backupListAllBackupStorages(projectId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupListAllBackupStorages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->backupListAllBackupStorages($projectId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupListAllBackupStorages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->backupListAllBackupStorages(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupListAllBackupStorages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List all backup locations
    api_response = api_instance.backup_list_all_backup_storages(projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupListAllBackupStorages: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupListAllBackupStorages(projectId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


backupListAllBackups

List all backups


/api/v1/backup/backups/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/backups/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllBackups result = apiInstance.backupListAllBackups(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllBackups");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.backupListAllBackups(projectId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupListAllBackups: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllBackups result = apiInstance.backupListAllBackups(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllBackups");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List all backups
[apiInstance backupListAllBackupsWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(ListAllBackups output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.backupListAllBackups(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupListAllBackupsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List all backups
                ListAllBackups result = apiInstance.backupListAllBackups(projectId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupListAllBackups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->backupListAllBackups($projectId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupListAllBackups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->backupListAllBackups(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupListAllBackups: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List all backups
    api_response = api_instance.backup_list_all_backups(projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupListAllBackups: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupListAllBackups(projectId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


backupListAllDeleteBackupRequests

List all delete backup requests


/api/v1/backup/delete-requests/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/delete-requests/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllDeleteBackupRequests result = apiInstance.backupListAllDeleteBackupRequests(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllDeleteBackupRequests");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.backupListAllDeleteBackupRequests(projectId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupListAllDeleteBackupRequests: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllDeleteBackupRequests result = apiInstance.backupListAllDeleteBackupRequests(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllDeleteBackupRequests");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List all delete backup requests
[apiInstance backupListAllDeleteBackupRequestsWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(ListAllDeleteBackupRequests output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.backupListAllDeleteBackupRequests(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupListAllDeleteBackupRequestsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List all delete backup requests
                ListAllDeleteBackupRequests result = apiInstance.backupListAllDeleteBackupRequests(projectId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupListAllDeleteBackupRequests: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->backupListAllDeleteBackupRequests($projectId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupListAllDeleteBackupRequests: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->backupListAllDeleteBackupRequests(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupListAllDeleteBackupRequests: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List all delete backup requests
    api_response = api_instance.backup_list_all_delete_backup_requests(projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupListAllDeleteBackupRequests: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupListAllDeleteBackupRequests(projectId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


backupListAllRestores

List all restores


/api/v1/backup/restores/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/restores/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllRestores result = apiInstance.backupListAllRestores(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllRestores");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.backupListAllRestores(projectId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupListAllRestores: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllRestores result = apiInstance.backupListAllRestores(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllRestores");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List all restores
[apiInstance backupListAllRestoresWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(ListAllRestores output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.backupListAllRestores(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupListAllRestoresExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List all restores
                ListAllRestores result = apiInstance.backupListAllRestores(projectId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupListAllRestores: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->backupListAllRestores($projectId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupListAllRestores: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->backupListAllRestores(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupListAllRestores: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List all restores
    api_response = api_instance.backup_list_all_restores(projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupListAllRestores: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupListAllRestores(projectId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


backupListAllSchedules

List all schedules


/api/v1/backup/schedules/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/backup/schedules/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllSchedules result = apiInstance.backupListAllSchedules(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllSchedules");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.backupListAllSchedules(projectId, sortBy, sortDirection, search, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupListAllSchedules: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        Integer projectId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            ListAllSchedules result = apiInstance.backupListAllSchedules(projectId, sortBy, sortDirection, search, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupListAllSchedules");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
Integer *projectId = 56; //  (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List all schedules
[apiInstance backupListAllSchedulesWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    limit:limit
    offset:offset
              completionHandler: ^(ListAllSchedules output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var projectId = 56; // {Integer} 
var opts = {
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.backupListAllSchedules(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class backupListAllSchedulesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var projectId = 56;  // Integer |  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List all schedules
                ListAllSchedules result = apiInstance.backupListAllSchedules(projectId, sortBy, sortDirection, search, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupListAllSchedules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$projectId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->backupListAllSchedules($projectId, $sortBy, $sortDirection, $search, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupListAllSchedules: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $projectId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->backupListAllSchedules(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupListAllSchedules: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
projectId = 56 # Integer |  (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List all schedules
    api_response = api_instance.backup_list_all_schedules(projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupListAllSchedules: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupListAllSchedules(projectId, sortBy, sortDirection, search, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Query parameters
Name Description
SortBy
String
SortDirection
String
Search
Limit
Integer (int32)
Offset
Integer (int32)

Responses


backupRestoreBackup

Restore backup


/api/v1/backup/restore

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/backup/restore" \
 -d '{
  "excludeNamespaces" : [ "excludeNamespaces", "excludeNamespaces" ],
  "projectId" : 0,
  "backupName" : "backupName",
  "restoreName" : "restoreName",
  "includeNamespaces" : [ "includeNamespaces", "includeNamespaces" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BackupPolicyApi;

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

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        RestoreBackupCommand restoreBackupCommand = ; // RestoreBackupCommand | 

        try {
            Object result = apiInstance.backupRestoreBackup(restoreBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupRestoreBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RestoreBackupCommand restoreBackupCommand = new RestoreBackupCommand(); // RestoreBackupCommand | 

try {
    final result = await api_instance.backupRestoreBackup(restoreBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->backupRestoreBackup: $e\n');
}

import org.openapitools.client.api.BackupPolicyApi;

public class BackupPolicyApiExample {
    public static void main(String[] args) {
        BackupPolicyApi apiInstance = new BackupPolicyApi();
        RestoreBackupCommand restoreBackupCommand = ; // RestoreBackupCommand | 

        try {
            Object result = apiInstance.backupRestoreBackup(restoreBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BackupPolicyApi#backupRestoreBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BackupPolicyApi *apiInstance = [[BackupPolicyApi alloc] init];
RestoreBackupCommand *restoreBackupCommand = ; //  (optional)

// Restore backup
[apiInstance backupRestoreBackupWith:restoreBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BackupPolicyApi()
var opts = {
  'restoreBackupCommand':  // {RestoreBackupCommand} 
};

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

namespace Example
{
    public class backupRestoreBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BackupPolicyApi();
            var restoreBackupCommand = new RestoreBackupCommand(); // RestoreBackupCommand |  (optional) 

            try {
                // Restore backup
                Object result = apiInstance.backupRestoreBackup(restoreBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BackupPolicyApi.backupRestoreBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BackupPolicyApi();
$restoreBackupCommand = ; // RestoreBackupCommand | 

try {
    $result = $api_instance->backupRestoreBackup($restoreBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BackupPolicyApi->backupRestoreBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BackupPolicyApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BackupPolicyApi->new();
my $restoreBackupCommand = WWW::OPenAPIClient::Object::RestoreBackupCommand->new(); # RestoreBackupCommand | 

eval {
    my $result = $api_instance->backupRestoreBackup(restoreBackupCommand => $restoreBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BackupPolicyApi->backupRestoreBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BackupPolicyApi()
restoreBackupCommand =  # RestoreBackupCommand |  (optional)

try:
    # Restore backup
    api_response = api_instance.backup_restore_backup(restoreBackupCommand=restoreBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BackupPolicyApi->backupRestoreBackup: %s\n" % e)
extern crate BackupPolicyApi;

pub fn main() {
    let restoreBackupCommand = ; // RestoreBackupCommand

    let mut context = BackupPolicyApi::Context::default();
    let result = client.backupRestoreBackup(restoreBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
restoreBackupCommand

Responses


Billing

billingCreate

Add billing summary


/api/v1/billing/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/billing/create" \
 -d '{
  "beginApply" : "2000-01-23T04:56:07.000+00:00",
  "icu" : 0,
  "projectId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BillingApi;

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

public class BillingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BillingApi apiInstance = new BillingApi();
        CreateBillingSummaryCommand createBillingSummaryCommand = ; // CreateBillingSummaryCommand | 

        try {
            Object result = apiInstance.billingCreate(createBillingSummaryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateBillingSummaryCommand createBillingSummaryCommand = new CreateBillingSummaryCommand(); // CreateBillingSummaryCommand | 

try {
    final result = await api_instance.billingCreate(createBillingSummaryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->billingCreate: $e\n');
}

import org.openapitools.client.api.BillingApi;

public class BillingApiExample {
    public static void main(String[] args) {
        BillingApi apiInstance = new BillingApi();
        CreateBillingSummaryCommand createBillingSummaryCommand = ; // CreateBillingSummaryCommand | 

        try {
            Object result = apiInstance.billingCreate(createBillingSummaryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BillingApi *apiInstance = [[BillingApi alloc] init];
CreateBillingSummaryCommand *createBillingSummaryCommand = ; //  (optional)

// Add billing summary
[apiInstance billingCreateWith:createBillingSummaryCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BillingApi()
var opts = {
  'createBillingSummaryCommand':  // {CreateBillingSummaryCommand} 
};

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

namespace Example
{
    public class billingCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BillingApi();
            var createBillingSummaryCommand = new CreateBillingSummaryCommand(); // CreateBillingSummaryCommand |  (optional) 

            try {
                // Add billing summary
                Object result = apiInstance.billingCreate(createBillingSummaryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BillingApi.billingCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BillingApi();
$createBillingSummaryCommand = ; // CreateBillingSummaryCommand | 

try {
    $result = $api_instance->billingCreate($createBillingSummaryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingApi->billingCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BillingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BillingApi->new();
my $createBillingSummaryCommand = WWW::OPenAPIClient::Object::CreateBillingSummaryCommand->new(); # CreateBillingSummaryCommand | 

eval {
    my $result = $api_instance->billingCreate(createBillingSummaryCommand => $createBillingSummaryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingApi->billingCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BillingApi()
createBillingSummaryCommand =  # CreateBillingSummaryCommand |  (optional)

try:
    # Add billing summary
    api_response = api_instance.billing_create(createBillingSummaryCommand=createBillingSummaryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billingCreate: %s\n" % e)
extern crate BillingApi;

pub fn main() {
    let createBillingSummaryCommand = ; // CreateBillingSummaryCommand

    let mut context = BillingApi::Context::default();
    let result = client.billingCreate(createBillingSummaryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createBillingSummaryCommand

Responses


billingExportCsv

Export Csv


/api/v1/billing/export

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/billing/export?OrganizationId=56&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&IsDeleted=true&IsEmailEnabled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BillingApi;

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

public class BillingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BillingApi apiInstance = new BillingApi();
        Boolean isEmailEnabled = true; // Boolean | 
        Integer organizationId = 56; // Integer | 
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 
        Boolean isDeleted = true; // Boolean | 

        try {
            CsvExporter result = apiInstance.billingExportCsv(isEmailEnabled, organizationId, startDate, endDate, isDeleted);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingExportCsv");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean isEmailEnabled = new Boolean(); // Boolean | 
final Integer organizationId = new Integer(); // Integer | 
final Date startDate = new Date(); // Date | 
final Date endDate = new Date(); // Date | 
final Boolean isDeleted = new Boolean(); // Boolean | 

try {
    final result = await api_instance.billingExportCsv(isEmailEnabled, organizationId, startDate, endDate, isDeleted);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->billingExportCsv: $e\n');
}

import org.openapitools.client.api.BillingApi;

public class BillingApiExample {
    public static void main(String[] args) {
        BillingApi apiInstance = new BillingApi();
        Boolean isEmailEnabled = true; // Boolean | 
        Integer organizationId = 56; // Integer | 
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 
        Boolean isDeleted = true; // Boolean | 

        try {
            CsvExporter result = apiInstance.billingExportCsv(isEmailEnabled, organizationId, startDate, endDate, isDeleted);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingExportCsv");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BillingApi *apiInstance = [[BillingApi alloc] init];
Boolean *isEmailEnabled = true; //  (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Boolean *isDeleted = true; //  (optional) (default to null)

// Export Csv
[apiInstance billingExportCsvWith:isEmailEnabled
    organizationId:organizationId
    startDate:startDate
    endDate:endDate
    isDeleted:isDeleted
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BillingApi()
var isEmailEnabled = true; // {Boolean} 
var opts = {
  'organizationId': 56, // {Integer} 
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'isDeleted': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.billingExportCsv(isEmailEnabled, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class billingExportCsvExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BillingApi();
            var isEmailEnabled = true;  // Boolean |  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var isDeleted = true;  // Boolean |  (optional)  (default to null)

            try {
                // Export Csv
                CsvExporter result = apiInstance.billingExportCsv(isEmailEnabled, organizationId, startDate, endDate, isDeleted);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BillingApi.billingExportCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BillingApi();
$isEmailEnabled = true; // Boolean | 
$organizationId = 56; // Integer | 
$startDate = 2013-10-20T19:20:30+01:00; // Date | 
$endDate = 2013-10-20T19:20:30+01:00; // Date | 
$isDeleted = true; // Boolean | 

try {
    $result = $api_instance->billingExportCsv($isEmailEnabled, $organizationId, $startDate, $endDate, $isDeleted);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingApi->billingExportCsv: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BillingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BillingApi->new();
my $isEmailEnabled = true; # Boolean | 
my $organizationId = 56; # Integer | 
my $startDate = 2013-10-20T19:20:30+01:00; # Date | 
my $endDate = 2013-10-20T19:20:30+01:00; # Date | 
my $isDeleted = true; # Boolean | 

eval {
    my $result = $api_instance->billingExportCsv(isEmailEnabled => $isEmailEnabled, organizationId => $organizationId, startDate => $startDate, endDate => $endDate, isDeleted => $isDeleted);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingApi->billingExportCsv: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BillingApi()
isEmailEnabled = true # Boolean |  (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
isDeleted = true # Boolean |  (optional) (default to null)

try:
    # Export Csv
    api_response = api_instance.billing_export_csv(isEmailEnabled, organizationId=organizationId, startDate=startDate, endDate=endDate, isDeleted=isDeleted)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billingExportCsv: %s\n" % e)
extern crate BillingApi;

pub fn main() {
    let isEmailEnabled = true; // Boolean
    let organizationId = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let isDeleted = true; // Boolean

    let mut context = BillingApi::Context::default();
    let result = client.billingExportCsv(isEmailEnabled, organizationId, startDate, endDate, isDeleted, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
StartDate
Date (date-time)
EndDate
Date (date-time)
IsDeleted
Boolean
IsEmailEnabled*
Boolean
Required

Responses


billingGroupedList

Retrieve a grouped list of billing summaries

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/billing/grouped

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/billing/grouped" \
 -d '{
  "organizationId" : 0,
  "periodDuration" : "",
  "isDeleted" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BillingApi;

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

public class BillingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BillingApi apiInstance = new BillingApi();
        GroupedBillingListQuery groupedBillingListQuery = ; // GroupedBillingListQuery | 

        try {
            array[GroupedBillingInfo] result = apiInstance.billingGroupedList(groupedBillingListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingGroupedList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GroupedBillingListQuery groupedBillingListQuery = new GroupedBillingListQuery(); // GroupedBillingListQuery | 

try {
    final result = await api_instance.billingGroupedList(groupedBillingListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->billingGroupedList: $e\n');
}

import org.openapitools.client.api.BillingApi;

public class BillingApiExample {
    public static void main(String[] args) {
        BillingApi apiInstance = new BillingApi();
        GroupedBillingListQuery groupedBillingListQuery = ; // GroupedBillingListQuery | 

        try {
            array[GroupedBillingInfo] result = apiInstance.billingGroupedList(groupedBillingListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingGroupedList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BillingApi *apiInstance = [[BillingApi alloc] init];
GroupedBillingListQuery *groupedBillingListQuery = ; //  (optional)

// Retrieve a grouped list of billing summaries
[apiInstance billingGroupedListWith:groupedBillingListQuery
              completionHandler: ^(array[GroupedBillingInfo] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BillingApi()
var opts = {
  'groupedBillingListQuery':  // {GroupedBillingListQuery} 
};

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

namespace Example
{
    public class billingGroupedListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BillingApi();
            var groupedBillingListQuery = new GroupedBillingListQuery(); // GroupedBillingListQuery |  (optional) 

            try {
                // Retrieve a grouped list of billing summaries
                array[GroupedBillingInfo] result = apiInstance.billingGroupedList(groupedBillingListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BillingApi.billingGroupedList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BillingApi();
$groupedBillingListQuery = ; // GroupedBillingListQuery | 

try {
    $result = $api_instance->billingGroupedList($groupedBillingListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingApi->billingGroupedList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BillingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BillingApi->new();
my $groupedBillingListQuery = WWW::OPenAPIClient::Object::GroupedBillingListQuery->new(); # GroupedBillingListQuery | 

eval {
    my $result = $api_instance->billingGroupedList(groupedBillingListQuery => $groupedBillingListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingApi->billingGroupedList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BillingApi()
groupedBillingListQuery =  # GroupedBillingListQuery |  (optional)

try:
    # Retrieve a grouped list of billing summaries
    api_response = api_instance.billing_grouped_list(groupedBillingListQuery=groupedBillingListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billingGroupedList: %s\n" % e)
extern crate BillingApi;

pub fn main() {
    let groupedBillingListQuery = ; // GroupedBillingListQuery

    let mut context = BillingApi::Context::default();
    let result = client.billingGroupedList(groupedBillingListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
groupedBillingListQuery

Responses


billingList

Retrieve billing info


/api/v1/billing

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/billing?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&OrganizationId=56&IsDeleted=true&ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BillingApi;

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

public class BillingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        BillingApi apiInstance = new BillingApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer organizationId = 56; // Integer | 
        Boolean isDeleted = true; // Boolean | 
        Integer projectId = 56; // Integer | 

        try {
            BillingInfo result = apiInstance.billingList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, isDeleted, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final Date startDate = new Date(); // Date | 
final Date endDate = new Date(); // Date | 
final Integer organizationId = new Integer(); // Integer | 
final Boolean isDeleted = new Boolean(); // Boolean | 
final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.billingList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, isDeleted, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->billingList: $e\n');
}

import org.openapitools.client.api.BillingApi;

public class BillingApiExample {
    public static void main(String[] args) {
        BillingApi apiInstance = new BillingApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | 
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | 
        Integer organizationId = 56; // Integer | 
        Boolean isDeleted = true; // Boolean | 
        Integer projectId = 56; // Integer | 

        try {
            BillingInfo result = apiInstance.billingList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, isDeleted, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BillingApi#billingList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
BillingApi *apiInstance = [[BillingApi alloc] init];
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
Boolean *isDeleted = true; //  (optional) (default to null)
Integer *projectId = 56; //  (optional) (default to null)

// Retrieve billing info
[apiInstance billingListWith:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    startDate:startDate
    endDate:endDate
    organizationId:organizationId
    isDeleted:isDeleted
    projectId:projectId
              completionHandler: ^(BillingInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.BillingApi()
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} 
  'organizationId': 56, // {Integer} 
  'isDeleted': true, // {Boolean} 
  'projectId': 56 // {Integer} 
};

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

namespace Example
{
    public class billingListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new BillingApi();
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var isDeleted = true;  // Boolean |  (optional)  (default to null)
            var projectId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve billing info
                BillingInfo result = apiInstance.billingList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, isDeleted, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BillingApi.billingList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\BillingApi();
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$startDate = 2013-10-20T19:20:30+01:00; // Date | 
$endDate = 2013-10-20T19:20:30+01:00; // Date | 
$organizationId = 56; // Integer | 
$isDeleted = true; // Boolean | 
$projectId = 56; // Integer | 

try {
    $result = $api_instance->billingList($limit, $offset, $sortBy, $sortDirection, $startDate, $endDate, $organizationId, $isDeleted, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BillingApi->billingList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BillingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::BillingApi->new();
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $startDate = 2013-10-20T19:20:30+01:00; # Date | 
my $endDate = 2013-10-20T19:20:30+01:00; # Date | 
my $organizationId = 56; # Integer | 
my $isDeleted = true; # Boolean | 
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->billingList(limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, startDate => $startDate, endDate => $endDate, organizationId => $organizationId, isDeleted => $isDeleted, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BillingApi->billingList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.BillingApi()
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
isDeleted = true # Boolean |  (optional) (default to null)
projectId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve billing info
    api_response = api_instance.billing_list(limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, startDate=startDate, endDate=endDate, organizationId=organizationId, isDeleted=isDeleted, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BillingApi->billingList: %s\n" % e)
extern crate BillingApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let organizationId = 56; // Integer
    let isDeleted = true; // Boolean
    let projectId = 56; // Integer

    let mut context = BillingApi::Context::default();
    let result = client.billingList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, isDeleted, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
SortBy
String
SortDirection
String
StartDate
Date (date-time)
EndDate
Date (date-time)
OrganizationId
Integer (int32)
IsDeleted
Boolean
ProjectId
Integer (int32)

Responses


Catalog

catalogAddProject

Add projects to catalog


/api/v1/catalog/{id}/projects

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/{id}/projects" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.catalogAddProject(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogAddProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[Integer] integer = new array[Integer](); // array[Integer] | 

try {
    final result = await api_instance.catalogAddProject(id, integer);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAddProject: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.catalogAddProject(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogAddProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *id = 56; //  (default to null)
array[Integer] *integer = ; //  (optional)

// Add projects to catalog
[apiInstance catalogAddProjectWith:id
    integer:integer
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var id = 56; // {Integer} 
var opts = {
  'integer':  // {array[Integer]} 
};

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

namespace Example
{
    public class catalogAddProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var id = 56;  // Integer |  (default to null)
            var integer = new array[Integer](); // array[Integer] |  (optional) 

            try {
                // Add projects to catalog
                Object result = apiInstance.catalogAddProject(id, integer);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogAddProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$id = 56; // Integer | 
$integer = ; // array[Integer] | 

try {
    $result = $api_instance->catalogAddProject($id, $integer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogAddProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $id = 56; # Integer | 
my $integer = [WWW::OPenAPIClient::Object::array[Integer]->new()]; # array[Integer] | 

eval {
    my $result = $api_instance->catalogAddProject(id => $id, integer => $integer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogAddProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
id = 56 # Integer |  (default to null)
integer =  # array[Integer] |  (optional)

try:
    # Add projects to catalog
    api_response = api_instance.catalog_add_project(id, integer=integer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogAddProject: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let id = 56; // Integer
    let integer = ; // array[Integer]

    let mut context = CatalogApi::Context::default();
    let result = client.catalogAddProject(id, integer, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
integer

Responses


catalogCreate

Create catalog


/api/v1/catalog/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/create" \
 -d '{
  "organizationId" : 0,
  "name" : "name",
  "description" : "description"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        CreateCatalogCommand createCatalogCommand = ; // CreateCatalogCommand | 

        try {
            Object result = apiInstance.catalogCreate(createCatalogCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateCatalogCommand createCatalogCommand = new CreateCatalogCommand(); // CreateCatalogCommand | 

try {
    final result = await api_instance.catalogCreate(createCatalogCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogCreate: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        CreateCatalogCommand createCatalogCommand = ; // CreateCatalogCommand | 

        try {
            Object result = apiInstance.catalogCreate(createCatalogCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
CreateCatalogCommand *createCatalogCommand = ; //  (optional)

// Create catalog
[apiInstance catalogCreateWith:createCatalogCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'createCatalogCommand':  // {CreateCatalogCommand} 
};

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

namespace Example
{
    public class catalogCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var createCatalogCommand = new CreateCatalogCommand(); // CreateCatalogCommand |  (optional) 

            try {
                // Create catalog
                Object result = apiInstance.catalogCreate(createCatalogCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$createCatalogCommand = ; // CreateCatalogCommand | 

try {
    $result = $api_instance->catalogCreate($createCatalogCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $createCatalogCommand = WWW::OPenAPIClient::Object::CreateCatalogCommand->new(); # CreateCatalogCommand | 

eval {
    my $result = $api_instance->catalogCreate(createCatalogCommand => $createCatalogCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
createCatalogCommand =  # CreateCatalogCommand |  (optional)

try:
    # Create catalog
    api_response = api_instance.catalog_create(createCatalogCommand=createCatalogCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogCreate: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let createCatalogCommand = ; // CreateCatalogCommand

    let mut context = CatalogApi::Context::default();
    let result = client.catalogCreate(createCatalogCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createCatalogCommand

Responses


catalogDelete

Delete catalog


/api/v1/catalog/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.catalogDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogDelete: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.catalogDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete catalog
[apiInstance catalogDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class catalogDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete catalog
                Object result = apiInstance.catalogDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->catalogDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->catalogDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
id = 56 # Integer |  (default to null)

try:
    # Delete catalog
    api_response = api_instance.catalog_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogDelete: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CatalogApi::Context::default();
    let result = client.catalogDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


catalogDeleteProject

Remove projects from catalog


/api/v1/catalog/{id}/projects

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/{id}/projects" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.catalogDeleteProject(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDeleteProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[Integer] integer = new array[Integer](); // array[Integer] | 

try {
    final result = await api_instance.catalogDeleteProject(id, integer);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogDeleteProject: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.catalogDeleteProject(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDeleteProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *id = 56; //  (default to null)
array[Integer] *integer = ; //  (optional)

// Remove projects from catalog
[apiInstance catalogDeleteProjectWith:id
    integer:integer
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var id = 56; // {Integer} 
var opts = {
  'integer':  // {array[Integer]} 
};

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

namespace Example
{
    public class catalogDeleteProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var id = 56;  // Integer |  (default to null)
            var integer = new array[Integer](); // array[Integer] |  (optional) 

            try {
                // Remove projects from catalog
                Object result = apiInstance.catalogDeleteProject(id, integer);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogDeleteProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$id = 56; // Integer | 
$integer = ; // array[Integer] | 

try {
    $result = $api_instance->catalogDeleteProject($id, $integer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogDeleteProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $id = 56; # Integer | 
my $integer = [WWW::OPenAPIClient::Object::array[Integer]->new()]; # array[Integer] | 

eval {
    my $result = $api_instance->catalogDeleteProject(id => $id, integer => $integer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogDeleteProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
id = 56 # Integer |  (default to null)
integer =  # array[Integer] |  (optional)

try:
    # Remove projects from catalog
    api_response = api_instance.catalog_delete_project(id, integer=integer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogDeleteProject: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let id = 56; // Integer
    let integer = ; // array[Integer]

    let mut context = CatalogApi::Context::default();
    let result = client.catalogDeleteProject(id, integer, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
integer

Responses


catalogDetails

Retrieve catalog details by id


/api/v1/catalog/{id}/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog/{id}/details"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 

        try {
            CatalogDetails result = apiInstance.catalogDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogDetails(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogDetails: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer id = 56; // Integer | 

        try {
            CatalogDetails result = apiInstance.catalogDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *id = 56; //  (default to null)

// Retrieve catalog details by id
[apiInstance catalogDetailsWith:id
              completionHandler: ^(CatalogDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class catalogDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Retrieve catalog details by id
                CatalogDetails result = apiInstance.catalogDetails(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->catalogDetails($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->catalogDetails(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
id = 56 # Integer |  (default to null)

try:
    # Retrieve catalog details by id
    api_response = api_instance.catalog_details(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogDetails: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CatalogApi::Context::default();
    let result = client.catalogDetails(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


catalogDropdown

Catalog dropdown list for organization

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/catalog/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog/list?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[CatalogDropdownDto] result = apiInstance.catalogDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.catalogDropdown(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogDropdown: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[CatalogDropdownDto] result = apiInstance.catalogDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)

// Catalog dropdown list for organization
[apiInstance catalogDropdownWith:organizationId
    search:search
              completionHandler: ^(array[CatalogDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'search': search_example // {String} 
};

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

namespace Example
{
    public class catalogDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // Catalog dropdown list for organization
                array[CatalogDropdownDto] result = apiInstance.catalogDropdown(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$organizationId = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->catalogDropdown($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->catalogDropdown(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # Catalog dropdown list for organization
    api_response = api_instance.catalog_dropdown(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogDropdown: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = CatalogApi::Context::default();
    let result = client.catalogDropdown(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Search

Responses


catalogEdit

Edit catalog


/api/v1/catalog/edit

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/edit" \
 -d '{
  "name" : "name",
  "description" : "description",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        EditCatalogCommand editCatalogCommand = ; // EditCatalogCommand | 

        try {
            Object result = apiInstance.catalogEdit(editCatalogCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditCatalogCommand editCatalogCommand = new EditCatalogCommand(); // EditCatalogCommand | 

try {
    final result = await api_instance.catalogEdit(editCatalogCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogEdit: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        EditCatalogCommand editCatalogCommand = ; // EditCatalogCommand | 

        try {
            Object result = apiInstance.catalogEdit(editCatalogCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
EditCatalogCommand *editCatalogCommand = ; //  (optional)

// Edit catalog
[apiInstance catalogEditWith:editCatalogCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'editCatalogCommand':  // {EditCatalogCommand} 
};

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

namespace Example
{
    public class catalogEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var editCatalogCommand = new EditCatalogCommand(); // EditCatalogCommand |  (optional) 

            try {
                // Edit catalog
                Object result = apiInstance.catalogEdit(editCatalogCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$editCatalogCommand = ; // EditCatalogCommand | 

try {
    $result = $api_instance->catalogEdit($editCatalogCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $editCatalogCommand = WWW::OPenAPIClient::Object::EditCatalogCommand->new(); # EditCatalogCommand | 

eval {
    my $result = $api_instance->catalogEdit(editCatalogCommand => $editCatalogCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
editCatalogCommand =  # EditCatalogCommand |  (optional)

try:
    # Edit catalog
    api_response = api_instance.catalog_edit(editCatalogCommand=editCatalogCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogEdit: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let editCatalogCommand = ; // EditCatalogCommand

    let mut context = CatalogApi::Context::default();
    let result = client.catalogEdit(editCatalogCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editCatalogCommand

Responses


catalogList

Catalog list for organization


/api/v1/catalog

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog?OrganizationId=56&Offset=56&Limit=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        Integer organizationId = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 

        try {
            CatalogList result = apiInstance.catalogList(organizationId, offset, limit, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogList(organizationId, offset, limit, sortBy, sortDirection, search, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogList: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        Integer organizationId = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 

        try {
            CatalogList result = apiInstance.catalogList(organizationId, offset, limit, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)

// Catalog list for organization
[apiInstance catalogListWith:organizationId
    offset:offset
    limit:limit
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
              completionHandler: ^(CatalogList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'limit': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'id': 56 // {Integer} 
};

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

namespace Example
{
    public class catalogListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)

            try {
                // Catalog list for organization
                CatalogList result = apiInstance.catalogList(organizationId, offset, limit, sortBy, sortDirection, search, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$organizationId = 56; // Integer | 
$offset = 56; // Integer | 
$limit = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$id = 56; // Integer | 

try {
    $result = $api_instance->catalogList($organizationId, $offset, $limit, $sortBy, $sortDirection, $search, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $organizationId = 56; # Integer | 
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->catalogList(organizationId => $organizationId, offset => $offset, limit => $limit, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
organizationId = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)

try:
    # Catalog list for organization
    api_response = api_instance.catalog_list(organizationId=organizationId, offset=offset, limit=limit, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogList: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let organizationId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer

    let mut context = CatalogApi::Context::default();
    let result = client.catalogList(organizationId, offset, limit, sortBy, sortDirection, search, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Offset
Integer (int32)
Limit
Integer (int32)
SortBy
String
SortDirection
String
Search
Id
Integer (int32)

Responses


catalogLock

Lock catalog


/api/v1/catalog/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        CatalogLockManagementCommand catalogLockManagementCommand = ; // CatalogLockManagementCommand | 

        try {
            Object result = apiInstance.catalogLock(catalogLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogLock");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CatalogLockManagementCommand catalogLockManagementCommand = new CatalogLockManagementCommand(); // CatalogLockManagementCommand | 

try {
    final result = await api_instance.catalogLock(catalogLockManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogLock: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        CatalogLockManagementCommand catalogLockManagementCommand = ; // CatalogLockManagementCommand | 

        try {
            Object result = apiInstance.catalogLock(catalogLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogLock");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
CatalogLockManagementCommand *catalogLockManagementCommand = ; //  (optional)

// Lock catalog
[apiInstance catalogLockWith:catalogLockManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'catalogLockManagementCommand':  // {CatalogLockManagementCommand} 
};

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

namespace Example
{
    public class catalogLockExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var catalogLockManagementCommand = new CatalogLockManagementCommand(); // CatalogLockManagementCommand |  (optional) 

            try {
                // Lock catalog
                Object result = apiInstance.catalogLock(catalogLockManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogLock: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$catalogLockManagementCommand = ; // CatalogLockManagementCommand | 

try {
    $result = $api_instance->catalogLock($catalogLockManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogLock: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $catalogLockManagementCommand = WWW::OPenAPIClient::Object::CatalogLockManagementCommand->new(); # CatalogLockManagementCommand | 

eval {
    my $result = $api_instance->catalogLock(catalogLockManagementCommand => $catalogLockManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogLock: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
catalogLockManagementCommand =  # CatalogLockManagementCommand |  (optional)

try:
    # Lock catalog
    api_response = api_instance.catalog_lock(catalogLockManagementCommand=catalogLockManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogLock: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let catalogLockManagementCommand = ; // CatalogLockManagementCommand

    let mut context = CatalogApi::Context::default();
    let result = client.catalogLock(catalogLockManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
catalogLockManagementCommand

Responses


catalogMakeDefault

Make catalog default


/api/v1/catalog/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogApi;

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

public class CatalogApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogApi apiInstance = new CatalogApi();
        CatalogMakeDefaultCommand catalogMakeDefaultCommand = ; // CatalogMakeDefaultCommand | 

        try {
            Object result = apiInstance.catalogMakeDefault(catalogMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CatalogMakeDefaultCommand catalogMakeDefaultCommand = new CatalogMakeDefaultCommand(); // CatalogMakeDefaultCommand | 

try {
    final result = await api_instance.catalogMakeDefault(catalogMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogMakeDefault: $e\n');
}

import org.openapitools.client.api.CatalogApi;

public class CatalogApiExample {
    public static void main(String[] args) {
        CatalogApi apiInstance = new CatalogApi();
        CatalogMakeDefaultCommand catalogMakeDefaultCommand = ; // CatalogMakeDefaultCommand | 

        try {
            Object result = apiInstance.catalogMakeDefault(catalogMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogApi#catalogMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogApi *apiInstance = [[CatalogApi alloc] init];
CatalogMakeDefaultCommand *catalogMakeDefaultCommand = ; //  (optional)

// Make catalog default
[apiInstance catalogMakeDefaultWith:catalogMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogApi()
var opts = {
  'catalogMakeDefaultCommand':  // {CatalogMakeDefaultCommand} 
};

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

namespace Example
{
    public class catalogMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogApi();
            var catalogMakeDefaultCommand = new CatalogMakeDefaultCommand(); // CatalogMakeDefaultCommand |  (optional) 

            try {
                // Make catalog default
                Object result = apiInstance.catalogMakeDefault(catalogMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogApi.catalogMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogApi();
$catalogMakeDefaultCommand = ; // CatalogMakeDefaultCommand | 

try {
    $result = $api_instance->catalogMakeDefault($catalogMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogApi->catalogMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogApi->new();
my $catalogMakeDefaultCommand = WWW::OPenAPIClient::Object::CatalogMakeDefaultCommand->new(); # CatalogMakeDefaultCommand | 

eval {
    my $result = $api_instance->catalogMakeDefault(catalogMakeDefaultCommand => $catalogMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogApi->catalogMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogApi()
catalogMakeDefaultCommand =  # CatalogMakeDefaultCommand |  (optional)

try:
    # Make catalog default
    api_response = api_instance.catalog_make_default(catalogMakeDefaultCommand=catalogMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogApi->catalogMakeDefault: %s\n" % e)
extern crate CatalogApi;

pub fn main() {
    let catalogMakeDefaultCommand = ; // CatalogMakeDefaultCommand

    let mut context = CatalogApi::Context::default();
    let result = client.catalogMakeDefault(catalogMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
catalogMakeDefaultCommand

Responses


CatalogApp

catalogAppCreate

Create catalog app


/api/v1/catalog-app/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog-app/create" \
 -d '{
  "catalogId" : 0,
  "repoName" : "repoName",
  "packageName" : "packageName",
  "version" : "version",
  "parameters" : [ {
    "isEditableWhenInstalling" : true,
    "value" : "value",
    "key" : "key",
    "isMandatory" : true,
    "isEditableAfterInstallation" : true
  }, {
    "isEditableWhenInstalling" : true,
    "value" : "value",
    "key" : "key",
    "isMandatory" : true,
    "isEditableAfterInstallation" : true
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        CreateCatalogAppCommand createCatalogAppCommand = ; // CreateCatalogAppCommand | 

        try {
            CatalogAppDetailsDto result = apiInstance.catalogAppCreate(createCatalogAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateCatalogAppCommand createCatalogAppCommand = new CreateCatalogAppCommand(); // CreateCatalogAppCommand | 

try {
    final result = await api_instance.catalogAppCreate(createCatalogAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppCreate: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        CreateCatalogAppCommand createCatalogAppCommand = ; // CreateCatalogAppCommand | 

        try {
            CatalogAppDetailsDto result = apiInstance.catalogAppCreate(createCatalogAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
CreateCatalogAppCommand *createCatalogAppCommand = ; //  (optional)

// Create catalog app
[apiInstance catalogAppCreateWith:createCatalogAppCommand
              completionHandler: ^(CatalogAppDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var opts = {
  'createCatalogAppCommand':  // {CreateCatalogAppCommand} 
};

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

namespace Example
{
    public class catalogAppCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var createCatalogAppCommand = new CreateCatalogAppCommand(); // CreateCatalogAppCommand |  (optional) 

            try {
                // Create catalog app
                CatalogAppDetailsDto result = apiInstance.catalogAppCreate(createCatalogAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$createCatalogAppCommand = ; // CreateCatalogAppCommand | 

try {
    $result = $api_instance->catalogAppCreate($createCatalogAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $createCatalogAppCommand = WWW::OPenAPIClient::Object::CreateCatalogAppCommand->new(); # CreateCatalogAppCommand | 

eval {
    my $result = $api_instance->catalogAppCreate(createCatalogAppCommand => $createCatalogAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
createCatalogAppCommand =  # CreateCatalogAppCommand |  (optional)

try:
    # Create catalog app
    api_response = api_instance.catalog_app_create(createCatalogAppCommand=createCatalogAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppCreate: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let createCatalogAppCommand = ; // CreateCatalogAppCommand

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppCreate(createCatalogAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createCatalogAppCommand

Responses


catalogAppDelete

Delete catalog app


/api/v1/catalog-app/{catalogAppId}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog-app/{catalogAppId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            Object result = apiInstance.catalogAppDelete(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer catalogAppId = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogAppDelete(catalogAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppDelete: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            Object result = apiInstance.catalogAppDelete(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
Integer *catalogAppId = 56; //  (default to null)

// Delete catalog app
[apiInstance catalogAppDeleteWith:catalogAppId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var catalogAppId = 56; // {Integer} 

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

namespace Example
{
    public class catalogAppDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var catalogAppId = 56;  // Integer |  (default to null)

            try {
                // Delete catalog app
                Object result = apiInstance.catalogAppDelete(catalogAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$catalogAppId = 56; // Integer | 

try {
    $result = $api_instance->catalogAppDelete($catalogAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $catalogAppId = 56; # Integer | 

eval {
    my $result = $api_instance->catalogAppDelete(catalogAppId => $catalogAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
catalogAppId = 56 # Integer |  (default to null)

try:
    # Delete catalog app
    api_response = api_instance.catalog_app_delete(catalogAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppDelete: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let catalogAppId = 56; // Integer

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppDelete(catalogAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
catalogAppId*
Integer (int32)
Required

Responses


catalogAppDetails

Catalog App details


/api/v1/catalog-app/{catalogAppId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog-app/{catalogAppId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            CatalogAppDetailsDto result = apiInstance.catalogAppDetails(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer catalogAppId = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogAppDetails(catalogAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppDetails: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            CatalogAppDetailsDto result = apiInstance.catalogAppDetails(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
Integer *catalogAppId = 56; //  (default to null)

// Catalog App details
[apiInstance catalogAppDetailsWith:catalogAppId
              completionHandler: ^(CatalogAppDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var catalogAppId = 56; // {Integer} 

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

namespace Example
{
    public class catalogAppDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var catalogAppId = 56;  // Integer |  (default to null)

            try {
                // Catalog App details
                CatalogAppDetailsDto result = apiInstance.catalogAppDetails(catalogAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$catalogAppId = 56; // Integer | 

try {
    $result = $api_instance->catalogAppDetails($catalogAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $catalogAppId = 56; # Integer | 

eval {
    my $result = $api_instance->catalogAppDetails(catalogAppId => $catalogAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
catalogAppId = 56 # Integer |  (default to null)

try:
    # Catalog App details
    api_response = api_instance.catalog_app_details(catalogAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppDetails: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let catalogAppId = 56; // Integer

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppDetails(catalogAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
catalogAppId*
Integer (int32)
Required

Responses


catalogAppEditParams

Edit catalog app params


/api/v1/catalog-app/edit/params

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog-app/edit/params" \
 -d '{
  "catalogAppId" : 0,
  "parameters" : [ {
    "isEditableWhenInstalling" : true,
    "value" : "value",
    "key" : "key",
    "isMandatory" : true,
    "isEditableAfterInstallation" : true
  }, {
    "isEditableWhenInstalling" : true,
    "value" : "value",
    "key" : "key",
    "isMandatory" : true,
    "isEditableAfterInstallation" : true
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        EditCatalogAppParamCommand editCatalogAppParamCommand = ; // EditCatalogAppParamCommand | 

        try {
            Object result = apiInstance.catalogAppEditParams(editCatalogAppParamCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppEditParams");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditCatalogAppParamCommand editCatalogAppParamCommand = new EditCatalogAppParamCommand(); // EditCatalogAppParamCommand | 

try {
    final result = await api_instance.catalogAppEditParams(editCatalogAppParamCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppEditParams: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        EditCatalogAppParamCommand editCatalogAppParamCommand = ; // EditCatalogAppParamCommand | 

        try {
            Object result = apiInstance.catalogAppEditParams(editCatalogAppParamCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppEditParams");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
EditCatalogAppParamCommand *editCatalogAppParamCommand = ; //  (optional)

// Edit catalog app params
[apiInstance catalogAppEditParamsWith:editCatalogAppParamCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var opts = {
  'editCatalogAppParamCommand':  // {EditCatalogAppParamCommand} 
};

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

namespace Example
{
    public class catalogAppEditParamsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var editCatalogAppParamCommand = new EditCatalogAppParamCommand(); // EditCatalogAppParamCommand |  (optional) 

            try {
                // Edit catalog app params
                Object result = apiInstance.catalogAppEditParams(editCatalogAppParamCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppEditParams: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$editCatalogAppParamCommand = ; // EditCatalogAppParamCommand | 

try {
    $result = $api_instance->catalogAppEditParams($editCatalogAppParamCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppEditParams: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $editCatalogAppParamCommand = WWW::OPenAPIClient::Object::EditCatalogAppParamCommand->new(); # EditCatalogAppParamCommand | 

eval {
    my $result = $api_instance->catalogAppEditParams(editCatalogAppParamCommand => $editCatalogAppParamCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppEditParams: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
editCatalogAppParamCommand =  # EditCatalogAppParamCommand |  (optional)

try:
    # Edit catalog app params
    api_response = api_instance.catalog_app_edit_params(editCatalogAppParamCommand=editCatalogAppParamCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppEditParams: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let editCatalogAppParamCommand = ; // EditCatalogAppParamCommand

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppEditParams(editCatalogAppParamCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editCatalogAppParamCommand

Responses


catalogAppEditVersion

Edit catalog app version


/api/v1/catalog-app/edit/version

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog-app/edit/version" \
 -d '{
  "catalogAppId" : 0,
  "version" : "version"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        EditCatalogAppVersionCommand editCatalogAppVersionCommand = ; // EditCatalogAppVersionCommand | 

        try {
            Object result = apiInstance.catalogAppEditVersion(editCatalogAppVersionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppEditVersion");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditCatalogAppVersionCommand editCatalogAppVersionCommand = new EditCatalogAppVersionCommand(); // EditCatalogAppVersionCommand | 

try {
    final result = await api_instance.catalogAppEditVersion(editCatalogAppVersionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppEditVersion: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        EditCatalogAppVersionCommand editCatalogAppVersionCommand = ; // EditCatalogAppVersionCommand | 

        try {
            Object result = apiInstance.catalogAppEditVersion(editCatalogAppVersionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppEditVersion");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
EditCatalogAppVersionCommand *editCatalogAppVersionCommand = ; //  (optional)

// Edit catalog app version
[apiInstance catalogAppEditVersionWith:editCatalogAppVersionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var opts = {
  'editCatalogAppVersionCommand':  // {EditCatalogAppVersionCommand} 
};

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

namespace Example
{
    public class catalogAppEditVersionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var editCatalogAppVersionCommand = new EditCatalogAppVersionCommand(); // EditCatalogAppVersionCommand |  (optional) 

            try {
                // Edit catalog app version
                Object result = apiInstance.catalogAppEditVersion(editCatalogAppVersionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppEditVersion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$editCatalogAppVersionCommand = ; // EditCatalogAppVersionCommand | 

try {
    $result = $api_instance->catalogAppEditVersion($editCatalogAppVersionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppEditVersion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $editCatalogAppVersionCommand = WWW::OPenAPIClient::Object::EditCatalogAppVersionCommand->new(); # EditCatalogAppVersionCommand | 

eval {
    my $result = $api_instance->catalogAppEditVersion(editCatalogAppVersionCommand => $editCatalogAppVersionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppEditVersion: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
editCatalogAppVersionCommand =  # EditCatalogAppVersionCommand |  (optional)

try:
    # Edit catalog app version
    api_response = api_instance.catalog_app_edit_version(editCatalogAppVersionCommand=editCatalogAppVersionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppEditVersion: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let editCatalogAppVersionCommand = ; // EditCatalogAppVersionCommand

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppEditVersion(editCatalogAppVersionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editCatalogAppVersionCommand

Responses


catalogAppList

Catalog App list


/api/v1/catalog-app/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog-app/list?OrganizationId=56&CatalogId=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&Offset=56&Limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer organizationId = 56; // Integer | 
        Integer catalogId = 56; // Integer | 
        String search = search_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 

        try {
            CatalogAppList result = apiInstance.catalogAppList(organizationId, catalogId, search, sortBy, sortDirection, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer catalogId = new Integer(); // Integer | 
final String search = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final Integer offset = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogAppList(organizationId, catalogId, search, sortBy, sortDirection, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppList: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer organizationId = 56; // Integer | 
        Integer catalogId = 56; // Integer | 
        String search = search_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer offset = 56; // Integer | 
        Integer limit = 56; // Integer | 

        try {
            CatalogAppList result = apiInstance.catalogAppList(organizationId, catalogId, search, sortBy, sortDirection, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *catalogId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to 0)
Integer *limit = 56; //  (optional) (default to 50)

// Catalog App list
[apiInstance catalogAppListWith:organizationId
    catalogId:catalogId
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    offset:offset
    limit:limit
              completionHandler: ^(CatalogAppList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'catalogId': 56, // {Integer} 
  'search': search_example, // {String} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'offset': 56, // {Integer} 
  'limit': 56 // {Integer} 
};

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

namespace Example
{
    public class catalogAppListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var catalogId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to 0)
            var limit = 56;  // Integer |  (optional)  (default to 50)

            try {
                // Catalog App list
                CatalogAppList result = apiInstance.catalogAppList(organizationId, catalogId, search, sortBy, sortDirection, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$organizationId = 56; // Integer | 
$catalogId = 56; // Integer | 
$search = search_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$offset = 56; // Integer | 
$limit = 56; // Integer | 

try {
    $result = $api_instance->catalogAppList($organizationId, $catalogId, $search, $sortBy, $sortDirection, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $organizationId = 56; # Integer | 
my $catalogId = 56; # Integer | 
my $search = search_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $offset = 56; # Integer | 
my $limit = 56; # Integer | 

eval {
    my $result = $api_instance->catalogAppList(organizationId => $organizationId, catalogId => $catalogId, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
organizationId = 56 # Integer |  (optional) (default to null)
catalogId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to 0)
limit = 56 # Integer |  (optional) (default to 50)

try:
    # Catalog App list
    api_response = api_instance.catalog_app_list(organizationId=organizationId, catalogId=catalogId, search=search, sortBy=sortBy, sortDirection=sortDirection, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppList: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let organizationId = 56; // Integer
    let catalogId = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppList(organizationId, catalogId, search, sortBy, sortDirection, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
CatalogId
Integer (int32)
Search
SortBy
String
SortDirection
String
Offset
Integer (int32)
Limit
Integer (int32)

Responses


catalogAppLockManager

Lock catalog app


/api/v1/catalog-app/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/catalog-app/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        CatalogAppLockManagement catalogAppLockManagement = ; // CatalogAppLockManagement | 

        try {
            Object result = apiInstance.catalogAppLockManager(catalogAppLockManagement);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CatalogAppLockManagement catalogAppLockManagement = new CatalogAppLockManagement(); // CatalogAppLockManagement | 

try {
    final result = await api_instance.catalogAppLockManager(catalogAppLockManagement);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppLockManager: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        CatalogAppLockManagement catalogAppLockManagement = ; // CatalogAppLockManagement | 

        try {
            Object result = apiInstance.catalogAppLockManager(catalogAppLockManagement);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
CatalogAppLockManagement *catalogAppLockManagement = ; //  (optional)

// Lock catalog app
[apiInstance catalogAppLockManagerWith:catalogAppLockManagement
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var opts = {
  'catalogAppLockManagement':  // {CatalogAppLockManagement} 
};

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

namespace Example
{
    public class catalogAppLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var catalogAppLockManagement = new CatalogAppLockManagement(); // CatalogAppLockManagement |  (optional) 

            try {
                // Lock catalog app
                Object result = apiInstance.catalogAppLockManager(catalogAppLockManagement);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$catalogAppLockManagement = ; // CatalogAppLockManagement | 

try {
    $result = $api_instance->catalogAppLockManager($catalogAppLockManagement);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $catalogAppLockManagement = WWW::OPenAPIClient::Object::CatalogAppLockManagement->new(); # CatalogAppLockManagement | 

eval {
    my $result = $api_instance->catalogAppLockManager(catalogAppLockManagement => $catalogAppLockManagement);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
catalogAppLockManagement =  # CatalogAppLockManagement |  (optional)

try:
    # Lock catalog app
    api_response = api_instance.catalog_app_lock_manager(catalogAppLockManagement=catalogAppLockManagement)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppLockManager: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let catalogAppLockManagement = ; // CatalogAppLockManagement

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppLockManager(catalogAppLockManagement, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
catalogAppLockManagement

Responses


catalogAppParamDetails

Catalog App param details


/api/v1/catalog-app/params/{catalogAppId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/catalog-app/params/{catalogAppId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CatalogAppApi;

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

public class CatalogAppApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            array[CatalogAppParamsDetailsDto] result = apiInstance.catalogAppParamDetails(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppParamDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer catalogAppId = new Integer(); // Integer | 

try {
    final result = await api_instance.catalogAppParamDetails(catalogAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->catalogAppParamDetails: $e\n');
}

import org.openapitools.client.api.CatalogAppApi;

public class CatalogAppApiExample {
    public static void main(String[] args) {
        CatalogAppApi apiInstance = new CatalogAppApi();
        Integer catalogAppId = 56; // Integer | 

        try {
            array[CatalogAppParamsDetailsDto] result = apiInstance.catalogAppParamDetails(catalogAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CatalogAppApi#catalogAppParamDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CatalogAppApi *apiInstance = [[CatalogAppApi alloc] init];
Integer *catalogAppId = 56; //  (default to null)

// Catalog App param details
[apiInstance catalogAppParamDetailsWith:catalogAppId
              completionHandler: ^(array[CatalogAppParamsDetailsDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CatalogAppApi()
var catalogAppId = 56; // {Integer} 

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

namespace Example
{
    public class catalogAppParamDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CatalogAppApi();
            var catalogAppId = 56;  // Integer |  (default to null)

            try {
                // Catalog App param details
                array[CatalogAppParamsDetailsDto] result = apiInstance.catalogAppParamDetails(catalogAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CatalogAppApi.catalogAppParamDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CatalogAppApi();
$catalogAppId = 56; // Integer | 

try {
    $result = $api_instance->catalogAppParamDetails($catalogAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CatalogAppApi->catalogAppParamDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CatalogAppApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CatalogAppApi->new();
my $catalogAppId = 56; # Integer | 

eval {
    my $result = $api_instance->catalogAppParamDetails(catalogAppId => $catalogAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CatalogAppApi->catalogAppParamDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CatalogAppApi()
catalogAppId = 56 # Integer |  (default to null)

try:
    # Catalog App param details
    api_response = api_instance.catalog_app_param_details(catalogAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CatalogAppApi->catalogAppParamDetails: %s\n" % e)
extern crate CatalogAppApi;

pub fn main() {
    let catalogAppId = 56; // Integer

    let mut context = CatalogAppApi::Context::default();
    let result = client.catalogAppParamDetails(catalogAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
catalogAppId*
Integer (int32)
Required

Responses


CcfResourceTags

ccfresourcetagsCreate

Create custom cloud resource tag


/api/v1/ccfresourcetags/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/ccfresourcetags/create" \
 -d '{
  "isForbidden" : true,
  "level" : "System",
  "entityId" : 0,
  "value" : "value",
  "key" : "key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CcfResourceTagsApi;

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

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        CreateCcfResourceTagCommand createCcfResourceTagCommand = ; // CreateCcfResourceTagCommand | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsCreate(createCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateCcfResourceTagCommand createCcfResourceTagCommand = new CreateCcfResourceTagCommand(); // CreateCcfResourceTagCommand | 

try {
    final result = await api_instance.ccfresourcetagsCreate(createCcfResourceTagCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ccfresourcetagsCreate: $e\n');
}

import org.openapitools.client.api.CcfResourceTagsApi;

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        CreateCcfResourceTagCommand createCcfResourceTagCommand = ; // CreateCcfResourceTagCommand | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsCreate(createCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CcfResourceTagsApi *apiInstance = [[CcfResourceTagsApi alloc] init];
CreateCcfResourceTagCommand *createCcfResourceTagCommand = ; //  (optional)

// Create custom cloud resource tag
[apiInstance ccfresourcetagsCreateWith:createCcfResourceTagCommand
              completionHandler: ^(CcfResourceTagsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CcfResourceTagsApi()
var opts = {
  'createCcfResourceTagCommand':  // {CreateCcfResourceTagCommand} 
};

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

namespace Example
{
    public class ccfresourcetagsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CcfResourceTagsApi();
            var createCcfResourceTagCommand = new CreateCcfResourceTagCommand(); // CreateCcfResourceTagCommand |  (optional) 

            try {
                // Create custom cloud resource tag
                CcfResourceTagsDto result = apiInstance.ccfresourcetagsCreate(createCcfResourceTagCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CcfResourceTagsApi.ccfresourcetagsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CcfResourceTagsApi();
$createCcfResourceTagCommand = ; // CreateCcfResourceTagCommand | 

try {
    $result = $api_instance->ccfresourcetagsCreate($createCcfResourceTagCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CcfResourceTagsApi->ccfresourcetagsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CcfResourceTagsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CcfResourceTagsApi->new();
my $createCcfResourceTagCommand = WWW::OPenAPIClient::Object::CreateCcfResourceTagCommand->new(); # CreateCcfResourceTagCommand | 

eval {
    my $result = $api_instance->ccfresourcetagsCreate(createCcfResourceTagCommand => $createCcfResourceTagCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CcfResourceTagsApi->ccfresourcetagsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CcfResourceTagsApi()
createCcfResourceTagCommand =  # CreateCcfResourceTagCommand |  (optional)

try:
    # Create custom cloud resource tag
    api_response = api_instance.ccfresourcetags_create(createCcfResourceTagCommand=createCcfResourceTagCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CcfResourceTagsApi->ccfresourcetagsCreate: %s\n" % e)
extern crate CcfResourceTagsApi;

pub fn main() {
    let createCcfResourceTagCommand = ; // CreateCcfResourceTagCommand

    let mut context = CcfResourceTagsApi::Context::default();
    let result = client.ccfresourcetagsCreate(createCcfResourceTagCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createCcfResourceTagCommand

Responses


ccfresourcetagsDelete

Delete custom cloud resource tag


/api/v1/ccfresourcetags/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/ccfresourcetags/delete" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CcfResourceTagsApi;

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

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        DeleteCcfResourceTagCommand deleteCcfResourceTagCommand = ; // DeleteCcfResourceTagCommand | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsDelete(deleteCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteCcfResourceTagCommand deleteCcfResourceTagCommand = new DeleteCcfResourceTagCommand(); // DeleteCcfResourceTagCommand | 

try {
    final result = await api_instance.ccfresourcetagsDelete(deleteCcfResourceTagCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ccfresourcetagsDelete: $e\n');
}

import org.openapitools.client.api.CcfResourceTagsApi;

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        DeleteCcfResourceTagCommand deleteCcfResourceTagCommand = ; // DeleteCcfResourceTagCommand | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsDelete(deleteCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CcfResourceTagsApi *apiInstance = [[CcfResourceTagsApi alloc] init];
DeleteCcfResourceTagCommand *deleteCcfResourceTagCommand = ; //  (optional)

// Delete custom cloud resource tag
[apiInstance ccfresourcetagsDeleteWith:deleteCcfResourceTagCommand
              completionHandler: ^(CcfResourceTagsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CcfResourceTagsApi()
var opts = {
  'deleteCcfResourceTagCommand':  // {DeleteCcfResourceTagCommand} 
};

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

namespace Example
{
    public class ccfresourcetagsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CcfResourceTagsApi();
            var deleteCcfResourceTagCommand = new DeleteCcfResourceTagCommand(); // DeleteCcfResourceTagCommand |  (optional) 

            try {
                // Delete custom cloud resource tag
                CcfResourceTagsDto result = apiInstance.ccfresourcetagsDelete(deleteCcfResourceTagCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CcfResourceTagsApi.ccfresourcetagsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CcfResourceTagsApi();
$deleteCcfResourceTagCommand = ; // DeleteCcfResourceTagCommand | 

try {
    $result = $api_instance->ccfresourcetagsDelete($deleteCcfResourceTagCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CcfResourceTagsApi->ccfresourcetagsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CcfResourceTagsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CcfResourceTagsApi->new();
my $deleteCcfResourceTagCommand = WWW::OPenAPIClient::Object::DeleteCcfResourceTagCommand->new(); # DeleteCcfResourceTagCommand | 

eval {
    my $result = $api_instance->ccfresourcetagsDelete(deleteCcfResourceTagCommand => $deleteCcfResourceTagCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CcfResourceTagsApi->ccfresourcetagsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CcfResourceTagsApi()
deleteCcfResourceTagCommand =  # DeleteCcfResourceTagCommand |  (optional)

try:
    # Delete custom cloud resource tag
    api_response = api_instance.ccfresourcetags_delete(deleteCcfResourceTagCommand=deleteCcfResourceTagCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CcfResourceTagsApi->ccfresourcetagsDelete: %s\n" % e)
extern crate CcfResourceTagsApi;

pub fn main() {
    let deleteCcfResourceTagCommand = ; // DeleteCcfResourceTagCommand

    let mut context = CcfResourceTagsApi::Context::default();
    let result = client.ccfresourcetagsDelete(deleteCcfResourceTagCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteCcfResourceTagCommand

Responses


ccfresourcetagsPreview

Preview tags that would be removed by a custom cloud resource tag create


/api/v1/ccfresourcetags/preview

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/ccfresourcetags/preview" \
 -d '{
  "isForbidden" : true,
  "level" : "System",
  "entityId" : 0,
  "value" : "value",
  "key" : "key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CcfResourceTagsApi;

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

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        PreviewCcfResourceTagCommand previewCcfResourceTagCommand = ; // PreviewCcfResourceTagCommand | 

        try {
            CcfResourceTagPreviewDto result = apiInstance.ccfresourcetagsPreview(previewCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsPreview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PreviewCcfResourceTagCommand previewCcfResourceTagCommand = new PreviewCcfResourceTagCommand(); // PreviewCcfResourceTagCommand | 

try {
    final result = await api_instance.ccfresourcetagsPreview(previewCcfResourceTagCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ccfresourcetagsPreview: $e\n');
}

import org.openapitools.client.api.CcfResourceTagsApi;

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        PreviewCcfResourceTagCommand previewCcfResourceTagCommand = ; // PreviewCcfResourceTagCommand | 

        try {
            CcfResourceTagPreviewDto result = apiInstance.ccfresourcetagsPreview(previewCcfResourceTagCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsPreview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CcfResourceTagsApi *apiInstance = [[CcfResourceTagsApi alloc] init];
PreviewCcfResourceTagCommand *previewCcfResourceTagCommand = ; //  (optional)

// Preview tags that would be removed by a custom cloud resource tag create
[apiInstance ccfresourcetagsPreviewWith:previewCcfResourceTagCommand
              completionHandler: ^(CcfResourceTagPreviewDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CcfResourceTagsApi()
var opts = {
  'previewCcfResourceTagCommand':  // {PreviewCcfResourceTagCommand} 
};

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

namespace Example
{
    public class ccfresourcetagsPreviewExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CcfResourceTagsApi();
            var previewCcfResourceTagCommand = new PreviewCcfResourceTagCommand(); // PreviewCcfResourceTagCommand |  (optional) 

            try {
                // Preview tags that would be removed by a custom cloud resource tag create
                CcfResourceTagPreviewDto result = apiInstance.ccfresourcetagsPreview(previewCcfResourceTagCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CcfResourceTagsApi.ccfresourcetagsPreview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CcfResourceTagsApi();
$previewCcfResourceTagCommand = ; // PreviewCcfResourceTagCommand | 

try {
    $result = $api_instance->ccfresourcetagsPreview($previewCcfResourceTagCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CcfResourceTagsApi->ccfresourcetagsPreview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CcfResourceTagsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CcfResourceTagsApi->new();
my $previewCcfResourceTagCommand = WWW::OPenAPIClient::Object::PreviewCcfResourceTagCommand->new(); # PreviewCcfResourceTagCommand | 

eval {
    my $result = $api_instance->ccfresourcetagsPreview(previewCcfResourceTagCommand => $previewCcfResourceTagCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CcfResourceTagsApi->ccfresourcetagsPreview: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CcfResourceTagsApi()
previewCcfResourceTagCommand =  # PreviewCcfResourceTagCommand |  (optional)

try:
    # Preview tags that would be removed by a custom cloud resource tag create
    api_response = api_instance.ccfresourcetags_preview(previewCcfResourceTagCommand=previewCcfResourceTagCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CcfResourceTagsApi->ccfresourcetagsPreview: %s\n" % e)
extern crate CcfResourceTagsApi;

pub fn main() {
    let previewCcfResourceTagCommand = ; // PreviewCcfResourceTagCommand

    let mut context = CcfResourceTagsApi::Context::default();
    let result = client.ccfresourcetagsPreview(previewCcfResourceTagCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
previewCcfResourceTagCommand

Responses


ccfresourcetagsTree

Get custom cloud resource tags tree


/api/v1/ccfresourcetags/tree

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/ccfresourcetags/tree?OrganizationId=56&CloudCredentialId=56&ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CcfResourceTagsApi;

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

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        Integer organizationId = 56; // Integer | 
        Integer cloudCredentialId = 56; // Integer | 
        Integer projectId = 56; // Integer | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsTree(organizationId, cloudCredentialId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsTree");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer cloudCredentialId = new Integer(); // Integer | 
final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.ccfresourcetagsTree(organizationId, cloudCredentialId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ccfresourcetagsTree: $e\n');
}

import org.openapitools.client.api.CcfResourceTagsApi;

public class CcfResourceTagsApiExample {
    public static void main(String[] args) {
        CcfResourceTagsApi apiInstance = new CcfResourceTagsApi();
        Integer organizationId = 56; // Integer | 
        Integer cloudCredentialId = 56; // Integer | 
        Integer projectId = 56; // Integer | 

        try {
            CcfResourceTagsDto result = apiInstance.ccfresourcetagsTree(organizationId, cloudCredentialId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CcfResourceTagsApi#ccfresourcetagsTree");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CcfResourceTagsApi *apiInstance = [[CcfResourceTagsApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *cloudCredentialId = 56; //  (optional) (default to null)
Integer *projectId = 56; //  (optional) (default to null)

// Get custom cloud resource tags tree
[apiInstance ccfresourcetagsTreeWith:organizationId
    cloudCredentialId:cloudCredentialId
    projectId:projectId
              completionHandler: ^(CcfResourceTagsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CcfResourceTagsApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'cloudCredentialId': 56, // {Integer} 
  'projectId': 56 // {Integer} 
};

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

namespace Example
{
    public class ccfresourcetagsTreeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CcfResourceTagsApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var cloudCredentialId = 56;  // Integer |  (optional)  (default to null)
            var projectId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Get custom cloud resource tags tree
                CcfResourceTagsDto result = apiInstance.ccfresourcetagsTree(organizationId, cloudCredentialId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CcfResourceTagsApi.ccfresourcetagsTree: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CcfResourceTagsApi();
$organizationId = 56; // Integer | 
$cloudCredentialId = 56; // Integer | 
$projectId = 56; // Integer | 

try {
    $result = $api_instance->ccfresourcetagsTree($organizationId, $cloudCredentialId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CcfResourceTagsApi->ccfresourcetagsTree: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CcfResourceTagsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CcfResourceTagsApi->new();
my $organizationId = 56; # Integer | 
my $cloudCredentialId = 56; # Integer | 
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->ccfresourcetagsTree(organizationId => $organizationId, cloudCredentialId => $cloudCredentialId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CcfResourceTagsApi->ccfresourcetagsTree: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CcfResourceTagsApi()
organizationId = 56 # Integer |  (optional) (default to null)
cloudCredentialId = 56 # Integer |  (optional) (default to null)
projectId = 56 # Integer |  (optional) (default to null)

try:
    # Get custom cloud resource tags tree
    api_response = api_instance.ccfresourcetags_tree(organizationId=organizationId, cloudCredentialId=cloudCredentialId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CcfResourceTagsApi->ccfresourcetagsTree: %s\n" % e)
extern crate CcfResourceTagsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let cloudCredentialId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = CcfResourceTagsApi::Context::default();
    let result = client.ccfresourcetagsTree(organizationId, cloudCredentialId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
CloudCredentialId
Integer (int32)
ProjectId
Integer (int32)

Responses


CertificateProfiles

certificateProfilesCreate

Create certificate profile (unified issuerMode DTO or legacy kind-based)


/api/v1/certificate-profiles

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles" \
 -d '{
  "trustBundle" : [ {
    "name" : "name",
    "pemBundle" : "pemBundle",
    "certPem" : "certPem",
    "resolvedPem" : "resolvedPem"
  }, {
    "name" : "name",
    "pemBundle" : "pemBundle",
    "certPem" : "certPem",
    "resolvedPem" : "resolvedPem"
  } ],
  "acmeEmail" : "acmeEmail",
  "venafiBaseUrl" : "venafiBaseUrl",
  "commonName" : "commonName",
  "venafiZoneUuid" : "venafiZoneUuid",
  "kind" : "kind",
  "generateSelfSigned" : false,
  "keyPem" : "keyPem",
  "description" : "description",
  "venafiZone" : "venafiZone",
  "venafiType" : "",
  "certPem" : "certPem",
  "chainPem" : "chainPem",
  "venafiAccessToken" : "venafiAccessToken",
  "venafiApiKey" : "venafiApiKey",
  "organizationId" : 0,
  "customCaPrivateKey" : "customCaPrivateKey",
  "name" : "name",
  "acmeServer" : "acmeServer",
  "customCaCert" : "customCaCert",
  "issuerMode" : "",
  "validityDays" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileCreateCommand certificateProfileCreateCommand = ; // CertificateProfileCreateCommand | 

        try {
            ApiResponse result = apiInstance.certificateProfilesCreate(certificateProfileCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CertificateProfileCreateCommand certificateProfileCreateCommand = new CertificateProfileCreateCommand(); // CertificateProfileCreateCommand | 

try {
    final result = await api_instance.certificateProfilesCreate(certificateProfileCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesCreate: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileCreateCommand certificateProfileCreateCommand = ; // CertificateProfileCreateCommand | 

        try {
            ApiResponse result = apiInstance.certificateProfilesCreate(certificateProfileCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
CertificateProfileCreateCommand *certificateProfileCreateCommand = ; //  (optional)

// Create certificate profile (unified issuerMode DTO or legacy kind-based)
[apiInstance certificateProfilesCreateWith:certificateProfileCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'certificateProfileCreateCommand':  // {CertificateProfileCreateCommand} 
};

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

namespace Example
{
    public class certificateProfilesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var certificateProfileCreateCommand = new CertificateProfileCreateCommand(); // CertificateProfileCreateCommand |  (optional) 

            try {
                // Create certificate profile (unified issuerMode DTO or legacy kind-based)
                ApiResponse result = apiInstance.certificateProfilesCreate(certificateProfileCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$certificateProfileCreateCommand = ; // CertificateProfileCreateCommand | 

try {
    $result = $api_instance->certificateProfilesCreate($certificateProfileCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $certificateProfileCreateCommand = WWW::OPenAPIClient::Object::CertificateProfileCreateCommand->new(); # CertificateProfileCreateCommand | 

eval {
    my $result = $api_instance->certificateProfilesCreate(certificateProfileCreateCommand => $certificateProfileCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
certificateProfileCreateCommand =  # CertificateProfileCreateCommand |  (optional)

try:
    # Create certificate profile (unified issuerMode DTO or legacy kind-based)
    api_response = api_instance.certificate_profiles_create(certificateProfileCreateCommand=certificateProfileCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesCreate: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let certificateProfileCreateCommand = ; // CertificateProfileCreateCommand

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesCreate(certificateProfileCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
certificateProfileCreateCommand

Responses


certificateProfilesDelete

Delete certificate profile


/api/v1/certificate-profiles/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/certificate-profiles/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.certificateProfilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.certificateProfilesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesDelete: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.certificateProfilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete certificate profile
[apiInstance certificateProfilesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class certificateProfilesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete certificate profile
                Object result = apiInstance.certificateProfilesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->certificateProfilesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->certificateProfilesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete certificate profile
    api_response = api_instance.certificate_profiles_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesDelete: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


certificateProfilesDropdown

Certificate profile dropdown (use ?kind=signing_ca for dns-cert CA picker)

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/certificate-profiles

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/certificate-profiles?OrganizationId=56&Search=search_example&Kind=kind_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        String kind = kind_example; // String | 

        try {
            array[CertificateProfileDropdownDto] result = apiInstance.certificateProfilesDropdown(organizationId, search, kind);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 
final String kind = new String(); // String | 

try {
    final result = await api_instance.certificateProfilesDropdown(organizationId, search, kind);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesDropdown: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        String kind = kind_example; // String | 

        try {
            array[CertificateProfileDropdownDto] result = apiInstance.certificateProfilesDropdown(organizationId, search, kind);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *kind = kind_example; //  (optional) (default to null)

// Certificate profile dropdown (use ?kind=signing_ca for dns-cert CA picker)
[apiInstance certificateProfilesDropdownWith:organizationId
    search:search
    kind:kind
              completionHandler: ^(array[CertificateProfileDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'search': search_example, // {String} 
  'kind': kind_example // {String} 
};

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

namespace Example
{
    public class certificateProfilesDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var kind = kind_example;  // String |  (optional)  (default to null)

            try {
                // Certificate profile dropdown (use ?kind=signing_ca for dns-cert CA picker)
                array[CertificateProfileDropdownDto] result = apiInstance.certificateProfilesDropdown(organizationId, search, kind);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$organizationId = 56; // Integer | 
$search = search_example; // String | 
$kind = kind_example; // String | 

try {
    $result = $api_instance->certificateProfilesDropdown($organizationId, $search, $kind);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 
my $kind = kind_example; # String | 

eval {
    my $result = $api_instance->certificateProfilesDropdown(organizationId => $organizationId, search => $search, kind => $kind);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
kind = kind_example # String |  (optional) (default to null)

try:
    # Certificate profile dropdown (use ?kind=signing_ca for dns-cert CA picker)
    api_response = api_instance.certificate_profiles_dropdown(organizationId=organizationId, search=search, kind=kind)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesDropdown: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String
    let kind = kind_example; // String

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesDropdown(organizationId, search, kind, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Search
Kind
String

Responses


certificateProfilesGetTrustBundle

Get trust bundle items (name + PEM) for a certificate profile


/api/v1/certificate-profiles/{id}/trust-bundle

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/certificate-profiles/{id}/trust-bundle"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer id = 56; // Integer | 

        try {
            CertificateProfileTrustBundleResponse result = apiInstance.certificateProfilesGetTrustBundle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesGetTrustBundle");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.certificateProfilesGetTrustBundle(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesGetTrustBundle: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer id = 56; // Integer | 

        try {
            CertificateProfileTrustBundleResponse result = apiInstance.certificateProfilesGetTrustBundle(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesGetTrustBundle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
Integer *id = 56; //  (default to null)

// Get trust bundle items (name + PEM) for a certificate profile
[apiInstance certificateProfilesGetTrustBundleWith:id
              completionHandler: ^(CertificateProfileTrustBundleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class certificateProfilesGetTrustBundleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Get trust bundle items (name + PEM) for a certificate profile
                CertificateProfileTrustBundleResponse result = apiInstance.certificateProfilesGetTrustBundle(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesGetTrustBundle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->certificateProfilesGetTrustBundle($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesGetTrustBundle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->certificateProfilesGetTrustBundle(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesGetTrustBundle: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
id = 56 # Integer |  (default to null)

try:
    # Get trust bundle items (name + PEM) for a certificate profile
    api_response = api_instance.certificate_profiles_get_trust_bundle(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesGetTrustBundle: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesGetTrustBundle(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


certificateProfilesList

List certificate profiles (optional kind filter: signing_ca, trust_anchor, tls_leaf)


/api/v1/certificate-profiles/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/certificate-profiles/list?OrganizationId=56&DomainId=56&Search=search_example&SearchId=searchId_example&Id=56&Kind=kind_example&SortBy=sortBy_example&SortDirection=sortDirection_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        String kind = kind_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            CertificateProfileListResponse result = apiInstance.certificateProfilesList(organizationId, domainId, search, searchId, id, kind, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final String kind = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.certificateProfilesList(organizationId, domainId, search, searchId, id, kind, sortBy, sortDirection, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesList: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        String kind = kind_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            CertificateProfileListResponse result = apiInstance.certificateProfilesList(organizationId, domainId, search, searchId, id, kind, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
String *kind = kind_example; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// List certificate profiles (optional kind filter: signing_ca, trust_anchor, tls_leaf)
[apiInstance certificateProfilesListWith:organizationId
    domainId:domainId
    search:search
    searchId:searchId
    id:id
    kind:kind
    sortBy:sortBy
    sortDirection:sortDirection
    limit:limit
    offset:offset
              completionHandler: ^(CertificateProfileListResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'kind': kind_example, // {String} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

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

namespace Example
{
    public class certificateProfilesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var kind = kind_example;  // String |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // List certificate profiles (optional kind filter: signing_ca, trust_anchor, tls_leaf)
                CertificateProfileListResponse result = apiInstance.certificateProfilesList(organizationId, domainId, search, searchId, id, kind, sortBy, sortDirection, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$organizationId = 56; // Integer | 
$domainId = 56; // Integer | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$kind = kind_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->certificateProfilesList($organizationId, $domainId, $search, $searchId, $id, $kind, $sortBy, $sortDirection, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $organizationId = 56; # Integer | 
my $domainId = 56; # Integer | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $kind = kind_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->certificateProfilesList(organizationId => $organizationId, domainId => $domainId, search => $search, searchId => $searchId, id => $id, kind => $kind, sortBy => $sortBy, sortDirection => $sortDirection, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
organizationId = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
kind = kind_example # String |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # List certificate profiles (optional kind filter: signing_ca, trust_anchor, tls_leaf)
    api_response = api_instance.certificate_profiles_list(organizationId=organizationId, domainId=domainId, search=search, searchId=searchId, id=id, kind=kind, sortBy=sortBy, sortDirection=sortDirection, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesList: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let kind = kind_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesList(organizationId, domainId, search, searchId, id, kind, sortBy, sortDirection, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
DomainId
Integer (int32)
Search
SearchId
String
Id
Integer (int32)
Kind
String
SortBy
String
SortDirection
String
Limit
Integer (int32)
Offset
Integer (int32)

Responses


certificateProfilesLockManagement

Lock/unlock certificate profile


/api/v1/certificate-profiles/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileLockCommand certificateProfileLockCommand = ; // CertificateProfileLockCommand | 

        try {
            Object result = apiInstance.certificateProfilesLockManagement(certificateProfileLockCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesLockManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CertificateProfileLockCommand certificateProfileLockCommand = new CertificateProfileLockCommand(); // CertificateProfileLockCommand | 

try {
    final result = await api_instance.certificateProfilesLockManagement(certificateProfileLockCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesLockManagement: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileLockCommand certificateProfileLockCommand = ; // CertificateProfileLockCommand | 

        try {
            Object result = apiInstance.certificateProfilesLockManagement(certificateProfileLockCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesLockManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
CertificateProfileLockCommand *certificateProfileLockCommand = ; //  (optional)

// Lock/unlock certificate profile
[apiInstance certificateProfilesLockManagementWith:certificateProfileLockCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'certificateProfileLockCommand':  // {CertificateProfileLockCommand} 
};

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

namespace Example
{
    public class certificateProfilesLockManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var certificateProfileLockCommand = new CertificateProfileLockCommand(); // CertificateProfileLockCommand |  (optional) 

            try {
                // Lock/unlock certificate profile
                Object result = apiInstance.certificateProfilesLockManagement(certificateProfileLockCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesLockManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$certificateProfileLockCommand = ; // CertificateProfileLockCommand | 

try {
    $result = $api_instance->certificateProfilesLockManagement($certificateProfileLockCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesLockManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $certificateProfileLockCommand = WWW::OPenAPIClient::Object::CertificateProfileLockCommand->new(); # CertificateProfileLockCommand | 

eval {
    my $result = $api_instance->certificateProfilesLockManagement(certificateProfileLockCommand => $certificateProfileLockCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesLockManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
certificateProfileLockCommand =  # CertificateProfileLockCommand |  (optional)

try:
    # Lock/unlock certificate profile
    api_response = api_instance.certificate_profiles_lock_management(certificateProfileLockCommand=certificateProfileLockCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesLockManagement: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let certificateProfileLockCommand = ; // CertificateProfileLockCommand

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesLockManagement(certificateProfileLockCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
certificateProfileLockCommand

Responses


certificateProfilesMakeDefault

Make default certificate profile for organization


/api/v1/certificate-profiles/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileMakeDefaultCommand certificateProfileMakeDefaultCommand = ; // CertificateProfileMakeDefaultCommand | 

        try {
            Object result = apiInstance.certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CertificateProfileMakeDefaultCommand certificateProfileMakeDefaultCommand = new CertificateProfileMakeDefaultCommand(); // CertificateProfileMakeDefaultCommand | 

try {
    final result = await api_instance.certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesMakeDefault: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileMakeDefaultCommand certificateProfileMakeDefaultCommand = ; // CertificateProfileMakeDefaultCommand | 

        try {
            Object result = apiInstance.certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
CertificateProfileMakeDefaultCommand *certificateProfileMakeDefaultCommand = ; //  (optional)

// Make default certificate profile for organization
[apiInstance certificateProfilesMakeDefaultWith:certificateProfileMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'certificateProfileMakeDefaultCommand':  // {CertificateProfileMakeDefaultCommand} 
};

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

namespace Example
{
    public class certificateProfilesMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var certificateProfileMakeDefaultCommand = new CertificateProfileMakeDefaultCommand(); // CertificateProfileMakeDefaultCommand |  (optional) 

            try {
                // Make default certificate profile for organization
                Object result = apiInstance.certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$certificateProfileMakeDefaultCommand = ; // CertificateProfileMakeDefaultCommand | 

try {
    $result = $api_instance->certificateProfilesMakeDefault($certificateProfileMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $certificateProfileMakeDefaultCommand = WWW::OPenAPIClient::Object::CertificateProfileMakeDefaultCommand->new(); # CertificateProfileMakeDefaultCommand | 

eval {
    my $result = $api_instance->certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand => $certificateProfileMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
certificateProfileMakeDefaultCommand =  # CertificateProfileMakeDefaultCommand |  (optional)

try:
    # Make default certificate profile for organization
    api_response = api_instance.certificate_profiles_make_default(certificateProfileMakeDefaultCommand=certificateProfileMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesMakeDefault: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let certificateProfileMakeDefaultCommand = ; // CertificateProfileMakeDefaultCommand

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesMakeDefault(certificateProfileMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
certificateProfileMakeDefaultCommand

Responses


certificateProfilesParseCertificate

Parse a PEM-encoded certificate and return CN and expiry


/api/v1/certificate-profiles/parse-certificate

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles/parse-certificate" \
 -d '{
  "certPem" : "certPem"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        ParseCertificateQuery parseCertificateQuery = ; // ParseCertificateQuery | 

        try {
            ParseCertificateResponse result = apiInstance.certificateProfilesParseCertificate(parseCertificateQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesParseCertificate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ParseCertificateQuery parseCertificateQuery = new ParseCertificateQuery(); // ParseCertificateQuery | 

try {
    final result = await api_instance.certificateProfilesParseCertificate(parseCertificateQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesParseCertificate: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        ParseCertificateQuery parseCertificateQuery = ; // ParseCertificateQuery | 

        try {
            ParseCertificateResponse result = apiInstance.certificateProfilesParseCertificate(parseCertificateQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesParseCertificate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
ParseCertificateQuery *parseCertificateQuery = ; //  (optional)

// Parse a PEM-encoded certificate and return CN and expiry
[apiInstance certificateProfilesParseCertificateWith:parseCertificateQuery
              completionHandler: ^(ParseCertificateResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'parseCertificateQuery':  // {ParseCertificateQuery} 
};

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

namespace Example
{
    public class certificateProfilesParseCertificateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var parseCertificateQuery = new ParseCertificateQuery(); // ParseCertificateQuery |  (optional) 

            try {
                // Parse a PEM-encoded certificate and return CN and expiry
                ParseCertificateResponse result = apiInstance.certificateProfilesParseCertificate(parseCertificateQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesParseCertificate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$parseCertificateQuery = ; // ParseCertificateQuery | 

try {
    $result = $api_instance->certificateProfilesParseCertificate($parseCertificateQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesParseCertificate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $parseCertificateQuery = WWW::OPenAPIClient::Object::ParseCertificateQuery->new(); # ParseCertificateQuery | 

eval {
    my $result = $api_instance->certificateProfilesParseCertificate(parseCertificateQuery => $parseCertificateQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesParseCertificate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
parseCertificateQuery =  # ParseCertificateQuery |  (optional)

try:
    # Parse a PEM-encoded certificate and return CN and expiry
    api_response = api_instance.certificate_profiles_parse_certificate(parseCertificateQuery=parseCertificateQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesParseCertificate: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let parseCertificateQuery = ; // ParseCertificateQuery

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesParseCertificate(parseCertificateQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
parseCertificateQuery

Responses


certificateProfilesUpdate

Update certificate profile (name, issuerMode template, trust bundle, and related fields)


/api/v1/certificate-profiles

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles" \
 -d '{
  "trustBundle" : [ {
    "name" : "name",
    "pemBundle" : "pemBundle"
  }, {
    "name" : "name",
    "pemBundle" : "pemBundle"
  } ],
  "acmeEmail" : "acmeEmail",
  "venafiBaseUrl" : "venafiBaseUrl",
  "commonName" : "commonName",
  "venafiZoneUuid" : "venafiZoneUuid",
  "keyPem" : "keyPem",
  "description" : "description",
  "venafiZone" : "venafiZone",
  "venafiType" : "",
  "chainPem" : "chainPem",
  "certPem" : "certPem",
  "venafiAccessToken" : "venafiAccessToken",
  "venafiApiKey" : "venafiApiKey",
  "customCaPrivateKey" : "customCaPrivateKey",
  "name" : "name",
  "acmeServer" : "acmeServer",
  "id" : 0,
  "customCaCert" : "customCaCert",
  "issuerMode" : "",
  "validityDays" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileUpdateCommand certificateProfileUpdateCommand = ; // CertificateProfileUpdateCommand | 

        try {
            Object result = apiInstance.certificateProfilesUpdate(certificateProfileUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CertificateProfileUpdateCommand certificateProfileUpdateCommand = new CertificateProfileUpdateCommand(); // CertificateProfileUpdateCommand | 

try {
    final result = await api_instance.certificateProfilesUpdate(certificateProfileUpdateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesUpdate: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileUpdateCommand certificateProfileUpdateCommand = ; // CertificateProfileUpdateCommand | 

        try {
            Object result = apiInstance.certificateProfilesUpdate(certificateProfileUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
CertificateProfileUpdateCommand *certificateProfileUpdateCommand = ; //  (optional)

// Update certificate profile (name, issuerMode template, trust bundle, and related fields)
[apiInstance certificateProfilesUpdateWith:certificateProfileUpdateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'certificateProfileUpdateCommand':  // {CertificateProfileUpdateCommand} 
};

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

namespace Example
{
    public class certificateProfilesUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var certificateProfileUpdateCommand = new CertificateProfileUpdateCommand(); // CertificateProfileUpdateCommand |  (optional) 

            try {
                // Update certificate profile (name, issuerMode template, trust bundle, and related fields)
                Object result = apiInstance.certificateProfilesUpdate(certificateProfileUpdateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$certificateProfileUpdateCommand = ; // CertificateProfileUpdateCommand | 

try {
    $result = $api_instance->certificateProfilesUpdate($certificateProfileUpdateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $certificateProfileUpdateCommand = WWW::OPenAPIClient::Object::CertificateProfileUpdateCommand->new(); # CertificateProfileUpdateCommand | 

eval {
    my $result = $api_instance->certificateProfilesUpdate(certificateProfileUpdateCommand => $certificateProfileUpdateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
certificateProfileUpdateCommand =  # CertificateProfileUpdateCommand |  (optional)

try:
    # Update certificate profile (name, issuerMode template, trust bundle, and related fields)
    api_response = api_instance.certificate_profiles_update(certificateProfileUpdateCommand=certificateProfileUpdateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesUpdate: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let certificateProfileUpdateCommand = ; // CertificateProfileUpdateCommand

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesUpdate(certificateProfileUpdateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
certificateProfileUpdateCommand

Responses


certificateProfilesValidate

Validate certificate profile PEMs or stored profile by certificateProfileId


/api/v1/certificate-profiles/validate

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles/validate" \
 -d '{
  "kind" : "kind",
  "keyPem" : "keyPem",
  "certPem" : "certPem",
  "chainPem" : "chainPem",
  "certificateProfileId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileValidateCommand certificateProfileValidateCommand = ; // CertificateProfileValidateCommand | 

        try {
            Object result = apiInstance.certificateProfilesValidate(certificateProfileValidateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesValidate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CertificateProfileValidateCommand certificateProfileValidateCommand = new CertificateProfileValidateCommand(); // CertificateProfileValidateCommand | 

try {
    final result = await api_instance.certificateProfilesValidate(certificateProfileValidateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesValidate: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        CertificateProfileValidateCommand certificateProfileValidateCommand = ; // CertificateProfileValidateCommand | 

        try {
            Object result = apiInstance.certificateProfilesValidate(certificateProfileValidateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesValidate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
CertificateProfileValidateCommand *certificateProfileValidateCommand = ; //  (optional)

// Validate certificate profile PEMs or stored profile by certificateProfileId
[apiInstance certificateProfilesValidateWith:certificateProfileValidateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'certificateProfileValidateCommand':  // {CertificateProfileValidateCommand} 
};

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

namespace Example
{
    public class certificateProfilesValidateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var certificateProfileValidateCommand = new CertificateProfileValidateCommand(); // CertificateProfileValidateCommand |  (optional) 

            try {
                // Validate certificate profile PEMs or stored profile by certificateProfileId
                Object result = apiInstance.certificateProfilesValidate(certificateProfileValidateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesValidate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$certificateProfileValidateCommand = ; // CertificateProfileValidateCommand | 

try {
    $result = $api_instance->certificateProfilesValidate($certificateProfileValidateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesValidate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $certificateProfileValidateCommand = WWW::OPenAPIClient::Object::CertificateProfileValidateCommand->new(); # CertificateProfileValidateCommand | 

eval {
    my $result = $api_instance->certificateProfilesValidate(certificateProfileValidateCommand => $certificateProfileValidateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesValidate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
certificateProfileValidateCommand =  # CertificateProfileValidateCommand |  (optional)

try:
    # Validate certificate profile PEMs or stored profile by certificateProfileId
    api_response = api_instance.certificate_profiles_validate(certificateProfileValidateCommand=certificateProfileValidateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesValidate: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let certificateProfileValidateCommand = ; // CertificateProfileValidateCommand

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesValidate(certificateProfileValidateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
certificateProfileValidateCommand

Responses


certificateProfilesValidateTrustBundle

Validate a PEM bundle and return the count of parseable certificates


/api/v1/certificate-profiles/validate-trust-bundle

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/certificate-profiles/validate-trust-bundle" \
 -d '{
  "pemBundle" : "pemBundle"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CertificateProfilesApi;

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

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        ValidateTrustBundleQuery validateTrustBundleQuery = ; // ValidateTrustBundleQuery | 

        try {
            ValidateTrustBundleResponse result = apiInstance.certificateProfilesValidateTrustBundle(validateTrustBundleQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesValidateTrustBundle");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ValidateTrustBundleQuery validateTrustBundleQuery = new ValidateTrustBundleQuery(); // ValidateTrustBundleQuery | 

try {
    final result = await api_instance.certificateProfilesValidateTrustBundle(validateTrustBundleQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->certificateProfilesValidateTrustBundle: $e\n');
}

import org.openapitools.client.api.CertificateProfilesApi;

public class CertificateProfilesApiExample {
    public static void main(String[] args) {
        CertificateProfilesApi apiInstance = new CertificateProfilesApi();
        ValidateTrustBundleQuery validateTrustBundleQuery = ; // ValidateTrustBundleQuery | 

        try {
            ValidateTrustBundleResponse result = apiInstance.certificateProfilesValidateTrustBundle(validateTrustBundleQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CertificateProfilesApi#certificateProfilesValidateTrustBundle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CertificateProfilesApi *apiInstance = [[CertificateProfilesApi alloc] init];
ValidateTrustBundleQuery *validateTrustBundleQuery = ; //  (optional)

// Validate a PEM bundle and return the count of parseable certificates
[apiInstance certificateProfilesValidateTrustBundleWith:validateTrustBundleQuery
              completionHandler: ^(ValidateTrustBundleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CertificateProfilesApi()
var opts = {
  'validateTrustBundleQuery':  // {ValidateTrustBundleQuery} 
};

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

namespace Example
{
    public class certificateProfilesValidateTrustBundleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CertificateProfilesApi();
            var validateTrustBundleQuery = new ValidateTrustBundleQuery(); // ValidateTrustBundleQuery |  (optional) 

            try {
                // Validate a PEM bundle and return the count of parseable certificates
                ValidateTrustBundleResponse result = apiInstance.certificateProfilesValidateTrustBundle(validateTrustBundleQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CertificateProfilesApi.certificateProfilesValidateTrustBundle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CertificateProfilesApi();
$validateTrustBundleQuery = ; // ValidateTrustBundleQuery | 

try {
    $result = $api_instance->certificateProfilesValidateTrustBundle($validateTrustBundleQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CertificateProfilesApi->certificateProfilesValidateTrustBundle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CertificateProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CertificateProfilesApi->new();
my $validateTrustBundleQuery = WWW::OPenAPIClient::Object::ValidateTrustBundleQuery->new(); # ValidateTrustBundleQuery | 

eval {
    my $result = $api_instance->certificateProfilesValidateTrustBundle(validateTrustBundleQuery => $validateTrustBundleQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CertificateProfilesApi->certificateProfilesValidateTrustBundle: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CertificateProfilesApi()
validateTrustBundleQuery =  # ValidateTrustBundleQuery |  (optional)

try:
    # Validate a PEM bundle and return the count of parseable certificates
    api_response = api_instance.certificate_profiles_validate_trust_bundle(validateTrustBundleQuery=validateTrustBundleQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CertificateProfilesApi->certificateProfilesValidateTrustBundle: %s\n" % e)
extern crate CertificateProfilesApi;

pub fn main() {
    let validateTrustBundleQuery = ; // ValidateTrustBundleQuery

    let mut context = CertificateProfilesApi::Context::default();
    let result = client.certificateProfilesValidateTrustBundle(validateTrustBundleQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
validateTrustBundleQuery

Responses


Checker

checkerArtifact

Check artifact url


/api/v1/checker/artifact

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/artifact" \
 -d '{
  "organizationId" : 0,
  "name" : "name",
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        ArtifactUrlCheckerCommand artifactUrlCheckerCommand = ; // ArtifactUrlCheckerCommand | 

        try {
            Object result = apiInstance.checkerArtifact(artifactUrlCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerArtifact");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ArtifactUrlCheckerCommand artifactUrlCheckerCommand = new ArtifactUrlCheckerCommand(); // ArtifactUrlCheckerCommand | 

try {
    final result = await api_instance.checkerArtifact(artifactUrlCheckerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerArtifact: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        ArtifactUrlCheckerCommand artifactUrlCheckerCommand = ; // ArtifactUrlCheckerCommand | 

        try {
            Object result = apiInstance.checkerArtifact(artifactUrlCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerArtifact");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
ArtifactUrlCheckerCommand *artifactUrlCheckerCommand = ; //  (optional)

// Check artifact url
[apiInstance checkerArtifactWith:artifactUrlCheckerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'artifactUrlCheckerCommand':  // {ArtifactUrlCheckerCommand} 
};

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

namespace Example
{
    public class checkerArtifactExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var artifactUrlCheckerCommand = new ArtifactUrlCheckerCommand(); // ArtifactUrlCheckerCommand |  (optional) 

            try {
                // Check artifact url
                Object result = apiInstance.checkerArtifact(artifactUrlCheckerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerArtifact: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$artifactUrlCheckerCommand = ; // ArtifactUrlCheckerCommand | 

try {
    $result = $api_instance->checkerArtifact($artifactUrlCheckerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerArtifact: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $artifactUrlCheckerCommand = WWW::OPenAPIClient::Object::ArtifactUrlCheckerCommand->new(); # ArtifactUrlCheckerCommand | 

eval {
    my $result = $api_instance->checkerArtifact(artifactUrlCheckerCommand => $artifactUrlCheckerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerArtifact: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
artifactUrlCheckerCommand =  # ArtifactUrlCheckerCommand |  (optional)

try:
    # Check artifact url
    api_response = api_instance.checker_artifact(artifactUrlCheckerCommand=artifactUrlCheckerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerArtifact: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let artifactUrlCheckerCommand = ; // ArtifactUrlCheckerCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerArtifact(artifactUrlCheckerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
artifactUrlCheckerCommand

Responses


checkerAws

Check aws credential


/api/v1/checker/aws

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/aws" \
 -d '{
  "awsAccessKeyId" : "awsAccessKeyId",
  "roleArn" : "roleArn",
  "externalId" : "externalId",
  "awsSecretAccessKey" : "awsSecretAccessKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckAwsCommand checkAwsCommand = ; // CheckAwsCommand | 

        try {
            Object result = apiInstance.checkerAws(checkAwsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAws");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckAwsCommand checkAwsCommand = new CheckAwsCommand(); // CheckAwsCommand | 

try {
    final result = await api_instance.checkerAws(checkAwsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerAws: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckAwsCommand checkAwsCommand = ; // CheckAwsCommand | 

        try {
            Object result = apiInstance.checkerAws(checkAwsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAws");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckAwsCommand *checkAwsCommand = ; //  (optional)

// Check aws credential
[apiInstance checkerAwsWith:checkAwsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkAwsCommand':  // {CheckAwsCommand} 
};

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

namespace Example
{
    public class checkerAwsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkAwsCommand = new CheckAwsCommand(); // CheckAwsCommand |  (optional) 

            try {
                // Check aws credential
                Object result = apiInstance.checkerAws(checkAwsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerAws: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkAwsCommand = ; // CheckAwsCommand | 

try {
    $result = $api_instance->checkerAws($checkAwsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerAws: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkAwsCommand = WWW::OPenAPIClient::Object::CheckAwsCommand->new(); # CheckAwsCommand | 

eval {
    my $result = $api_instance->checkerAws(checkAwsCommand => $checkAwsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerAws: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkAwsCommand =  # CheckAwsCommand |  (optional)

try:
    # Check aws credential
    api_response = api_instance.checker_aws(checkAwsCommand=checkAwsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerAws: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkAwsCommand = ; // CheckAwsCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerAws(checkAwsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkAwsCommand

Responses


checkerAzure

Check azure credentials


/api/v1/checker/azure

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/azure" \
 -d '{
  "azureClientSecret" : "azureClientSecret",
  "azureClientId" : "azureClientId",
  "azureTenantId" : "azureTenantId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckAzureCommand checkAzureCommand = ; // CheckAzureCommand | 

        try {
            Object result = apiInstance.checkerAzure(checkAzureCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAzure");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckAzureCommand checkAzureCommand = new CheckAzureCommand(); // CheckAzureCommand | 

try {
    final result = await api_instance.checkerAzure(checkAzureCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerAzure: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckAzureCommand checkAzureCommand = ; // CheckAzureCommand | 

        try {
            Object result = apiInstance.checkerAzure(checkAzureCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAzure");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckAzureCommand *checkAzureCommand = ; //  (optional)

// Check azure credentials
[apiInstance checkerAzureWith:checkAzureCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkAzureCommand':  // {CheckAzureCommand} 
};

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

namespace Example
{
    public class checkerAzureExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkAzureCommand = new CheckAzureCommand(); // CheckAzureCommand |  (optional) 

            try {
                // Check azure credentials
                Object result = apiInstance.checkerAzure(checkAzureCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerAzure: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkAzureCommand = ; // CheckAzureCommand | 

try {
    $result = $api_instance->checkerAzure($checkAzureCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerAzure: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkAzureCommand = WWW::OPenAPIClient::Object::CheckAzureCommand->new(); # CheckAzureCommand | 

eval {
    my $result = $api_instance->checkerAzure(checkAzureCommand => $checkAzureCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerAzure: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkAzureCommand =  # CheckAzureCommand |  (optional)

try:
    # Check azure credentials
    api_response = api_instance.checker_azure(checkAzureCommand=checkAzureCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerAzure: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkAzureCommand = ; // CheckAzureCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerAzure(checkAzureCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkAzureCommand

Responses


checkerAzureQuota

Check azure cpu quota


/api/v1/checker/azure/quota/cpu

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/azure/quota/cpu" \
 -d '{
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckAzureCpuQuotaCommand checkAzureCpuQuotaCommand = ; // CheckAzureCpuQuotaCommand | 

        try {
            Object result = apiInstance.checkerAzureQuota(checkAzureCpuQuotaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAzureQuota");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckAzureCpuQuotaCommand checkAzureCpuQuotaCommand = new CheckAzureCpuQuotaCommand(); // CheckAzureCpuQuotaCommand | 

try {
    final result = await api_instance.checkerAzureQuota(checkAzureCpuQuotaCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerAzureQuota: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckAzureCpuQuotaCommand checkAzureCpuQuotaCommand = ; // CheckAzureCpuQuotaCommand | 

        try {
            Object result = apiInstance.checkerAzureQuota(checkAzureCpuQuotaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerAzureQuota");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckAzureCpuQuotaCommand *checkAzureCpuQuotaCommand = ; //  (optional)

// Check azure cpu quota
[apiInstance checkerAzureQuotaWith:checkAzureCpuQuotaCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkAzureCpuQuotaCommand':  // {CheckAzureCpuQuotaCommand} 
};

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

namespace Example
{
    public class checkerAzureQuotaExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkAzureCpuQuotaCommand = new CheckAzureCpuQuotaCommand(); // CheckAzureCpuQuotaCommand |  (optional) 

            try {
                // Check azure cpu quota
                Object result = apiInstance.checkerAzureQuota(checkAzureCpuQuotaCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerAzureQuota: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkAzureCpuQuotaCommand = ; // CheckAzureCpuQuotaCommand | 

try {
    $result = $api_instance->checkerAzureQuota($checkAzureCpuQuotaCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerAzureQuota: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkAzureCpuQuotaCommand = WWW::OPenAPIClient::Object::CheckAzureCpuQuotaCommand->new(); # CheckAzureCpuQuotaCommand | 

eval {
    my $result = $api_instance->checkerAzureQuota(checkAzureCpuQuotaCommand => $checkAzureCpuQuotaCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerAzureQuota: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkAzureCpuQuotaCommand =  # CheckAzureCpuQuotaCommand |  (optional)

try:
    # Check azure cpu quota
    api_response = api_instance.checker_azure_quota(checkAzureCpuQuotaCommand=checkAzureCpuQuotaCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerAzureQuota: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkAzureCpuQuotaCommand = ; // CheckAzureCpuQuotaCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerAzureQuota(checkAzureCpuQuotaCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkAzureCpuQuotaCommand

Responses


checkerCidr

Check valid cidr format


/api/v1/checker/cidr

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/cidr" \
 -d '{
  "cidr" : "cidr"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CidrCommand cidrCommand = ; // CidrCommand | 

        try {
            Object result = apiInstance.checkerCidr(cidrCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCidr");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CidrCommand cidrCommand = new CidrCommand(); // CidrCommand | 

try {
    final result = await api_instance.checkerCidr(cidrCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerCidr: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CidrCommand cidrCommand = ; // CidrCommand | 

        try {
            Object result = apiInstance.checkerCidr(cidrCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCidr");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CidrCommand *cidrCommand = ; //  (optional)

// Check valid cidr format
[apiInstance checkerCidrWith:cidrCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'cidrCommand':  // {CidrCommand} 
};

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

namespace Example
{
    public class checkerCidrExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var cidrCommand = new CidrCommand(); // CidrCommand |  (optional) 

            try {
                // Check valid cidr format
                Object result = apiInstance.checkerCidr(cidrCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerCidr: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$cidrCommand = ; // CidrCommand | 

try {
    $result = $api_instance->checkerCidr($cidrCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerCidr: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $cidrCommand = WWW::OPenAPIClient::Object::CidrCommand->new(); # CidrCommand | 

eval {
    my $result = $api_instance->checkerCidr(cidrCommand => $cidrCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerCidr: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
cidrCommand =  # CidrCommand |  (optional)

try:
    # Check valid cidr format
    api_response = api_instance.checker_cidr(cidrCommand=cidrCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerCidr: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let cidrCommand = ; // CidrCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerCidr(cidrCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cidrCommand

Responses


checkerCloudCore

Check CloudCore credential


/api/v1/checker/cloud-core

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/cloud-core" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckCloudCoreCommand checkCloudCoreCommand = ; // CheckCloudCoreCommand | 

        try {
            CheckCloudCoreAvailabilityResponse result = apiInstance.checkerCloudCore(checkCloudCoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCore");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckCloudCoreCommand checkCloudCoreCommand = new CheckCloudCoreCommand(); // CheckCloudCoreCommand | 

try {
    final result = await api_instance.checkerCloudCore(checkCloudCoreCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerCloudCore: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckCloudCoreCommand checkCloudCoreCommand = ; // CheckCloudCoreCommand | 

        try {
            CheckCloudCoreAvailabilityResponse result = apiInstance.checkerCloudCore(checkCloudCoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCore");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckCloudCoreCommand *checkCloudCoreCommand = ; //  (optional)

// Check CloudCore credential
[apiInstance checkerCloudCoreWith:checkCloudCoreCommand
              completionHandler: ^(CheckCloudCoreAvailabilityResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkCloudCoreCommand':  // {CheckCloudCoreCommand} 
};

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

namespace Example
{
    public class checkerCloudCoreExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkCloudCoreCommand = new CheckCloudCoreCommand(); // CheckCloudCoreCommand |  (optional) 

            try {
                // Check CloudCore credential
                CheckCloudCoreAvailabilityResponse result = apiInstance.checkerCloudCore(checkCloudCoreCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerCloudCore: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkCloudCoreCommand = ; // CheckCloudCoreCommand | 

try {
    $result = $api_instance->checkerCloudCore($checkCloudCoreCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerCloudCore: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkCloudCoreCommand = WWW::OPenAPIClient::Object::CheckCloudCoreCommand->new(); # CheckCloudCoreCommand | 

eval {
    my $result = $api_instance->checkerCloudCore(checkCloudCoreCommand => $checkCloudCoreCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerCloudCore: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkCloudCoreCommand =  # CheckCloudCoreCommand |  (optional)

try:
    # Check CloudCore credential
    api_response = api_instance.checker_cloud_core(checkCloudCoreCommand=checkCloudCoreCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerCloudCore: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkCloudCoreCommand = ; // CheckCloudCoreCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerCloudCore(checkCloudCoreCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkCloudCoreCommand

Responses


checkerCloudCoreTaikunImage

Check CloudCore CCF image


/api/v1/checker/cloud-core-image/{id}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/checker/cloud-core-image/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.checkerCloudCoreTaikunImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCoreTaikunImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.checkerCloudCoreTaikunImage(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerCloudCoreTaikunImage: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.checkerCloudCoreTaikunImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCoreTaikunImage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
Integer *id = 56; //  (default to null)

// Check CloudCore CCF image
[apiInstance checkerCloudCoreTaikunImageWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class checkerCloudCoreTaikunImageExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Check CloudCore CCF image
                Object result = apiInstance.checkerCloudCoreTaikunImage(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerCloudCoreTaikunImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->checkerCloudCoreTaikunImage($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerCloudCoreTaikunImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->checkerCloudCoreTaikunImage(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerCloudCoreTaikunImage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
id = 56 # Integer |  (default to null)

try:
    # Check CloudCore CCF image
    api_response = api_instance.checker_cloud_core_taikun_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerCloudCoreTaikunImage: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CheckerApi::Context::default();
    let result = client.checkerCloudCoreTaikunImage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


checkerCloudCoreTaikunLbImage

Check CloudCore CCF lb image


/api/v1/checker/taikun-lb-image/{id}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/checker/taikun-lb-image/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.checkerCloudCoreTaikunLbImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCoreTaikunLbImage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.checkerCloudCoreTaikunLbImage(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerCloudCoreTaikunLbImage: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.checkerCloudCoreTaikunLbImage(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCloudCoreTaikunLbImage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
Integer *id = 56; //  (default to null)

// Check CloudCore CCF lb image
[apiInstance checkerCloudCoreTaikunLbImageWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class checkerCloudCoreTaikunLbImageExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Check CloudCore CCF lb image
                Object result = apiInstance.checkerCloudCoreTaikunLbImage(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerCloudCoreTaikunLbImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->checkerCloudCoreTaikunLbImage($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerCloudCoreTaikunLbImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->checkerCloudCoreTaikunLbImage(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerCloudCoreTaikunLbImage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
id = 56 # Integer |  (default to null)

try:
    # Check CloudCore CCF lb image
    api_response = api_instance.checker_cloud_core_taikun_lb_image(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerCloudCoreTaikunLbImage: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = CheckerApi::Context::default();
    let result = client.checkerCloudCoreTaikunLbImage(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


checkerCron

Check valid cron job format

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/cron

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/cron" \
 -d '{
  "cronPeriod" : "cronPeriod"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CronJobCommand cronJobCommand = ; // CronJobCommand | 

        try {
            Object result = apiInstance.checkerCron(cronJobCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCron");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CronJobCommand cronJobCommand = new CronJobCommand(); // CronJobCommand | 

try {
    final result = await api_instance.checkerCron(cronJobCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerCron: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CronJobCommand cronJobCommand = ; // CronJobCommand | 

        try {
            Object result = apiInstance.checkerCron(cronJobCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerCron");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CronJobCommand *cronJobCommand = ; //  (optional)

// Check valid cron job format
[apiInstance checkerCronWith:cronJobCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'cronJobCommand':  // {CronJobCommand} 
};

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

namespace Example
{
    public class checkerCronExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var cronJobCommand = new CronJobCommand(); // CronJobCommand |  (optional) 

            try {
                // Check valid cron job format
                Object result = apiInstance.checkerCron(cronJobCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerCron: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$cronJobCommand = ; // CronJobCommand | 

try {
    $result = $api_instance->checkerCron($cronJobCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerCron: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $cronJobCommand = WWW::OPenAPIClient::Object::CronJobCommand->new(); # CronJobCommand | 

eval {
    my $result = $api_instance->checkerCron(cronJobCommand => $cronJobCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerCron: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
cronJobCommand =  # CronJobCommand |  (optional)

try:
    # Check valid cron job format
    api_response = api_instance.checker_cron(cronJobCommand=cronJobCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerCron: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let cronJobCommand = ; // CronJobCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerCron(cronJobCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cronJobCommand

Responses


checkerDns

Check valid dns format

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/dns

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/dns" \
 -d '{
  "address" : "address"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        DnsCommand dnsCommand = ; // DnsCommand | 

        try {
            Object result = apiInstance.checkerDns(dnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerDns");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCommand dnsCommand = new DnsCommand(); // DnsCommand | 

try {
    final result = await api_instance.checkerDns(dnsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerDns: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        DnsCommand dnsCommand = ; // DnsCommand | 

        try {
            Object result = apiInstance.checkerDns(dnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerDns");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
DnsCommand *dnsCommand = ; //  (optional)

// Check valid dns format
[apiInstance checkerDnsWith:dnsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'dnsCommand':  // {DnsCommand} 
};

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

namespace Example
{
    public class checkerDnsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var dnsCommand = new DnsCommand(); // DnsCommand |  (optional) 

            try {
                // Check valid dns format
                Object result = apiInstance.checkerDns(dnsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerDns: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$dnsCommand = ; // DnsCommand | 

try {
    $result = $api_instance->checkerDns($dnsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerDns: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $dnsCommand = WWW::OPenAPIClient::Object::DnsCommand->new(); # DnsCommand | 

eval {
    my $result = $api_instance->checkerDns(dnsCommand => $dnsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerDns: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
dnsCommand =  # DnsCommand |  (optional)

try:
    # Check valid dns format
    api_response = api_instance.checker_dns(dnsCommand=dnsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerDns: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let dnsCommand = ; // DnsCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerDns(dnsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCommand

Responses


checkerGoogle

Check google credentials


/api/v1/checker/google

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/checker/google"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            'Boolean' result = apiInstance.checkerGoogle(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerGoogle");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB

try {
    final result = await api_instance.checkerGoogle(config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerGoogle: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            'Boolean' result = apiInstance.checkerGoogle(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerGoogle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)

// Check google credentials
[apiInstance checkerGoogleWith:config
              completionHandler: ^('Boolean' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB

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

namespace Example
{
    public class checkerGoogleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)

            try {
                // Check google credentials
                'Boolean' result = apiInstance.checkerGoogle(config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerGoogle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB

try {
    $result = $api_instance->checkerGoogle($config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerGoogle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB

eval {
    my $result = $api_instance->checkerGoogle(config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerGoogle: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)

try:
    # Check google credentials
    api_response = api_instance.checker_google(config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerGoogle: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let config = ; // File

    let mut context = CheckerApi::Context::default();
    let result = client.checkerGoogle(config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required

Responses


checkerHelm

Check helm credential


/api/v1/checker/helm

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/helm" \
 -d '{
  "password" : "password",
  "url" : "url",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        HelmCredentialCommand helmCredentialCommand = ; // HelmCredentialCommand | 

        try {
            Object result = apiInstance.checkerHelm(helmCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerHelm");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final HelmCredentialCommand helmCredentialCommand = new HelmCredentialCommand(); // HelmCredentialCommand | 

try {
    final result = await api_instance.checkerHelm(helmCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerHelm: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        HelmCredentialCommand helmCredentialCommand = ; // HelmCredentialCommand | 

        try {
            Object result = apiInstance.checkerHelm(helmCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerHelm");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
HelmCredentialCommand *helmCredentialCommand = ; //  (optional)

// Check helm credential
[apiInstance checkerHelmWith:helmCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'helmCredentialCommand':  // {HelmCredentialCommand} 
};

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

namespace Example
{
    public class checkerHelmExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var helmCredentialCommand = new HelmCredentialCommand(); // HelmCredentialCommand |  (optional) 

            try {
                // Check helm credential
                Object result = apiInstance.checkerHelm(helmCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerHelm: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$helmCredentialCommand = ; // HelmCredentialCommand | 

try {
    $result = $api_instance->checkerHelm($helmCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerHelm: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $helmCredentialCommand = WWW::OPenAPIClient::Object::HelmCredentialCommand->new(); # HelmCredentialCommand | 

eval {
    my $result = $api_instance->checkerHelm(helmCredentialCommand => $helmCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerHelm: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
helmCredentialCommand =  # HelmCredentialCommand |  (optional)

try:
    # Check helm credential
    api_response = api_instance.checker_helm(helmCredentialCommand=helmCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerHelm: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let helmCredentialCommand = ; // HelmCredentialCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerHelm(helmCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
helmCredentialCommand

Responses


checkerImportClusterKubeConfig

Check kube config


/api/v1/checker/import-cluster-kube-config

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/checker/import-cluster-kube-config"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | Kubeconfig YAML file to validate, max 10 MiB
        Integer cloudId = 56; // Integer | Cloud credential id for the imported cluster
        String region = region_example; // String | Cloud region of the imported cluster
        String importClusterName = importClusterName_example; // String | Name to assign the imported cluster
        String resourceGroupName = resourceGroupName_example; // String | Resource group (Azure) of the imported cluster
        EImportClusterType importType = ; // EImportClusterType | Import cluster type

        try {
            Object result = apiInstance.checkerImportClusterKubeConfig(config, cloudId, region, importClusterName, resourceGroupName, importType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerImportClusterKubeConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | Kubeconfig YAML file to validate, max 10 MiB
final Integer cloudId = new Integer(); // Integer | Cloud credential id for the imported cluster
final String region = new String(); // String | Cloud region of the imported cluster
final String importClusterName = new String(); // String | Name to assign the imported cluster
final String resourceGroupName = new String(); // String | Resource group (Azure) of the imported cluster
final EImportClusterType importType = new EImportClusterType(); // EImportClusterType | Import cluster type

try {
    final result = await api_instance.checkerImportClusterKubeConfig(config, cloudId, region, importClusterName, resourceGroupName, importType);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerImportClusterKubeConfig: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | Kubeconfig YAML file to validate, max 10 MiB
        Integer cloudId = 56; // Integer | Cloud credential id for the imported cluster
        String region = region_example; // String | Cloud region of the imported cluster
        String importClusterName = importClusterName_example; // String | Name to assign the imported cluster
        String resourceGroupName = resourceGroupName_example; // String | Resource group (Azure) of the imported cluster
        EImportClusterType importType = ; // EImportClusterType | Import cluster type

        try {
            Object result = apiInstance.checkerImportClusterKubeConfig(config, cloudId, region, importClusterName, resourceGroupName, importType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerImportClusterKubeConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
File *config = ; // Kubeconfig YAML file to validate, max 10 MiB (default to null)
Integer *cloudId = 56; // Cloud credential id for the imported cluster (optional) (default to null)
String *region = region_example; // Cloud region of the imported cluster (optional) (default to null)
String *importClusterName = importClusterName_example; // Name to assign the imported cluster (optional) (default to null)
String *resourceGroupName = resourceGroupName_example; // Resource group (Azure) of the imported cluster (optional) (default to null)
EImportClusterType *importType = ; // Import cluster type (optional) (default to null)

// Check kube config
[apiInstance checkerImportClusterKubeConfigWith:config
    cloudId:cloudId
    region:region
    importClusterName:importClusterName
    resourceGroupName:resourceGroupName
    importType:importType
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var config = ; // {File} Kubeconfig YAML file to validate, max 10 MiB
var opts = {
  'cloudId': 56, // {Integer} Cloud credential id for the imported cluster
  'region': region_example, // {String} Cloud region of the imported cluster
  'importClusterName': importClusterName_example, // {String} Name to assign the imported cluster
  'resourceGroupName': resourceGroupName_example, // {String} Resource group (Azure) of the imported cluster
  'importType':  // {EImportClusterType} Import cluster type
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.checkerImportClusterKubeConfig(config, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class checkerImportClusterKubeConfigExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var config = new File(); // File | Kubeconfig YAML file to validate, max 10 MiB (default to null)
            var cloudId = 56;  // Integer | Cloud credential id for the imported cluster (optional)  (default to null)
            var region = region_example;  // String | Cloud region of the imported cluster (optional)  (default to null)
            var importClusterName = importClusterName_example;  // String | Name to assign the imported cluster (optional)  (default to null)
            var resourceGroupName = resourceGroupName_example;  // String | Resource group (Azure) of the imported cluster (optional)  (default to null)
            var importType = new EImportClusterType(); // EImportClusterType | Import cluster type (optional)  (default to null)

            try {
                // Check kube config
                Object result = apiInstance.checkerImportClusterKubeConfig(config, cloudId, region, importClusterName, resourceGroupName, importType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerImportClusterKubeConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$config = ; // File | Kubeconfig YAML file to validate, max 10 MiB
$cloudId = 56; // Integer | Cloud credential id for the imported cluster
$region = region_example; // String | Cloud region of the imported cluster
$importClusterName = importClusterName_example; // String | Name to assign the imported cluster
$resourceGroupName = resourceGroupName_example; // String | Resource group (Azure) of the imported cluster
$importType = ; // EImportClusterType | Import cluster type

try {
    $result = $api_instance->checkerImportClusterKubeConfig($config, $cloudId, $region, $importClusterName, $resourceGroupName, $importType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerImportClusterKubeConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $config = ; # File | Kubeconfig YAML file to validate, max 10 MiB
my $cloudId = 56; # Integer | Cloud credential id for the imported cluster
my $region = region_example; # String | Cloud region of the imported cluster
my $importClusterName = importClusterName_example; # String | Name to assign the imported cluster
my $resourceGroupName = resourceGroupName_example; # String | Resource group (Azure) of the imported cluster
my $importType = ; # EImportClusterType | Import cluster type

eval {
    my $result = $api_instance->checkerImportClusterKubeConfig(config => $config, cloudId => $cloudId, region => $region, importClusterName => $importClusterName, resourceGroupName => $resourceGroupName, importType => $importType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerImportClusterKubeConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
config =  # File | Kubeconfig YAML file to validate, max 10 MiB (default to null)
cloudId = 56 # Integer | Cloud credential id for the imported cluster (optional) (default to null)
region = region_example # String | Cloud region of the imported cluster (optional) (default to null)
importClusterName = importClusterName_example # String | Name to assign the imported cluster (optional) (default to null)
resourceGroupName = resourceGroupName_example # String | Resource group (Azure) of the imported cluster (optional) (default to null)
importType =  # EImportClusterType | Import cluster type (optional) (default to null)

try:
    # Check kube config
    api_response = api_instance.checker_import_cluster_kube_config(config, cloudId=cloudId, region=region, importClusterName=importClusterName, resourceGroupName=resourceGroupName, importType=importType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerImportClusterKubeConfig: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let config = ; // File
    let cloudId = 56; // Integer
    let region = region_example; // String
    let importClusterName = importClusterName_example; // String
    let resourceGroupName = resourceGroupName_example; // String
    let importType = ; // EImportClusterType

    let mut context = CheckerApi::Context::default();
    let result = client.checkerImportClusterKubeConfig(config, cloudId, region, importClusterName, resourceGroupName, importType, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
Kubeconfig YAML file to validate, max 10 MiB
Required
cloudId
Integer (int32)
Cloud credential id for the imported cluster
region
String
Cloud region of the imported cluster
importClusterName
String
Name to assign the imported cluster
resourceGroupName
String
Resource group (Azure) of the imported cluster
importType
EImportClusterType
Import cluster type

Responses


checkerKubeConfig

Check kube config


/api/v1/checker/kube-config

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/checker/kube-config"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | Kubeconfig YAML file to validate, max 10 MiB

        try {
            'Boolean' result = apiInstance.checkerKubeConfig(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerKubeConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | Kubeconfig YAML file to validate, max 10 MiB

try {
    final result = await api_instance.checkerKubeConfig(config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerKubeConfig: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        File config = ; // File | Kubeconfig YAML file to validate, max 10 MiB

        try {
            'Boolean' result = apiInstance.checkerKubeConfig(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerKubeConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
File *config = ; // Kubeconfig YAML file to validate, max 10 MiB (default to null)

// Check kube config
[apiInstance checkerKubeConfigWith:config
              completionHandler: ^('Boolean' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var config = ; // {File} Kubeconfig YAML file to validate, max 10 MiB

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

namespace Example
{
    public class checkerKubeConfigExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var config = new File(); // File | Kubeconfig YAML file to validate, max 10 MiB (default to null)

            try {
                // Check kube config
                'Boolean' result = apiInstance.checkerKubeConfig(config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerKubeConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$config = ; // File | Kubeconfig YAML file to validate, max 10 MiB

try {
    $result = $api_instance->checkerKubeConfig($config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerKubeConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $config = ; # File | Kubeconfig YAML file to validate, max 10 MiB

eval {
    my $result = $api_instance->checkerKubeConfig(config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerKubeConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
config =  # File | Kubeconfig YAML file to validate, max 10 MiB (default to null)

try:
    # Check kube config
    api_response = api_instance.checker_kube_config(config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerKubeConfig: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let config = ; // File

    let mut context = CheckerApi::Context::default();
    let result = client.checkerKubeConfig(config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
Kubeconfig YAML file to validate, max 10 MiB
Required

Responses


checkerLicense

Check a Cloudera license file and return its tenant id and validity


/api/v1/checker/license

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/checker/license"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            DomainLicenseDto result = apiInstance.checkerLicense(licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerLicense");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    final result = await api_instance.checkerLicense(licenseFile);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerLicense: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            DomainLicenseDto result = apiInstance.checkerLicense(licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerLicense");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
File *licenseFile = ; // Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

// Check a Cloudera license file and return its tenant id and validity
[apiInstance checkerLicenseWith:licenseFile
              completionHandler: ^(DomainLicenseDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'licenseFile':  // {File} Signed Cloudera license file (PGP cleartext), max 16 KB
};

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

namespace Example
{
    public class checkerLicenseExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional)  (default to null)

            try {
                // Check a Cloudera license file and return its tenant id and validity
                DomainLicenseDto result = apiInstance.checkerLicense(licenseFile);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerLicense: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    $result = $api_instance->checkerLicense($licenseFile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerLicense: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $licenseFile = ; # File | Signed Cloudera license file (PGP cleartext), max 16 KB

eval {
    my $result = $api_instance->checkerLicense(licenseFile => $licenseFile);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerLicense: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
licenseFile =  # File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

try:
    # Check a Cloudera license file and return its tenant id and validity
    api_response = api_instance.checker_license(licenseFile=licenseFile)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerLicense: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let licenseFile = ; // File

    let mut context = CheckerApi::Context::default();
    let result = client.checkerLicense(licenseFile, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
licenseFile
File (binary)
Signed Cloudera license file (PGP cleartext), max 16 KB

Responses


checkerNode

Duplicate server name checker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/node

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/node" \
 -d '{
  "name" : "name",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        NodeCommand nodeCommand = ; // NodeCommand | 

        try {
            Object result = apiInstance.checkerNode(nodeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerNode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final NodeCommand nodeCommand = new NodeCommand(); // NodeCommand | 

try {
    final result = await api_instance.checkerNode(nodeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerNode: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        NodeCommand nodeCommand = ; // NodeCommand | 

        try {
            Object result = apiInstance.checkerNode(nodeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerNode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
NodeCommand *nodeCommand = ; //  (optional)

// Duplicate server name checker
[apiInstance checkerNodeWith:nodeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'nodeCommand':  // {NodeCommand} 
};

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

namespace Example
{
    public class checkerNodeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var nodeCommand = new NodeCommand(); // NodeCommand |  (optional) 

            try {
                // Duplicate server name checker
                Object result = apiInstance.checkerNode(nodeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerNode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$nodeCommand = ; // NodeCommand | 

try {
    $result = $api_instance->checkerNode($nodeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerNode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $nodeCommand = WWW::OPenAPIClient::Object::NodeCommand->new(); # NodeCommand | 

eval {
    my $result = $api_instance->checkerNode(nodeCommand => $nodeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerNode: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
nodeCommand =  # NodeCommand |  (optional)

try:
    # Duplicate server name checker
    api_response = api_instance.checker_node(nodeCommand=nodeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerNode: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let nodeCommand = ; // NodeCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerNode(nodeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
nodeCommand

Responses


checkerNtp

Check valid ntp format

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/ntp

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/ntp" \
 -d '{
  "address" : "address"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        NtpCommand ntpCommand = ; // NtpCommand | 

        try {
            Object result = apiInstance.checkerNtp(ntpCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerNtp");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final NtpCommand ntpCommand = new NtpCommand(); // NtpCommand | 

try {
    final result = await api_instance.checkerNtp(ntpCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerNtp: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        NtpCommand ntpCommand = ; // NtpCommand | 

        try {
            Object result = apiInstance.checkerNtp(ntpCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerNtp");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
NtpCommand *ntpCommand = ; //  (optional)

// Check valid ntp format
[apiInstance checkerNtpWith:ntpCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'ntpCommand':  // {NtpCommand} 
};

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

namespace Example
{
    public class checkerNtpExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var ntpCommand = new NtpCommand(); // NtpCommand |  (optional) 

            try {
                // Check valid ntp format
                Object result = apiInstance.checkerNtp(ntpCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerNtp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$ntpCommand = ; // NtpCommand | 

try {
    $result = $api_instance->checkerNtp($ntpCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerNtp: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $ntpCommand = WWW::OPenAPIClient::Object::NtpCommand->new(); # NtpCommand | 

eval {
    my $result = $api_instance->checkerNtp(ntpCommand => $ntpCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerNtp: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
ntpCommand =  # NtpCommand |  (optional)

try:
    # Check valid ntp format
    api_response = api_instance.checker_ntp(ntpCommand=ntpCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerNtp: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let ntpCommand = ; // NtpCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerNtp(ntpCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ntpCommand

Responses


checkerOpenAi

Check open-ai token


/api/v1/checker/openai

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/openai" \
 -d '{
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        OpenAiCheckerCommand openAiCheckerCommand = ; // OpenAiCheckerCommand | 

        try {
            Object result = apiInstance.checkerOpenAi(openAiCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerOpenAi");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OpenAiCheckerCommand openAiCheckerCommand = new OpenAiCheckerCommand(); // OpenAiCheckerCommand | 

try {
    final result = await api_instance.checkerOpenAi(openAiCheckerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerOpenAi: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        OpenAiCheckerCommand openAiCheckerCommand = ; // OpenAiCheckerCommand | 

        try {
            Object result = apiInstance.checkerOpenAi(openAiCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerOpenAi");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
OpenAiCheckerCommand *openAiCheckerCommand = ; //  (optional)

// Check open-ai token
[apiInstance checkerOpenAiWith:openAiCheckerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'openAiCheckerCommand':  // {OpenAiCheckerCommand} 
};

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

namespace Example
{
    public class checkerOpenAiExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var openAiCheckerCommand = new OpenAiCheckerCommand(); // OpenAiCheckerCommand |  (optional) 

            try {
                // Check open-ai token
                Object result = apiInstance.checkerOpenAi(openAiCheckerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerOpenAi: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$openAiCheckerCommand = ; // OpenAiCheckerCommand | 

try {
    $result = $api_instance->checkerOpenAi($openAiCheckerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerOpenAi: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $openAiCheckerCommand = WWW::OPenAPIClient::Object::OpenAiCheckerCommand->new(); # OpenAiCheckerCommand | 

eval {
    my $result = $api_instance->checkerOpenAi(openAiCheckerCommand => $openAiCheckerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerOpenAi: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
openAiCheckerCommand =  # OpenAiCheckerCommand |  (optional)

try:
    # Check open-ai token
    api_response = api_instance.checker_open_ai(openAiCheckerCommand=openAiCheckerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerOpenAi: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let openAiCheckerCommand = ; // OpenAiCheckerCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerOpenAi(openAiCheckerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
openAiCheckerCommand

Responses


checkerOrganization

Check duplicate org name

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/organization

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/organization" \
 -d '{
  "name" : "name",
  "fullName" : "fullName",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        OrganizationNameCheckerCommand organizationNameCheckerCommand = ; // OrganizationNameCheckerCommand | 

        try {
            Object result = apiInstance.checkerOrganization(organizationNameCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerOrganization");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OrganizationNameCheckerCommand organizationNameCheckerCommand = new OrganizationNameCheckerCommand(); // OrganizationNameCheckerCommand | 

try {
    final result = await api_instance.checkerOrganization(organizationNameCheckerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerOrganization: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        OrganizationNameCheckerCommand organizationNameCheckerCommand = ; // OrganizationNameCheckerCommand | 

        try {
            Object result = apiInstance.checkerOrganization(organizationNameCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerOrganization");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
OrganizationNameCheckerCommand *organizationNameCheckerCommand = ; //  (optional)

// Check duplicate org name
[apiInstance checkerOrganizationWith:organizationNameCheckerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'organizationNameCheckerCommand':  // {OrganizationNameCheckerCommand} 
};

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

namespace Example
{
    public class checkerOrganizationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var organizationNameCheckerCommand = new OrganizationNameCheckerCommand(); // OrganizationNameCheckerCommand |  (optional) 

            try {
                // Check duplicate org name
                Object result = apiInstance.checkerOrganization(organizationNameCheckerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerOrganization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$organizationNameCheckerCommand = ; // OrganizationNameCheckerCommand | 

try {
    $result = $api_instance->checkerOrganization($organizationNameCheckerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerOrganization: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $organizationNameCheckerCommand = WWW::OPenAPIClient::Object::OrganizationNameCheckerCommand->new(); # OrganizationNameCheckerCommand | 

eval {
    my $result = $api_instance->checkerOrganization(organizationNameCheckerCommand => $organizationNameCheckerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerOrganization: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
organizationNameCheckerCommand =  # OrganizationNameCheckerCommand |  (optional)

try:
    # Check duplicate org name
    api_response = api_instance.checker_organization(organizationNameCheckerCommand=organizationNameCheckerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerOrganization: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let organizationNameCheckerCommand = ; // OrganizationNameCheckerCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerOrganization(organizationNameCheckerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
organizationNameCheckerCommand

Responses


checkerProjectApp

Check duplicate project app

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/project-app

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/project-app" \
 -d '{
  "name" : "name",
  "namespace" : "namespace",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        DuplicateProjectAppCheckerCommand duplicateProjectAppCheckerCommand = ; // DuplicateProjectAppCheckerCommand | 

        try {
            Object result = apiInstance.checkerProjectApp(duplicateProjectAppCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerProjectApp");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DuplicateProjectAppCheckerCommand duplicateProjectAppCheckerCommand = new DuplicateProjectAppCheckerCommand(); // DuplicateProjectAppCheckerCommand | 

try {
    final result = await api_instance.checkerProjectApp(duplicateProjectAppCheckerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerProjectApp: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        DuplicateProjectAppCheckerCommand duplicateProjectAppCheckerCommand = ; // DuplicateProjectAppCheckerCommand | 

        try {
            Object result = apiInstance.checkerProjectApp(duplicateProjectAppCheckerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerProjectApp");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
DuplicateProjectAppCheckerCommand *duplicateProjectAppCheckerCommand = ; //  (optional)

// Check duplicate project app
[apiInstance checkerProjectAppWith:duplicateProjectAppCheckerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'duplicateProjectAppCheckerCommand':  // {DuplicateProjectAppCheckerCommand} 
};

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

namespace Example
{
    public class checkerProjectAppExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var duplicateProjectAppCheckerCommand = new DuplicateProjectAppCheckerCommand(); // DuplicateProjectAppCheckerCommand |  (optional) 

            try {
                // Check duplicate project app
                Object result = apiInstance.checkerProjectApp(duplicateProjectAppCheckerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerProjectApp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$duplicateProjectAppCheckerCommand = ; // DuplicateProjectAppCheckerCommand | 

try {
    $result = $api_instance->checkerProjectApp($duplicateProjectAppCheckerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerProjectApp: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $duplicateProjectAppCheckerCommand = WWW::OPenAPIClient::Object::DuplicateProjectAppCheckerCommand->new(); # DuplicateProjectAppCheckerCommand | 

eval {
    my $result = $api_instance->checkerProjectApp(duplicateProjectAppCheckerCommand => $duplicateProjectAppCheckerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerProjectApp: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
duplicateProjectAppCheckerCommand =  # DuplicateProjectAppCheckerCommand |  (optional)

try:
    # Check duplicate project app
    api_response = api_instance.checker_project_app(duplicateProjectAppCheckerCommand=duplicateProjectAppCheckerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerProjectApp: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let duplicateProjectAppCheckerCommand = ; // DuplicateProjectAppCheckerCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerProjectApp(duplicateProjectAppCheckerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
duplicateProjectAppCheckerCommand

Responses


checkerPrometheus

Check prometheus credentials


/api/v1/checker/prometheus

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/prometheus" \
 -d '{
  "password" : "password",
  "userName" : "userName",
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckPrometheusCommand checkPrometheusCommand = ; // CheckPrometheusCommand | 

        try {
            Object result = apiInstance.checkerPrometheus(checkPrometheusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerPrometheus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckPrometheusCommand checkPrometheusCommand = new CheckPrometheusCommand(); // CheckPrometheusCommand | 

try {
    final result = await api_instance.checkerPrometheus(checkPrometheusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerPrometheus: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckPrometheusCommand checkPrometheusCommand = ; // CheckPrometheusCommand | 

        try {
            Object result = apiInstance.checkerPrometheus(checkPrometheusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerPrometheus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckPrometheusCommand *checkPrometheusCommand = ; //  (optional)

// Check prometheus credentials
[apiInstance checkerPrometheusWith:checkPrometheusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkPrometheusCommand':  // {CheckPrometheusCommand} 
};

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

namespace Example
{
    public class checkerPrometheusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkPrometheusCommand = new CheckPrometheusCommand(); // CheckPrometheusCommand |  (optional) 

            try {
                // Check prometheus credentials
                Object result = apiInstance.checkerPrometheus(checkPrometheusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerPrometheus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkPrometheusCommand = ; // CheckPrometheusCommand | 

try {
    $result = $api_instance->checkerPrometheus($checkPrometheusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerPrometheus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkPrometheusCommand = WWW::OPenAPIClient::Object::CheckPrometheusCommand->new(); # CheckPrometheusCommand | 

eval {
    my $result = $api_instance->checkerPrometheus(checkPrometheusCommand => $checkPrometheusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerPrometheus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkPrometheusCommand =  # CheckPrometheusCommand |  (optional)

try:
    # Check prometheus credentials
    api_response = api_instance.checker_prometheus(checkPrometheusCommand=checkPrometheusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerPrometheus: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkPrometheusCommand = ; // CheckPrometheusCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerPrometheus(checkPrometheusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkPrometheusCommand

Responses


checkerRegistryCredential

Check registry credential


/api/v1/checker/registry-credential

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/registry-credential" \
 -d '{
  "password" : "password",
  "registryHost" : "registryHost",
  "id" : 0,
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckRegistryCredentialCommand checkRegistryCredentialCommand = ; // CheckRegistryCredentialCommand | 

        try {
            Object result = apiInstance.checkerRegistryCredential(checkRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerRegistryCredential");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckRegistryCredentialCommand checkRegistryCredentialCommand = new CheckRegistryCredentialCommand(); // CheckRegistryCredentialCommand | 

try {
    final result = await api_instance.checkerRegistryCredential(checkRegistryCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerRegistryCredential: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckRegistryCredentialCommand checkRegistryCredentialCommand = ; // CheckRegistryCredentialCommand | 

        try {
            Object result = apiInstance.checkerRegistryCredential(checkRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerRegistryCredential");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckRegistryCredentialCommand *checkRegistryCredentialCommand = ; //  (optional)

// Check registry credential
[apiInstance checkerRegistryCredentialWith:checkRegistryCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkRegistryCredentialCommand':  // {CheckRegistryCredentialCommand} 
};

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

namespace Example
{
    public class checkerRegistryCredentialExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkRegistryCredentialCommand = new CheckRegistryCredentialCommand(); // CheckRegistryCredentialCommand |  (optional) 

            try {
                // Check registry credential
                Object result = apiInstance.checkerRegistryCredential(checkRegistryCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerRegistryCredential: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkRegistryCredentialCommand = ; // CheckRegistryCredentialCommand | 

try {
    $result = $api_instance->checkerRegistryCredential($checkRegistryCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerRegistryCredential: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkRegistryCredentialCommand = WWW::OPenAPIClient::Object::CheckRegistryCredentialCommand->new(); # CheckRegistryCredentialCommand | 

eval {
    my $result = $api_instance->checkerRegistryCredential(checkRegistryCredentialCommand => $checkRegistryCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerRegistryCredential: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkRegistryCredentialCommand =  # CheckRegistryCredentialCommand |  (optional)

try:
    # Check registry credential
    api_response = api_instance.checker_registry_credential(checkRegistryCredentialCommand=checkRegistryCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerRegistryCredential: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkRegistryCredentialCommand = ; // CheckRegistryCredentialCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerRegistryCredential(checkRegistryCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkRegistryCredentialCommand

Responses


checkerS3

Check s3 credential


/api/v1/checker/s3

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/s3" \
 -d '{
  "s3SecretKey" : "s3SecretKey",
  "s3Endpoint" : "s3Endpoint",
  "s3AccessKeyId" : "s3AccessKeyId",
  "s3Region" : "s3Region"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckS3Command checkS3Command = ; // CheckS3Command | 

        try {
            Object result = apiInstance.checkerS3(checkS3Command);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerS3");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckS3Command checkS3Command = new CheckS3Command(); // CheckS3Command | 

try {
    final result = await api_instance.checkerS3(checkS3Command);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerS3: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckS3Command checkS3Command = ; // CheckS3Command | 

        try {
            Object result = apiInstance.checkerS3(checkS3Command);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerS3");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckS3Command *checkS3Command = ; //  (optional)

// Check s3 credential
[apiInstance checkerS3With:checkS3Command
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkS3Command':  // {CheckS3Command} 
};

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

namespace Example
{
    public class checkerS3Example
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkS3Command = new CheckS3Command(); // CheckS3Command |  (optional) 

            try {
                // Check s3 credential
                Object result = apiInstance.checkerS3(checkS3Command);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerS3: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkS3Command = ; // CheckS3Command | 

try {
    $result = $api_instance->checkerS3($checkS3Command);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerS3: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkS3Command = WWW::OPenAPIClient::Object::CheckS3Command->new(); # CheckS3Command | 

eval {
    my $result = $api_instance->checkerS3(checkS3Command => $checkS3Command);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerS3: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkS3Command =  # CheckS3Command |  (optional)

try:
    # Check s3 credential
    api_response = api_instance.checker_s3(checkS3Command=checkS3Command)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerS3: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkS3Command = ; // CheckS3Command

    let mut context = CheckerApi::Context::default();
    let result = client.checkerS3(checkS3Command, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkS3Command

Responses


checkerSsh

Check valid ssh key format

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/ssh

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/ssh" \
 -d '{
  "sshPublicKey" : "sshPublicKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        SshKeyCommand sshKeyCommand = ; // SshKeyCommand | 

        try {
            Object result = apiInstance.checkerSsh(sshKeyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerSsh");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SshKeyCommand sshKeyCommand = new SshKeyCommand(); // SshKeyCommand | 

try {
    final result = await api_instance.checkerSsh(sshKeyCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerSsh: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        SshKeyCommand sshKeyCommand = ; // SshKeyCommand | 

        try {
            Object result = apiInstance.checkerSsh(sshKeyCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerSsh");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
SshKeyCommand *sshKeyCommand = ; //  (optional)

// Check valid ssh key format
[apiInstance checkerSshWith:sshKeyCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'sshKeyCommand':  // {SshKeyCommand} 
};

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

namespace Example
{
    public class checkerSshExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var sshKeyCommand = new SshKeyCommand(); // SshKeyCommand |  (optional) 

            try {
                // Check valid ssh key format
                Object result = apiInstance.checkerSsh(sshKeyCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerSsh: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$sshKeyCommand = ; // SshKeyCommand | 

try {
    $result = $api_instance->checkerSsh($sshKeyCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerSsh: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $sshKeyCommand = WWW::OPenAPIClient::Object::SshKeyCommand->new(); # SshKeyCommand | 

eval {
    my $result = $api_instance->checkerSsh(sshKeyCommand => $sshKeyCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerSsh: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
sshKeyCommand =  # SshKeyCommand |  (optional)

try:
    # Check valid ssh key format
    api_response = api_instance.checker_ssh(sshKeyCommand=sshKeyCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerSsh: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let sshKeyCommand = ; // SshKeyCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerSsh(sshKeyCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
sshKeyCommand

Responses


checkerTrustedRegistry

Check trusted registry

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/trusted-registry

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/trusted-registry" \
 -d '{
  "registry" : "registry"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        CheckTrustedRegistryCommand checkTrustedRegistryCommand = ; // CheckTrustedRegistryCommand | 

        try {
            Object result = apiInstance.checkerTrustedRegistry(checkTrustedRegistryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerTrustedRegistry");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckTrustedRegistryCommand checkTrustedRegistryCommand = new CheckTrustedRegistryCommand(); // CheckTrustedRegistryCommand | 

try {
    final result = await api_instance.checkerTrustedRegistry(checkTrustedRegistryCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerTrustedRegistry: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        CheckTrustedRegistryCommand checkTrustedRegistryCommand = ; // CheckTrustedRegistryCommand | 

        try {
            Object result = apiInstance.checkerTrustedRegistry(checkTrustedRegistryCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerTrustedRegistry");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
CheckTrustedRegistryCommand *checkTrustedRegistryCommand = ; //  (optional)

// Check trusted registry
[apiInstance checkerTrustedRegistryWith:checkTrustedRegistryCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'checkTrustedRegistryCommand':  // {CheckTrustedRegistryCommand} 
};

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

namespace Example
{
    public class checkerTrustedRegistryExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var checkTrustedRegistryCommand = new CheckTrustedRegistryCommand(); // CheckTrustedRegistryCommand |  (optional) 

            try {
                // Check trusted registry
                Object result = apiInstance.checkerTrustedRegistry(checkTrustedRegistryCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerTrustedRegistry: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$checkTrustedRegistryCommand = ; // CheckTrustedRegistryCommand | 

try {
    $result = $api_instance->checkerTrustedRegistry($checkTrustedRegistryCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerTrustedRegistry: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $checkTrustedRegistryCommand = WWW::OPenAPIClient::Object::CheckTrustedRegistryCommand->new(); # CheckTrustedRegistryCommand | 

eval {
    my $result = $api_instance->checkerTrustedRegistry(checkTrustedRegistryCommand => $checkTrustedRegistryCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerTrustedRegistry: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
checkTrustedRegistryCommand =  # CheckTrustedRegistryCommand |  (optional)

try:
    # Check trusted registry
    api_response = api_instance.checker_trusted_registry(checkTrustedRegistryCommand=checkTrustedRegistryCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerTrustedRegistry: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let checkTrustedRegistryCommand = ; // CheckTrustedRegistryCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerTrustedRegistry(checkTrustedRegistryCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkTrustedRegistryCommand

Responses


checkerUser

Check duplicate username

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/checker/user

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/user" \
 -d '{
  "userName" : "userName",
  "email" : "email",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        UserExistCommand userExistCommand = ; // UserExistCommand | 

        try {
            Object result = apiInstance.checkerUser(userExistCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UserExistCommand userExistCommand = new UserExistCommand(); // UserExistCommand | 

try {
    final result = await api_instance.checkerUser(userExistCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerUser: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        UserExistCommand userExistCommand = ; // UserExistCommand | 

        try {
            Object result = apiInstance.checkerUser(userExistCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
UserExistCommand *userExistCommand = ; //  (optional)

// Check duplicate username
[apiInstance checkerUserWith:userExistCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'userExistCommand':  // {UserExistCommand} 
};

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

namespace Example
{
    public class checkerUserExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var userExistCommand = new UserExistCommand(); // UserExistCommand |  (optional) 

            try {
                // Check duplicate username
                Object result = apiInstance.checkerUser(userExistCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$userExistCommand = ; // UserExistCommand | 

try {
    $result = $api_instance->checkerUser($userExistCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $userExistCommand = WWW::OPenAPIClient::Object::UserExistCommand->new(); # UserExistCommand | 

eval {
    my $result = $api_instance->checkerUser(userExistCommand => $userExistCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
userExistCommand =  # UserExistCommand |  (optional)

try:
    # Check duplicate username
    api_response = api_instance.checker_user(userExistCommand=userExistCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerUser: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let userExistCommand = ; // UserExistCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerUser(userExistCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
userExistCommand

Responses


checkerYaml

Check yaml file


/api/v1/checker/yaml

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/checker/yaml" \
 -d '{
  "yaml" : "yaml"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CheckerApi;

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

public class CheckerApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CheckerApi apiInstance = new CheckerApi();
        YamlValidatorCommand yamlValidatorCommand = ; // YamlValidatorCommand | 

        try {
            Object result = apiInstance.checkerYaml(yamlValidatorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerYaml");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final YamlValidatorCommand yamlValidatorCommand = new YamlValidatorCommand(); // YamlValidatorCommand | 

try {
    final result = await api_instance.checkerYaml(yamlValidatorCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->checkerYaml: $e\n');
}

import org.openapitools.client.api.CheckerApi;

public class CheckerApiExample {
    public static void main(String[] args) {
        CheckerApi apiInstance = new CheckerApi();
        YamlValidatorCommand yamlValidatorCommand = ; // YamlValidatorCommand | 

        try {
            Object result = apiInstance.checkerYaml(yamlValidatorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CheckerApi#checkerYaml");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CheckerApi *apiInstance = [[CheckerApi alloc] init];
YamlValidatorCommand *yamlValidatorCommand = ; //  (optional)

// Check yaml file
[apiInstance checkerYamlWith:yamlValidatorCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CheckerApi()
var opts = {
  'yamlValidatorCommand':  // {YamlValidatorCommand} 
};

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

namespace Example
{
    public class checkerYamlExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CheckerApi();
            var yamlValidatorCommand = new YamlValidatorCommand(); // YamlValidatorCommand |  (optional) 

            try {
                // Check yaml file
                Object result = apiInstance.checkerYaml(yamlValidatorCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CheckerApi.checkerYaml: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CheckerApi();
$yamlValidatorCommand = ; // YamlValidatorCommand | 

try {
    $result = $api_instance->checkerYaml($yamlValidatorCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CheckerApi->checkerYaml: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CheckerApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CheckerApi->new();
my $yamlValidatorCommand = WWW::OPenAPIClient::Object::YamlValidatorCommand->new(); # YamlValidatorCommand | 

eval {
    my $result = $api_instance->checkerYaml(yamlValidatorCommand => $yamlValidatorCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CheckerApi->checkerYaml: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CheckerApi()
yamlValidatorCommand =  # YamlValidatorCommand |  (optional)

try:
    # Check yaml file
    api_response = api_instance.checker_yaml(yamlValidatorCommand=yamlValidatorCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CheckerApi->checkerYaml: %s\n" % e)
extern crate CheckerApi;

pub fn main() {
    let yamlValidatorCommand = ; // YamlValidatorCommand

    let mut context = CheckerApi::Context::default();
    let result = client.checkerYaml(yamlValidatorCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
yamlValidatorCommand

Responses


CloudCoreCloudCredential

cloudCoreCcfResources

Retrieve CloudCore (OpenStack) resources tagged with the CCF ownership tag


/api/v1/cloud-core/ccf-resources

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/ccf-resources" \
 -d '{
  "projectValue" : "projectValue",
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreCcfResourceListCommand cloudCoreCcfResourceListCommand = ; // CloudCoreCcfResourceListCommand | 

        try {
            array[CloudCoreCcfResourceDto] result = apiInstance.cloudCoreCcfResources(cloudCoreCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreCcfResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreCcfResourceListCommand cloudCoreCcfResourceListCommand = new CloudCoreCcfResourceListCommand(); // CloudCoreCcfResourceListCommand | 

try {
    final result = await api_instance.cloudCoreCcfResources(cloudCoreCcfResourceListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreCcfResources: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreCcfResourceListCommand cloudCoreCcfResourceListCommand = ; // CloudCoreCcfResourceListCommand | 

        try {
            array[CloudCoreCcfResourceDto] result = apiInstance.cloudCoreCcfResources(cloudCoreCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreCcfResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreCcfResourceListCommand *cloudCoreCcfResourceListCommand = ; //  (optional)

// Retrieve CloudCore (OpenStack) resources tagged with the CCF ownership tag
[apiInstance cloudCoreCcfResourcesWith:cloudCoreCcfResourceListCommand
              completionHandler: ^(array[CloudCoreCcfResourceDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreCcfResourceListCommand':  // {CloudCoreCcfResourceListCommand} 
};

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

namespace Example
{
    public class cloudCoreCcfResourcesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreCcfResourceListCommand = new CloudCoreCcfResourceListCommand(); // CloudCoreCcfResourceListCommand |  (optional) 

            try {
                // Retrieve CloudCore (OpenStack) resources tagged with the CCF ownership tag
                array[CloudCoreCcfResourceDto] result = apiInstance.cloudCoreCcfResources(cloudCoreCcfResourceListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreCcfResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreCcfResourceListCommand = ; // CloudCoreCcfResourceListCommand | 

try {
    $result = $api_instance->cloudCoreCcfResources($cloudCoreCcfResourceListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreCcfResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreCcfResourceListCommand = WWW::OPenAPIClient::Object::CloudCoreCcfResourceListCommand->new(); # CloudCoreCcfResourceListCommand | 

eval {
    my $result = $api_instance->cloudCoreCcfResources(cloudCoreCcfResourceListCommand => $cloudCoreCcfResourceListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreCcfResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreCcfResourceListCommand =  # CloudCoreCcfResourceListCommand |  (optional)

try:
    # Retrieve CloudCore (OpenStack) resources tagged with the CCF ownership tag
    api_response = api_instance.cloud_core_ccf_resources(cloudCoreCcfResourceListCommand=cloudCoreCcfResourceListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreCcfResources: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreCcfResourceListCommand = ; // CloudCoreCcfResourceListCommand

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreCcfResources(cloudCoreCcfResourceListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreCcfResourceListCommand

Responses


cloudCoreCreate

Add CloudCore credentials


/api/v1/cloud-core/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/create" \
 -d '{
  "cloudCoreAvailabilityZone" : "cloudCoreAvailabilityZone",
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreContinent" : "cloudCoreContinent",
  "cloudCoreVolumeType" : "cloudCoreVolumeType",
  "cloudCoreImportNetwork" : true,
  "cloudCoreUser" : "cloudCoreUser",
  "cloudCoreInternalSubnetId" : "cloudCoreInternalSubnetId",
  "cloudCorePublicNetwork" : "cloudCorePublicNetwork",
  "manilaEnabled" : true,
  "isAdmin" : true,
  "lbProvider" : "",
  "organizationId" : 0,
  "cloudCoreProject" : "cloudCoreProject",
  "manilaStorageType" : "manilaStorageType",
  "name" : "name",
  "cloudCoreUrl" : "cloudCoreUrl",
  "skipTlsFlag" : true,
  "usePreinstalledImage" : true,
  "kubernetesImage" : "kubernetesImage"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CreateCloudCoreCloudCommand createCloudCoreCloudCommand = ; // CreateCloudCoreCloudCommand | 

        try {
            ApiResponse result = apiInstance.cloudCoreCreate(createCloudCoreCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateCloudCoreCloudCommand createCloudCoreCloudCommand = new CreateCloudCoreCloudCommand(); // CreateCloudCoreCloudCommand | 

try {
    final result = await api_instance.cloudCoreCreate(createCloudCoreCloudCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreCreate: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CreateCloudCoreCloudCommand createCloudCoreCloudCommand = ; // CreateCloudCoreCloudCommand | 

        try {
            ApiResponse result = apiInstance.cloudCoreCreate(createCloudCoreCloudCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CreateCloudCoreCloudCommand *createCloudCoreCloudCommand = ; //  (optional)

// Add CloudCore credentials
[apiInstance cloudCoreCreateWith:createCloudCoreCloudCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'createCloudCoreCloudCommand':  // {CreateCloudCoreCloudCommand} 
};

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

namespace Example
{
    public class cloudCoreCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var createCloudCoreCloudCommand = new CreateCloudCoreCloudCommand(); // CreateCloudCoreCloudCommand |  (optional) 

            try {
                // Add CloudCore credentials
                ApiResponse result = apiInstance.cloudCoreCreate(createCloudCoreCloudCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$createCloudCoreCloudCommand = ; // CreateCloudCoreCloudCommand | 

try {
    $result = $api_instance->cloudCoreCreate($createCloudCoreCloudCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $createCloudCoreCloudCommand = WWW::OPenAPIClient::Object::CreateCloudCoreCloudCommand->new(); # CreateCloudCoreCloudCommand | 

eval {
    my $result = $api_instance->cloudCoreCreate(createCloudCoreCloudCommand => $createCloudCoreCloudCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
createCloudCoreCloudCommand =  # CreateCloudCoreCloudCommand |  (optional)

try:
    # Add CloudCore credentials
    api_response = api_instance.cloud_core_create(createCloudCoreCloudCommand=createCloudCoreCloudCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreCreate: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let createCloudCoreCloudCommand = ; // CreateCloudCoreCloudCommand

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreCreate(createCloudCoreCloudCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createCloudCoreCloudCommand

Responses


cloudCoreKubernetesImages

CloudCore images available for Kubernetes nodes using inline credentials


/api/v1/cloud-core/kubernetes-images

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/kubernetes-images" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "cloudCoreProjectId" : "cloudCoreProjectId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreKubernetesImageListQuery cloudCoreKubernetesImageListQuery = ; // CloudCoreKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreKubernetesImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreKubernetesImageListQuery cloudCoreKubernetesImageListQuery = new CloudCoreKubernetesImageListQuery(); // CloudCoreKubernetesImageListQuery | 

try {
    final result = await api_instance.cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreKubernetesImages: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreKubernetesImageListQuery cloudCoreKubernetesImageListQuery = ; // CloudCoreKubernetesImageListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreKubernetesImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreKubernetesImageListQuery *cloudCoreKubernetesImageListQuery = ; //  (optional)

// CloudCore images available for Kubernetes nodes using inline credentials
[apiInstance cloudCoreKubernetesImagesWith:cloudCoreKubernetesImageListQuery
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreKubernetesImageListQuery':  // {CloudCoreKubernetesImageListQuery} 
};

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

namespace Example
{
    public class cloudCoreKubernetesImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreKubernetesImageListQuery = new CloudCoreKubernetesImageListQuery(); // CloudCoreKubernetesImageListQuery |  (optional) 

            try {
                // CloudCore images available for Kubernetes nodes using inline credentials
                array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreKubernetesImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreKubernetesImageListQuery = ; // CloudCoreKubernetesImageListQuery | 

try {
    $result = $api_instance->cloudCoreKubernetesImages($cloudCoreKubernetesImageListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreKubernetesImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreKubernetesImageListQuery = WWW::OPenAPIClient::Object::CloudCoreKubernetesImageListQuery->new(); # CloudCoreKubernetesImageListQuery | 

eval {
    my $result = $api_instance->cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery => $cloudCoreKubernetesImageListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreKubernetesImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreKubernetesImageListQuery =  # CloudCoreKubernetesImageListQuery |  (optional)

try:
    # CloudCore images available for Kubernetes nodes using inline credentials
    api_response = api_instance.cloud_core_kubernetes_images(cloudCoreKubernetesImageListQuery=cloudCoreKubernetesImageListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreKubernetesImages: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreKubernetesImageListQuery = ; // CloudCoreKubernetesImageListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreKubernetesImages(cloudCoreKubernetesImageListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreKubernetesImageListQuery

Responses


cloudCoreList

Retrieve list of CloudCore cloud credentials


/api/v1/cloud-core/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloud-core/list?Limit=56&Offset=56&OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&IsInfra=true&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Boolean isInfra = true; // Boolean | 
        Integer domainId = 56; // Integer | 

        try {
            CloudCoreCredentialList result = apiInstance.cloudCoreList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, isInfra, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Integer organizationId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final Boolean isInfra = new Boolean(); // Boolean | 
final Integer domainId = new Integer(); // Integer | 

try {
    final result = await api_instance.cloudCoreList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, isInfra, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreList: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Boolean isInfra = true; // Boolean | 
        Integer domainId = 56; // Integer | 

        try {
            CloudCoreCredentialList result = apiInstance.cloudCoreList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, isInfra, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
Boolean *isInfra = true; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)

// Retrieve list of CloudCore cloud credentials
[apiInstance cloudCoreListWith:limit
    offset:offset
    organizationId:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    isInfra:isInfra
    domainId:domainId
              completionHandler: ^(CloudCoreCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'organizationId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'isInfra': true, // {Boolean} 
  'domainId': 56 // {Integer} 
};

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

namespace Example
{
    public class cloudCoreListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var isInfra = true;  // Boolean |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve list of CloudCore cloud credentials
                CloudCoreCredentialList result = apiInstance.cloudCoreList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, isInfra, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$organizationId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$isInfra = true; // Boolean | 
$domainId = 56; // Integer | 

try {
    $result = $api_instance->cloudCoreList($limit, $offset, $organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $isInfra, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $organizationId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $isInfra = true; # Boolean | 
my $domainId = 56; # Integer | 

eval {
    my $result = $api_instance->cloudCoreList(limit => $limit, offset => $offset, organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, isInfra => $isInfra, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
isInfra = true # Boolean |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve list of CloudCore cloud credentials
    api_response = api_instance.cloud_core_list(limit=limit, offset=offset, organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, isInfra=isInfra, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreList: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let isInfra = true; // Boolean
    let domainId = 56; // Integer

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, isInfra, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
OrganizationId
Integer (int32)
SortBy
String
SortDirection
String
Search
SearchId
String
Id
Integer (int32)
IsInfra
Boolean
DomainId
Integer (int32)

Responses


cloudCoreNetworks

CloudCore network list


/api/v1/cloud-core/networks

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/networks" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true,
  "cloudCoreProjectId" : "cloudCoreProjectId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreNetworkListQuery cloudCoreNetworkListQuery = ; // CloudCoreNetworkListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreNetworks(cloudCoreNetworkListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreNetworks");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreNetworkListQuery cloudCoreNetworkListQuery = new CloudCoreNetworkListQuery(); // CloudCoreNetworkListQuery | 

try {
    final result = await api_instance.cloudCoreNetworks(cloudCoreNetworkListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreNetworks: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreNetworkListQuery cloudCoreNetworkListQuery = ; // CloudCoreNetworkListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreNetworks(cloudCoreNetworkListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreNetworks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreNetworkListQuery *cloudCoreNetworkListQuery = ; //  (optional)

// CloudCore network list
[apiInstance cloudCoreNetworksWith:cloudCoreNetworkListQuery
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreNetworkListQuery':  // {CloudCoreNetworkListQuery} 
};

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

namespace Example
{
    public class cloudCoreNetworksExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreNetworkListQuery = new CloudCoreNetworkListQuery(); // CloudCoreNetworkListQuery |  (optional) 

            try {
                // CloudCore network list
                array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreNetworks(cloudCoreNetworkListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreNetworks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreNetworkListQuery = ; // CloudCoreNetworkListQuery | 

try {
    $result = $api_instance->cloudCoreNetworks($cloudCoreNetworkListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreNetworks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreNetworkListQuery = WWW::OPenAPIClient::Object::CloudCoreNetworkListQuery->new(); # CloudCoreNetworkListQuery | 

eval {
    my $result = $api_instance->cloudCoreNetworks(cloudCoreNetworkListQuery => $cloudCoreNetworkListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreNetworks: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreNetworkListQuery =  # CloudCoreNetworkListQuery |  (optional)

try:
    # CloudCore network list
    api_response = api_instance.cloud_core_networks(cloudCoreNetworkListQuery=cloudCoreNetworkListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreNetworks: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreNetworkListQuery = ; // CloudCoreNetworkListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreNetworks(cloudCoreNetworkListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreNetworkListQuery

Responses


cloudCoreProjects

CloudCore project list


/api/v1/cloud-core/projects

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/projects" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreProjectListQuery cloudCoreProjectListQuery = ; // CloudCoreProjectListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreProjects(cloudCoreProjectListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreProjects");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreProjectListQuery cloudCoreProjectListQuery = new CloudCoreProjectListQuery(); // CloudCoreProjectListQuery | 

try {
    final result = await api_instance.cloudCoreProjects(cloudCoreProjectListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreProjects: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreProjectListQuery cloudCoreProjectListQuery = ; // CloudCoreProjectListQuery | 

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreProjects(cloudCoreProjectListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreProjects");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreProjectListQuery *cloudCoreProjectListQuery = ; //  (optional)

// CloudCore project list
[apiInstance cloudCoreProjectsWith:cloudCoreProjectListQuery
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreProjectListQuery':  // {CloudCoreProjectListQuery} 
};

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

namespace Example
{
    public class cloudCoreProjectsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreProjectListQuery = new CloudCoreProjectListQuery(); // CloudCoreProjectListQuery |  (optional) 

            try {
                // CloudCore project list
                array[CommonStringBasedDropdownDto] result = apiInstance.cloudCoreProjects(cloudCoreProjectListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreProjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreProjectListQuery = ; // CloudCoreProjectListQuery | 

try {
    $result = $api_instance->cloudCoreProjects($cloudCoreProjectListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreProjects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreProjectListQuery = WWW::OPenAPIClient::Object::CloudCoreProjectListQuery->new(); # CloudCoreProjectListQuery | 

eval {
    my $result = $api_instance->cloudCoreProjects(cloudCoreProjectListQuery => $cloudCoreProjectListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreProjects: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreProjectListQuery =  # CloudCoreProjectListQuery |  (optional)

try:
    # CloudCore project list
    api_response = api_instance.cloud_core_projects(cloudCoreProjectListQuery=cloudCoreProjectListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreProjects: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreProjectListQuery = ; // CloudCoreProjectListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreProjects(cloudCoreProjectListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreProjectListQuery

Responses


cloudCoreQuotas

CloudCore quota list


/api/v1/cloud-core/quotas

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/quotas" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreQuotasCommand cloudCoreQuotasCommand = ; // CloudCoreQuotasCommand | 

        try {
            CloudCoreQuotaList result = apiInstance.cloudCoreQuotas(cloudCoreQuotasCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreQuotas");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreQuotasCommand cloudCoreQuotasCommand = new CloudCoreQuotasCommand(); // CloudCoreQuotasCommand | 

try {
    final result = await api_instance.cloudCoreQuotas(cloudCoreQuotasCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreQuotas: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreQuotasCommand cloudCoreQuotasCommand = ; // CloudCoreQuotasCommand | 

        try {
            CloudCoreQuotaList result = apiInstance.cloudCoreQuotas(cloudCoreQuotasCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreQuotas");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreQuotasCommand *cloudCoreQuotasCommand = ; //  (optional)

// CloudCore quota list
[apiInstance cloudCoreQuotasWith:cloudCoreQuotasCommand
              completionHandler: ^(CloudCoreQuotaList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreQuotasCommand':  // {CloudCoreQuotasCommand} 
};

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

namespace Example
{
    public class cloudCoreQuotasExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreQuotasCommand = new CloudCoreQuotasCommand(); // CloudCoreQuotasCommand |  (optional) 

            try {
                // CloudCore quota list
                CloudCoreQuotaList result = apiInstance.cloudCoreQuotas(cloudCoreQuotasCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreQuotas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreQuotasCommand = ; // CloudCoreQuotasCommand | 

try {
    $result = $api_instance->cloudCoreQuotas($cloudCoreQuotasCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreQuotas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreQuotasCommand = WWW::OPenAPIClient::Object::CloudCoreQuotasCommand->new(); # CloudCoreQuotasCommand | 

eval {
    my $result = $api_instance->cloudCoreQuotas(cloudCoreQuotasCommand => $cloudCoreQuotasCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreQuotas: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreQuotasCommand =  # CloudCoreQuotasCommand |  (optional)

try:
    # CloudCore quota list
    api_response = api_instance.cloud_core_quotas(cloudCoreQuotasCommand=cloudCoreQuotasCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreQuotas: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreQuotasCommand = ; // CloudCoreQuotasCommand

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreQuotas(cloudCoreQuotasCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreQuotasCommand

Responses


cloudCoreRegionList

Retrieve CloudCore regions


/api/v1/cloud-core/regions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/regions" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreRegionListQuery cloudCoreRegionListQuery = ; // CloudCoreRegionListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreRegionList(cloudCoreRegionListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreRegionList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreRegionListQuery cloudCoreRegionListQuery = new CloudCoreRegionListQuery(); // CloudCoreRegionListQuery | 

try {
    final result = await api_instance.cloudCoreRegionList(cloudCoreRegionListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreRegionList: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreRegionListQuery cloudCoreRegionListQuery = ; // CloudCoreRegionListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreRegionList(cloudCoreRegionListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreRegionList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreRegionListQuery *cloudCoreRegionListQuery = ; //  (optional)

// Retrieve CloudCore regions
[apiInstance cloudCoreRegionListWith:cloudCoreRegionListQuery
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreRegionListQuery':  // {CloudCoreRegionListQuery} 
};

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

namespace Example
{
    public class cloudCoreRegionListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreRegionListQuery = new CloudCoreRegionListQuery(); // CloudCoreRegionListQuery |  (optional) 

            try {
                // Retrieve CloudCore regions
                array['String'] result = apiInstance.cloudCoreRegionList(cloudCoreRegionListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreRegionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreRegionListQuery = ; // CloudCoreRegionListQuery | 

try {
    $result = $api_instance->cloudCoreRegionList($cloudCoreRegionListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreRegionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreRegionListQuery = WWW::OPenAPIClient::Object::CloudCoreRegionListQuery->new(); # CloudCoreRegionListQuery | 

eval {
    my $result = $api_instance->cloudCoreRegionList(cloudCoreRegionListQuery => $cloudCoreRegionListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreRegionList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreRegionListQuery =  # CloudCoreRegionListQuery |  (optional)

try:
    # Retrieve CloudCore regions
    api_response = api_instance.cloud_core_region_list(cloudCoreRegionListQuery=cloudCoreRegionListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreRegionList: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreRegionListQuery = ; // CloudCoreRegionListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreRegionList(cloudCoreRegionListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreRegionListQuery

Responses


cloudCoreStorageTypes

CloudCore storage type list


/api/v1/cloud-core/storage-types

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/storage-types" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "cloudCoreProject" : "cloudCoreProject",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreStorageTypeListQuery cloudCoreStorageTypeListQuery = ; // CloudCoreStorageTypeListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreStorageTypes(cloudCoreStorageTypeListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreStorageTypes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreStorageTypeListQuery cloudCoreStorageTypeListQuery = new CloudCoreStorageTypeListQuery(); // CloudCoreStorageTypeListQuery | 

try {
    final result = await api_instance.cloudCoreStorageTypes(cloudCoreStorageTypeListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreStorageTypes: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreStorageTypeListQuery cloudCoreStorageTypeListQuery = ; // CloudCoreStorageTypeListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreStorageTypes(cloudCoreStorageTypeListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreStorageTypes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreStorageTypeListQuery *cloudCoreStorageTypeListQuery = ; //  (optional)

// CloudCore storage type list
[apiInstance cloudCoreStorageTypesWith:cloudCoreStorageTypeListQuery
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreStorageTypeListQuery':  // {CloudCoreStorageTypeListQuery} 
};

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

namespace Example
{
    public class cloudCoreStorageTypesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreStorageTypeListQuery = new CloudCoreStorageTypeListQuery(); // CloudCoreStorageTypeListQuery |  (optional) 

            try {
                // CloudCore storage type list
                array['String'] result = apiInstance.cloudCoreStorageTypes(cloudCoreStorageTypeListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreStorageTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreStorageTypeListQuery = ; // CloudCoreStorageTypeListQuery | 

try {
    $result = $api_instance->cloudCoreStorageTypes($cloudCoreStorageTypeListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreStorageTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreStorageTypeListQuery = WWW::OPenAPIClient::Object::CloudCoreStorageTypeListQuery->new(); # CloudCoreStorageTypeListQuery | 

eval {
    my $result = $api_instance->cloudCoreStorageTypes(cloudCoreStorageTypeListQuery => $cloudCoreStorageTypeListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreStorageTypes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreStorageTypeListQuery =  # CloudCoreStorageTypeListQuery |  (optional)

try:
    # CloudCore storage type list
    api_response = api_instance.cloud_core_storage_types(cloudCoreStorageTypeListQuery=cloudCoreStorageTypeListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreStorageTypes: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreStorageTypeListQuery = ; // CloudCoreStorageTypeListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreStorageTypes(cloudCoreStorageTypeListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreStorageTypeListQuery

Responses


cloudCoreSubnet

Retrieve CloudCore subnets


/api/v1/cloud-core/subnets

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/subnets" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "cloudCoreProject" : "cloudCoreProject",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "cloudCoreProjectId" : "cloudCoreProjectId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreSubnetListQuery cloudCoreSubnetListQuery = ; // CloudCoreSubnetListQuery | 

        try {
            array[Subnet] result = apiInstance.cloudCoreSubnet(cloudCoreSubnetListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreSubnet");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreSubnetListQuery cloudCoreSubnetListQuery = new CloudCoreSubnetListQuery(); // CloudCoreSubnetListQuery | 

try {
    final result = await api_instance.cloudCoreSubnet(cloudCoreSubnetListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreSubnet: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreSubnetListQuery cloudCoreSubnetListQuery = ; // CloudCoreSubnetListQuery | 

        try {
            array[Subnet] result = apiInstance.cloudCoreSubnet(cloudCoreSubnetListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreSubnet");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreSubnetListQuery *cloudCoreSubnetListQuery = ; //  (optional)

// Retrieve CloudCore subnets
[apiInstance cloudCoreSubnetWith:cloudCoreSubnetListQuery
              completionHandler: ^(array[Subnet] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreSubnetListQuery':  // {CloudCoreSubnetListQuery} 
};

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

namespace Example
{
    public class cloudCoreSubnetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreSubnetListQuery = new CloudCoreSubnetListQuery(); // CloudCoreSubnetListQuery |  (optional) 

            try {
                // Retrieve CloudCore subnets
                array[Subnet] result = apiInstance.cloudCoreSubnet(cloudCoreSubnetListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreSubnet: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreSubnetListQuery = ; // CloudCoreSubnetListQuery | 

try {
    $result = $api_instance->cloudCoreSubnet($cloudCoreSubnetListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreSubnet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreSubnetListQuery = WWW::OPenAPIClient::Object::CloudCoreSubnetListQuery->new(); # CloudCoreSubnetListQuery | 

eval {
    my $result = $api_instance->cloudCoreSubnet(cloudCoreSubnetListQuery => $cloudCoreSubnetListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreSubnet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreSubnetListQuery =  # CloudCoreSubnetListQuery |  (optional)

try:
    # Retrieve CloudCore subnets
    api_response = api_instance.cloud_core_subnet(cloudCoreSubnetListQuery=cloudCoreSubnetListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreSubnet: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreSubnetListQuery = ; // CloudCoreSubnetListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreSubnet(cloudCoreSubnetListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreSubnetListQuery

Responses


cloudCoreUpdate

Update CloudCore credentials


/api/v1/cloud-core/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/update" \
 -d '{
  "cloudCorePassword" : "cloudCorePassword",
  "name" : "name",
  "cloudCoreUser" : "cloudCoreUser",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        UpdateCloudCoreCommand updateCloudCoreCommand = ; // UpdateCloudCoreCommand | 

        try {
            Object result = apiInstance.cloudCoreUpdate(updateCloudCoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateCloudCoreCommand updateCloudCoreCommand = new UpdateCloudCoreCommand(); // UpdateCloudCoreCommand | 

try {
    final result = await api_instance.cloudCoreUpdate(updateCloudCoreCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreUpdate: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        UpdateCloudCoreCommand updateCloudCoreCommand = ; // UpdateCloudCoreCommand | 

        try {
            Object result = apiInstance.cloudCoreUpdate(updateCloudCoreCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
UpdateCloudCoreCommand *updateCloudCoreCommand = ; //  (optional)

// Update CloudCore credentials
[apiInstance cloudCoreUpdateWith:updateCloudCoreCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'updateCloudCoreCommand':  // {UpdateCloudCoreCommand} 
};

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

namespace Example
{
    public class cloudCoreUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var updateCloudCoreCommand = new UpdateCloudCoreCommand(); // UpdateCloudCoreCommand |  (optional) 

            try {
                // Update CloudCore credentials
                Object result = apiInstance.cloudCoreUpdate(updateCloudCoreCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$updateCloudCoreCommand = ; // UpdateCloudCoreCommand | 

try {
    $result = $api_instance->cloudCoreUpdate($updateCloudCoreCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $updateCloudCoreCommand = WWW::OPenAPIClient::Object::UpdateCloudCoreCommand->new(); # UpdateCloudCoreCommand | 

eval {
    my $result = $api_instance->cloudCoreUpdate(updateCloudCoreCommand => $updateCloudCoreCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
updateCloudCoreCommand =  # UpdateCloudCoreCommand |  (optional)

try:
    # Update CloudCore credentials
    api_response = api_instance.cloud_core_update(updateCloudCoreCommand=updateCloudCoreCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreUpdate: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let updateCloudCoreCommand = ; // UpdateCloudCoreCommand

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreUpdate(updateCloudCoreCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateCloudCoreCommand

Responses


cloudCoreVolumes

CloudCore volume list


/api/v1/cloud-core/volumes

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/volumes" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "cloudCoreProject" : "cloudCoreProject",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreVolumeTypeListQuery cloudCoreVolumeTypeListQuery = ; // CloudCoreVolumeTypeListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreVolumes(cloudCoreVolumeTypeListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreVolumes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreVolumeTypeListQuery cloudCoreVolumeTypeListQuery = new CloudCoreVolumeTypeListQuery(); // CloudCoreVolumeTypeListQuery | 

try {
    final result = await api_instance.cloudCoreVolumes(cloudCoreVolumeTypeListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreVolumes: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreVolumeTypeListQuery cloudCoreVolumeTypeListQuery = ; // CloudCoreVolumeTypeListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreVolumes(cloudCoreVolumeTypeListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreVolumes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreVolumeTypeListQuery *cloudCoreVolumeTypeListQuery = ; //  (optional)

// CloudCore volume list
[apiInstance cloudCoreVolumesWith:cloudCoreVolumeTypeListQuery
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreVolumeTypeListQuery':  // {CloudCoreVolumeTypeListQuery} 
};

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

namespace Example
{
    public class cloudCoreVolumesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreVolumeTypeListQuery = new CloudCoreVolumeTypeListQuery(); // CloudCoreVolumeTypeListQuery |  (optional) 

            try {
                // CloudCore volume list
                array['String'] result = apiInstance.cloudCoreVolumes(cloudCoreVolumeTypeListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreVolumes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreVolumeTypeListQuery = ; // CloudCoreVolumeTypeListQuery | 

try {
    $result = $api_instance->cloudCoreVolumes($cloudCoreVolumeTypeListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreVolumes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreVolumeTypeListQuery = WWW::OPenAPIClient::Object::CloudCoreVolumeTypeListQuery->new(); # CloudCoreVolumeTypeListQuery | 

eval {
    my $result = $api_instance->cloudCoreVolumes(cloudCoreVolumeTypeListQuery => $cloudCoreVolumeTypeListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreVolumes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreVolumeTypeListQuery =  # CloudCoreVolumeTypeListQuery |  (optional)

try:
    # CloudCore volume list
    api_response = api_instance.cloud_core_volumes(cloudCoreVolumeTypeListQuery=cloudCoreVolumeTypeListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreVolumes: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreVolumeTypeListQuery = ; // CloudCoreVolumeTypeListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreVolumes(cloudCoreVolumeTypeListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreVolumeTypeListQuery

Responses


cloudCoreZones

Fetch CloudCore zones


/api/v1/cloud-core/zones

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloud-core/zones" \
 -d '{
  "cloudCoreDomain" : "cloudCoreDomain",
  "cloudCoreProject" : "cloudCoreProject",
  "applicationCredEnabled" : true,
  "cloudCorePassword" : "cloudCorePassword",
  "cloudCoreRegion" : "cloudCoreRegion",
  "cloudCoreUrl" : "cloudCoreUrl",
  "cloudCoreUser" : "cloudCoreUser",
  "isAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCoreCloudCredentialApi;

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

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreZoneListQuery cloudCoreZoneListQuery = ; // CloudCoreZoneListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreZones(cloudCoreZoneListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreZones");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudCoreZoneListQuery cloudCoreZoneListQuery = new CloudCoreZoneListQuery(); // CloudCoreZoneListQuery | 

try {
    final result = await api_instance.cloudCoreZones(cloudCoreZoneListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudCoreZones: $e\n');
}

import org.openapitools.client.api.CloudCoreCloudCredentialApi;

public class CloudCoreCloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCoreCloudCredentialApi apiInstance = new CloudCoreCloudCredentialApi();
        CloudCoreZoneListQuery cloudCoreZoneListQuery = ; // CloudCoreZoneListQuery | 

        try {
            array['String'] result = apiInstance.cloudCoreZones(cloudCoreZoneListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCoreCloudCredentialApi#cloudCoreZones");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCoreCloudCredentialApi *apiInstance = [[CloudCoreCloudCredentialApi alloc] init];
CloudCoreZoneListQuery *cloudCoreZoneListQuery = ; //  (optional)

// Fetch CloudCore zones
[apiInstance cloudCoreZonesWith:cloudCoreZoneListQuery
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCoreCloudCredentialApi()
var opts = {
  'cloudCoreZoneListQuery':  // {CloudCoreZoneListQuery} 
};

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

namespace Example
{
    public class cloudCoreZonesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCoreCloudCredentialApi();
            var cloudCoreZoneListQuery = new CloudCoreZoneListQuery(); // CloudCoreZoneListQuery |  (optional) 

            try {
                // Fetch CloudCore zones
                array['String'] result = apiInstance.cloudCoreZones(cloudCoreZoneListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCoreCloudCredentialApi.cloudCoreZones: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCoreCloudCredentialApi();
$cloudCoreZoneListQuery = ; // CloudCoreZoneListQuery | 

try {
    $result = $api_instance->cloudCoreZones($cloudCoreZoneListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCoreCloudCredentialApi->cloudCoreZones: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCoreCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCoreCloudCredentialApi->new();
my $cloudCoreZoneListQuery = WWW::OPenAPIClient::Object::CloudCoreZoneListQuery->new(); # CloudCoreZoneListQuery | 

eval {
    my $result = $api_instance->cloudCoreZones(cloudCoreZoneListQuery => $cloudCoreZoneListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCoreCloudCredentialApi->cloudCoreZones: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCoreCloudCredentialApi()
cloudCoreZoneListQuery =  # CloudCoreZoneListQuery |  (optional)

try:
    # Fetch CloudCore zones
    api_response = api_instance.cloud_core_zones(cloudCoreZoneListQuery=cloudCoreZoneListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCoreCloudCredentialApi->cloudCoreZones: %s\n" % e)
extern crate CloudCoreCloudCredentialApi;

pub fn main() {
    let cloudCoreZoneListQuery = ; // CloudCoreZoneListQuery

    let mut context = CloudCoreCloudCredentialApi::Context::default();
    let result = client.cloudCoreZones(cloudCoreZoneListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudCoreZoneListQuery

Responses


CloudCredential

cloudcredentialsAllFlavors

Retrieve all flavors


/api/v1/cloudcredentials/flavors/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloudcredentials/flavors/{cloudId}?Limit=56&Offset=56&StartRam=1.2&EndRam=1.2&StartCpu=56&EndCpu=56&Search=search_example&FlavorName=flavorName_example&SortBy=sortBy_example&SortDirection=sortDirection_example&HasGpuSupport=true&StartGpuCount=56&EndGpuCount=56&GpuModel=gpuModel_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Double startRam = 1.2; // Double | 
        Double endRam = 1.2; // Double | 
        Integer startCpu = 56; // Integer | 
        Integer endCpu = 56; // Integer | 
        String search = search_example; // String | 
        String flavorName = flavorName_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Boolean hasGpuSupport = true; // Boolean | 
        Integer startGpuCount = 56; // Integer | 
        Integer endGpuCount = 56; // Integer | 
        String gpuModel = gpuModel_example; // String | 

        try {
            AllFlavorsList result = apiInstance.cloudcredentialsAllFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, flavorName, sortBy, sortDirection, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsAllFlavors");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Double startRam = new Double(); // Double | 
final Double endRam = new Double(); // Double | 
final Integer startCpu = new Integer(); // Integer | 
final Integer endCpu = new Integer(); // Integer | 
final String search = new String(); // String | 
final String flavorName = new String(); // String | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final Boolean hasGpuSupport = new Boolean(); // Boolean | 
final Integer startGpuCount = new Integer(); // Integer | 
final Integer endGpuCount = new Integer(); // Integer | 
final String gpuModel = new String(); // String | 

try {
    final result = await api_instance.cloudcredentialsAllFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, flavorName, sortBy, sortDirection, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsAllFlavors: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Double startRam = 1.2; // Double | 
        Double endRam = 1.2; // Double | 
        Integer startCpu = 56; // Integer | 
        Integer endCpu = 56; // Integer | 
        String search = search_example; // String | 
        String flavorName = flavorName_example; // String | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Boolean hasGpuSupport = true; // Boolean | 
        Integer startGpuCount = 56; // Integer | 
        Integer endGpuCount = 56; // Integer | 
        String gpuModel = gpuModel_example; // String | 

        try {
            AllFlavorsList result = apiInstance.cloudcredentialsAllFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, flavorName, sortBy, sortDirection, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsAllFlavors");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
Double *startRam = 1.2; //  (optional) (default to null)
Double *endRam = 1.2; //  (optional) (default to null)
Integer *startCpu = 56; //  (optional) (default to null)
Integer *endCpu = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *flavorName = flavorName_example; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
Boolean *hasGpuSupport = true; //  (optional) (default to null)
Integer *startGpuCount = 56; //  (optional) (default to null)
Integer *endGpuCount = 56; //  (optional) (default to null)
String *gpuModel = gpuModel_example; //  (optional) (default to null)

// Retrieve all flavors
[apiInstance cloudcredentialsAllFlavorsWith:cloudId
    limit:limit
    offset:offset
    startRam:startRam
    endRam:endRam
    startCpu:startCpu
    endCpu:endCpu
    search:search
    flavorName:flavorName
    sortBy:sortBy
    sortDirection:sortDirection
    hasGpuSupport:hasGpuSupport
    startGpuCount:startGpuCount
    endGpuCount:endGpuCount
    gpuModel:gpuModel
              completionHandler: ^(AllFlavorsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var cloudId = 56; // {Integer} 
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'startRam': 1.2, // {Double} 
  'endRam': 1.2, // {Double} 
  'startCpu': 56, // {Integer} 
  'endCpu': 56, // {Integer} 
  'search': search_example, // {String} 
  'flavorName': flavorName_example, // {String} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'hasGpuSupport': true, // {Boolean} 
  'startGpuCount': 56, // {Integer} 
  'endGpuCount': 56, // {Integer} 
  'gpuModel': gpuModel_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cloudcredentialsAllFlavors(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class cloudcredentialsAllFlavorsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var startRam = 1.2;  // Double |  (optional)  (default to null)
            var endRam = 1.2;  // Double |  (optional)  (default to null)
            var startCpu = 56;  // Integer |  (optional)  (default to null)
            var endCpu = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var flavorName = flavorName_example;  // String |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean |  (optional)  (default to null)
            var startGpuCount = 56;  // Integer |  (optional)  (default to null)
            var endGpuCount = 56;  // Integer |  (optional)  (default to null)
            var gpuModel = gpuModel_example;  // String |  (optional)  (default to null)

            try {
                // Retrieve all flavors
                AllFlavorsList result = apiInstance.cloudcredentialsAllFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, flavorName, sortBy, sortDirection, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsAllFlavors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$cloudId = 56; // Integer | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$startRam = 1.2; // Double | 
$endRam = 1.2; // Double | 
$startCpu = 56; // Integer | 
$endCpu = 56; // Integer | 
$search = search_example; // String | 
$flavorName = flavorName_example; // String | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$hasGpuSupport = true; // Boolean | 
$startGpuCount = 56; // Integer | 
$endGpuCount = 56; // Integer | 
$gpuModel = gpuModel_example; // String | 

try {
    $result = $api_instance->cloudcredentialsAllFlavors($cloudId, $limit, $offset, $startRam, $endRam, $startCpu, $endCpu, $search, $flavorName, $sortBy, $sortDirection, $hasGpuSupport, $startGpuCount, $endGpuCount, $gpuModel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsAllFlavors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $cloudId = 56; # Integer | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $startRam = 1.2; # Double | 
my $endRam = 1.2; # Double | 
my $startCpu = 56; # Integer | 
my $endCpu = 56; # Integer | 
my $search = search_example; # String | 
my $flavorName = flavorName_example; # String | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $hasGpuSupport = true; # Boolean | 
my $startGpuCount = 56; # Integer | 
my $endGpuCount = 56; # Integer | 
my $gpuModel = gpuModel_example; # String | 

eval {
    my $result = $api_instance->cloudcredentialsAllFlavors(cloudId => $cloudId, limit => $limit, offset => $offset, startRam => $startRam, endRam => $endRam, startCpu => $startCpu, endCpu => $endCpu, search => $search, flavorName => $flavorName, sortBy => $sortBy, sortDirection => $sortDirection, hasGpuSupport => $hasGpuSupport, startGpuCount => $startGpuCount, endGpuCount => $endGpuCount, gpuModel => $gpuModel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsAllFlavors: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
cloudId = 56 # Integer |  (default to null)
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
startRam = 1.2 # Double |  (optional) (default to null)
endRam = 1.2 # Double |  (optional) (default to null)
startCpu = 56 # Integer |  (optional) (default to null)
endCpu = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
flavorName = flavorName_example # String |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
hasGpuSupport = true # Boolean |  (optional) (default to null)
startGpuCount = 56 # Integer |  (optional) (default to null)
endGpuCount = 56 # Integer |  (optional) (default to null)
gpuModel = gpuModel_example # String |  (optional) (default to null)

try:
    # Retrieve all flavors
    api_response = api_instance.cloudcredentials_all_flavors(cloudId, limit=limit, offset=offset, startRam=startRam, endRam=endRam, startCpu=startCpu, endCpu=endCpu, search=search, flavorName=flavorName, sortBy=sortBy, sortDirection=sortDirection, hasGpuSupport=hasGpuSupport, startGpuCount=startGpuCount, endGpuCount=endGpuCount, gpuModel=gpuModel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsAllFlavors: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let search = search_example; // String
    let flavorName = flavorName_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let hasGpuSupport = true; // Boolean
    let startGpuCount = 56; // Integer
    let endGpuCount = 56; // Integer
    let gpuModel = gpuModel_example; // String

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsAllFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, flavorName, sortBy, sortDirection, hasGpuSupport, startGpuCount, endGpuCount, gpuModel, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required
Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
StartRam
Double (double)
EndRam
Double (double)
StartCpu
Integer (int32)
EndCpu
Integer (int32)
Search
FlavorName
String
SortBy
String
SortDirection
String
HasGpuSupport
Boolean
StartGpuCount
Integer (int32)
EndGpuCount
Integer (int32)
GpuModel
String

Responses


cloudcredentialsDelete

Remove cloud credential by cloud Id


/api/v1/cloudcredentials/{cloudId}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloudcredentials/{cloudId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 

        try {
            Object result = apiInstance.cloudcredentialsDelete(cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 

try {
    final result = await api_instance.cloudcredentialsDelete(cloudId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsDelete: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 

        try {
            Object result = apiInstance.cloudcredentialsDelete(cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)

// Remove cloud credential by cloud Id
[apiInstance cloudcredentialsDeleteWith:cloudId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var cloudId = 56; // {Integer} 

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

namespace Example
{
    public class cloudcredentialsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)

            try {
                // Remove cloud credential by cloud Id
                Object result = apiInstance.cloudcredentialsDelete(cloudId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$cloudId = 56; // Integer | 

try {
    $result = $api_instance->cloudcredentialsDelete($cloudId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $cloudId = 56; # Integer | 

eval {
    my $result = $api_instance->cloudcredentialsDelete(cloudId => $cloudId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
cloudId = 56 # Integer |  (default to null)

try:
    # Remove cloud credential by cloud Id
    api_response = api_instance.cloudcredentials_delete(cloudId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsDelete: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsDelete(cloudId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required

Responses


cloudcredentialsExceeded

Retrieve cloud credentials exceeded quotas


/api/v1/cloudcredentials/exceeded-quotas

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloudcredentials/exceeded-quotas?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer organizationId = 56; // Integer | 

        try {
            ExceededQuotaList result = apiInstance.cloudcredentialsExceeded(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsExceeded");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 

try {
    final result = await api_instance.cloudcredentialsExceeded(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsExceeded: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer organizationId = 56; // Integer | 

        try {
            ExceededQuotaList result = apiInstance.cloudcredentialsExceeded(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsExceeded");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)

// Retrieve cloud credentials exceeded quotas
[apiInstance cloudcredentialsExceededWith:organizationId
              completionHandler: ^(ExceededQuotaList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var opts = {
  'organizationId': 56 // {Integer} 
};

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

namespace Example
{
    public class cloudcredentialsExceededExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve cloud credentials exceeded quotas
                ExceededQuotaList result = apiInstance.cloudcredentialsExceeded(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsExceeded: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$organizationId = 56; // Integer | 

try {
    $result = $api_instance->cloudcredentialsExceeded($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsExceeded: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $organizationId = 56; # Integer | 

eval {
    my $result = $api_instance->cloudcredentialsExceeded(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsExceeded: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
organizationId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve cloud credentials exceeded quotas
    api_response = api_instance.cloudcredentials_exceeded(organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsExceeded: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsExceeded(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)

Responses


cloudcredentialsGpuFilterMetadata

Retrieve GPU filter metadata for a cloud credential


/api/v1/cloudcredentials/flavors/gpu-filter-metadata/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloudcredentials/flavors/gpu-filter-metadata/{cloudId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 

        try {
            FlavorGpuFilterMetadataList result = apiInstance.cloudcredentialsGpuFilterMetadata(cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsGpuFilterMetadata");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | 

try {
    final result = await api_instance.cloudcredentialsGpuFilterMetadata(cloudId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsGpuFilterMetadata: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer cloudId = 56; // Integer | 

        try {
            FlavorGpuFilterMetadataList result = apiInstance.cloudcredentialsGpuFilterMetadata(cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsGpuFilterMetadata");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
Integer *cloudId = 56; //  (default to null)

// Retrieve GPU filter metadata for a cloud credential
[apiInstance cloudcredentialsGpuFilterMetadataWith:cloudId
              completionHandler: ^(FlavorGpuFilterMetadataList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var cloudId = 56; // {Integer} 

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

namespace Example
{
    public class cloudcredentialsGpuFilterMetadataExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var cloudId = 56;  // Integer |  (default to null)

            try {
                // Retrieve GPU filter metadata for a cloud credential
                FlavorGpuFilterMetadataList result = apiInstance.cloudcredentialsGpuFilterMetadata(cloudId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsGpuFilterMetadata: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$cloudId = 56; // Integer | 

try {
    $result = $api_instance->cloudcredentialsGpuFilterMetadata($cloudId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsGpuFilterMetadata: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $cloudId = 56; # Integer | 

eval {
    my $result = $api_instance->cloudcredentialsGpuFilterMetadata(cloudId => $cloudId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsGpuFilterMetadata: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
cloudId = 56 # Integer |  (default to null)

try:
    # Retrieve GPU filter metadata for a cloud credential
    api_response = api_instance.cloudcredentials_gpu_filter_metadata(cloudId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsGpuFilterMetadata: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let cloudId = 56; // Integer

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsGpuFilterMetadata(cloudId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Required

Responses


cloudcredentialsLockManager

Lock/Unlock cloud credential


/api/v1/cloudcredentials/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloudcredentials/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        CloudLockManagerCommand cloudLockManagerCommand = ; // CloudLockManagerCommand | 

        try {
            Object result = apiInstance.cloudcredentialsLockManager(cloudLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CloudLockManagerCommand cloudLockManagerCommand = new CloudLockManagerCommand(); // CloudLockManagerCommand | 

try {
    final result = await api_instance.cloudcredentialsLockManager(cloudLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsLockManager: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        CloudLockManagerCommand cloudLockManagerCommand = ; // CloudLockManagerCommand | 

        try {
            Object result = apiInstance.cloudcredentialsLockManager(cloudLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
CloudLockManagerCommand *cloudLockManagerCommand = ; //  (optional)

// Lock/Unlock cloud credential
[apiInstance cloudcredentialsLockManagerWith:cloudLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var opts = {
  'cloudLockManagerCommand':  // {CloudLockManagerCommand} 
};

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

namespace Example
{
    public class cloudcredentialsLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var cloudLockManagerCommand = new CloudLockManagerCommand(); // CloudLockManagerCommand |  (optional) 

            try {
                // Lock/Unlock cloud credential
                Object result = apiInstance.cloudcredentialsLockManager(cloudLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$cloudLockManagerCommand = ; // CloudLockManagerCommand | 

try {
    $result = $api_instance->cloudcredentialsLockManager($cloudLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $cloudLockManagerCommand = WWW::OPenAPIClient::Object::CloudLockManagerCommand->new(); # CloudLockManagerCommand | 

eval {
    my $result = $api_instance->cloudcredentialsLockManager(cloudLockManagerCommand => $cloudLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
cloudLockManagerCommand =  # CloudLockManagerCommand |  (optional)

try:
    # Lock/Unlock cloud credential
    api_response = api_instance.cloudcredentials_lock_manager(cloudLockManagerCommand=cloudLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsLockManager: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let cloudLockManagerCommand = ; // CloudLockManagerCommand

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsLockManager(cloudLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cloudLockManagerCommand

Responses


cloudcredentialsMakeDefault

Make cloud credentials default


/api/v1/cloudcredentials/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cloudcredentials/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        CredentialMakeDefaultCommand credentialMakeDefaultCommand = ; // CredentialMakeDefaultCommand | 

        try {
            Object result = apiInstance.cloudcredentialsMakeDefault(credentialMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CredentialMakeDefaultCommand credentialMakeDefaultCommand = new CredentialMakeDefaultCommand(); // CredentialMakeDefaultCommand | 

try {
    final result = await api_instance.cloudcredentialsMakeDefault(credentialMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsMakeDefault: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        CredentialMakeDefaultCommand credentialMakeDefaultCommand = ; // CredentialMakeDefaultCommand | 

        try {
            Object result = apiInstance.cloudcredentialsMakeDefault(credentialMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
CredentialMakeDefaultCommand *credentialMakeDefaultCommand = ; //  (optional)

// Make cloud credentials default
[apiInstance cloudcredentialsMakeDefaultWith:credentialMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var opts = {
  'credentialMakeDefaultCommand':  // {CredentialMakeDefaultCommand} 
};

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

namespace Example
{
    public class cloudcredentialsMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var credentialMakeDefaultCommand = new CredentialMakeDefaultCommand(); // CredentialMakeDefaultCommand |  (optional) 

            try {
                // Make cloud credentials default
                Object result = apiInstance.cloudcredentialsMakeDefault(credentialMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$credentialMakeDefaultCommand = ; // CredentialMakeDefaultCommand | 

try {
    $result = $api_instance->cloudcredentialsMakeDefault($credentialMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $credentialMakeDefaultCommand = WWW::OPenAPIClient::Object::CredentialMakeDefaultCommand->new(); # CredentialMakeDefaultCommand | 

eval {
    my $result = $api_instance->cloudcredentialsMakeDefault(credentialMakeDefaultCommand => $credentialMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
credentialMakeDefaultCommand =  # CredentialMakeDefaultCommand |  (optional)

try:
    # Make cloud credentials default
    api_response = api_instance.cloudcredentials_make_default(credentialMakeDefaultCommand=credentialMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsMakeDefault: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let credentialMakeDefaultCommand = ; // CredentialMakeDefaultCommand

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsMakeDefault(credentialMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
credentialMakeDefaultCommand

Responses


cloudcredentialsOrgList

Retrieve a list of cloud credentials by organization Id


/api/v1/cloudcredentials

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cloudcredentials?DomainId=56&OrganizationId=56&Search=search_example&IsAdmin=true&IsInfra=true&Id=56&CloudType="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CloudCredentialApi;

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

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer domainId = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        Boolean isAdmin = true; // Boolean | 
        Boolean isInfra = true; // Boolean | 
        Integer id = 56; // Integer | 
        CloudType cloudType = ; // CloudType | 

        try {
            array[CloudCredentialsForOrganizationEntity] result = apiInstance.cloudcredentialsOrgList(domainId, organizationId, search, isAdmin, isInfra, id, cloudType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsOrgList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | 
final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 
final Boolean isAdmin = new Boolean(); // Boolean | 
final Boolean isInfra = new Boolean(); // Boolean | 
final Integer id = new Integer(); // Integer | 
final CloudType cloudType = new CloudType(); // CloudType | 

try {
    final result = await api_instance.cloudcredentialsOrgList(domainId, organizationId, search, isAdmin, isInfra, id, cloudType);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cloudcredentialsOrgList: $e\n');
}

import org.openapitools.client.api.CloudCredentialApi;

public class CloudCredentialApiExample {
    public static void main(String[] args) {
        CloudCredentialApi apiInstance = new CloudCredentialApi();
        Integer domainId = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 
        Boolean isAdmin = true; // Boolean | 
        Boolean isInfra = true; // Boolean | 
        Integer id = 56; // Integer | 
        CloudType cloudType = ; // CloudType | 

        try {
            array[CloudCredentialsForOrganizationEntity] result = apiInstance.cloudcredentialsOrgList(domainId, organizationId, search, isAdmin, isInfra, id, cloudType);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CloudCredentialApi#cloudcredentialsOrgList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CloudCredentialApi *apiInstance = [[CloudCredentialApi alloc] init];
Integer *domainId = 56; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Boolean *isAdmin = true; //  (optional) (default to null)
Boolean *isInfra = true; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
CloudType *cloudType = ; //  (optional) (default to null)

// Retrieve a list of cloud credentials by organization Id
[apiInstance cloudcredentialsOrgListWith:domainId
    organizationId:organizationId
    search:search
    isAdmin:isAdmin
    isInfra:isInfra
    id:id
    cloudType:cloudType
              completionHandler: ^(array[CloudCredentialsForOrganizationEntity] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CloudCredentialApi()
var opts = {
  'domainId': 56, // {Integer} 
  'organizationId': 56, // {Integer} 
  'search': search_example, // {String} 
  'isAdmin': true, // {Boolean} 
  'isInfra': true, // {Boolean} 
  'id': 56, // {Integer} 
  'cloudType':  // {CloudType} 
};

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

namespace Example
{
    public class cloudcredentialsOrgListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CloudCredentialApi();
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var isAdmin = true;  // Boolean |  (optional)  (default to null)
            var isInfra = true;  // Boolean |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var cloudType = new CloudType(); // CloudType |  (optional)  (default to null)

            try {
                // Retrieve a list of cloud credentials by organization Id
                array[CloudCredentialsForOrganizationEntity] result = apiInstance.cloudcredentialsOrgList(domainId, organizationId, search, isAdmin, isInfra, id, cloudType);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CloudCredentialApi.cloudcredentialsOrgList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CloudCredentialApi();
$domainId = 56; // Integer | 
$organizationId = 56; // Integer | 
$search = search_example; // String | 
$isAdmin = true; // Boolean | 
$isInfra = true; // Boolean | 
$id = 56; // Integer | 
$cloudType = ; // CloudType | 

try {
    $result = $api_instance->cloudcredentialsOrgList($domainId, $organizationId, $search, $isAdmin, $isInfra, $id, $cloudType);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CloudCredentialApi->cloudcredentialsOrgList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CloudCredentialApi->new();
my $domainId = 56; # Integer | 
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 
my $isAdmin = true; # Boolean | 
my $isInfra = true; # Boolean | 
my $id = 56; # Integer | 
my $cloudType = ; # CloudType | 

eval {
    my $result = $api_instance->cloudcredentialsOrgList(domainId => $domainId, organizationId => $organizationId, search => $search, isAdmin => $isAdmin, isInfra => $isInfra, id => $id, cloudType => $cloudType);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CloudCredentialApi->cloudcredentialsOrgList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CloudCredentialApi()
domainId = 56 # Integer |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
isAdmin = true # Boolean |  (optional) (default to null)
isInfra = true # Boolean |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
cloudType =  # CloudType |  (optional) (default to null)

try:
    # Retrieve a list of cloud credentials by organization Id
    api_response = api_instance.cloudcredentials_org_list(domainId=domainId, organizationId=organizationId, search=search, isAdmin=isAdmin, isInfra=isInfra, id=id, cloudType=cloudType)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CloudCredentialApi->cloudcredentialsOrgList: %s\n" % e)
extern crate CloudCredentialApi;

pub fn main() {
    let domainId = 56; // Integer
    let organizationId = 56; // Integer
    let search = search_example; // String
    let isAdmin = true; // Boolean
    let isInfra = true; // Boolean
    let id = 56; // Integer
    let cloudType = ; // CloudType

    let mut context = CloudCredentialApi::Context::default();
    let result = client.cloudcredentialsOrgList(domainId, organizationId, search, isAdmin, isInfra, id, cloudType, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
DomainId
Integer (int32)
OrganizationId
Integer (int32)
Search
IsAdmin
Boolean
IsInfra
Boolean
Id
Integer (int32)
CloudType
CloudType

Responses


Common

commonCountries

Retrieve country list


/api/v1/common/countries

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/common/countries?search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommonApi;

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

public class CommonApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CommonApi apiInstance = new CommonApi();
        String search = search_example; // String | 

        try {
            array[CountryListDto] result = apiInstance.commonCountries(search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonCountries");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String search = new String(); // String | 

try {
    final result = await api_instance.commonCountries(search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commonCountries: $e\n');
}

import org.openapitools.client.api.CommonApi;

public class CommonApiExample {
    public static void main(String[] args) {
        CommonApi apiInstance = new CommonApi();
        String search = search_example; // String | 

        try {
            array[CountryListDto] result = apiInstance.commonCountries(search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonCountries");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CommonApi *apiInstance = [[CommonApi alloc] init];
String *search = search_example; //  (optional) (default to null)

// Retrieve country list
[apiInstance commonCountriesWith:search
              completionHandler: ^(array[CountryListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CommonApi()
var opts = {
  'search': search_example // {String} 
};

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

namespace Example
{
    public class commonCountriesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CommonApi();
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // Retrieve country list
                array[CountryListDto] result = apiInstance.commonCountries(search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommonApi.commonCountries: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommonApi();
$search = search_example; // String | 

try {
    $result = $api_instance->commonCountries($search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->commonCountries: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommonApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommonApi->new();
my $search = search_example; # String | 

eval {
    my $result = $api_instance->commonCountries(search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommonApi->commonCountries: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CommonApi()
search = search_example # String |  (optional) (default to null)

try:
    # Retrieve country list
    api_response = api_instance.common_countries(search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->commonCountries: %s\n" % e)
extern crate CommonApi;

pub fn main() {
    let search = search_example; // String

    let mut context = CommonApi::Context::default();
    let result = client.commonCountries(search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
search

Responses


commonEnumValues

Retrieve enum values


/api/v1/common/enumvalues

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/common/enumvalues"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommonApi;

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

public class CommonApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CommonApi apiInstance = new CommonApi();

        try {
            EnumList result = apiInstance.commonEnumValues();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonEnumValues");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.commonEnumValues();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commonEnumValues: $e\n');
}

import org.openapitools.client.api.CommonApi;

public class CommonApiExample {
    public static void main(String[] args) {
        CommonApi apiInstance = new CommonApi();

        try {
            EnumList result = apiInstance.commonEnumValues();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonEnumValues");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CommonApi *apiInstance = [[CommonApi alloc] init];

// Retrieve enum values
[apiInstance commonEnumValuesWithCompletionHandler: 
              ^(EnumList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CommonApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.commonEnumValues(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class commonEnumValuesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CommonApi();

            try {
                // Retrieve enum values
                EnumList result = apiInstance.commonEnumValues();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommonApi.commonEnumValues: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommonApi();

try {
    $result = $api_instance->commonEnumValues();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->commonEnumValues: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommonApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommonApi->new();

eval {
    my $result = $api_instance->commonEnumValues();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommonApi->commonEnumValues: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CommonApi()

try:
    # Retrieve enum values
    api_response = api_instance.common_enum_values()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->commonEnumValues: %s\n" % e)
extern crate CommonApi;

pub fn main() {

    let mut context = CommonApi::Context::default();
    let result = client.commonEnumValues(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


commonIpRangeCount

Retrieve ip address range count


/api/v1/common/ip-range-count

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/common/ip-range-count" \
 -d '{
  "end" : "end",
  "begin" : "begin"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommonApi;

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

public class CommonApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CommonApi apiInstance = new CommonApi();
        IpAddressRangeCountCommand ipAddressRangeCountCommand = ; // IpAddressRangeCountCommand | 

        try {
            'Integer' result = apiInstance.commonIpRangeCount(ipAddressRangeCountCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonIpRangeCount");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final IpAddressRangeCountCommand ipAddressRangeCountCommand = new IpAddressRangeCountCommand(); // IpAddressRangeCountCommand | 

try {
    final result = await api_instance.commonIpRangeCount(ipAddressRangeCountCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commonIpRangeCount: $e\n');
}

import org.openapitools.client.api.CommonApi;

public class CommonApiExample {
    public static void main(String[] args) {
        CommonApi apiInstance = new CommonApi();
        IpAddressRangeCountCommand ipAddressRangeCountCommand = ; // IpAddressRangeCountCommand | 

        try {
            'Integer' result = apiInstance.commonIpRangeCount(ipAddressRangeCountCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonIpRangeCount");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CommonApi *apiInstance = [[CommonApi alloc] init];
IpAddressRangeCountCommand *ipAddressRangeCountCommand = ; //  (optional)

// Retrieve ip address range count
[apiInstance commonIpRangeCountWith:ipAddressRangeCountCommand
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CommonApi()
var opts = {
  'ipAddressRangeCountCommand':  // {IpAddressRangeCountCommand} 
};

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

namespace Example
{
    public class commonIpRangeCountExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CommonApi();
            var ipAddressRangeCountCommand = new IpAddressRangeCountCommand(); // IpAddressRangeCountCommand |  (optional) 

            try {
                // Retrieve ip address range count
                'Integer' result = apiInstance.commonIpRangeCount(ipAddressRangeCountCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommonApi.commonIpRangeCount: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommonApi();
$ipAddressRangeCountCommand = ; // IpAddressRangeCountCommand | 

try {
    $result = $api_instance->commonIpRangeCount($ipAddressRangeCountCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->commonIpRangeCount: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommonApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommonApi->new();
my $ipAddressRangeCountCommand = WWW::OPenAPIClient::Object::IpAddressRangeCountCommand->new(); # IpAddressRangeCountCommand | 

eval {
    my $result = $api_instance->commonIpRangeCount(ipAddressRangeCountCommand => $ipAddressRangeCountCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommonApi->commonIpRangeCount: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CommonApi()
ipAddressRangeCountCommand =  # IpAddressRangeCountCommand |  (optional)

try:
    # Retrieve ip address range count
    api_response = api_instance.common_ip_range_count(ipAddressRangeCountCommand=ipAddressRangeCountCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->commonIpRangeCount: %s\n" % e)
extern crate CommonApi;

pub fn main() {
    let ipAddressRangeCountCommand = ; // IpAddressRangeCountCommand

    let mut context = CommonApi::Context::default();
    let result = client.commonIpRangeCount(ipAddressRangeCountCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ipAddressRangeCountCommand

Responses


commonIpRangeList

Retrieve ip address range list


/api/v1/common/ip-range-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/common/ip-range-list" \
 -d '{
  "netMask" : 0,
  "ipAddress" : "ipAddress",
  "gateway" : "gateway"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommonApi;

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

public class CommonApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CommonApi apiInstance = new CommonApi();
        IpAddressRangeListCommand ipAddressRangeListCommand = ; // IpAddressRangeListCommand | 

        try {
            array['String'] result = apiInstance.commonIpRangeList(ipAddressRangeListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonIpRangeList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final IpAddressRangeListCommand ipAddressRangeListCommand = new IpAddressRangeListCommand(); // IpAddressRangeListCommand | 

try {
    final result = await api_instance.commonIpRangeList(ipAddressRangeListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commonIpRangeList: $e\n');
}

import org.openapitools.client.api.CommonApi;

public class CommonApiExample {
    public static void main(String[] args) {
        CommonApi apiInstance = new CommonApi();
        IpAddressRangeListCommand ipAddressRangeListCommand = ; // IpAddressRangeListCommand | 

        try {
            array['String'] result = apiInstance.commonIpRangeList(ipAddressRangeListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonIpRangeList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CommonApi *apiInstance = [[CommonApi alloc] init];
IpAddressRangeListCommand *ipAddressRangeListCommand = ; //  (optional)

// Retrieve ip address range list
[apiInstance commonIpRangeListWith:ipAddressRangeListCommand
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CommonApi()
var opts = {
  'ipAddressRangeListCommand':  // {IpAddressRangeListCommand} 
};

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

namespace Example
{
    public class commonIpRangeListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CommonApi();
            var ipAddressRangeListCommand = new IpAddressRangeListCommand(); // IpAddressRangeListCommand |  (optional) 

            try {
                // Retrieve ip address range list
                array['String'] result = apiInstance.commonIpRangeList(ipAddressRangeListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommonApi.commonIpRangeList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommonApi();
$ipAddressRangeListCommand = ; // IpAddressRangeListCommand | 

try {
    $result = $api_instance->commonIpRangeList($ipAddressRangeListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->commonIpRangeList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommonApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommonApi->new();
my $ipAddressRangeListCommand = WWW::OPenAPIClient::Object::IpAddressRangeListCommand->new(); # IpAddressRangeListCommand | 

eval {
    my $result = $api_instance->commonIpRangeList(ipAddressRangeListCommand => $ipAddressRangeListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommonApi->commonIpRangeList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CommonApi()
ipAddressRangeListCommand =  # IpAddressRangeListCommand |  (optional)

try:
    # Retrieve ip address range list
    api_response = api_instance.common_ip_range_list(ipAddressRangeListCommand=ipAddressRangeListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->commonIpRangeList: %s\n" % e)
extern crate CommonApi;

pub fn main() {
    let ipAddressRangeListCommand = ; // IpAddressRangeListCommand

    let mut context = CommonApi::Context::default();
    let result = client.commonIpRangeList(ipAddressRangeListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ipAddressRangeListCommand

Responses


commonSortingElements

Retrieve sorting values


/api/v1/common/sorting-elements/{type}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/common/sorting-elements/{type}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CommonApi;

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

public class CommonApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CommonApi apiInstance = new CommonApi();
        String type = type_example; // String | 

        try {
            array['String'] result = apiInstance.commonSortingElements(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonSortingElements");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String type = new String(); // String | 

try {
    final result = await api_instance.commonSortingElements(type);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->commonSortingElements: $e\n');
}

import org.openapitools.client.api.CommonApi;

public class CommonApiExample {
    public static void main(String[] args) {
        CommonApi apiInstance = new CommonApi();
        String type = type_example; // String | 

        try {
            array['String'] result = apiInstance.commonSortingElements(type);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CommonApi#commonSortingElements");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CommonApi *apiInstance = [[CommonApi alloc] init];
String *type = type_example; //  (default to null)

// Retrieve sorting values
[apiInstance commonSortingElementsWith:type
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CommonApi()
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.commonSortingElements(type, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class commonSortingElementsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CommonApi();
            var type = type_example;  // String |  (default to null)

            try {
                // Retrieve sorting values
                array['String'] result = apiInstance.commonSortingElements(type);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CommonApi.commonSortingElements: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CommonApi();
$type = type_example; // String | 

try {
    $result = $api_instance->commonSortingElements($type);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CommonApi->commonSortingElements: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CommonApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CommonApi->new();
my $type = type_example; # String | 

eval {
    my $result = $api_instance->commonSortingElements(type => $type);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CommonApi->commonSortingElements: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CommonApi()
type = type_example # String |  (default to null)

try:
    # Retrieve sorting values
    api_response = api_instance.common_sorting_elements(type)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->commonSortingElements: %s\n" % e)
extern crate CommonApi;

pub fn main() {
    let type = type_example; // String

    let mut context = CommonApi::Context::default();
    let result = client.commonSortingElements(type, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
type*
String
Required

Responses


CronJobService

cronJobScanCertificateCredentialExpiryLegacy

Legacy alias for scan-certificate-profile-expiry (pre-rename cron path)


/api/v1/cronjob/scan-certificate-credential-expiry

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/scan-certificate-credential-expiry" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronJobScanCertificateCredentialExpiryLegacy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronJobScanCertificateCredentialExpiryLegacy");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronJobScanCertificateCredentialExpiryLegacy(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronJobScanCertificateCredentialExpiryLegacy: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronJobScanCertificateCredentialExpiryLegacy(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronJobScanCertificateCredentialExpiryLegacy");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Legacy alias for scan-certificate-profile-expiry (pre-rename cron path)
[apiInstance cronJobScanCertificateCredentialExpiryLegacyWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronJobScanCertificateCredentialExpiryLegacyExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Legacy alias for scan-certificate-profile-expiry (pre-rename cron path)
                Object result = apiInstance.cronJobScanCertificateCredentialExpiryLegacy(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronJobScanCertificateCredentialExpiryLegacy: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronJobScanCertificateCredentialExpiryLegacy($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronJobScanCertificateCredentialExpiryLegacy: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronJobScanCertificateCredentialExpiryLegacy(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronJobScanCertificateCredentialExpiryLegacy: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Legacy alias for scan-certificate-profile-expiry (pre-rename cron path)
    api_response = api_instance.cron_job_scan_certificate_credential_expiry_legacy(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronJobScanCertificateCredentialExpiryLegacy: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronJobScanCertificateCredentialExpiryLegacy(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronJobScanCertificateProfileExpiry

Scan certificate profiles approaching or past expiry and emit alert logs


/api/v1/cronjob/scan-certificate-profile-expiry

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/scan-certificate-profile-expiry" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronJobScanCertificateProfileExpiry(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronJobScanCertificateProfileExpiry");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronJobScanCertificateProfileExpiry(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronJobScanCertificateProfileExpiry: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronJobScanCertificateProfileExpiry(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronJobScanCertificateProfileExpiry");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Scan certificate profiles approaching or past expiry and emit alert logs
[apiInstance cronJobScanCertificateProfileExpiryWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronJobScanCertificateProfileExpiryExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Scan certificate profiles approaching or past expiry and emit alert logs
                Object result = apiInstance.cronJobScanCertificateProfileExpiry(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronJobScanCertificateProfileExpiry: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronJobScanCertificateProfileExpiry($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronJobScanCertificateProfileExpiry: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronJobScanCertificateProfileExpiry(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronJobScanCertificateProfileExpiry: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Scan certificate profiles approaching or past expiry and emit alert logs
    api_response = api_instance.cron_job_scan_certificate_profile_expiry(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronJobScanCertificateProfileExpiry: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronJobScanCertificateProfileExpiry(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobCcfCryptoStatus

Rollback-safety survey: per-column $enc:v1: row counts and last Transit failure timestamp


/api/v1/cronjob/ccf-crypto/status

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cronjob/ccf-crypto/status"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            TransitEncryptionStatusDto result = apiInstance.cronjobCcfCryptoStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobCcfCryptoStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.cronjobCcfCryptoStatus();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobCcfCryptoStatus: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            TransitEncryptionStatusDto result = apiInstance.cronjobCcfCryptoStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobCcfCryptoStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];

// Rollback-safety survey: per-column $enc:v1: row counts and last Transit failure timestamp
[apiInstance cronjobCcfCryptoStatusWithCompletionHandler: 
              ^(TransitEncryptionStatusDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cronjobCcfCryptoStatus(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class cronjobCcfCryptoStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();

            try {
                // Rollback-safety survey: per-column $enc:v1: row counts and last Transit failure timestamp
                TransitEncryptionStatusDto result = apiInstance.cronjobCcfCryptoStatus();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobCcfCryptoStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();

try {
    $result = $api_instance->cronjobCcfCryptoStatus();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobCcfCryptoStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();

eval {
    my $result = $api_instance->cronjobCcfCryptoStatus();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobCcfCryptoStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()

try:
    # Rollback-safety survey: per-column $enc:v1: row counts and last Transit failure timestamp
    api_response = api_instance.cronjob_ccf_crypto_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobCcfCryptoStatus: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobCcfCryptoStatus(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


cronjobCreateKeyPool

Create key pool


/api/v1/cronjob/create-key-pool

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/create-key-pool" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobCreateKeyPool(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobCreateKeyPool");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobCreateKeyPool(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobCreateKeyPool: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobCreateKeyPool(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobCreateKeyPool");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Create key pool
[apiInstance cronjobCreateKeyPoolWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobCreateKeyPoolExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Create key pool
                Object result = apiInstance.cronjobCreateKeyPool(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobCreateKeyPool: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobCreateKeyPool($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobCreateKeyPool: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobCreateKeyPool(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobCreateKeyPool: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Create key pool
    api_response = api_instance.cronjob_create_key_pool(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobCreateKeyPool: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobCreateKeyPool(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteExpiredAlerts

Delete expired alerts


/api/v1/cronjob/alerts

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/alerts" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredAlerts(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredAlerts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteExpiredAlerts(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteExpiredAlerts: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredAlerts(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredAlerts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete expired alerts
[apiInstance cronjobDeleteExpiredAlertsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteExpiredAlertsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete expired alerts
                Object result = apiInstance.cronjobDeleteExpiredAlerts(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteExpiredAlerts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteExpiredAlerts($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteExpiredAlerts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteExpiredAlerts(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteExpiredAlerts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete expired alerts
    api_response = api_instance.cronjob_delete_expired_alerts(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteExpiredAlerts: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteExpiredAlerts(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteExpiredHistoryLogs

Delete expired history logs


/api/v1/cronjob/history-logs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/history-logs" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredHistoryLogs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredHistoryLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteExpiredHistoryLogs(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteExpiredHistoryLogs: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredHistoryLogs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredHistoryLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete expired history logs
[apiInstance cronjobDeleteExpiredHistoryLogsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteExpiredHistoryLogsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete expired history logs
                Object result = apiInstance.cronjobDeleteExpiredHistoryLogs(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteExpiredHistoryLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteExpiredHistoryLogs($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteExpiredHistoryLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteExpiredHistoryLogs(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteExpiredHistoryLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete expired history logs
    api_response = api_instance.cronjob_delete_expired_history_logs(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteExpiredHistoryLogs: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteExpiredHistoryLogs(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteExpiredRefreshTokens

Delete expired refresh tokens


/api/v1/cronjob/refresh-tokens

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/refresh-tokens" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredRefreshTokens(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredRefreshTokens");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteExpiredRefreshTokens(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteExpiredRefreshTokens: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredRefreshTokens(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredRefreshTokens");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete expired refresh tokens
[apiInstance cronjobDeleteExpiredRefreshTokensWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteExpiredRefreshTokensExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete expired refresh tokens
                Object result = apiInstance.cronjobDeleteExpiredRefreshTokens(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteExpiredRefreshTokens: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteExpiredRefreshTokens($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteExpiredRefreshTokens: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteExpiredRefreshTokens(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteExpiredRefreshTokens: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete expired refresh tokens
    api_response = api_instance.cronjob_delete_expired_refresh_tokens(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteExpiredRefreshTokens: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteExpiredRefreshTokens(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteExpiredServers

Delete expired servers


/api/v1/cronjob/delete-expired-servers

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/delete-expired-servers" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredServers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredServers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteExpiredServers(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteExpiredServers: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteExpiredServers(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteExpiredServers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete expired servers
[apiInstance cronjobDeleteExpiredServersWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteExpiredServersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete expired servers
                Object result = apiInstance.cronjobDeleteExpiredServers(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteExpiredServers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteExpiredServers($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteExpiredServers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteExpiredServers(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteExpiredServers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete expired servers
    api_response = api_instance.cronjob_delete_expired_servers(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteExpiredServers: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteExpiredServers(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteImportedBackupLocation

Delete imported backup locations


/api/v1/cronjob/backup-locations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/backup-locations" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteImportedBackupLocation(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteImportedBackupLocation");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteImportedBackupLocation(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteImportedBackupLocation: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteImportedBackupLocation(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteImportedBackupLocation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete imported backup locations
[apiInstance cronjobDeleteImportedBackupLocationWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteImportedBackupLocationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete imported backup locations
                Object result = apiInstance.cronjobDeleteImportedBackupLocation(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteImportedBackupLocation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteImportedBackupLocation($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteImportedBackupLocation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteImportedBackupLocation(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteImportedBackupLocation: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete imported backup locations
    api_response = api_instance.cronjob_delete_imported_backup_location(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteImportedBackupLocation: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteImportedBackupLocation(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteKubeConfigs

Remove deleted user's kube config


/api/v1/cronjob/delete-kube-configs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/delete-kube-configs" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteKubeConfigs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteKubeConfigs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteKubeConfigs(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteKubeConfigs: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteKubeConfigs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteKubeConfigs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Remove deleted user's kube config
[apiInstance cronjobDeleteKubeConfigsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteKubeConfigsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Remove deleted user's kube config
                Object result = apiInstance.cronjobDeleteKubeConfigs(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteKubeConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteKubeConfigs($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteKubeConfigs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteKubeConfigs(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteKubeConfigs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Remove deleted user's kube config
    api_response = api_instance.cronjob_delete_kube_configs(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteKubeConfigs: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteKubeConfigs(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteRemovedSpotInstances

Delete removed spot instances


/api/v1/cronjob/delete-removed-spot-instances

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/delete-removed-spot-instances" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteRemovedSpotInstances(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteRemovedSpotInstances");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteRemovedSpotInstances(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteRemovedSpotInstances: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteRemovedSpotInstances(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteRemovedSpotInstances");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete removed spot instances
[apiInstance cronjobDeleteRemovedSpotInstancesWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteRemovedSpotInstancesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete removed spot instances
                Object result = apiInstance.cronjobDeleteRemovedSpotInstances(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteRemovedSpotInstances: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteRemovedSpotInstances($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteRemovedSpotInstances: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteRemovedSpotInstances(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteRemovedSpotInstances: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete removed spot instances
    api_response = api_instance.cronjob_delete_removed_spot_instances(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteRemovedSpotInstances: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteRemovedSpotInstances(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobDeleteUselessProjectActions

Delete useless project actions


/api/v1/cronjob/project-actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/project-actions" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteUselessProjectActions(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteUselessProjectActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobDeleteUselessProjectActions(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobDeleteUselessProjectActions: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobDeleteUselessProjectActions(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobDeleteUselessProjectActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Delete useless project actions
[apiInstance cronjobDeleteUselessProjectActionsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobDeleteUselessProjectActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete useless project actions
                Object result = apiInstance.cronjobDeleteUselessProjectActions(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobDeleteUselessProjectActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobDeleteUselessProjectActions($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobDeleteUselessProjectActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobDeleteUselessProjectActions(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobDeleteUselessProjectActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Delete useless project actions
    api_response = api_instance.cronjob_delete_useless_project_actions(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobDeleteUselessProjectActions: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobDeleteUselessProjectActions(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobEmailForProjectExpiration

Send email to the users about project expiration


/api/v1/cronjob/project-expiration

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/project-expiration" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobEmailForProjectExpiration(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobEmailForProjectExpiration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobEmailForProjectExpiration(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobEmailForProjectExpiration: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobEmailForProjectExpiration(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobEmailForProjectExpiration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Send email to the users about project expiration
[apiInstance cronjobEmailForProjectExpirationWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobEmailForProjectExpirationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Send email to the users about project expiration
                Object result = apiInstance.cronjobEmailForProjectExpiration(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobEmailForProjectExpiration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobEmailForProjectExpiration($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobEmailForProjectExpiration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobEmailForProjectExpiration(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobEmailForProjectExpiration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Send email to the users about project expiration
    api_response = api_instance.cronjob_email_for_project_expiration(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobEmailForProjectExpiration: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobEmailForProjectExpiration(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobFetchAzureFlavorPrices

Fetch azure flavor prices


/api/v1/cronjob/fetch-azure-flavor-prices

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/fetch-azure-flavor-prices" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchAzureFlavorPrices(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchAzureFlavorPrices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobFetchAzureFlavorPrices(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobFetchAzureFlavorPrices: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchAzureFlavorPrices(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchAzureFlavorPrices");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Fetch azure flavor prices
[apiInstance cronjobFetchAzureFlavorPricesWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobFetchAzureFlavorPricesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Fetch azure flavor prices
                Object result = apiInstance.cronjobFetchAzureFlavorPrices(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobFetchAzureFlavorPrices: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobFetchAzureFlavorPrices($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobFetchAzureFlavorPrices: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobFetchAzureFlavorPrices(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobFetchAzureFlavorPrices: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Fetch azure flavor prices
    api_response = api_instance.cronjob_fetch_azure_flavor_prices(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobFetchAzureFlavorPrices: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobFetchAzureFlavorPrices(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobFetchK8sAlertData

Fetch k8s alert data


/api/v1/cronjob/fetch-k8s-alert-data

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/fetch-k8s-alert-data" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchK8sAlertData(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchK8sAlertData");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobFetchK8sAlertData(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobFetchK8sAlertData: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchK8sAlertData(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchK8sAlertData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Fetch k8s alert data
[apiInstance cronjobFetchK8sAlertDataWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobFetchK8sAlertDataExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Fetch k8s alert data
                Object result = apiInstance.cronjobFetchK8sAlertData(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobFetchK8sAlertData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobFetchK8sAlertData($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobFetchK8sAlertData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobFetchK8sAlertData(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobFetchK8sAlertData: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Fetch k8s alert data
    api_response = api_instance.cronjob_fetch_k8s_alert_data(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobFetchK8sAlertData: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobFetchK8sAlertData(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobFetchK8sOverviewData

Fetch k8s overview data


/api/v1/cronjob/fetch-k8s-overview-data

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/fetch-k8s-overview-data" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchK8sOverviewData(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchK8sOverviewData");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobFetchK8sOverviewData(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobFetchK8sOverviewData: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobFetchK8sOverviewData(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobFetchK8sOverviewData");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Fetch k8s overview data
[apiInstance cronjobFetchK8sOverviewDataWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobFetchK8sOverviewDataExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Fetch k8s overview data
                Object result = apiInstance.cronjobFetchK8sOverviewData(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobFetchK8sOverviewData: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobFetchK8sOverviewData($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobFetchK8sOverviewData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobFetchK8sOverviewData(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobFetchK8sOverviewData: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Fetch k8s overview data
    api_response = api_instance.cronjob_fetch_k8s_overview_data(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobFetchK8sOverviewData: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobFetchK8sOverviewData(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobPurgeExpiredProjects

Purge expired projects


/api/v1/cronjob/purge-expired-projects

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/purge-expired-projects" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobPurgeExpiredProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobPurgeExpiredProjects");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobPurgeExpiredProjects(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobPurgeExpiredProjects: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobPurgeExpiredProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobPurgeExpiredProjects");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Purge expired projects
[apiInstance cronjobPurgeExpiredProjectsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobPurgeExpiredProjectsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Purge expired projects
                Object result = apiInstance.cronjobPurgeExpiredProjects(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobPurgeExpiredProjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobPurgeExpiredProjects($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobPurgeExpiredProjects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobPurgeExpiredProjects(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobPurgeExpiredProjects: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Purge expired projects
    api_response = api_instance.cronjob_purge_expired_projects(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobPurgeExpiredProjects: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobPurgeExpiredProjects(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobReconcileKubernetesOidcRoles

Reconcile OpenBao Kubernetes OIDC roles with projects (creates missing, prunes orphaned)


/api/v1/cronjob/reconcile-kubernetes-oidc-roles

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cronjob/reconcile-kubernetes-oidc-roles"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            ReconcileKubernetesOidcRolesResult result = apiInstance.cronjobReconcileKubernetesOidcRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobReconcileKubernetesOidcRoles");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.cronjobReconcileKubernetesOidcRoles();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobReconcileKubernetesOidcRoles: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            ReconcileKubernetesOidcRolesResult result = apiInstance.cronjobReconcileKubernetesOidcRoles();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobReconcileKubernetesOidcRoles");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];

// Reconcile OpenBao Kubernetes OIDC roles with projects (creates missing, prunes orphaned)
[apiInstance cronjobReconcileKubernetesOidcRolesWithCompletionHandler: 
              ^(ReconcileKubernetesOidcRolesResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cronjobReconcileKubernetesOidcRoles(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class cronjobReconcileKubernetesOidcRolesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();

            try {
                // Reconcile OpenBao Kubernetes OIDC roles with projects (creates missing, prunes orphaned)
                ReconcileKubernetesOidcRolesResult result = apiInstance.cronjobReconcileKubernetesOidcRoles();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobReconcileKubernetesOidcRoles: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();

try {
    $result = $api_instance->cronjobReconcileKubernetesOidcRoles();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobReconcileKubernetesOidcRoles: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();

eval {
    my $result = $api_instance->cronjobReconcileKubernetesOidcRoles();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobReconcileKubernetesOidcRoles: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()

try:
    # Reconcile OpenBao Kubernetes OIDC roles with projects (creates missing, prunes orphaned)
    api_response = api_instance.cronjob_reconcile_kubernetes_oidc_roles()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobReconcileKubernetesOidcRoles: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobReconcileKubernetesOidcRoles(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


cronjobReconcilePartnerScopes

Reconcile CCF partner scope holders (moves DEK rows off soft-deleted partner scope holders)


/api/v1/cronjob/reconcile-partner-scopes

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/cronjob/reconcile-partner-scopes"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            PartnerScopeReconcileResult result = apiInstance.cronjobReconcilePartnerScopes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobReconcilePartnerScopes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.cronjobReconcilePartnerScopes();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobReconcilePartnerScopes: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();

        try {
            PartnerScopeReconcileResult result = apiInstance.cronjobReconcilePartnerScopes();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobReconcilePartnerScopes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];

// Reconcile CCF partner scope holders (moves DEK rows off soft-deleted partner scope holders)
[apiInstance cronjobReconcilePartnerScopesWithCompletionHandler: 
              ^(PartnerScopeReconcileResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.cronjobReconcilePartnerScopes(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class cronjobReconcilePartnerScopesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();

            try {
                // Reconcile CCF partner scope holders (moves DEK rows off soft-deleted partner scope holders)
                PartnerScopeReconcileResult result = apiInstance.cronjobReconcilePartnerScopes();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobReconcilePartnerScopes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();

try {
    $result = $api_instance->cronjobReconcilePartnerScopes();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobReconcilePartnerScopes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();

eval {
    my $result = $api_instance->cronjobReconcilePartnerScopes();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobReconcilePartnerScopes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()

try:
    # Reconcile CCF partner scope holders (moves DEK rows off soft-deleted partner scope holders)
    api_response = api_instance.cronjob_reconcile_partner_scopes()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobReconcilePartnerScopes: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobReconcilePartnerScopes(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


cronjobRemindUsersByAlertingProfile

Remind users by alerting profile


/api/v1/cronjob/remind-users-by-alerting-profile

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/remind-users-by-alerting-profile" \
 -d '{
  "reminder" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        RemindUsersByAlertingProfileCommand remindUsersByAlertingProfileCommand = ; // RemindUsersByAlertingProfileCommand | 

        try {
            Object result = apiInstance.cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobRemindUsersByAlertingProfile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RemindUsersByAlertingProfileCommand remindUsersByAlertingProfileCommand = new RemindUsersByAlertingProfileCommand(); // RemindUsersByAlertingProfileCommand | 

try {
    final result = await api_instance.cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobRemindUsersByAlertingProfile: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        RemindUsersByAlertingProfileCommand remindUsersByAlertingProfileCommand = ; // RemindUsersByAlertingProfileCommand | 

        try {
            Object result = apiInstance.cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobRemindUsersByAlertingProfile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
RemindUsersByAlertingProfileCommand *remindUsersByAlertingProfileCommand = ; //  (optional)

// Remind users by alerting profile
[apiInstance cronjobRemindUsersByAlertingProfileWith:remindUsersByAlertingProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'remindUsersByAlertingProfileCommand':  // {RemindUsersByAlertingProfileCommand} 
};

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

namespace Example
{
    public class cronjobRemindUsersByAlertingProfileExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var remindUsersByAlertingProfileCommand = new RemindUsersByAlertingProfileCommand(); // RemindUsersByAlertingProfileCommand |  (optional) 

            try {
                // Remind users by alerting profile
                Object result = apiInstance.cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobRemindUsersByAlertingProfile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$remindUsersByAlertingProfileCommand = ; // RemindUsersByAlertingProfileCommand | 

try {
    $result = $api_instance->cronjobRemindUsersByAlertingProfile($remindUsersByAlertingProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobRemindUsersByAlertingProfile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $remindUsersByAlertingProfileCommand = WWW::OPenAPIClient::Object::RemindUsersByAlertingProfileCommand->new(); # RemindUsersByAlertingProfileCommand | 

eval {
    my $result = $api_instance->cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand => $remindUsersByAlertingProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobRemindUsersByAlertingProfile: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
remindUsersByAlertingProfileCommand =  # RemindUsersByAlertingProfileCommand |  (optional)

try:
    # Remind users by alerting profile
    api_response = api_instance.cronjob_remind_users_by_alerting_profile(remindUsersByAlertingProfileCommand=remindUsersByAlertingProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobRemindUsersByAlertingProfile: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let remindUsersByAlertingProfileCommand = ; // RemindUsersByAlertingProfileCommand

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobRemindUsersByAlertingProfile(remindUsersByAlertingProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
remindUsersByAlertingProfileCommand

Responses


cronjobRotateTenantKeks

Rotate tenant KEKs via Transit rewrap


/api/v1/cronjob/rotate-tenant-keks

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/rotate-tenant-keks" \
 -d '{
  "mode" : "KekOnly",
  "batchSize" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        RotateTenantKeksCommand rotateTenantKeksCommand = ; // RotateTenantKeksCommand | 

        try {
            Object result = apiInstance.cronjobRotateTenantKeks(rotateTenantKeksCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobRotateTenantKeks");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RotateTenantKeksCommand rotateTenantKeksCommand = new RotateTenantKeksCommand(); // RotateTenantKeksCommand | 

try {
    final result = await api_instance.cronjobRotateTenantKeks(rotateTenantKeksCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobRotateTenantKeks: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        RotateTenantKeksCommand rotateTenantKeksCommand = ; // RotateTenantKeksCommand | 

        try {
            Object result = apiInstance.cronjobRotateTenantKeks(rotateTenantKeksCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobRotateTenantKeks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
RotateTenantKeksCommand *rotateTenantKeksCommand = ; //  (optional)

// Rotate tenant KEKs via Transit rewrap
[apiInstance cronjobRotateTenantKeksWith:rotateTenantKeksCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'rotateTenantKeksCommand':  // {RotateTenantKeksCommand} 
};

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

namespace Example
{
    public class cronjobRotateTenantKeksExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var rotateTenantKeksCommand = new RotateTenantKeksCommand(); // RotateTenantKeksCommand |  (optional) 

            try {
                // Rotate tenant KEKs via Transit rewrap
                Object result = apiInstance.cronjobRotateTenantKeks(rotateTenantKeksCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobRotateTenantKeks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$rotateTenantKeksCommand = ; // RotateTenantKeksCommand | 

try {
    $result = $api_instance->cronjobRotateTenantKeks($rotateTenantKeksCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobRotateTenantKeks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $rotateTenantKeksCommand = WWW::OPenAPIClient::Object::RotateTenantKeksCommand->new(); # RotateTenantKeksCommand | 

eval {
    my $result = $api_instance->cronjobRotateTenantKeks(rotateTenantKeksCommand => $rotateTenantKeksCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobRotateTenantKeks: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
rotateTenantKeksCommand =  # RotateTenantKeksCommand |  (optional)

try:
    # Rotate tenant KEKs via Transit rewrap
    api_response = api_instance.cronjob_rotate_tenant_keks(rotateTenantKeksCommand=rotateTenantKeksCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobRotateTenantKeks: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let rotateTenantKeksCommand = ; // RotateTenantKeksCommand

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobRotateTenantKeks(rotateTenantKeksCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
rotateTenantKeksCommand

Responses


cronjobSyncBackupCredentials

Sync backup credentials


/api/v1/cronjob/sync-backup-credentials

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/sync-backup-credentials" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncBackupCredentials(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncBackupCredentials");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobSyncBackupCredentials(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobSyncBackupCredentials: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncBackupCredentials(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncBackupCredentials");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Sync backup credentials
[apiInstance cronjobSyncBackupCredentialsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobSyncBackupCredentialsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Sync backup credentials
                Object result = apiInstance.cronjobSyncBackupCredentials(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobSyncBackupCredentials: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobSyncBackupCredentials($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobSyncBackupCredentials: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobSyncBackupCredentials(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobSyncBackupCredentials: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Sync backup credentials
    api_response = api_instance.cronjob_sync_backup_credentials(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobSyncBackupCredentials: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobSyncBackupCredentials(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobSyncDnsCertConfigs

Sync DNS/Cert configs (drift cron — re-fires kubevap addons pipeline when Applied < Desired)


/api/v1/cronjob/sync-dns-cert-configs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/sync-dns-cert-configs" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncDnsCertConfigs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncDnsCertConfigs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobSyncDnsCertConfigs(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobSyncDnsCertConfigs: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncDnsCertConfigs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncDnsCertConfigs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Sync DNS/Cert configs (drift cron — re-fires kubevap addons pipeline when Applied < Desired)
[apiInstance cronjobSyncDnsCertConfigsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobSyncDnsCertConfigsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Sync DNS/Cert configs (drift cron — re-fires kubevap addons pipeline when Applied < Desired)
                Object result = apiInstance.cronjobSyncDnsCertConfigs(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobSyncDnsCertConfigs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobSyncDnsCertConfigs($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobSyncDnsCertConfigs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobSyncDnsCertConfigs(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobSyncDnsCertConfigs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Sync DNS/Cert configs (drift cron — re-fires kubevap addons pipeline when Applied < Desired)
    api_response = api_instance.cronjob_sync_dns_cert_configs(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobSyncDnsCertConfigs: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobSyncDnsCertConfigs(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobSyncOrganizations

Sync organizations


/api/v1/cronjob/sync-organizations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/sync-organizations" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncOrganizations(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncOrganizations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobSyncOrganizations(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobSyncOrganizations: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncOrganizations(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncOrganizations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Sync organizations
[apiInstance cronjobSyncOrganizationsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobSyncOrganizationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Sync organizations
                Object result = apiInstance.cronjobSyncOrganizations(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobSyncOrganizations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobSyncOrganizations($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobSyncOrganizations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobSyncOrganizations(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobSyncOrganizations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Sync organizations
    api_response = api_instance.cronjob_sync_organizations(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobSyncOrganizations: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobSyncOrganizations(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobSyncProjectApps

Sync project apps


/api/v1/cronjob/sync-project-apps

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/sync-project-apps" \
 -d '{
  "projectAppId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        SyncProjectAppsCommand syncProjectAppsCommand = ; // SyncProjectAppsCommand | 

        try {
            Object result = apiInstance.cronjobSyncProjectApps(syncProjectAppsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncProjectApps");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SyncProjectAppsCommand syncProjectAppsCommand = new SyncProjectAppsCommand(); // SyncProjectAppsCommand | 

try {
    final result = await api_instance.cronjobSyncProjectApps(syncProjectAppsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobSyncProjectApps: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        SyncProjectAppsCommand syncProjectAppsCommand = ; // SyncProjectAppsCommand | 

        try {
            Object result = apiInstance.cronjobSyncProjectApps(syncProjectAppsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncProjectApps");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
SyncProjectAppsCommand *syncProjectAppsCommand = ; //  (optional)

// Sync project apps
[apiInstance cronjobSyncProjectAppsWith:syncProjectAppsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'syncProjectAppsCommand':  // {SyncProjectAppsCommand} 
};

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

namespace Example
{
    public class cronjobSyncProjectAppsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var syncProjectAppsCommand = new SyncProjectAppsCommand(); // SyncProjectAppsCommand |  (optional) 

            try {
                // Sync project apps
                Object result = apiInstance.cronjobSyncProjectApps(syncProjectAppsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobSyncProjectApps: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$syncProjectAppsCommand = ; // SyncProjectAppsCommand | 

try {
    $result = $api_instance->cronjobSyncProjectApps($syncProjectAppsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobSyncProjectApps: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $syncProjectAppsCommand = WWW::OPenAPIClient::Object::SyncProjectAppsCommand->new(); # SyncProjectAppsCommand | 

eval {
    my $result = $api_instance->cronjobSyncProjectApps(syncProjectAppsCommand => $syncProjectAppsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobSyncProjectApps: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
syncProjectAppsCommand =  # SyncProjectAppsCommand |  (optional)

try:
    # Sync project apps
    api_response = api_instance.cronjob_sync_project_apps(syncProjectAppsCommand=syncProjectAppsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobSyncProjectApps: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let syncProjectAppsCommand = ; // SyncProjectAppsCommand

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobSyncProjectApps(syncProjectAppsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
syncProjectAppsCommand

Responses


cronjobSyncProjects

Sync projects


/api/v1/cronjob/sync-projects

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/sync-projects" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncProjects");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobSyncProjects(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobSyncProjects: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobSyncProjects(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobSyncProjects");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Sync projects
[apiInstance cronjobSyncProjectsWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobSyncProjectsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Sync projects
                Object result = apiInstance.cronjobSyncProjects(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobSyncProjects: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobSyncProjects($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobSyncProjects: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobSyncProjects(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobSyncProjects: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Sync projects
    api_response = api_instance.cronjob_sync_projects(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobSyncProjects: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobSyncProjects(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobTektonPipelines

Tekton pipelines


/api/v1/cronjob/tekton-pipelines

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/tekton-pipelines" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobTektonPipelines(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobTektonPipelines");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobTektonPipelines(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobTektonPipelines: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobTektonPipelines(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobTektonPipelines");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Tekton pipelines
[apiInstance cronjobTektonPipelinesWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobTektonPipelinesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Tekton pipelines
                Object result = apiInstance.cronjobTektonPipelines(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobTektonPipelines: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobTektonPipelines($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobTektonPipelines: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobTektonPipelines(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobTektonPipelines: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Tekton pipelines
    api_response = api_instance.cronjob_tekton_pipelines(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobTektonPipelines: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobTektonPipelines(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobUpdateProjectAppStatus

Update project app status


/api/v1/cronjob/update-project-app-status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/update-project-app-status" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobUpdateProjectAppStatus(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobUpdateProjectAppStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobUpdateProjectAppStatus(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobUpdateProjectAppStatus: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobUpdateProjectAppStatus(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobUpdateProjectAppStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Update project app status
[apiInstance cronjobUpdateProjectAppStatusWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobUpdateProjectAppStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Update project app status
                Object result = apiInstance.cronjobUpdateProjectAppStatus(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobUpdateProjectAppStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobUpdateProjectAppStatus($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobUpdateProjectAppStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobUpdateProjectAppStatus(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobUpdateProjectAppStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Update project app status
    api_response = api_instance.cronjob_update_project_app_status(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobUpdateProjectAppStatus: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobUpdateProjectAppStatus(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


cronjobUpdateProjectQuotaMessage

Update project quota message


/api/v1/cronjob/update-project-quota-message

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/cronjob/update-project-quota-message" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CronJobServiceApi;

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

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobUpdateProjectQuotaMessage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobUpdateProjectQuotaMessage");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.cronjobUpdateProjectQuotaMessage(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->cronjobUpdateProjectQuotaMessage: $e\n');
}

import org.openapitools.client.api.CronJobServiceApi;

public class CronJobServiceApiExample {
    public static void main(String[] args) {
        CronJobServiceApi apiInstance = new CronJobServiceApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.cronjobUpdateProjectQuotaMessage(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CronJobServiceApi#cronjobUpdateProjectQuotaMessage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
CronJobServiceApi *apiInstance = [[CronJobServiceApi alloc] init];
Object *body = Object; //  (optional)

// Update project quota message
[apiInstance cronjobUpdateProjectQuotaMessageWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.CronJobServiceApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class cronjobUpdateProjectQuotaMessageExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new CronJobServiceApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Update project quota message
                Object result = apiInstance.cronjobUpdateProjectQuotaMessage(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CronJobServiceApi.cronjobUpdateProjectQuotaMessage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CronJobServiceApi();
$body = Object; // Object | 

try {
    $result = $api_instance->cronjobUpdateProjectQuotaMessage($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CronJobServiceApi->cronjobUpdateProjectQuotaMessage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::CronJobServiceApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::CronJobServiceApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->cronjobUpdateProjectQuotaMessage(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling CronJobServiceApi->cronjobUpdateProjectQuotaMessage: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.CronJobServiceApi()
body = Object # Object |  (optional)

try:
    # Update project quota message
    api_response = api_instance.cronjob_update_project_quota_message(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CronJobServiceApi->cronjobUpdateProjectQuotaMessage: %s\n" % e)
extern crate CronJobServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = CronJobServiceApi::Context::default();
    let result = client.cronjobUpdateProjectQuotaMessage(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


DNSCredentials

dnscredentialsAttachProject

Attach a DNS credential to a project


/api/v1/dnscredentials/attach-project

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials/attach-project" \
 -d '{
  "projectId" : 0,
  "dnsCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

        try {
            Object result = apiInstance.dnscredentialsAttachProject(attachDetachDnsCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsAttachProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = new AttachDetachDnsCredentialCommand(); // AttachDetachDnsCredentialCommand | 

try {
    final result = await api_instance.dnscredentialsAttachProject(attachDetachDnsCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsAttachProject: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

        try {
            Object result = apiInstance.dnscredentialsAttachProject(attachDetachDnsCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsAttachProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
AttachDetachDnsCredentialCommand *attachDetachDnsCredentialCommand = ; //  (optional)

// Attach a DNS credential to a project
[apiInstance dnscredentialsAttachProjectWith:attachDetachDnsCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'attachDetachDnsCredentialCommand':  // {AttachDetachDnsCredentialCommand} 
};

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

namespace Example
{
    public class dnscredentialsAttachProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var attachDetachDnsCredentialCommand = new AttachDetachDnsCredentialCommand(); // AttachDetachDnsCredentialCommand |  (optional) 

            try {
                // Attach a DNS credential to a project
                Object result = apiInstance.dnscredentialsAttachProject(attachDetachDnsCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsAttachProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

try {
    $result = $api_instance->dnscredentialsAttachProject($attachDetachDnsCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsAttachProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $attachDetachDnsCredentialCommand = WWW::OPenAPIClient::Object::AttachDetachDnsCredentialCommand->new(); # AttachDetachDnsCredentialCommand | 

eval {
    my $result = $api_instance->dnscredentialsAttachProject(attachDetachDnsCredentialCommand => $attachDetachDnsCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsAttachProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
attachDetachDnsCredentialCommand =  # AttachDetachDnsCredentialCommand |  (optional)

try:
    # Attach a DNS credential to a project
    api_response = api_instance.dnscredentials_attach_project(attachDetachDnsCredentialCommand=attachDetachDnsCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsAttachProject: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsAttachProject(attachDetachDnsCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
attachDetachDnsCredentialCommand

Responses


dnscredentialsCreate

Add DNS credential


/api/v1/dnscredentials

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials" \
 -d '{
  "accessKeyId" : "accessKeyId",
  "useLetsEncrypt" : true,
  "azureResourceGroup" : "azureResourceGroup",
  "tsigKeyName" : "tsigKeyName",
  "providerType" : "providerType",
  "tsigSecret" : "tsigSecret",
  "organizationId" : 0,
  "awsZoneType" : "awsZoneType",
  "gcpServiceAccountEmail" : "gcpServiceAccountEmail",
  "awsRoleArn" : "awsRoleArn",
  "pdnsApiUrl" : "pdnsApiUrl",
  "azureClientSecret" : "azureClientSecret",
  "gcpServiceAccountJson" : "gcpServiceAccountJson",
  "gcpProject" : "gcpProject",
  "domainFilter" : "domainFilter",
  "azureTenantId" : "azureTenantId",
  "pdnsApiKey" : "pdnsApiKey",
  "azureSubscriptionId" : "azureSubscriptionId",
  "secretAccessKey" : "secretAccessKey",
  "hostedZoneId" : "hostedZoneId",
  "azureClientId" : "azureClientId",
  "apiToken" : "apiToken",
  "nameServer" : "nameServer",
  "authVariant" : "authVariant",
  "name" : "name",
  "tsigAlgorithm" : "tsigAlgorithm",
  "region" : "region",
  "authMethod" : "authMethod",
  "pdnsServerId" : "pdnsServerId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialCreateCommand dnsCredentialCreateCommand = ; // DnsCredentialCreateCommand | 

        try {
            ApiResponse result = apiInstance.dnscredentialsCreate(dnsCredentialCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCredentialCreateCommand dnsCredentialCreateCommand = new DnsCredentialCreateCommand(); // DnsCredentialCreateCommand | 

try {
    final result = await api_instance.dnscredentialsCreate(dnsCredentialCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsCreate: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialCreateCommand dnsCredentialCreateCommand = ; // DnsCredentialCreateCommand | 

        try {
            ApiResponse result = apiInstance.dnscredentialsCreate(dnsCredentialCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
DnsCredentialCreateCommand *dnsCredentialCreateCommand = ; //  (optional)

// Add DNS credential
[apiInstance dnscredentialsCreateWith:dnsCredentialCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'dnsCredentialCreateCommand':  // {DnsCredentialCreateCommand} 
};

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

namespace Example
{
    public class dnscredentialsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var dnsCredentialCreateCommand = new DnsCredentialCreateCommand(); // DnsCredentialCreateCommand |  (optional) 

            try {
                // Add DNS credential
                ApiResponse result = apiInstance.dnscredentialsCreate(dnsCredentialCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$dnsCredentialCreateCommand = ; // DnsCredentialCreateCommand | 

try {
    $result = $api_instance->dnscredentialsCreate($dnsCredentialCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $dnsCredentialCreateCommand = WWW::OPenAPIClient::Object::DnsCredentialCreateCommand->new(); # DnsCredentialCreateCommand | 

eval {
    my $result = $api_instance->dnscredentialsCreate(dnsCredentialCreateCommand => $dnsCredentialCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
dnsCredentialCreateCommand =  # DnsCredentialCreateCommand |  (optional)

try:
    # Add DNS credential
    api_response = api_instance.dnscredentials_create(dnsCredentialCreateCommand=dnsCredentialCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsCreate: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let dnsCredentialCreateCommand = ; // DnsCredentialCreateCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsCreate(dnsCredentialCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCredentialCreateCommand

Responses


dnscredentialsDelete

Delete DNS credential


/api/v1/dnscredentials/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dnscredentials/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.dnscredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.dnscredentialsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsDelete: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.dnscredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete DNS credential
[apiInstance dnscredentialsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class dnscredentialsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete DNS credential
                Object result = apiInstance.dnscredentialsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->dnscredentialsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->dnscredentialsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
id = 56 # Integer |  (default to null)

try:
    # Delete DNS credential
    api_response = api_instance.dnscredentials_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsDelete: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


dnscredentialsDetachProject

Detach the DNS credential from a project


/api/v1/dnscredentials/detach-project

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials/detach-project" \
 -d '{
  "projectId" : 0,
  "dnsCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

        try {
            Object result = apiInstance.dnscredentialsDetachProject(attachDetachDnsCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDetachProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = new AttachDetachDnsCredentialCommand(); // AttachDetachDnsCredentialCommand | 

try {
    final result = await api_instance.dnscredentialsDetachProject(attachDetachDnsCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsDetachProject: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        AttachDetachDnsCredentialCommand attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

        try {
            Object result = apiInstance.dnscredentialsDetachProject(attachDetachDnsCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDetachProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
AttachDetachDnsCredentialCommand *attachDetachDnsCredentialCommand = ; //  (optional)

// Detach the DNS credential from a project
[apiInstance dnscredentialsDetachProjectWith:attachDetachDnsCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'attachDetachDnsCredentialCommand':  // {AttachDetachDnsCredentialCommand} 
};

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

namespace Example
{
    public class dnscredentialsDetachProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var attachDetachDnsCredentialCommand = new AttachDetachDnsCredentialCommand(); // AttachDetachDnsCredentialCommand |  (optional) 

            try {
                // Detach the DNS credential from a project
                Object result = apiInstance.dnscredentialsDetachProject(attachDetachDnsCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsDetachProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand | 

try {
    $result = $api_instance->dnscredentialsDetachProject($attachDetachDnsCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsDetachProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $attachDetachDnsCredentialCommand = WWW::OPenAPIClient::Object::AttachDetachDnsCredentialCommand->new(); # AttachDetachDnsCredentialCommand | 

eval {
    my $result = $api_instance->dnscredentialsDetachProject(attachDetachDnsCredentialCommand => $attachDetachDnsCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsDetachProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
attachDetachDnsCredentialCommand =  # AttachDetachDnsCredentialCommand |  (optional)

try:
    # Detach the DNS credential from a project
    api_response = api_instance.dnscredentials_detach_project(attachDetachDnsCredentialCommand=attachDetachDnsCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsDetachProject: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let attachDetachDnsCredentialCommand = ; // AttachDetachDnsCredentialCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsDetachProject(attachDetachDnsCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
attachDetachDnsCredentialCommand

Responses


dnscredentialsDropdown

Retrieve DNS credentials for organization dropdown

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/dnscredentials

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dnscredentials?OrganizationId=56&Search=search_example&IncludeLocked=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer organizationId = 56; // Integer | Filter by organization id; caller organization when null
        String search = search_example; // String | Free-text search over credential names
        Boolean includeLocked = true; // Boolean | Include locked credentials in the dropdown

        try {
            array[DnsCredentialDropdownDto] result = apiInstance.dnscredentialsDropdown(organizationId, search, includeLocked);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Filter by organization id; caller organization when null
final String search = new String(); // String | Free-text search over credential names
final Boolean includeLocked = new Boolean(); // Boolean | Include locked credentials in the dropdown

try {
    final result = await api_instance.dnscredentialsDropdown(organizationId, search, includeLocked);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsDropdown: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer organizationId = 56; // Integer | Filter by organization id; caller organization when null
        String search = search_example; // String | Free-text search over credential names
        Boolean includeLocked = true; // Boolean | Include locked credentials in the dropdown

        try {
            array[DnsCredentialDropdownDto] result = apiInstance.dnscredentialsDropdown(organizationId, search, includeLocked);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
Integer *organizationId = 56; // Filter by organization id; caller organization when null (optional) (default to null)
String *search = search_example; // Free-text search over credential names (optional) (default to null)
Boolean *includeLocked = true; // Include locked credentials in the dropdown (optional) (default to false)

// Retrieve DNS credentials for organization dropdown
[apiInstance dnscredentialsDropdownWith:organizationId
    search:search
    includeLocked:includeLocked
              completionHandler: ^(array[DnsCredentialDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'organizationId': 56, // {Integer} Filter by organization id; caller organization when null
  'search': search_example, // {String} Free-text search over credential names
  'includeLocked': true // {Boolean} Include locked credentials in the dropdown
};

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

namespace Example
{
    public class dnscredentialsDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var organizationId = 56;  // Integer | Filter by organization id; caller organization when null (optional)  (default to null)
            var search = search_example;  // String | Free-text search over credential names (optional)  (default to null)
            var includeLocked = true;  // Boolean | Include locked credentials in the dropdown (optional)  (default to false)

            try {
                // Retrieve DNS credentials for organization dropdown
                array[DnsCredentialDropdownDto] result = apiInstance.dnscredentialsDropdown(organizationId, search, includeLocked);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$organizationId = 56; // Integer | Filter by organization id; caller organization when null
$search = search_example; // String | Free-text search over credential names
$includeLocked = true; // Boolean | Include locked credentials in the dropdown

try {
    $result = $api_instance->dnscredentialsDropdown($organizationId, $search, $includeLocked);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $organizationId = 56; # Integer | Filter by organization id; caller organization when null
my $search = search_example; # String | Free-text search over credential names
my $includeLocked = true; # Boolean | Include locked credentials in the dropdown

eval {
    my $result = $api_instance->dnscredentialsDropdown(organizationId => $organizationId, search => $search, includeLocked => $includeLocked);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
organizationId = 56 # Integer | Filter by organization id; caller organization when null (optional) (default to null)
search = search_example # String | Free-text search over credential names (optional) (default to null)
includeLocked = true # Boolean | Include locked credentials in the dropdown (optional) (default to false)

try:
    # Retrieve DNS credentials for organization dropdown
    api_response = api_instance.dnscredentials_dropdown(organizationId=organizationId, search=search, includeLocked=includeLocked)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsDropdown: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String
    let includeLocked = true; // Boolean

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsDropdown(organizationId, search, includeLocked, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Filter by organization id; caller organization when null
Search
IncludeLocked
Boolean
Include locked credentials in the dropdown

Responses


dnscredentialsList

Retrieve all DNS credentials


/api/v1/dnscredentials/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dnscredentials/list?OrganizationId=56&DomainId=56&Search=search_example&SearchId=searchId_example&Id=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer organizationId = 56; // Integer | Filter by organization id; caller organization when null
        Integer domainId = 56; // Integer | Filter by domain id
        String search = search_example; // String | Free-text search over credential names
        String searchId = searchId_example; // String | Search by credential id token
        Integer id = 56; // Integer | Filter to a specific credential id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0

        try {
            DnsCredentialListResponse result = apiInstance.dnscredentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Filter by organization id; caller organization when null
final Integer domainId = new Integer(); // Integer | Filter by domain id
final String search = new String(); // String | Free-text search over credential names
final String searchId = new String(); // String | Search by credential id token
final Integer id = new Integer(); // Integer | Filter to a specific credential id
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0

try {
    final result = await api_instance.dnscredentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsList: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        Integer organizationId = 56; // Integer | Filter by organization id; caller organization when null
        Integer domainId = 56; // Integer | Filter by domain id
        String search = search_example; // String | Free-text search over credential names
        String searchId = searchId_example; // String | Search by credential id token
        Integer id = 56; // Integer | Filter to a specific credential id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0

        try {
            DnsCredentialListResponse result = apiInstance.dnscredentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
Integer *organizationId = 56; // Filter by organization id; caller organization when null (optional) (default to null)
Integer *domainId = 56; // Filter by domain id (optional) (default to null)
String *search = search_example; // Free-text search over credential names (optional) (default to null)
String *searchId = searchId_example; // Search by credential id token (optional) (default to null)
Integer *id = 56; // Filter to a specific credential id (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)

// Retrieve all DNS credentials
[apiInstance dnscredentialsListWith:organizationId
    domainId:domainId
    search:search
    searchId:searchId
    id:id
    sortBy:sortBy
    sortDirection:sortDirection
    limit:limit
    offset:offset
              completionHandler: ^(DnsCredentialListResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'organizationId': 56, // {Integer} Filter by organization id; caller organization when null
  'domainId': 56, // {Integer} Filter by domain id
  'search': search_example, // {String} Free-text search over credential names
  'searchId': searchId_example, // {String} Search by credential id token
  'id': 56, // {Integer} Filter to a specific credential id
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'limit': 56, // {Integer} Page size; defaults to 50
  'offset': 56 // {Integer} Row offset for pagination; defaults to 0
};

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

namespace Example
{
    public class dnscredentialsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var organizationId = 56;  // Integer | Filter by organization id; caller organization when null (optional)  (default to null)
            var domainId = 56;  // Integer | Filter by domain id (optional)  (default to null)
            var search = search_example;  // String | Free-text search over credential names (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by credential id token (optional)  (default to null)
            var id = 56;  // Integer | Filter to a specific credential id (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)

            try {
                // Retrieve all DNS credentials
                DnsCredentialListResponse result = apiInstance.dnscredentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$organizationId = 56; // Integer | Filter by organization id; caller organization when null
$domainId = 56; // Integer | Filter by domain id
$search = search_example; // String | Free-text search over credential names
$searchId = searchId_example; // String | Search by credential id token
$id = 56; // Integer | Filter to a specific credential id
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$limit = 56; // Integer | Page size; defaults to 50
$offset = 56; // Integer | Row offset for pagination; defaults to 0

try {
    $result = $api_instance->dnscredentialsList($organizationId, $domainId, $search, $searchId, $id, $sortBy, $sortDirection, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $organizationId = 56; # Integer | Filter by organization id; caller organization when null
my $domainId = 56; # Integer | Filter by domain id
my $search = search_example; # String | Free-text search over credential names
my $searchId = searchId_example; # String | Search by credential id token
my $id = 56; # Integer | Filter to a specific credential id
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $limit = 56; # Integer | Page size; defaults to 50
my $offset = 56; # Integer | Row offset for pagination; defaults to 0

eval {
    my $result = $api_instance->dnscredentialsList(organizationId => $organizationId, domainId => $domainId, search => $search, searchId => $searchId, id => $id, sortBy => $sortBy, sortDirection => $sortDirection, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
organizationId = 56 # Integer | Filter by organization id; caller organization when null (optional) (default to null)
domainId = 56 # Integer | Filter by domain id (optional) (default to null)
search = search_example # String | Free-text search over credential names (optional) (default to null)
searchId = searchId_example # String | Search by credential id token (optional) (default to null)
id = 56 # Integer | Filter to a specific credential id (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)

try:
    # Retrieve all DNS credentials
    api_response = api_instance.dnscredentials_list(organizationId=organizationId, domainId=domainId, search=search, searchId=searchId, id=id, sortBy=sortBy, sortDirection=sortDirection, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsList: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Filter by organization id; caller organization when null
DomainId
Integer (int32)
Filter by domain id
Search
SearchId
String
Search by credential id token
Id
Integer (int32)
Filter to a specific credential id
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Limit
Integer (int32)
Page size; defaults to 50
Offset
Integer (int32)
Row offset for pagination; defaults to 0

Responses


dnscredentialsLockManagement

Lock/unlock DNS credential


/api/v1/dnscredentials/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialLockCommand dnsCredentialLockCommand = ; // DnsCredentialLockCommand | 

        try {
            Object result = apiInstance.dnscredentialsLockManagement(dnsCredentialLockCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsLockManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCredentialLockCommand dnsCredentialLockCommand = new DnsCredentialLockCommand(); // DnsCredentialLockCommand | 

try {
    final result = await api_instance.dnscredentialsLockManagement(dnsCredentialLockCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsLockManagement: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialLockCommand dnsCredentialLockCommand = ; // DnsCredentialLockCommand | 

        try {
            Object result = apiInstance.dnscredentialsLockManagement(dnsCredentialLockCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsLockManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
DnsCredentialLockCommand *dnsCredentialLockCommand = ; //  (optional)

// Lock/unlock DNS credential
[apiInstance dnscredentialsLockManagementWith:dnsCredentialLockCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'dnsCredentialLockCommand':  // {DnsCredentialLockCommand} 
};

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

namespace Example
{
    public class dnscredentialsLockManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var dnsCredentialLockCommand = new DnsCredentialLockCommand(); // DnsCredentialLockCommand |  (optional) 

            try {
                // Lock/unlock DNS credential
                Object result = apiInstance.dnscredentialsLockManagement(dnsCredentialLockCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsLockManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$dnsCredentialLockCommand = ; // DnsCredentialLockCommand | 

try {
    $result = $api_instance->dnscredentialsLockManagement($dnsCredentialLockCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsLockManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $dnsCredentialLockCommand = WWW::OPenAPIClient::Object::DnsCredentialLockCommand->new(); # DnsCredentialLockCommand | 

eval {
    my $result = $api_instance->dnscredentialsLockManagement(dnsCredentialLockCommand => $dnsCredentialLockCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsLockManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
dnsCredentialLockCommand =  # DnsCredentialLockCommand |  (optional)

try:
    # Lock/unlock DNS credential
    api_response = api_instance.dnscredentials_lock_management(dnsCredentialLockCommand=dnsCredentialLockCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsLockManagement: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let dnsCredentialLockCommand = ; // DnsCredentialLockCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsLockManagement(dnsCredentialLockCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCredentialLockCommand

Responses


dnscredentialsMakeDefault

Make default DNS credential


/api/v1/dnscredentials/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialMakeDefaultCommand dnsCredentialMakeDefaultCommand = ; // DnsCredentialMakeDefaultCommand | 

        try {
            Object result = apiInstance.dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCredentialMakeDefaultCommand dnsCredentialMakeDefaultCommand = new DnsCredentialMakeDefaultCommand(); // DnsCredentialMakeDefaultCommand | 

try {
    final result = await api_instance.dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsMakeDefault: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialMakeDefaultCommand dnsCredentialMakeDefaultCommand = ; // DnsCredentialMakeDefaultCommand | 

        try {
            Object result = apiInstance.dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
DnsCredentialMakeDefaultCommand *dnsCredentialMakeDefaultCommand = ; //  (optional)

// Make default DNS credential
[apiInstance dnscredentialsMakeDefaultWith:dnsCredentialMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'dnsCredentialMakeDefaultCommand':  // {DnsCredentialMakeDefaultCommand} 
};

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

namespace Example
{
    public class dnscredentialsMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var dnsCredentialMakeDefaultCommand = new DnsCredentialMakeDefaultCommand(); // DnsCredentialMakeDefaultCommand |  (optional) 

            try {
                // Make default DNS credential
                Object result = apiInstance.dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$dnsCredentialMakeDefaultCommand = ; // DnsCredentialMakeDefaultCommand | 

try {
    $result = $api_instance->dnscredentialsMakeDefault($dnsCredentialMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $dnsCredentialMakeDefaultCommand = WWW::OPenAPIClient::Object::DnsCredentialMakeDefaultCommand->new(); # DnsCredentialMakeDefaultCommand | 

eval {
    my $result = $api_instance->dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand => $dnsCredentialMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
dnsCredentialMakeDefaultCommand =  # DnsCredentialMakeDefaultCommand |  (optional)

try:
    # Make default DNS credential
    api_response = api_instance.dnscredentials_make_default(dnsCredentialMakeDefaultCommand=dnsCredentialMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsMakeDefault: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let dnsCredentialMakeDefaultCommand = ; // DnsCredentialMakeDefaultCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsMakeDefault(dnsCredentialMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCredentialMakeDefaultCommand

Responses


dnscredentialsUpdate

Update DNS credential


/api/v1/dnscredentials

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials" \
 -d '{
  "useLetsEncrypt" : true,
  "domainFilter" : "domainFilter",
  "providerType" : "providerType",
  "pdnsApiKey" : "pdnsApiKey",
  "hostedZoneId" : "hostedZoneId",
  "awsZoneType" : "awsZoneType",
  "authVariant" : "authVariant",
  "name" : "name",
  "id" : 0,
  "authMethod" : "authMethod",
  "gcpServiceAccountEmail" : "gcpServiceAccountEmail",
  "region" : "region",
  "awsRoleArn" : "awsRoleArn",
  "pdnsApiUrl" : "pdnsApiUrl",
  "pdnsServerId" : "pdnsServerId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialUpdateCommand dnsCredentialUpdateCommand = ; // DnsCredentialUpdateCommand | 

        try {
            Object result = apiInstance.dnscredentialsUpdate(dnsCredentialUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCredentialUpdateCommand dnsCredentialUpdateCommand = new DnsCredentialUpdateCommand(); // DnsCredentialUpdateCommand | 

try {
    final result = await api_instance.dnscredentialsUpdate(dnsCredentialUpdateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsUpdate: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        DnsCredentialUpdateCommand dnsCredentialUpdateCommand = ; // DnsCredentialUpdateCommand | 

        try {
            Object result = apiInstance.dnscredentialsUpdate(dnsCredentialUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
DnsCredentialUpdateCommand *dnsCredentialUpdateCommand = ; //  (optional)

// Update DNS credential
[apiInstance dnscredentialsUpdateWith:dnsCredentialUpdateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'dnsCredentialUpdateCommand':  // {DnsCredentialUpdateCommand} 
};

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

namespace Example
{
    public class dnscredentialsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var dnsCredentialUpdateCommand = new DnsCredentialUpdateCommand(); // DnsCredentialUpdateCommand |  (optional) 

            try {
                // Update DNS credential
                Object result = apiInstance.dnscredentialsUpdate(dnsCredentialUpdateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$dnsCredentialUpdateCommand = ; // DnsCredentialUpdateCommand | 

try {
    $result = $api_instance->dnscredentialsUpdate($dnsCredentialUpdateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $dnsCredentialUpdateCommand = WWW::OPenAPIClient::Object::DnsCredentialUpdateCommand->new(); # DnsCredentialUpdateCommand | 

eval {
    my $result = $api_instance->dnscredentialsUpdate(dnsCredentialUpdateCommand => $dnsCredentialUpdateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
dnsCredentialUpdateCommand =  # DnsCredentialUpdateCommand |  (optional)

try:
    # Update DNS credential
    api_response = api_instance.dnscredentials_update(dnsCredentialUpdateCommand=dnsCredentialUpdateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsUpdate: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let dnsCredentialUpdateCommand = ; // DnsCredentialUpdateCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsUpdate(dnsCredentialUpdateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCredentialUpdateCommand

Responses


dnscredentialsValidate

Validate DNS provider credentials


/api/v1/dnscredentials/validate

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnscredentials/validate" \
 -d '{
  "accessKeyId" : "accessKeyId",
  "azureResourceGroup" : "azureResourceGroup",
  "tsigKeyName" : "tsigKeyName",
  "tsigSecret" : "tsigSecret",
  "dnsCredentialId" : 0,
  "awsZoneType" : "awsZoneType",
  "zoneId" : "zoneId",
  "dnsProvider" : "dnsProvider",
  "gcpServiceAccountEmail" : "gcpServiceAccountEmail",
  "certIssuerType" : "certIssuerType",
  "certificateProfileId" : 6,
  "awsRoleArn" : "awsRoleArn",
  "pdnsApiUrl" : "pdnsApiUrl",
  "azureClientSecret" : "azureClientSecret",
  "gcpServiceAccountJson" : "gcpServiceAccountJson",
  "gcpProject" : "gcpProject",
  "azureTenantId" : "azureTenantId",
  "pdnsApiKey" : "pdnsApiKey",
  "azureSubscriptionId" : "azureSubscriptionId",
  "secretAccessKey" : "secretAccessKey",
  "hostedZoneId" : "hostedZoneId",
  "azureClientId" : "azureClientId",
  "apiToken" : "apiToken",
  "domain" : "domain",
  "nameServer" : "nameServer",
  "authVariant" : "authVariant",
  "tsigAlgorithm" : "tsigAlgorithm",
  "region" : "region",
  "authMethod" : "authMethod",
  "pdnsServerId" : "pdnsServerId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DNSCredentialsApi;

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

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        ValidateDnsCertCommand validateDnsCertCommand = ; // ValidateDnsCertCommand | 

        try {
            Object result = apiInstance.dnscredentialsValidate(validateDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsValidate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ValidateDnsCertCommand validateDnsCertCommand = new ValidateDnsCertCommand(); // ValidateDnsCertCommand | 

try {
    final result = await api_instance.dnscredentialsValidate(validateDnsCertCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnscredentialsValidate: $e\n');
}

import org.openapitools.client.api.DNSCredentialsApi;

public class DNSCredentialsApiExample {
    public static void main(String[] args) {
        DNSCredentialsApi apiInstance = new DNSCredentialsApi();
        ValidateDnsCertCommand validateDnsCertCommand = ; // ValidateDnsCertCommand | 

        try {
            Object result = apiInstance.dnscredentialsValidate(validateDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DNSCredentialsApi#dnscredentialsValidate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DNSCredentialsApi *apiInstance = [[DNSCredentialsApi alloc] init];
ValidateDnsCertCommand *validateDnsCertCommand = ; //  (optional)

// Validate DNS provider credentials
[apiInstance dnscredentialsValidateWith:validateDnsCertCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DNSCredentialsApi()
var opts = {
  'validateDnsCertCommand':  // {ValidateDnsCertCommand} 
};

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

namespace Example
{
    public class dnscredentialsValidateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DNSCredentialsApi();
            var validateDnsCertCommand = new ValidateDnsCertCommand(); // ValidateDnsCertCommand |  (optional) 

            try {
                // Validate DNS provider credentials
                Object result = apiInstance.dnscredentialsValidate(validateDnsCertCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DNSCredentialsApi.dnscredentialsValidate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DNSCredentialsApi();
$validateDnsCertCommand = ; // ValidateDnsCertCommand | 

try {
    $result = $api_instance->dnscredentialsValidate($validateDnsCertCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DNSCredentialsApi->dnscredentialsValidate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DNSCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DNSCredentialsApi->new();
my $validateDnsCertCommand = WWW::OPenAPIClient::Object::ValidateDnsCertCommand->new(); # ValidateDnsCertCommand | 

eval {
    my $result = $api_instance->dnscredentialsValidate(validateDnsCertCommand => $validateDnsCertCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DNSCredentialsApi->dnscredentialsValidate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DNSCredentialsApi()
validateDnsCertCommand =  # ValidateDnsCertCommand |  (optional)

try:
    # Validate DNS provider credentials
    api_response = api_instance.dnscredentials_validate(validateDnsCertCommand=validateDnsCertCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DNSCredentialsApi->dnscredentialsValidate: %s\n" % e)
extern crate DNSCredentialsApi;

pub fn main() {
    let validateDnsCertCommand = ; // ValidateDnsCertCommand

    let mut context = DNSCredentialsApi::Context::default();
    let result = client.dnscredentialsValidate(validateDnsCertCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
validateDnsCertCommand

Responses


DnsCert

dnsCertAssignCertificateProfile

Assign a signing certificate profile to a CA-issuer project


/api/v1/dns-cert/assign-certificate-profile

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/assign-certificate-profile" \
 -d '{
  "projectId" : 0,
  "certificateProfileId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        AssignCertificateProfileCommand assignCertificateProfileCommand = ; // AssignCertificateProfileCommand | 

        try {
            Object result = apiInstance.dnsCertAssignCertificateProfile(assignCertificateProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertAssignCertificateProfile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AssignCertificateProfileCommand assignCertificateProfileCommand = new AssignCertificateProfileCommand(); // AssignCertificateProfileCommand | 

try {
    final result = await api_instance.dnsCertAssignCertificateProfile(assignCertificateProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertAssignCertificateProfile: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        AssignCertificateProfileCommand assignCertificateProfileCommand = ; // AssignCertificateProfileCommand | 

        try {
            Object result = apiInstance.dnsCertAssignCertificateProfile(assignCertificateProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertAssignCertificateProfile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
AssignCertificateProfileCommand *assignCertificateProfileCommand = ; //  (optional)

// Assign a signing certificate profile to a CA-issuer project
[apiInstance dnsCertAssignCertificateProfileWith:assignCertificateProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'assignCertificateProfileCommand':  // {AssignCertificateProfileCommand} 
};

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

namespace Example
{
    public class dnsCertAssignCertificateProfileExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var assignCertificateProfileCommand = new AssignCertificateProfileCommand(); // AssignCertificateProfileCommand |  (optional) 

            try {
                // Assign a signing certificate profile to a CA-issuer project
                Object result = apiInstance.dnsCertAssignCertificateProfile(assignCertificateProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertAssignCertificateProfile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$assignCertificateProfileCommand = ; // AssignCertificateProfileCommand | 

try {
    $result = $api_instance->dnsCertAssignCertificateProfile($assignCertificateProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertAssignCertificateProfile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $assignCertificateProfileCommand = WWW::OPenAPIClient::Object::AssignCertificateProfileCommand->new(); # AssignCertificateProfileCommand | 

eval {
    my $result = $api_instance->dnsCertAssignCertificateProfile(assignCertificateProfileCommand => $assignCertificateProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertAssignCertificateProfile: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
assignCertificateProfileCommand =  # AssignCertificateProfileCommand |  (optional)

try:
    # Assign a signing certificate profile to a CA-issuer project
    api_response = api_instance.dns_cert_assign_certificate_profile(assignCertificateProfileCommand=assignCertificateProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertAssignCertificateProfile: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let assignCertificateProfileCommand = ; // AssignCertificateProfileCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertAssignCertificateProfile(assignCertificateProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
assignCertificateProfileCommand

Responses


dnsCertCertManagerDisable

Disable cert-manager for a project


/api/v1/dns-cert/cert-manager/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/cert-manager/disable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        DisableCertManagerCommand disableCertManagerCommand = ; // DisableCertManagerCommand | 

        try {
            Object result = apiInstance.dnsCertCertManagerDisable(disableCertManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertCertManagerDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableCertManagerCommand disableCertManagerCommand = new DisableCertManagerCommand(); // DisableCertManagerCommand | 

try {
    final result = await api_instance.dnsCertCertManagerDisable(disableCertManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertCertManagerDisable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        DisableCertManagerCommand disableCertManagerCommand = ; // DisableCertManagerCommand | 

        try {
            Object result = apiInstance.dnsCertCertManagerDisable(disableCertManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertCertManagerDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
DisableCertManagerCommand *disableCertManagerCommand = ; //  (optional)

// Disable cert-manager for a project
[apiInstance dnsCertCertManagerDisableWith:disableCertManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'disableCertManagerCommand':  // {DisableCertManagerCommand} 
};

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

namespace Example
{
    public class dnsCertCertManagerDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var disableCertManagerCommand = new DisableCertManagerCommand(); // DisableCertManagerCommand |  (optional) 

            try {
                // Disable cert-manager for a project
                Object result = apiInstance.dnsCertCertManagerDisable(disableCertManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertCertManagerDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$disableCertManagerCommand = ; // DisableCertManagerCommand | 

try {
    $result = $api_instance->dnsCertCertManagerDisable($disableCertManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertCertManagerDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $disableCertManagerCommand = WWW::OPenAPIClient::Object::DisableCertManagerCommand->new(); # DisableCertManagerCommand | 

eval {
    my $result = $api_instance->dnsCertCertManagerDisable(disableCertManagerCommand => $disableCertManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertCertManagerDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
disableCertManagerCommand =  # DisableCertManagerCommand |  (optional)

try:
    # Disable cert-manager for a project
    api_response = api_instance.dns_cert_cert_manager_disable(disableCertManagerCommand=disableCertManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertCertManagerDisable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let disableCertManagerCommand = ; // DisableCertManagerCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertCertManagerDisable(disableCertManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableCertManagerCommand

Responses


dnsCertCertManagerEnable

Enable cert-manager for a project


/api/v1/dns-cert/cert-manager/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/cert-manager/enable" \
 -d '{
  "acmeEmail" : "acmeEmail",
  "domain" : "domain",
  "projectId" : 0,
  "certIssuerType" : "certIssuerType",
  "certificateProfileId" : 1,
  "dnsCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        EnableCertManagerCommand enableCertManagerCommand = ; // EnableCertManagerCommand | 

        try {
            Object result = apiInstance.dnsCertCertManagerEnable(enableCertManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertCertManagerEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableCertManagerCommand enableCertManagerCommand = new EnableCertManagerCommand(); // EnableCertManagerCommand | 

try {
    final result = await api_instance.dnsCertCertManagerEnable(enableCertManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertCertManagerEnable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        EnableCertManagerCommand enableCertManagerCommand = ; // EnableCertManagerCommand | 

        try {
            Object result = apiInstance.dnsCertCertManagerEnable(enableCertManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertCertManagerEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
EnableCertManagerCommand *enableCertManagerCommand = ; //  (optional)

// Enable cert-manager for a project
[apiInstance dnsCertCertManagerEnableWith:enableCertManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'enableCertManagerCommand':  // {EnableCertManagerCommand} 
};

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

namespace Example
{
    public class dnsCertCertManagerEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var enableCertManagerCommand = new EnableCertManagerCommand(); // EnableCertManagerCommand |  (optional) 

            try {
                // Enable cert-manager for a project
                Object result = apiInstance.dnsCertCertManagerEnable(enableCertManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertCertManagerEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$enableCertManagerCommand = ; // EnableCertManagerCommand | 

try {
    $result = $api_instance->dnsCertCertManagerEnable($enableCertManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertCertManagerEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $enableCertManagerCommand = WWW::OPenAPIClient::Object::EnableCertManagerCommand->new(); # EnableCertManagerCommand | 

eval {
    my $result = $api_instance->dnsCertCertManagerEnable(enableCertManagerCommand => $enableCertManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertCertManagerEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
enableCertManagerCommand =  # EnableCertManagerCommand |  (optional)

try:
    # Enable cert-manager for a project
    api_response = api_instance.dns_cert_cert_manager_enable(enableCertManagerCommand=enableCertManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertCertManagerEnable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let enableCertManagerCommand = ; // EnableCertManagerCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertCertManagerEnable(enableCertManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableCertManagerCommand

Responses


dnsCertDisable

Disable DNS/Cert automation


/api/v1/dns-cert/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/disable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        DisableDnsCertCommand disableDnsCertCommand = ; // DisableDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertDisable(disableDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableDnsCertCommand disableDnsCertCommand = new DisableDnsCertCommand(); // DisableDnsCertCommand | 

try {
    final result = await api_instance.dnsCertDisable(disableDnsCertCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertDisable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        DisableDnsCertCommand disableDnsCertCommand = ; // DisableDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertDisable(disableDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
DisableDnsCertCommand *disableDnsCertCommand = ; //  (optional)

// Disable DNS/Cert automation
[apiInstance dnsCertDisableWith:disableDnsCertCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'disableDnsCertCommand':  // {DisableDnsCertCommand} 
};

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

namespace Example
{
    public class dnsCertDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var disableDnsCertCommand = new DisableDnsCertCommand(); // DisableDnsCertCommand |  (optional) 

            try {
                // Disable DNS/Cert automation
                Object result = apiInstance.dnsCertDisable(disableDnsCertCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$disableDnsCertCommand = ; // DisableDnsCertCommand | 

try {
    $result = $api_instance->dnsCertDisable($disableDnsCertCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $disableDnsCertCommand = WWW::OPenAPIClient::Object::DisableDnsCertCommand->new(); # DisableDnsCertCommand | 

eval {
    my $result = $api_instance->dnsCertDisable(disableDnsCertCommand => $disableDnsCertCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
disableDnsCertCommand =  # DisableDnsCertCommand |  (optional)

try:
    # Disable DNS/Cert automation
    api_response = api_instance.dns_cert_disable(disableDnsCertCommand=disableDnsCertCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertDisable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let disableDnsCertCommand = ; // DisableDnsCertCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertDisable(disableDnsCertCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableDnsCertCommand

Responses


dnsCertEnable

Enable DNS/Cert automation


/api/v1/dns-cert/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/enable" \
 -d '{
  "acmeEmail" : "acmeEmail",
  "enableTrustManager" : false,
  "internalCaNoDnsStage" : false,
  "domain" : "domain",
  "stageIntentOnly" : false,
  "projectId" : 0,
  "certIssuerType" : "certIssuerType",
  "certificateProfileId" : 1,
  "dnsCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        EnableDnsCertCommand enableDnsCertCommand = ; // EnableDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertEnable(enableDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableDnsCertCommand enableDnsCertCommand = new EnableDnsCertCommand(); // EnableDnsCertCommand | 

try {
    final result = await api_instance.dnsCertEnable(enableDnsCertCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertEnable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        EnableDnsCertCommand enableDnsCertCommand = ; // EnableDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertEnable(enableDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
EnableDnsCertCommand *enableDnsCertCommand = ; //  (optional)

// Enable DNS/Cert automation
[apiInstance dnsCertEnableWith:enableDnsCertCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'enableDnsCertCommand':  // {EnableDnsCertCommand} 
};

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

namespace Example
{
    public class dnsCertEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var enableDnsCertCommand = new EnableDnsCertCommand(); // EnableDnsCertCommand |  (optional) 

            try {
                // Enable DNS/Cert automation
                Object result = apiInstance.dnsCertEnable(enableDnsCertCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$enableDnsCertCommand = ; // EnableDnsCertCommand | 

try {
    $result = $api_instance->dnsCertEnable($enableDnsCertCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $enableDnsCertCommand = WWW::OPenAPIClient::Object::EnableDnsCertCommand->new(); # EnableDnsCertCommand | 

eval {
    my $result = $api_instance->dnsCertEnable(enableDnsCertCommand => $enableDnsCertCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
enableDnsCertCommand =  # EnableDnsCertCommand |  (optional)

try:
    # Enable DNS/Cert automation
    api_response = api_instance.dns_cert_enable(enableDnsCertCommand=enableDnsCertCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertEnable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let enableDnsCertCommand = ; // EnableDnsCertCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertEnable(enableDnsCertCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableDnsCertCommand

Responses


dnsCertExternalDnsDisable

Disable external-dns for a project


/api/v1/dns-cert/external-dns/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/external-dns/disable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        DisableExternalDnsCommand disableExternalDnsCommand = ; // DisableExternalDnsCommand | 

        try {
            Object result = apiInstance.dnsCertExternalDnsDisable(disableExternalDnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertExternalDnsDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableExternalDnsCommand disableExternalDnsCommand = new DisableExternalDnsCommand(); // DisableExternalDnsCommand | 

try {
    final result = await api_instance.dnsCertExternalDnsDisable(disableExternalDnsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertExternalDnsDisable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        DisableExternalDnsCommand disableExternalDnsCommand = ; // DisableExternalDnsCommand | 

        try {
            Object result = apiInstance.dnsCertExternalDnsDisable(disableExternalDnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertExternalDnsDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
DisableExternalDnsCommand *disableExternalDnsCommand = ; //  (optional)

// Disable external-dns for a project
[apiInstance dnsCertExternalDnsDisableWith:disableExternalDnsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'disableExternalDnsCommand':  // {DisableExternalDnsCommand} 
};

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

namespace Example
{
    public class dnsCertExternalDnsDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var disableExternalDnsCommand = new DisableExternalDnsCommand(); // DisableExternalDnsCommand |  (optional) 

            try {
                // Disable external-dns for a project
                Object result = apiInstance.dnsCertExternalDnsDisable(disableExternalDnsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertExternalDnsDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$disableExternalDnsCommand = ; // DisableExternalDnsCommand | 

try {
    $result = $api_instance->dnsCertExternalDnsDisable($disableExternalDnsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertExternalDnsDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $disableExternalDnsCommand = WWW::OPenAPIClient::Object::DisableExternalDnsCommand->new(); # DisableExternalDnsCommand | 

eval {
    my $result = $api_instance->dnsCertExternalDnsDisable(disableExternalDnsCommand => $disableExternalDnsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertExternalDnsDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
disableExternalDnsCommand =  # DisableExternalDnsCommand |  (optional)

try:
    # Disable external-dns for a project
    api_response = api_instance.dns_cert_external_dns_disable(disableExternalDnsCommand=disableExternalDnsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertExternalDnsDisable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let disableExternalDnsCommand = ; // DisableExternalDnsCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertExternalDnsDisable(disableExternalDnsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableExternalDnsCommand

Responses


dnsCertExternalDnsEnable

Enable external-dns for a project


/api/v1/dns-cert/external-dns/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/external-dns/enable" \
 -d '{
  "domain" : "domain",
  "projectId" : 0,
  "dnsCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        EnableExternalDnsCommand enableExternalDnsCommand = ; // EnableExternalDnsCommand | 

        try {
            Object result = apiInstance.dnsCertExternalDnsEnable(enableExternalDnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertExternalDnsEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableExternalDnsCommand enableExternalDnsCommand = new EnableExternalDnsCommand(); // EnableExternalDnsCommand | 

try {
    final result = await api_instance.dnsCertExternalDnsEnable(enableExternalDnsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertExternalDnsEnable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        EnableExternalDnsCommand enableExternalDnsCommand = ; // EnableExternalDnsCommand | 

        try {
            Object result = apiInstance.dnsCertExternalDnsEnable(enableExternalDnsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertExternalDnsEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
EnableExternalDnsCommand *enableExternalDnsCommand = ; //  (optional)

// Enable external-dns for a project
[apiInstance dnsCertExternalDnsEnableWith:enableExternalDnsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'enableExternalDnsCommand':  // {EnableExternalDnsCommand} 
};

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

namespace Example
{
    public class dnsCertExternalDnsEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var enableExternalDnsCommand = new EnableExternalDnsCommand(); // EnableExternalDnsCommand |  (optional) 

            try {
                // Enable external-dns for a project
                Object result = apiInstance.dnsCertExternalDnsEnable(enableExternalDnsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertExternalDnsEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$enableExternalDnsCommand = ; // EnableExternalDnsCommand | 

try {
    $result = $api_instance->dnsCertExternalDnsEnable($enableExternalDnsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertExternalDnsEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $enableExternalDnsCommand = WWW::OPenAPIClient::Object::EnableExternalDnsCommand->new(); # EnableExternalDnsCommand | 

eval {
    my $result = $api_instance->dnsCertExternalDnsEnable(enableExternalDnsCommand => $enableExternalDnsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertExternalDnsEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
enableExternalDnsCommand =  # EnableExternalDnsCommand |  (optional)

try:
    # Enable external-dns for a project
    api_response = api_instance.dns_cert_external_dns_enable(enableExternalDnsCommand=enableExternalDnsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertExternalDnsEnable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let enableExternalDnsCommand = ; // EnableExternalDnsCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertExternalDnsEnable(enableExternalDnsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableExternalDnsCommand

Responses


dnsCertStatus

Get DNS/Cert status for project


/api/v1/dns-cert/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dns-cert/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        Integer projectId = 56; // Integer | 

        try {
            GetDnsCertStatusResponse result = apiInstance.dnsCertStatus(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.dnsCertStatus(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertStatus: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        Integer projectId = 56; // Integer | 

        try {
            GetDnsCertStatusResponse result = apiInstance.dnsCertStatus(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Get DNS/Cert status for project
[apiInstance dnsCertStatusWith:projectId
              completionHandler: ^(GetDnsCertStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var projectId = 56; // {Integer} 

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

namespace Example
{
    public class dnsCertStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Get DNS/Cert status for project
                GetDnsCertStatusResponse result = apiInstance.dnsCertStatus(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->dnsCertStatus($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->dnsCertStatus(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
projectId = 56 # Integer |  (default to null)

try:
    # Get DNS/Cert status for project
    api_response = api_instance.dns_cert_status(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertStatus: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertStatus(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


dnsCertSync

Sync DNS/Cert to cluster


/api/v1/dns-cert/sync

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/sync" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        DnsCertSyncCommand dnsCertSyncCommand = ; // DnsCertSyncCommand | 

        try {
            Object result = apiInstance.dnsCertSync(dnsCertSyncCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertSync");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCertSyncCommand dnsCertSyncCommand = new DnsCertSyncCommand(); // DnsCertSyncCommand | 

try {
    final result = await api_instance.dnsCertSync(dnsCertSyncCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertSync: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        DnsCertSyncCommand dnsCertSyncCommand = ; // DnsCertSyncCommand | 

        try {
            Object result = apiInstance.dnsCertSync(dnsCertSyncCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertSync");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
DnsCertSyncCommand *dnsCertSyncCommand = ; //  (optional)

// Sync DNS/Cert to cluster
[apiInstance dnsCertSyncWith:dnsCertSyncCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'dnsCertSyncCommand':  // {DnsCertSyncCommand} 
};

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

namespace Example
{
    public class dnsCertSyncExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var dnsCertSyncCommand = new DnsCertSyncCommand(); // DnsCertSyncCommand |  (optional) 

            try {
                // Sync DNS/Cert to cluster
                Object result = apiInstance.dnsCertSync(dnsCertSyncCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertSync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$dnsCertSyncCommand = ; // DnsCertSyncCommand | 

try {
    $result = $api_instance->dnsCertSync($dnsCertSyncCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertSync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $dnsCertSyncCommand = WWW::OPenAPIClient::Object::DnsCertSyncCommand->new(); # DnsCertSyncCommand | 

eval {
    my $result = $api_instance->dnsCertSync(dnsCertSyncCommand => $dnsCertSyncCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertSync: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
dnsCertSyncCommand =  # DnsCertSyncCommand |  (optional)

try:
    # Sync DNS/Cert to cluster
    api_response = api_instance.dns_cert_sync(dnsCertSyncCommand=dnsCertSyncCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertSync: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let dnsCertSyncCommand = ; // DnsCertSyncCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertSync(dnsCertSyncCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCertSyncCommand

Responses


dnsCertTrustManagerDisable

Disable trust-manager for a project


/api/v1/dns-cert/trust-manager/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/trust-manager/disable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        DisableTrustManagerCommand disableTrustManagerCommand = ; // DisableTrustManagerCommand | 

        try {
            Object result = apiInstance.dnsCertTrustManagerDisable(disableTrustManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertTrustManagerDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableTrustManagerCommand disableTrustManagerCommand = new DisableTrustManagerCommand(); // DisableTrustManagerCommand | 

try {
    final result = await api_instance.dnsCertTrustManagerDisable(disableTrustManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertTrustManagerDisable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        DisableTrustManagerCommand disableTrustManagerCommand = ; // DisableTrustManagerCommand | 

        try {
            Object result = apiInstance.dnsCertTrustManagerDisable(disableTrustManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertTrustManagerDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
DisableTrustManagerCommand *disableTrustManagerCommand = ; //  (optional)

// Disable trust-manager for a project
[apiInstance dnsCertTrustManagerDisableWith:disableTrustManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'disableTrustManagerCommand':  // {DisableTrustManagerCommand} 
};

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

namespace Example
{
    public class dnsCertTrustManagerDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var disableTrustManagerCommand = new DisableTrustManagerCommand(); // DisableTrustManagerCommand |  (optional) 

            try {
                // Disable trust-manager for a project
                Object result = apiInstance.dnsCertTrustManagerDisable(disableTrustManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertTrustManagerDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$disableTrustManagerCommand = ; // DisableTrustManagerCommand | 

try {
    $result = $api_instance->dnsCertTrustManagerDisable($disableTrustManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertTrustManagerDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $disableTrustManagerCommand = WWW::OPenAPIClient::Object::DisableTrustManagerCommand->new(); # DisableTrustManagerCommand | 

eval {
    my $result = $api_instance->dnsCertTrustManagerDisable(disableTrustManagerCommand => $disableTrustManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertTrustManagerDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
disableTrustManagerCommand =  # DisableTrustManagerCommand |  (optional)

try:
    # Disable trust-manager for a project
    api_response = api_instance.dns_cert_trust_manager_disable(disableTrustManagerCommand=disableTrustManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertTrustManagerDisable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let disableTrustManagerCommand = ; // DisableTrustManagerCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertTrustManagerDisable(disableTrustManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableTrustManagerCommand

Responses


dnsCertTrustManagerEnable

Enable trust-manager for a project


/api/v1/dns-cert/trust-manager/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/trust-manager/enable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        EnableTrustManagerCommand enableTrustManagerCommand = ; // EnableTrustManagerCommand | 

        try {
            Object result = apiInstance.dnsCertTrustManagerEnable(enableTrustManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertTrustManagerEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableTrustManagerCommand enableTrustManagerCommand = new EnableTrustManagerCommand(); // EnableTrustManagerCommand | 

try {
    final result = await api_instance.dnsCertTrustManagerEnable(enableTrustManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertTrustManagerEnable: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        EnableTrustManagerCommand enableTrustManagerCommand = ; // EnableTrustManagerCommand | 

        try {
            Object result = apiInstance.dnsCertTrustManagerEnable(enableTrustManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertTrustManagerEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
EnableTrustManagerCommand *enableTrustManagerCommand = ; //  (optional)

// Enable trust-manager for a project
[apiInstance dnsCertTrustManagerEnableWith:enableTrustManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'enableTrustManagerCommand':  // {EnableTrustManagerCommand} 
};

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

namespace Example
{
    public class dnsCertTrustManagerEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var enableTrustManagerCommand = new EnableTrustManagerCommand(); // EnableTrustManagerCommand |  (optional) 

            try {
                // Enable trust-manager for a project
                Object result = apiInstance.dnsCertTrustManagerEnable(enableTrustManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertTrustManagerEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$enableTrustManagerCommand = ; // EnableTrustManagerCommand | 

try {
    $result = $api_instance->dnsCertTrustManagerEnable($enableTrustManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertTrustManagerEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $enableTrustManagerCommand = WWW::OPenAPIClient::Object::EnableTrustManagerCommand->new(); # EnableTrustManagerCommand | 

eval {
    my $result = $api_instance->dnsCertTrustManagerEnable(enableTrustManagerCommand => $enableTrustManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertTrustManagerEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
enableTrustManagerCommand =  # EnableTrustManagerCommand |  (optional)

try:
    # Enable trust-manager for a project
    api_response = api_instance.dns_cert_trust_manager_enable(enableTrustManagerCommand=enableTrustManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertTrustManagerEnable: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let enableTrustManagerCommand = ; // EnableTrustManagerCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertTrustManagerEnable(enableTrustManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableTrustManagerCommand

Responses


dnsCertUnassignCertificateProfile

Remove the signing certificate profile from a CA-issuer project


/api/v1/dns-cert/unassign-certificate-profile

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/unassign-certificate-profile" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        UnassignCertificateProfileCommand unassignCertificateProfileCommand = ; // UnassignCertificateProfileCommand | 

        try {
            Object result = apiInstance.dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertUnassignCertificateProfile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UnassignCertificateProfileCommand unassignCertificateProfileCommand = new UnassignCertificateProfileCommand(); // UnassignCertificateProfileCommand | 

try {
    final result = await api_instance.dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertUnassignCertificateProfile: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        UnassignCertificateProfileCommand unassignCertificateProfileCommand = ; // UnassignCertificateProfileCommand | 

        try {
            Object result = apiInstance.dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertUnassignCertificateProfile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
UnassignCertificateProfileCommand *unassignCertificateProfileCommand = ; //  (optional)

// Remove the signing certificate profile from a CA-issuer project
[apiInstance dnsCertUnassignCertificateProfileWith:unassignCertificateProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'unassignCertificateProfileCommand':  // {UnassignCertificateProfileCommand} 
};

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

namespace Example
{
    public class dnsCertUnassignCertificateProfileExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var unassignCertificateProfileCommand = new UnassignCertificateProfileCommand(); // UnassignCertificateProfileCommand |  (optional) 

            try {
                // Remove the signing certificate profile from a CA-issuer project
                Object result = apiInstance.dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertUnassignCertificateProfile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$unassignCertificateProfileCommand = ; // UnassignCertificateProfileCommand | 

try {
    $result = $api_instance->dnsCertUnassignCertificateProfile($unassignCertificateProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertUnassignCertificateProfile: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $unassignCertificateProfileCommand = WWW::OPenAPIClient::Object::UnassignCertificateProfileCommand->new(); # UnassignCertificateProfileCommand | 

eval {
    my $result = $api_instance->dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand => $unassignCertificateProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertUnassignCertificateProfile: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
unassignCertificateProfileCommand =  # UnassignCertificateProfileCommand |  (optional)

try:
    # Remove the signing certificate profile from a CA-issuer project
    api_response = api_instance.dns_cert_unassign_certificate_profile(unassignCertificateProfileCommand=unassignCertificateProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertUnassignCertificateProfile: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let unassignCertificateProfileCommand = ; // UnassignCertificateProfileCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertUnassignCertificateProfile(unassignCertificateProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unassignCertificateProfileCommand

Responses


dnsCertValidate

Validate DNS/Cert enablement inputs (provider credentials, signing CA reference, issuer rules)


/api/v1/dns-cert/validate

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dns-cert/validate" \
 -d '{
  "accessKeyId" : "accessKeyId",
  "azureResourceGroup" : "azureResourceGroup",
  "tsigKeyName" : "tsigKeyName",
  "tsigSecret" : "tsigSecret",
  "dnsCredentialId" : 0,
  "awsZoneType" : "awsZoneType",
  "zoneId" : "zoneId",
  "dnsProvider" : "dnsProvider",
  "gcpServiceAccountEmail" : "gcpServiceAccountEmail",
  "certIssuerType" : "certIssuerType",
  "certificateProfileId" : 6,
  "awsRoleArn" : "awsRoleArn",
  "pdnsApiUrl" : "pdnsApiUrl",
  "azureClientSecret" : "azureClientSecret",
  "gcpServiceAccountJson" : "gcpServiceAccountJson",
  "gcpProject" : "gcpProject",
  "azureTenantId" : "azureTenantId",
  "pdnsApiKey" : "pdnsApiKey",
  "azureSubscriptionId" : "azureSubscriptionId",
  "secretAccessKey" : "secretAccessKey",
  "hostedZoneId" : "hostedZoneId",
  "azureClientId" : "azureClientId",
  "apiToken" : "apiToken",
  "domain" : "domain",
  "nameServer" : "nameServer",
  "authVariant" : "authVariant",
  "tsigAlgorithm" : "tsigAlgorithm",
  "region" : "region",
  "authMethod" : "authMethod",
  "pdnsServerId" : "pdnsServerId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsCertApi;

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

public class DnsCertApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsCertApi apiInstance = new DnsCertApi();
        ValidateDnsCertCommand validateDnsCertCommand = ; // ValidateDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertValidate(validateDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertValidate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ValidateDnsCertCommand validateDnsCertCommand = new ValidateDnsCertCommand(); // ValidateDnsCertCommand | 

try {
    final result = await api_instance.dnsCertValidate(validateDnsCertCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsCertValidate: $e\n');
}

import org.openapitools.client.api.DnsCertApi;

public class DnsCertApiExample {
    public static void main(String[] args) {
        DnsCertApi apiInstance = new DnsCertApi();
        ValidateDnsCertCommand validateDnsCertCommand = ; // ValidateDnsCertCommand | 

        try {
            Object result = apiInstance.dnsCertValidate(validateDnsCertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsCertApi#dnsCertValidate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsCertApi *apiInstance = [[DnsCertApi alloc] init];
ValidateDnsCertCommand *validateDnsCertCommand = ; //  (optional)

// Validate DNS/Cert enablement inputs (provider credentials, signing CA reference, issuer rules)
[apiInstance dnsCertValidateWith:validateDnsCertCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsCertApi()
var opts = {
  'validateDnsCertCommand':  // {ValidateDnsCertCommand} 
};

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

namespace Example
{
    public class dnsCertValidateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsCertApi();
            var validateDnsCertCommand = new ValidateDnsCertCommand(); // ValidateDnsCertCommand |  (optional) 

            try {
                // Validate DNS/Cert enablement inputs (provider credentials, signing CA reference, issuer rules)
                Object result = apiInstance.dnsCertValidate(validateDnsCertCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsCertApi.dnsCertValidate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsCertApi();
$validateDnsCertCommand = ; // ValidateDnsCertCommand | 

try {
    $result = $api_instance->dnsCertValidate($validateDnsCertCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsCertApi->dnsCertValidate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsCertApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsCertApi->new();
my $validateDnsCertCommand = WWW::OPenAPIClient::Object::ValidateDnsCertCommand->new(); # ValidateDnsCertCommand | 

eval {
    my $result = $api_instance->dnsCertValidate(validateDnsCertCommand => $validateDnsCertCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsCertApi->dnsCertValidate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsCertApi()
validateDnsCertCommand =  # ValidateDnsCertCommand |  (optional)

try:
    # Validate DNS/Cert enablement inputs (provider credentials, signing CA reference, issuer rules)
    api_response = api_instance.dns_cert_validate(validateDnsCertCommand=validateDnsCertCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsCertApi->dnsCertValidate: %s\n" % e)
extern crate DnsCertApi;

pub fn main() {
    let validateDnsCertCommand = ; // ValidateDnsCertCommand

    let mut context = DnsCertApi::Context::default();
    let result = client.dnsCertValidate(validateDnsCertCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
validateDnsCertCommand

Responses


DnsServers

dnsserversCreate

Create dns servers for access profile


/api/v1/dnsservers/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnsservers/create" \
 -d '{
  "address" : "address",
  "accessProfileId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsServersApi;

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

public class DnsServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsServersApi apiInstance = new DnsServersApi();
        CreateDnsServerCommand createDnsServerCommand = ; // CreateDnsServerCommand | 

        try {
            ApiResponse result = apiInstance.dnsserversCreate(createDnsServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateDnsServerCommand createDnsServerCommand = new CreateDnsServerCommand(); // CreateDnsServerCommand | 

try {
    final result = await api_instance.dnsserversCreate(createDnsServerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsserversCreate: $e\n');
}

import org.openapitools.client.api.DnsServersApi;

public class DnsServersApiExample {
    public static void main(String[] args) {
        DnsServersApi apiInstance = new DnsServersApi();
        CreateDnsServerCommand createDnsServerCommand = ; // CreateDnsServerCommand | 

        try {
            ApiResponse result = apiInstance.dnsserversCreate(createDnsServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsServersApi *apiInstance = [[DnsServersApi alloc] init];
CreateDnsServerCommand *createDnsServerCommand = ; //  (optional)

// Create dns servers for access profile
[apiInstance dnsserversCreateWith:createDnsServerCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsServersApi()
var opts = {
  'createDnsServerCommand':  // {CreateDnsServerCommand} 
};

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

namespace Example
{
    public class dnsserversCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsServersApi();
            var createDnsServerCommand = new CreateDnsServerCommand(); // CreateDnsServerCommand |  (optional) 

            try {
                // Create dns servers for access profile
                ApiResponse result = apiInstance.dnsserversCreate(createDnsServerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsServersApi.dnsserversCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsServersApi();
$createDnsServerCommand = ; // CreateDnsServerCommand | 

try {
    $result = $api_instance->dnsserversCreate($createDnsServerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsServersApi->dnsserversCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsServersApi->new();
my $createDnsServerCommand = WWW::OPenAPIClient::Object::CreateDnsServerCommand->new(); # CreateDnsServerCommand | 

eval {
    my $result = $api_instance->dnsserversCreate(createDnsServerCommand => $createDnsServerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsServersApi->dnsserversCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsServersApi()
createDnsServerCommand =  # CreateDnsServerCommand |  (optional)

try:
    # Create dns servers for access profile
    api_response = api_instance.dnsservers_create(createDnsServerCommand=createDnsServerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsServersApi->dnsserversCreate: %s\n" % e)
extern crate DnsServersApi;

pub fn main() {
    let createDnsServerCommand = ; // CreateDnsServerCommand

    let mut context = DnsServersApi::Context::default();
    let result = client.dnsserversCreate(createDnsServerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createDnsServerCommand

Responses


dnsserversDelete

Delete DNS server


/api/v1/dnsservers/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dnsservers/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsServersApi;

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

public class DnsServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.dnsserversDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.dnsserversDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsserversDelete: $e\n');
}

import org.openapitools.client.api.DnsServersApi;

public class DnsServersApiExample {
    public static void main(String[] args) {
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.dnsserversDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsServersApi *apiInstance = [[DnsServersApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete DNS server
[apiInstance dnsserversDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsServersApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class dnsserversDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsServersApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete DNS server
                Object result = apiInstance.dnsserversDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsServersApi.dnsserversDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsServersApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->dnsserversDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsServersApi->dnsserversDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsServersApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->dnsserversDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsServersApi->dnsserversDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsServersApi()
id = 56 # Integer |  (default to null)

try:
    # Delete DNS server
    api_response = api_instance.dnsservers_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsServersApi->dnsserversDelete: %s\n" % e)
extern crate DnsServersApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = DnsServersApi::Context::default();
    let result = client.dnsserversDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


dnsserversEdit

Edit dns server


/api/v1/dnsservers/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/dnsservers/edit/{id}" \
 -d '{
  "address" : "address"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsServersApi;

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

public class DnsServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | 
        DnsNtpAddressEditDto dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

        try {
            Object result = apiInstance.dnsserversEdit(id, dnsNtpAddressEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final DnsNtpAddressEditDto dnsNtpAddressEditDto = new DnsNtpAddressEditDto(); // DnsNtpAddressEditDto | 

try {
    final result = await api_instance.dnsserversEdit(id, dnsNtpAddressEditDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsserversEdit: $e\n');
}

import org.openapitools.client.api.DnsServersApi;

public class DnsServersApiExample {
    public static void main(String[] args) {
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | 
        DnsNtpAddressEditDto dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

        try {
            Object result = apiInstance.dnsserversEdit(id, dnsNtpAddressEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsServersApi *apiInstance = [[DnsServersApi alloc] init];
Integer *id = 56; //  (default to null)
DnsNtpAddressEditDto *dnsNtpAddressEditDto = ; //  (optional)

// Edit dns server
[apiInstance dnsserversEditWith:id
    dnsNtpAddressEditDto:dnsNtpAddressEditDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsServersApi()
var id = 56; // {Integer} 
var opts = {
  'dnsNtpAddressEditDto':  // {DnsNtpAddressEditDto} 
};

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

namespace Example
{
    public class dnsserversEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsServersApi();
            var id = 56;  // Integer |  (default to null)
            var dnsNtpAddressEditDto = new DnsNtpAddressEditDto(); // DnsNtpAddressEditDto |  (optional) 

            try {
                // Edit dns server
                Object result = apiInstance.dnsserversEdit(id, dnsNtpAddressEditDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsServersApi.dnsserversEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsServersApi();
$id = 56; // Integer | 
$dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

try {
    $result = $api_instance->dnsserversEdit($id, $dnsNtpAddressEditDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsServersApi->dnsserversEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsServersApi->new();
my $id = 56; # Integer | 
my $dnsNtpAddressEditDto = WWW::OPenAPIClient::Object::DnsNtpAddressEditDto->new(); # DnsNtpAddressEditDto | 

eval {
    my $result = $api_instance->dnsserversEdit(id => $id, dnsNtpAddressEditDto => $dnsNtpAddressEditDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsServersApi->dnsserversEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsServersApi()
id = 56 # Integer |  (default to null)
dnsNtpAddressEditDto =  # DnsNtpAddressEditDto |  (optional)

try:
    # Edit dns server
    api_response = api_instance.dnsservers_edit(id, dnsNtpAddressEditDto=dnsNtpAddressEditDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsServersApi->dnsserversEdit: %s\n" % e)
extern crate DnsServersApi;

pub fn main() {
    let id = 56; // Integer
    let dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto

    let mut context = DnsServersApi::Context::default();
    let result = client.dnsserversEdit(id, dnsNtpAddressEditDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
dnsNtpAddressEditDto

Responses


dnsserversList

List dns servers by profile id


/api/v1/dnsservers/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/dnsservers/{id}?search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DnsServersApi;

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

public class DnsServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | Id should be positive integer
        String search = search_example; // String | Search related data

        try {
            array[DnsServersListDto] result = apiInstance.dnsserversList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Id should be positive integer
final String search = new String(); // String | Search related data

try {
    final result = await api_instance.dnsserversList(id, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->dnsserversList: $e\n');
}

import org.openapitools.client.api.DnsServersApi;

public class DnsServersApiExample {
    public static void main(String[] args) {
        DnsServersApi apiInstance = new DnsServersApi();
        Integer id = 56; // Integer | Id should be positive integer
        String search = search_example; // String | Search related data

        try {
            array[DnsServersListDto] result = apiInstance.dnsserversList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DnsServersApi#dnsserversList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DnsServersApi *apiInstance = [[DnsServersApi alloc] init];
Integer *id = 56; // Id should be positive integer (default to null)
String *search = search_example; // Search related data (optional) (default to null)

// List dns servers by profile id
[apiInstance dnsserversListWith:id
    search:search
              completionHandler: ^(array[DnsServersListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DnsServersApi()
var id = 56; // {Integer} Id should be positive integer
var opts = {
  'search': search_example // {String} Search related data
};

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

namespace Example
{
    public class dnsserversListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DnsServersApi();
            var id = 56;  // Integer | Id should be positive integer (default to null)
            var search = search_example;  // String | Search related data (optional)  (default to null)

            try {
                // List dns servers by profile id
                array[DnsServersListDto] result = apiInstance.dnsserversList(id, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DnsServersApi.dnsserversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DnsServersApi();
$id = 56; // Integer | Id should be positive integer
$search = search_example; // String | Search related data

try {
    $result = $api_instance->dnsserversList($id, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DnsServersApi->dnsserversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DnsServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DnsServersApi->new();
my $id = 56; # Integer | Id should be positive integer
my $search = search_example; # String | Search related data

eval {
    my $result = $api_instance->dnsserversList(id => $id, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DnsServersApi->dnsserversList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DnsServersApi()
id = 56 # Integer | Id should be positive integer (default to null)
search = search_example # String | Search related data (optional) (default to null)

try:
    # List dns servers by profile id
    api_response = api_instance.dnsservers_list(id, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DnsServersApi->dnsserversList: %s\n" % e)
extern crate DnsServersApi;

pub fn main() {
    let id = 56; // Integer
    let search = search_example; // String

    let mut context = DnsServersApi::Context::default();
    let result = client.dnsserversList(id, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Id should be positive integer
Required
Query parameters
Name Description
search

Responses


Domains

domainsAddDomainAdmin

Add domain admin to domain


/api/v1/domains/add-domain-admin

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/add-domain-admin" \
 -d '{
  "userId" : "userId",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        AddDomainAdminCommand addDomainAdminCommand = ; // AddDomainAdminCommand | 

        try {
            Object result = apiInstance.domainsAddDomainAdmin(addDomainAdminCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsAddDomainAdmin");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AddDomainAdminCommand addDomainAdminCommand = new AddDomainAdminCommand(); // AddDomainAdminCommand | 

try {
    final result = await api_instance.domainsAddDomainAdmin(addDomainAdminCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsAddDomainAdmin: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        AddDomainAdminCommand addDomainAdminCommand = ; // AddDomainAdminCommand | 

        try {
            Object result = apiInstance.domainsAddDomainAdmin(addDomainAdminCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsAddDomainAdmin");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
AddDomainAdminCommand *addDomainAdminCommand = ; //  (optional)

// Add domain admin to domain
[apiInstance domainsAddDomainAdminWith:addDomainAdminCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'addDomainAdminCommand':  // {AddDomainAdminCommand} 
};

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

namespace Example
{
    public class domainsAddDomainAdminExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var addDomainAdminCommand = new AddDomainAdminCommand(); // AddDomainAdminCommand |  (optional) 

            try {
                // Add domain admin to domain
                Object result = apiInstance.domainsAddDomainAdmin(addDomainAdminCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsAddDomainAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$addDomainAdminCommand = ; // AddDomainAdminCommand | 

try {
    $result = $api_instance->domainsAddDomainAdmin($addDomainAdminCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsAddDomainAdmin: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $addDomainAdminCommand = WWW::OPenAPIClient::Object::AddDomainAdminCommand->new(); # AddDomainAdminCommand | 

eval {
    my $result = $api_instance->domainsAddDomainAdmin(addDomainAdminCommand => $addDomainAdminCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsAddDomainAdmin: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
addDomainAdminCommand =  # AddDomainAdminCommand |  (optional)

try:
    # Add domain admin to domain
    api_response = api_instance.domains_add_domain_admin(addDomainAdminCommand=addDomainAdminCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsAddDomainAdmin: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let addDomainAdminCommand = ; // AddDomainAdminCommand

    let mut context = DomainsApi::Context::default();
    let result = client.domainsAddDomainAdmin(addDomainAdminCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
addDomainAdminCommand

Responses


domainsCheckDuplicateEntity

Check duplicate entity


/api/v1/domains/check-duplicate-entity

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/check-duplicate-entity" \
 -d '{
  "name" : "name"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        CheckDuplicateDomainCommand checkDuplicateDomainCommand = ; // CheckDuplicateDomainCommand | 

        try {
            Object result = apiInstance.domainsCheckDuplicateEntity(checkDuplicateDomainCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsCheckDuplicateEntity");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckDuplicateDomainCommand checkDuplicateDomainCommand = new CheckDuplicateDomainCommand(); // CheckDuplicateDomainCommand | 

try {
    final result = await api_instance.domainsCheckDuplicateEntity(checkDuplicateDomainCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsCheckDuplicateEntity: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        CheckDuplicateDomainCommand checkDuplicateDomainCommand = ; // CheckDuplicateDomainCommand | 

        try {
            Object result = apiInstance.domainsCheckDuplicateEntity(checkDuplicateDomainCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsCheckDuplicateEntity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
CheckDuplicateDomainCommand *checkDuplicateDomainCommand = ; //  (optional)

// Check duplicate entity
[apiInstance domainsCheckDuplicateEntityWith:checkDuplicateDomainCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'checkDuplicateDomainCommand':  // {CheckDuplicateDomainCommand} 
};

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

namespace Example
{
    public class domainsCheckDuplicateEntityExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var checkDuplicateDomainCommand = new CheckDuplicateDomainCommand(); // CheckDuplicateDomainCommand |  (optional) 

            try {
                // Check duplicate entity
                Object result = apiInstance.domainsCheckDuplicateEntity(checkDuplicateDomainCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsCheckDuplicateEntity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$checkDuplicateDomainCommand = ; // CheckDuplicateDomainCommand | 

try {
    $result = $api_instance->domainsCheckDuplicateEntity($checkDuplicateDomainCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsCheckDuplicateEntity: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $checkDuplicateDomainCommand = WWW::OPenAPIClient::Object::CheckDuplicateDomainCommand->new(); # CheckDuplicateDomainCommand | 

eval {
    my $result = $api_instance->domainsCheckDuplicateEntity(checkDuplicateDomainCommand => $checkDuplicateDomainCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsCheckDuplicateEntity: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
checkDuplicateDomainCommand =  # CheckDuplicateDomainCommand |  (optional)

try:
    # Check duplicate entity
    api_response = api_instance.domains_check_duplicate_entity(checkDuplicateDomainCommand=checkDuplicateDomainCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsCheckDuplicateEntity: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let checkDuplicateDomainCommand = ; // CheckDuplicateDomainCommand

    let mut context = DomainsApi::Context::default();
    let result = client.domainsCheckDuplicateEntity(checkDuplicateDomainCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkDuplicateDomainCommand

Responses


domainsCreate

Create domain


/api/v1/domains/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/domains/create"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        String name = name_example; // String | Domain name, 3-30 chars
        String email = email_example; // String | Contact email; validated as an email address when provided
        Boolean createOrganization = true; // Boolean | Also create a default organization for the new domain
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            'Integer' result = apiInstance.domainsCreate(name, email, createOrganization, licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String name = new String(); // String | Domain name, 3-30 chars
final String email = new String(); // String | Contact email; validated as an email address when provided
final Boolean createOrganization = new Boolean(); // Boolean | Also create a default organization for the new domain
final File licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    final result = await api_instance.domainsCreate(name, email, createOrganization, licenseFile);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsCreate: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        String name = name_example; // String | Domain name, 3-30 chars
        String email = email_example; // String | Contact email; validated as an email address when provided
        Boolean createOrganization = true; // Boolean | Also create a default organization for the new domain
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            'Integer' result = apiInstance.domainsCreate(name, email, createOrganization, licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
String *name = name_example; // Domain name, 3-30 chars (default to null)
String *email = email_example; // Contact email; validated as an email address when provided (optional) (default to null)
Boolean *createOrganization = true; // Also create a default organization for the new domain (optional) (default to null)
File *licenseFile = ; // Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

// Create domain
[apiInstance domainsCreateWith:name
    email:email
    createOrganization:createOrganization
    licenseFile:licenseFile
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var name = name_example; // {String} Domain name, 3-30 chars
var opts = {
  'email': email_example, // {String} Contact email; validated as an email address when provided
  'createOrganization': true, // {Boolean} Also create a default organization for the new domain
  'licenseFile':  // {File} Signed Cloudera license file (PGP cleartext), max 16 KB
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsCreate(name, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var name = name_example;  // String | Domain name, 3-30 chars (default to null)
            var email = email_example;  // String | Contact email; validated as an email address when provided (optional)  (default to null)
            var createOrganization = true;  // Boolean | Also create a default organization for the new domain (optional)  (default to null)
            var licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional)  (default to null)

            try {
                // Create domain
                'Integer' result = apiInstance.domainsCreate(name, email, createOrganization, licenseFile);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$name = name_example; // String | Domain name, 3-30 chars
$email = email_example; // String | Contact email; validated as an email address when provided
$createOrganization = true; // Boolean | Also create a default organization for the new domain
$licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    $result = $api_instance->domainsCreate($name, $email, $createOrganization, $licenseFile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $name = name_example; # String | Domain name, 3-30 chars
my $email = email_example; # String | Contact email; validated as an email address when provided
my $createOrganization = true; # Boolean | Also create a default organization for the new domain
my $licenseFile = ; # File | Signed Cloudera license file (PGP cleartext), max 16 KB

eval {
    my $result = $api_instance->domainsCreate(name => $name, email => $email, createOrganization => $createOrganization, licenseFile => $licenseFile);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
name = name_example # String | Domain name, 3-30 chars (default to null)
email = email_example # String | Contact email; validated as an email address when provided (optional) (default to null)
createOrganization = true # Boolean | Also create a default organization for the new domain (optional) (default to null)
licenseFile =  # File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

try:
    # Create domain
    api_response = api_instance.domains_create(name, email=email, createOrganization=createOrganization, licenseFile=licenseFile)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsCreate: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let name = name_example; // String
    let email = email_example; // String
    let createOrganization = true; // Boolean
    let licenseFile = ; // File

    let mut context = DomainsApi::Context::default();
    let result = client.domainsCreate(name, email, createOrganization, licenseFile, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
name*
String
Domain name, 3-30 chars
Required
email
String
Contact email; validated as an email address when provided
createOrganization
Boolean
Also create a default organization for the new domain
licenseFile
File (binary)
Signed Cloudera license file (PGP cleartext), max 16 KB

Responses


domainsDelete

Delete domain


/api/v1/domains/{domainId}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | 

        try {
            Object result = apiInstance.domainsDelete(domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | 

try {
    final result = await api_instance.domainsDelete(domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDelete: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | 

        try {
            Object result = apiInstance.domainsDelete(domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; //  (default to null)

// Delete domain
[apiInstance domainsDeleteWith:domainId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} 

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

namespace Example
{
    public class domainsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer |  (default to null)

            try {
                // Delete domain
                Object result = apiInstance.domainsDelete(domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | 

try {
    $result = $api_instance->domainsDelete($domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | 

eval {
    my $result = $api_instance->domainsDelete(domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer |  (default to null)

try:
    # Delete domain
    api_response = api_instance.domains_delete(domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDelete: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDelete(domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Required

Responses


domainsDetails

Get domain details by domainId


/api/v1/domains/{domainId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer

        try {
            DomainDetailsDto result = apiInstance.domainsDetails(domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer

try {
    final result = await api_instance.domainsDetails(domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDetails: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer

        try {
            DomainDetailsDto result = apiInstance.domainsDetails(domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)

// Get domain details by domainId
[apiInstance domainsDetailsWith:domainId
              completionHandler: ^(DomainDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer

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

namespace Example
{
    public class domainsDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)

            try {
                // Get domain details by domainId
                DomainDetailsDto result = apiInstance.domainsDetails(domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer

try {
    $result = $api_instance->domainsDetails($domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer

eval {
    my $result = $api_instance->domainsDetails(domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)

try:
    # Get domain details by domainId
    api_response = api_instance.domains_details(domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDetails: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDetails(domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required

Responses


domainsDisable2faManagement

Disable 2fa management


/api/v1/domains/disable-2fa-management

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/disable-2fa-management" \
 -d '{
  "verificationCode" : "verificationCode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        DisableTwoFaManagementCommand disableTwoFaManagementCommand = ; // DisableTwoFaManagementCommand | 

        try {
            Object result = apiInstance.domainsDisable2faManagement(disableTwoFaManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDisable2faManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableTwoFaManagementCommand disableTwoFaManagementCommand = new DisableTwoFaManagementCommand(); // DisableTwoFaManagementCommand | 

try {
    final result = await api_instance.domainsDisable2faManagement(disableTwoFaManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDisable2faManagement: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        DisableTwoFaManagementCommand disableTwoFaManagementCommand = ; // DisableTwoFaManagementCommand | 

        try {
            Object result = apiInstance.domainsDisable2faManagement(disableTwoFaManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDisable2faManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
DisableTwoFaManagementCommand *disableTwoFaManagementCommand = ; //  (optional)

// Disable 2fa management
[apiInstance domainsDisable2faManagementWith:disableTwoFaManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'disableTwoFaManagementCommand':  // {DisableTwoFaManagementCommand} 
};

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

namespace Example
{
    public class domainsDisable2faManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var disableTwoFaManagementCommand = new DisableTwoFaManagementCommand(); // DisableTwoFaManagementCommand |  (optional) 

            try {
                // Disable 2fa management
                Object result = apiInstance.domainsDisable2faManagement(disableTwoFaManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDisable2faManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$disableTwoFaManagementCommand = ; // DisableTwoFaManagementCommand | 

try {
    $result = $api_instance->domainsDisable2faManagement($disableTwoFaManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDisable2faManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $disableTwoFaManagementCommand = WWW::OPenAPIClient::Object::DisableTwoFaManagementCommand->new(); # DisableTwoFaManagementCommand | 

eval {
    my $result = $api_instance->domainsDisable2faManagement(disableTwoFaManagementCommand => $disableTwoFaManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDisable2faManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
disableTwoFaManagementCommand =  # DisableTwoFaManagementCommand |  (optional)

try:
    # Disable 2fa management
    api_response = api_instance.domains_disable2fa_management(disableTwoFaManagementCommand=disableTwoFaManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDisable2faManagement: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let disableTwoFaManagementCommand = ; // DisableTwoFaManagementCommand

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDisable2faManagement(disableTwoFaManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableTwoFaManagementCommand

Responses


domainsDomainGroupDetails

Get group details by domainId


/api/v1/domains/{domainId}/groups/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/groups/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Group id, positive integer

        try {
            GroupDetailsDto result = apiInstance.domainsDomainGroupDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer id = new Integer(); // Integer | Group id, positive integer

try {
    final result = await api_instance.domainsDomainGroupDetails(domainId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainGroupDetails: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Group id, positive integer

        try {
            GroupDetailsDto result = apiInstance.domainsDomainGroupDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *id = 56; // Group id, positive integer (default to null)

// Get group details by domainId
[apiInstance domainsDomainGroupDetailsWith:domainId
    id:id
              completionHandler: ^(GroupDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var id = 56; // {Integer} Group id, positive integer

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

namespace Example
{
    public class domainsDomainGroupDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var id = 56;  // Integer | Group id, positive integer (default to null)

            try {
                // Get group details by domainId
                GroupDetailsDto result = apiInstance.domainsDomainGroupDetails(domainId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainGroupDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$id = 56; // Integer | Group id, positive integer

try {
    $result = $api_instance->domainsDomainGroupDetails($domainId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainGroupDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $id = 56; # Integer | Group id, positive integer

eval {
    my $result = $api_instance->domainsDomainGroupDetails(domainId => $domainId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainGroupDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
id = 56 # Integer | Group id, positive integer (default to null)

try:
    # Get group details by domainId
    api_response = api_instance.domains_domain_group_details(domainId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainGroupDetails: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let id = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainGroupDetails(domainId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
id*
Integer (int32)
Group id, positive integer
Required

Responses


domainsDomainGroupsDropdown

Retrieve domain groups dropdown list by cursor-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/groups/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/groups/dropdown?Limit=56&CursorId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over group names

        try {
            CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainGroupsDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupsDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer cursorId = new Integer(); // Integer | Cursor id to page from; null for the first page
final String search = new String(); // String | Free-text search over group names

try {
    final result = await api_instance.domainsDomainGroupsDropdown(domainId, limit, cursorId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainGroupsDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over group names

        try {
            CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainGroupsDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupsDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *limit = 56; // Page size (default to null)
Integer *cursorId = 56; // Cursor id to page from; null for the first page (optional) (default to null)
String *search = search_example; // Free-text search over group names (optional) (default to null)

// Retrieve domain groups dropdown list by cursor-based pagination
[apiInstance domainsDomainGroupsDropdownWith:domainId
    limit:limit
    cursorId:cursorId
    search:search
              completionHandler: ^(CommonDropdownDtoCursorPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var limit = 56; // {Integer} Page size
var opts = {
  'cursorId': 56, // {Integer} Cursor id to page from; null for the first page
  'search': search_example // {String} Free-text search over group names
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainGroupsDropdown(domainId, limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainGroupsDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (default to null)
            var cursorId = 56;  // Integer | Cursor id to page from; null for the first page (optional)  (default to null)
            var search = search_example;  // String | Free-text search over group names (optional)  (default to null)

            try {
                // Retrieve domain groups dropdown list by cursor-based pagination
                CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainGroupsDropdown(domainId, limit, cursorId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainGroupsDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$limit = 56; // Integer | Page size
$cursorId = 56; // Integer | Cursor id to page from; null for the first page
$search = search_example; // String | Free-text search over group names

try {
    $result = $api_instance->domainsDomainGroupsDropdown($domainId, $limit, $cursorId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainGroupsDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $limit = 56; # Integer | Page size
my $cursorId = 56; # Integer | Cursor id to page from; null for the first page
my $search = search_example; # String | Free-text search over group names

eval {
    my $result = $api_instance->domainsDomainGroupsDropdown(domainId => $domainId, limit => $limit, cursorId => $cursorId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainGroupsDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
limit = 56 # Integer | Page size (default to null)
cursorId = 56 # Integer | Cursor id to page from; null for the first page (optional) (default to null)
search = search_example # String | Free-text search over group names (optional) (default to null)

try:
    # Retrieve domain groups dropdown list by cursor-based pagination
    api_response = api_instance.domains_domain_groups_dropdown(domainId, limit, cursorId=cursorId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainGroupsDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let cursorId = 56; // Integer
    let search = search_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainGroupsDropdown(domainId, limit, cursorId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Limit*
Integer (int32)
Page size
Required
CursorId
Integer (int32)
Cursor id to page from; null for the first page
Search

Responses


domainsDomainGroupsOffsetBasedDropdown

Retrieve domain groups dropdown list by offset-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/groups/offset-based/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/groups/offset-based/dropdown?Offset=56&Limit=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&OrganizationId=56&UserId=userId_example&AccessLevel="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over group names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer organizationId = 56; // Integer | Filter groups by organization id
        String userId = userId_example; // String | Filter groups containing this user id
        AccessLevelRoles accessLevel = ; // AccessLevelRoles | Filter groups by access level role

        try {
            GroupOffsetPaginationDropdownList result = apiInstance.domainsDomainGroupsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, organizationId, userId, accessLevel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupsOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final String search = new String(); // String | Free-text search over group names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer organizationId = new Integer(); // Integer | Filter groups by organization id
final String userId = new String(); // String | Filter groups containing this user id
final AccessLevelRoles accessLevel = new AccessLevelRoles(); // AccessLevelRoles | Filter groups by access level role

try {
    final result = await api_instance.domainsDomainGroupsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, organizationId, userId, accessLevel);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainGroupsOffsetBasedDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over group names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer organizationId = 56; // Integer | Filter groups by organization id
        String userId = userId_example; // String | Filter groups containing this user id
        AccessLevelRoles accessLevel = ; // AccessLevelRoles | Filter groups by access level role

        try {
            GroupOffsetPaginationDropdownList result = apiInstance.domainsDomainGroupsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, organizationId, userId, accessLevel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainGroupsOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
String *search = search_example; // Free-text search over group names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *organizationId = 56; // Filter groups by organization id (optional) (default to null)
String *userId = userId_example; // Filter groups containing this user id (optional) (default to null)
AccessLevelRoles *accessLevel = ; // Filter groups by access level role (optional) (default to null)

// Retrieve domain groups dropdown list by offset-based pagination
[apiInstance domainsDomainGroupsOffsetBasedDropdownWith:domainId
    offset:offset
    limit:limit
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    organizationId:organizationId
    userId:userId
    accessLevel:accessLevel
              completionHandler: ^(GroupOffsetPaginationDropdownList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'limit': 56, // {Integer} Page size; defaults to 100
  'search': search_example, // {String} Free-text search over group names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'organizationId': 56, // {Integer} Filter groups by organization id
  'userId': userId_example, // {String} Filter groups containing this user id
  'accessLevel':  // {AccessLevelRoles} Filter groups by access level role
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainGroupsOffsetBasedDropdown(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainGroupsOffsetBasedDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var search = search_example;  // String | Free-text search over group names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var organizationId = 56;  // Integer | Filter groups by organization id (optional)  (default to null)
            var userId = userId_example;  // String | Filter groups containing this user id (optional)  (default to null)
            var accessLevel = new AccessLevelRoles(); // AccessLevelRoles | Filter groups by access level role (optional)  (default to null)

            try {
                // Retrieve domain groups dropdown list by offset-based pagination
                GroupOffsetPaginationDropdownList result = apiInstance.domainsDomainGroupsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, organizationId, userId, accessLevel);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainGroupsOffsetBasedDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$limit = 56; // Integer | Page size; defaults to 100
$search = search_example; // String | Free-text search over group names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$organizationId = 56; // Integer | Filter groups by organization id
$userId = userId_example; // String | Filter groups containing this user id
$accessLevel = ; // AccessLevelRoles | Filter groups by access level role

try {
    $result = $api_instance->domainsDomainGroupsOffsetBasedDropdown($domainId, $offset, $limit, $search, $sortBy, $sortDirection, $organizationId, $userId, $accessLevel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainGroupsOffsetBasedDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $limit = 56; # Integer | Page size; defaults to 100
my $search = search_example; # String | Free-text search over group names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $organizationId = 56; # Integer | Filter groups by organization id
my $userId = userId_example; # String | Filter groups containing this user id
my $accessLevel = ; # AccessLevelRoles | Filter groups by access level role

eval {
    my $result = $api_instance->domainsDomainGroupsOffsetBasedDropdown(domainId => $domainId, offset => $offset, limit => $limit, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, organizationId => $organizationId, userId => $userId, accessLevel => $accessLevel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainGroupsOffsetBasedDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
search = search_example # String | Free-text search over group names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
organizationId = 56 # Integer | Filter groups by organization id (optional) (default to null)
userId = userId_example # String | Filter groups containing this user id (optional) (default to null)
accessLevel =  # AccessLevelRoles | Filter groups by access level role (optional) (default to null)

try:
    # Retrieve domain groups dropdown list by offset-based pagination
    api_response = api_instance.domains_domain_groups_offset_based_dropdown(domainId, offset=offset, limit=limit, search=search, sortBy=sortBy, sortDirection=sortDirection, organizationId=organizationId, userId=userId, accessLevel=accessLevel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainGroupsOffsetBasedDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let organizationId = 56; // Integer
    let userId = userId_example; // String
    let accessLevel = ; // AccessLevelRoles

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainGroupsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, organizationId, userId, accessLevel, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Limit
Integer (int32)
Page size; defaults to 100
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
OrganizationId
Integer (int32)
Filter groups by organization id
UserId
String
Filter groups containing this user id
AccessLevel
AccessLevelRoles
Filter groups by access level role

Responses


domainsDomainOffsetBasedOrganizationsWithGroup

Retrieve domain organizations with group list by offset-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/organizations/offset-based/with/group

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/organizations/offset-based/with/group?Offset=56&Limit=56&Search=search_example&ProjectId=56&GroupId=56&UserId=userId_example&SortDirection=sortDirection_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over organization names
        Integer projectId = 56; // Integer | Filter by project id
        Integer groupId = 56; // Integer | Optional group id to annotate membership for
        String userId = userId_example; // String | Filter organizations containing this user id
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc

        try {
            OrganizationOffsetPaginationWithGroupList result = apiInstance.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, offset, limit, search, projectId, groupId, userId, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOffsetBasedOrganizationsWithGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final String search = new String(); // String | Free-text search over organization names
final Integer projectId = new Integer(); // Integer | Filter by project id
final Integer groupId = new Integer(); // Integer | Optional group id to annotate membership for
final String userId = new String(); // String | Filter organizations containing this user id
final String sortDirection = new String(); // String | Sort direction, asc or desc

try {
    final result = await api_instance.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, offset, limit, search, projectId, groupId, userId, sortDirection);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainOffsetBasedOrganizationsWithGroup: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over organization names
        Integer projectId = 56; // Integer | Filter by project id
        Integer groupId = 56; // Integer | Optional group id to annotate membership for
        String userId = userId_example; // String | Filter organizations containing this user id
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc

        try {
            OrganizationOffsetPaginationWithGroupList result = apiInstance.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, offset, limit, search, projectId, groupId, userId, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOffsetBasedOrganizationsWithGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
String *search = search_example; // Free-text search over organization names (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Integer *groupId = 56; // Optional group id to annotate membership for (optional) (default to null)
String *userId = userId_example; // Filter organizations containing this user id (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)

// Retrieve domain organizations with group list by offset-based pagination
[apiInstance domainsDomainOffsetBasedOrganizationsWithGroupWith:domainId
    offset:offset
    limit:limit
    search:search
    projectId:projectId
    groupId:groupId
    userId:userId
    sortDirection:sortDirection
              completionHandler: ^(OrganizationOffsetPaginationWithGroupList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'limit': 56, // {Integer} Page size; defaults to 100
  'search': search_example, // {String} Free-text search over organization names
  'projectId': 56, // {Integer} Filter by project id
  'groupId': 56, // {Integer} Optional group id to annotate membership for
  'userId': userId_example, // {String} Filter organizations containing this user id
  'sortDirection': sortDirection_example // {String} Sort direction, asc or desc
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainOffsetBasedOrganizationsWithGroupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var search = search_example;  // String | Free-text search over organization names (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var groupId = 56;  // Integer | Optional group id to annotate membership for (optional)  (default to null)
            var userId = userId_example;  // String | Filter organizations containing this user id (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)

            try {
                // Retrieve domain organizations with group list by offset-based pagination
                OrganizationOffsetPaginationWithGroupList result = apiInstance.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, offset, limit, search, projectId, groupId, userId, sortDirection);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainOffsetBasedOrganizationsWithGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$limit = 56; // Integer | Page size; defaults to 100
$search = search_example; // String | Free-text search over organization names
$projectId = 56; // Integer | Filter by project id
$groupId = 56; // Integer | Optional group id to annotate membership for
$userId = userId_example; // String | Filter organizations containing this user id
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc

try {
    $result = $api_instance->domainsDomainOffsetBasedOrganizationsWithGroup($domainId, $offset, $limit, $search, $projectId, $groupId, $userId, $sortDirection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainOffsetBasedOrganizationsWithGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $limit = 56; # Integer | Page size; defaults to 100
my $search = search_example; # String | Free-text search over organization names
my $projectId = 56; # Integer | Filter by project id
my $groupId = 56; # Integer | Optional group id to annotate membership for
my $userId = userId_example; # String | Filter organizations containing this user id
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc

eval {
    my $result = $api_instance->domainsDomainOffsetBasedOrganizationsWithGroup(domainId => $domainId, offset => $offset, limit => $limit, search => $search, projectId => $projectId, groupId => $groupId, userId => $userId, sortDirection => $sortDirection);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainOffsetBasedOrganizationsWithGroup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
search = search_example # String | Free-text search over organization names (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
groupId = 56 # Integer | Optional group id to annotate membership for (optional) (default to null)
userId = userId_example # String | Filter organizations containing this user id (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)

try:
    # Retrieve domain organizations with group list by offset-based pagination
    api_response = api_instance.domains_domain_offset_based_organizations_with_group(domainId, offset=offset, limit=limit, search=search, projectId=projectId, groupId=groupId, userId=userId, sortDirection=sortDirection)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainOffsetBasedOrganizationsWithGroup: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer
    let search = search_example; // String
    let projectId = 56; // Integer
    let groupId = 56; // Integer
    let userId = userId_example; // String
    let sortDirection = sortDirection_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainOffsetBasedOrganizationsWithGroup(domainId, offset, limit, search, projectId, groupId, userId, sortDirection, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Limit
Integer (int32)
Page size; defaults to 100
Search
ProjectId
Integer (int32)
Filter by project id
GroupId
Integer (int32)
Optional group id to annotate membership for
UserId
String
Filter organizations containing this user id
SortDirection
String
Sort direction, asc or desc

Responses


domainsDomainOrganizationDetails

Get organization details by domainId


/api/v1/domains/{domainId}/organizations/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/organizations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Organization id, positive integer

        try {
            OrganizationDetailsDtoForDomain result = apiInstance.domainsDomainOrganizationDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer id = new Integer(); // Integer | Organization id, positive integer

try {
    final result = await api_instance.domainsDomainOrganizationDetails(domainId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainOrganizationDetails: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Organization id, positive integer

        try {
            OrganizationDetailsDtoForDomain result = apiInstance.domainsDomainOrganizationDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *id = 56; // Organization id, positive integer (default to null)

// Get organization details by domainId
[apiInstance domainsDomainOrganizationDetailsWith:domainId
    id:id
              completionHandler: ^(OrganizationDetailsDtoForDomain output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var id = 56; // {Integer} Organization id, positive integer

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

namespace Example
{
    public class domainsDomainOrganizationDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var id = 56;  // Integer | Organization id, positive integer (default to null)

            try {
                // Get organization details by domainId
                OrganizationDetailsDtoForDomain result = apiInstance.domainsDomainOrganizationDetails(domainId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainOrganizationDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$id = 56; // Integer | Organization id, positive integer

try {
    $result = $api_instance->domainsDomainOrganizationDetails($domainId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainOrganizationDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $id = 56; # Integer | Organization id, positive integer

eval {
    my $result = $api_instance->domainsDomainOrganizationDetails(domainId => $domainId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainOrganizationDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
id = 56 # Integer | Organization id, positive integer (default to null)

try:
    # Get organization details by domainId
    api_response = api_instance.domains_domain_organization_details(domainId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainOrganizationDetails: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let id = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainOrganizationDetails(domainId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
id*
Integer (int32)
Organization id, positive integer
Required

Responses


domainsDomainOrganizationsAvailable

Retrieve available organizations for adding to a group

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/organizations/available

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/organizations/available?GroupId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to scope available organizations to

        try {
            array[CommonDropdownDto] result = apiInstance.domainsDomainOrganizationsAvailable(domainId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationsAvailable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer groupId = new Integer(); // Integer | Optional group id to scope available organizations to

try {
    final result = await api_instance.domainsDomainOrganizationsAvailable(domainId, groupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainOrganizationsAvailable: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to scope available organizations to

        try {
            array[CommonDropdownDto] result = apiInstance.domainsDomainOrganizationsAvailable(domainId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationsAvailable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *groupId = 56; // Optional group id to scope available organizations to (optional) (default to null)

// Retrieve available organizations for adding to a group
[apiInstance domainsDomainOrganizationsAvailableWith:domainId
    groupId:groupId
              completionHandler: ^(array[CommonDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'groupId': 56 // {Integer} Optional group id to scope available organizations to
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainOrganizationsAvailable(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainOrganizationsAvailableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var groupId = 56;  // Integer | Optional group id to scope available organizations to (optional)  (default to null)

            try {
                // Retrieve available organizations for adding to a group
                array[CommonDropdownDto] result = apiInstance.domainsDomainOrganizationsAvailable(domainId, groupId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainOrganizationsAvailable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$groupId = 56; // Integer | Optional group id to scope available organizations to

try {
    $result = $api_instance->domainsDomainOrganizationsAvailable($domainId, $groupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainOrganizationsAvailable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $groupId = 56; # Integer | Optional group id to scope available organizations to

eval {
    my $result = $api_instance->domainsDomainOrganizationsAvailable(domainId => $domainId, groupId => $groupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainOrganizationsAvailable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
groupId = 56 # Integer | Optional group id to scope available organizations to (optional) (default to null)

try:
    # Retrieve available organizations for adding to a group
    api_response = api_instance.domains_domain_organizations_available(domainId, groupId=groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainOrganizationsAvailable: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let groupId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainOrganizationsAvailable(domainId, groupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
GroupId
Integer (int32)
Optional group id to scope available organizations to

Responses


domainsDomainOrganizationsWithGroup

Retrieve domain organizations with group list by cursor-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/organizations/with/group

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/organizations/with/group?GroupId=56&Limit=56&CursorId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to annotate membership for
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over organization names

        try {
            OrganizationsWithGroupInfoResultDtoCursorPaginatedResponse result = apiInstance.domainsDomainOrganizationsWithGroup(domainId, groupId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationsWithGroup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer groupId = new Integer(); // Integer | Optional group id to annotate membership for
final Integer limit = new Integer(); // Integer | Page size
final Integer cursorId = new Integer(); // Integer | Cursor id to page from; null for the first page
final String search = new String(); // String | Free-text search over organization names

try {
    final result = await api_instance.domainsDomainOrganizationsWithGroup(domainId, groupId, limit, cursorId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainOrganizationsWithGroup: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to annotate membership for
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over organization names

        try {
            OrganizationsWithGroupInfoResultDtoCursorPaginatedResponse result = apiInstance.domainsDomainOrganizationsWithGroup(domainId, groupId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainOrganizationsWithGroup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *groupId = 56; // Optional group id to annotate membership for (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *cursorId = 56; // Cursor id to page from; null for the first page (optional) (default to null)
String *search = search_example; // Free-text search over organization names (optional) (default to null)

// Retrieve domain organizations with group list by cursor-based pagination
[apiInstance domainsDomainOrganizationsWithGroupWith:domainId
    groupId:groupId
    limit:limit
    cursorId:cursorId
    search:search
              completionHandler: ^(OrganizationsWithGroupInfoResultDtoCursorPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'groupId': 56, // {Integer} Optional group id to annotate membership for
  'limit': 56, // {Integer} Page size
  'cursorId': 56, // {Integer} Cursor id to page from; null for the first page
  'search': search_example // {String} Free-text search over organization names
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainOrganizationsWithGroup(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainOrganizationsWithGroupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var groupId = 56;  // Integer | Optional group id to annotate membership for (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var cursorId = 56;  // Integer | Cursor id to page from; null for the first page (optional)  (default to null)
            var search = search_example;  // String | Free-text search over organization names (optional)  (default to null)

            try {
                // Retrieve domain organizations with group list by cursor-based pagination
                OrganizationsWithGroupInfoResultDtoCursorPaginatedResponse result = apiInstance.domainsDomainOrganizationsWithGroup(domainId, groupId, limit, cursorId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainOrganizationsWithGroup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$groupId = 56; // Integer | Optional group id to annotate membership for
$limit = 56; // Integer | Page size
$cursorId = 56; // Integer | Cursor id to page from; null for the first page
$search = search_example; // String | Free-text search over organization names

try {
    $result = $api_instance->domainsDomainOrganizationsWithGroup($domainId, $groupId, $limit, $cursorId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainOrganizationsWithGroup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $groupId = 56; # Integer | Optional group id to annotate membership for
my $limit = 56; # Integer | Page size
my $cursorId = 56; # Integer | Cursor id to page from; null for the first page
my $search = search_example; # String | Free-text search over organization names

eval {
    my $result = $api_instance->domainsDomainOrganizationsWithGroup(domainId => $domainId, groupId => $groupId, limit => $limit, cursorId => $cursorId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainOrganizationsWithGroup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
groupId = 56 # Integer | Optional group id to annotate membership for (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
cursorId = 56 # Integer | Cursor id to page from; null for the first page (optional) (default to null)
search = search_example # String | Free-text search over organization names (optional) (default to null)

try:
    # Retrieve domain organizations with group list by cursor-based pagination
    api_response = api_instance.domains_domain_organizations_with_group(domainId, groupId=groupId, limit=limit, cursorId=cursorId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainOrganizationsWithGroup: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let groupId = 56; // Integer
    let limit = 56; // Integer
    let cursorId = 56; // Integer
    let search = search_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainOrganizationsWithGroup(domainId, groupId, limit, cursorId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
GroupId
Integer (int32)
Optional group id to annotate membership for
Limit
Integer (int32)
Page size
CursorId
Integer (int32)
Cursor id to page from; null for the first page
Search

Responses


domainsDomainProjectDetails

Get project details by domainId


/api/v1/domains/{domainId}/projects/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/projects/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Project id, positive integer

        try {
            ProjectDetailsDto result = apiInstance.domainsDomainProjectDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer id = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.domainsDomainProjectDetails(domainId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainProjectDetails: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer id = 56; // Integer | Project id, positive integer

        try {
            ProjectDetailsDto result = apiInstance.domainsDomainProjectDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *id = 56; // Project id, positive integer (default to null)

// Get project details by domainId
[apiInstance domainsDomainProjectDetailsWith:domainId
    id:id
              completionHandler: ^(ProjectDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var id = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class domainsDomainProjectDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var id = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Get project details by domainId
                ProjectDetailsDto result = apiInstance.domainsDomainProjectDetails(domainId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainProjectDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$id = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->domainsDomainProjectDetails($domainId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainProjectDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $id = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->domainsDomainProjectDetails(domainId => $domainId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainProjectDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
id = 56 # Integer | Project id, positive integer (default to null)

try:
    # Get project details by domainId
    api_response = api_instance.domains_domain_project_details(domainId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainProjectDetails: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let id = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainProjectDetails(domainId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
id*
Integer (int32)
Project id, positive integer
Required

Responses


domainsDomainProjectsDropdown

Retrieve domain projects dropdown list by cursor-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/projects/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/projects/dropdown?Limit=56&CursorId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over project names

        try {
            CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainProjectsDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectsDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer cursorId = new Integer(); // Integer | Cursor id to page from; null for the first page
final String search = new String(); // String | Free-text search over project names

try {
    final result = await api_instance.domainsDomainProjectsDropdown(domainId, limit, cursorId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainProjectsDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over project names

        try {
            CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainProjectsDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectsDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *limit = 56; // Page size (default to null)
Integer *cursorId = 56; // Cursor id to page from; null for the first page (optional) (default to null)
String *search = search_example; // Free-text search over project names (optional) (default to null)

// Retrieve domain projects dropdown list by cursor-based pagination
[apiInstance domainsDomainProjectsDropdownWith:domainId
    limit:limit
    cursorId:cursorId
    search:search
              completionHandler: ^(CommonDropdownDtoCursorPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var limit = 56; // {Integer} Page size
var opts = {
  'cursorId': 56, // {Integer} Cursor id to page from; null for the first page
  'search': search_example // {String} Free-text search over project names
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainProjectsDropdown(domainId, limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainProjectsDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (default to null)
            var cursorId = 56;  // Integer | Cursor id to page from; null for the first page (optional)  (default to null)
            var search = search_example;  // String | Free-text search over project names (optional)  (default to null)

            try {
                // Retrieve domain projects dropdown list by cursor-based pagination
                CommonDropdownDtoCursorPaginatedResponse result = apiInstance.domainsDomainProjectsDropdown(domainId, limit, cursorId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainProjectsDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$limit = 56; // Integer | Page size
$cursorId = 56; // Integer | Cursor id to page from; null for the first page
$search = search_example; // String | Free-text search over project names

try {
    $result = $api_instance->domainsDomainProjectsDropdown($domainId, $limit, $cursorId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainProjectsDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $limit = 56; # Integer | Page size
my $cursorId = 56; # Integer | Cursor id to page from; null for the first page
my $search = search_example; # String | Free-text search over project names

eval {
    my $result = $api_instance->domainsDomainProjectsDropdown(domainId => $domainId, limit => $limit, cursorId => $cursorId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainProjectsDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
limit = 56 # Integer | Page size (default to null)
cursorId = 56 # Integer | Cursor id to page from; null for the first page (optional) (default to null)
search = search_example # String | Free-text search over project names (optional) (default to null)

try:
    # Retrieve domain projects dropdown list by cursor-based pagination
    api_response = api_instance.domains_domain_projects_dropdown(domainId, limit, cursorId=cursorId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainProjectsDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let cursorId = 56; // Integer
    let search = search_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainProjectsDropdown(domainId, limit, cursorId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Limit*
Integer (int32)
Page size
Required
CursorId
Integer (int32)
Cursor id to page from; null for the first page
Search

Responses


domainsDomainProjectsOffsetBasedDropdown

Retrieve domain projects dropdown list by offset-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/projects/offset-based/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/projects/offset-based/dropdown?Offset=56&Limit=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&Status=&Health=&OrganizationId=56&UserId=userId_example&GroupId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over project names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        ProjectStatus status = ; // ProjectStatus | Filter by project status
        ProjectHealth health = ; // ProjectHealth | Filter by project health
        Integer organizationId = 56; // Integer | Filter by organization id
        String userId = userId_example; // String | Filter projects containing this user id
        Integer groupId = 56; // Integer | Filter by group id

        try {
            ProjectOffsetPaginationList result = apiInstance.domainsDomainProjectsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, status, health, organizationId, userId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectsOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final String search = new String(); // String | Free-text search over project names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final ProjectStatus status = new ProjectStatus(); // ProjectStatus | Filter by project status
final ProjectHealth health = new ProjectHealth(); // ProjectHealth | Filter by project health
final Integer organizationId = new Integer(); // Integer | Filter by organization id
final String userId = new String(); // String | Filter projects containing this user id
final Integer groupId = new Integer(); // Integer | Filter by group id

try {
    final result = await api_instance.domainsDomainProjectsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, status, health, organizationId, userId, groupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainProjectsOffsetBasedDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 100
        String search = search_example; // String | Free-text search over project names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        ProjectStatus status = ; // ProjectStatus | Filter by project status
        ProjectHealth health = ; // ProjectHealth | Filter by project health
        Integer organizationId = 56; // Integer | Filter by organization id
        String userId = userId_example; // String | Filter projects containing this user id
        Integer groupId = 56; // Integer | Filter by group id

        try {
            ProjectOffsetPaginationList result = apiInstance.domainsDomainProjectsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, status, health, organizationId, userId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainProjectsOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
String *search = search_example; // Free-text search over project names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
ProjectStatus *status = ; // Filter by project status (optional) (default to null)
ProjectHealth *health = ; // Filter by project health (optional) (default to null)
Integer *organizationId = 56; // Filter by organization id (optional) (default to null)
String *userId = userId_example; // Filter projects containing this user id (optional) (default to null)
Integer *groupId = 56; // Filter by group id (optional) (default to null)

// Retrieve domain projects dropdown list by offset-based pagination
[apiInstance domainsDomainProjectsOffsetBasedDropdownWith:domainId
    offset:offset
    limit:limit
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    status:status
    health:health
    organizationId:organizationId
    userId:userId
    groupId:groupId
              completionHandler: ^(ProjectOffsetPaginationList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'limit': 56, // {Integer} Page size; defaults to 100
  'search': search_example, // {String} Free-text search over project names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'status': , // {ProjectStatus} Filter by project status
  'health': , // {ProjectHealth} Filter by project health
  'organizationId': 56, // {Integer} Filter by organization id
  'userId': userId_example, // {String} Filter projects containing this user id
  'groupId': 56 // {Integer} Filter by group id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainProjectsOffsetBasedDropdown(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainProjectsOffsetBasedDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var search = search_example;  // String | Free-text search over project names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var status = new ProjectStatus(); // ProjectStatus | Filter by project status (optional)  (default to null)
            var health = new ProjectHealth(); // ProjectHealth | Filter by project health (optional)  (default to null)
            var organizationId = 56;  // Integer | Filter by organization id (optional)  (default to null)
            var userId = userId_example;  // String | Filter projects containing this user id (optional)  (default to null)
            var groupId = 56;  // Integer | Filter by group id (optional)  (default to null)

            try {
                // Retrieve domain projects dropdown list by offset-based pagination
                ProjectOffsetPaginationList result = apiInstance.domainsDomainProjectsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, status, health, organizationId, userId, groupId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainProjectsOffsetBasedDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$limit = 56; // Integer | Page size; defaults to 100
$search = search_example; // String | Free-text search over project names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$status = ; // ProjectStatus | Filter by project status
$health = ; // ProjectHealth | Filter by project health
$organizationId = 56; // Integer | Filter by organization id
$userId = userId_example; // String | Filter projects containing this user id
$groupId = 56; // Integer | Filter by group id

try {
    $result = $api_instance->domainsDomainProjectsOffsetBasedDropdown($domainId, $offset, $limit, $search, $sortBy, $sortDirection, $status, $health, $organizationId, $userId, $groupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainProjectsOffsetBasedDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $limit = 56; # Integer | Page size; defaults to 100
my $search = search_example; # String | Free-text search over project names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $status = ; # ProjectStatus | Filter by project status
my $health = ; # ProjectHealth | Filter by project health
my $organizationId = 56; # Integer | Filter by organization id
my $userId = userId_example; # String | Filter projects containing this user id
my $groupId = 56; # Integer | Filter by group id

eval {
    my $result = $api_instance->domainsDomainProjectsOffsetBasedDropdown(domainId => $domainId, offset => $offset, limit => $limit, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, status => $status, health => $health, organizationId => $organizationId, userId => $userId, groupId => $groupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainProjectsOffsetBasedDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
search = search_example # String | Free-text search over project names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
status =  # ProjectStatus | Filter by project status (optional) (default to null)
health =  # ProjectHealth | Filter by project health (optional) (default to null)
organizationId = 56 # Integer | Filter by organization id (optional) (default to null)
userId = userId_example # String | Filter projects containing this user id (optional) (default to null)
groupId = 56 # Integer | Filter by group id (optional) (default to null)

try:
    # Retrieve domain projects dropdown list by offset-based pagination
    api_response = api_instance.domains_domain_projects_offset_based_dropdown(domainId, offset=offset, limit=limit, search=search, sortBy=sortBy, sortDirection=sortDirection, status=status, health=health, organizationId=organizationId, userId=userId, groupId=groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainProjectsOffsetBasedDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let status = ; // ProjectStatus
    let health = ; // ProjectHealth
    let organizationId = 56; // Integer
    let userId = userId_example; // String
    let groupId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainProjectsOffsetBasedDropdown(domainId, offset, limit, search, sortBy, sortDirection, status, health, organizationId, userId, groupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Limit
Integer (int32)
Page size; defaults to 100
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Status
ProjectStatus
Filter by project status
Health
ProjectHealth
Filter by project health
OrganizationId
Integer (int32)
Filter by organization id
UserId
String
Filter projects containing this user id
GroupId
Integer (int32)
Filter by group id

Responses


domainsDomainTenantLicense

Get the tenant license UUID of the caller's domain


/api/v1/domains/license

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/license"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();

        try {
            TenantLicenseDto result = apiInstance.domainsDomainTenantLicense();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainTenantLicense");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.domainsDomainTenantLicense();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainTenantLicense: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();

        try {
            TenantLicenseDto result = apiInstance.domainsDomainTenantLicense();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainTenantLicense");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];

// Get the tenant license UUID of the caller's domain
[apiInstance domainsDomainTenantLicenseWithCompletionHandler: 
              ^(TenantLicenseDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainTenantLicense(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainTenantLicenseExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();

            try {
                // Get the tenant license UUID of the caller's domain
                TenantLicenseDto result = apiInstance.domainsDomainTenantLicense();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainTenantLicense: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();

try {
    $result = $api_instance->domainsDomainTenantLicense();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainTenantLicense: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();

eval {
    my $result = $api_instance->domainsDomainTenantLicense();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainTenantLicense: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()

try:
    # Get the tenant license UUID of the caller's domain
    api_response = api_instance.domains_domain_tenant_license()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainTenantLicense: %s\n" % e)
extern crate DomainsApi;

pub fn main() {

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainTenantLicense(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


domainsDomainUserDetails

Get user details by domainId


/api/v1/domains/{domainId}/users/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/users/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        String id = id_example; // String | User id

        try {
            UserDetailsDto result = apiInstance.domainsDomainUserDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final String id = new String(); // String | User id

try {
    final result = await api_instance.domainsDomainUserDetails(domainId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainUserDetails: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        String id = id_example; // String | User id

        try {
            UserDetailsDto result = apiInstance.domainsDomainUserDetails(domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
String *id = id_example; // User id (default to null)

// Get user details by domainId
[apiInstance domainsDomainUserDetailsWith:domainId
    id:id
              completionHandler: ^(UserDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var id = id_example; // {String} User id

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

namespace Example
{
    public class domainsDomainUserDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var id = id_example;  // String | User id (default to null)

            try {
                // Get user details by domainId
                UserDetailsDto result = apiInstance.domainsDomainUserDetails(domainId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainUserDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$id = id_example; // String | User id

try {
    $result = $api_instance->domainsDomainUserDetails($domainId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainUserDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $id = id_example; # String | User id

eval {
    my $result = $api_instance->domainsDomainUserDetails(domainId => $domainId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainUserDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
id = id_example # String | User id (default to null)

try:
    # Get user details by domainId
    api_response = api_instance.domains_domain_user_details(domainId, id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainUserDetails: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let id = id_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainUserDetails(domainId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
id*
String
User id
Required

Responses


domainsDomainUserDropdown

Retrieve domain users dropdown list by cursor-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/user/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/user/dropdown?Limit=56&CursorId=789&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Long cursorId = 789; // Long | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over user names

        try {
            UserBriefDtoCursorTimestampPaginatedResponse result = apiInstance.domainsDomainUserDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Long cursorId = new Long(); // Long | Cursor id to page from; null for the first page
final String search = new String(); // String | Free-text search over user names

try {
    final result = await api_instance.domainsDomainUserDropdown(domainId, limit, cursorId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainUserDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer limit = 56; // Integer | Page size
        Long cursorId = 789; // Long | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over user names

        try {
            UserBriefDtoCursorTimestampPaginatedResponse result = apiInstance.domainsDomainUserDropdown(domainId, limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *limit = 56; // Page size (default to null)
Long *cursorId = 789; // Cursor id to page from; null for the first page (optional) (default to null)
String *search = search_example; // Free-text search over user names (optional) (default to null)

// Retrieve domain users dropdown list by cursor-based pagination
[apiInstance domainsDomainUserDropdownWith:domainId
    limit:limit
    cursorId:cursorId
    search:search
              completionHandler: ^(UserBriefDtoCursorTimestampPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var limit = 56; // {Integer} Page size
var opts = {
  'cursorId': 789, // {Long} Cursor id to page from; null for the first page
  'search': search_example // {String} Free-text search over user names
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainUserDropdown(domainId, limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainUserDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (default to null)
            var cursorId = 789;  // Long | Cursor id to page from; null for the first page (optional)  (default to null)
            var search = search_example;  // String | Free-text search over user names (optional)  (default to null)

            try {
                // Retrieve domain users dropdown list by cursor-based pagination
                UserBriefDtoCursorTimestampPaginatedResponse result = apiInstance.domainsDomainUserDropdown(domainId, limit, cursorId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainUserDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$limit = 56; // Integer | Page size
$cursorId = 789; // Long | Cursor id to page from; null for the first page
$search = search_example; // String | Free-text search over user names

try {
    $result = $api_instance->domainsDomainUserDropdown($domainId, $limit, $cursorId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainUserDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $limit = 56; # Integer | Page size
my $cursorId = 789; # Long | Cursor id to page from; null for the first page
my $search = search_example; # String | Free-text search over user names

eval {
    my $result = $api_instance->domainsDomainUserDropdown(domainId => $domainId, limit => $limit, cursorId => $cursorId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainUserDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
limit = 56 # Integer | Page size (default to null)
cursorId = 789 # Long | Cursor id to page from; null for the first page (optional) (default to null)
search = search_example # String | Free-text search over user names (optional) (default to null)

try:
    # Retrieve domain users dropdown list by cursor-based pagination
    api_response = api_instance.domains_domain_user_dropdown(domainId, limit, cursorId=cursorId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainUserDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let cursorId = 789; // Long
    let search = search_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainUserDropdown(domainId, limit, cursorId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
Limit*
Integer (int32)
Page size
Required
CursorId
Long (int64)
Cursor id to page from; null for the first page
Search

Responses


domainsDomainUserOffsetBasedDropdown

Retrieve domain users dropdown list by offset-based pagination

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/user/offset-based/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/user/offset-based/dropdown?FilterRole=&Limit=56&Offset=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&FilterOrganizationId=56&FilterProjectId=56&FilterGroupId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        EFilteredUserRole filterRole = ; // EFilteredUserRole | Filter by user role
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over user names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer filterOrganizationId = 56; // Integer | Filter by organization id
        Integer filterProjectId = 56; // Integer | Filter by project id
        Integer filterGroupId = 56; // Integer | Filter by group id

        try {
            UserOffsetPaginationDropdownList result = apiInstance.domainsDomainUserOffsetBasedDropdown(domainId, filterRole, limit, offset, search, sortBy, sortDirection, filterOrganizationId, filterProjectId, filterGroupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final EFilteredUserRole filterRole = new EFilteredUserRole(); // EFilteredUserRole | Filter by user role
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final String search = new String(); // String | Free-text search over user names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer filterOrganizationId = new Integer(); // Integer | Filter by organization id
final Integer filterProjectId = new Integer(); // Integer | Filter by project id
final Integer filterGroupId = new Integer(); // Integer | Filter by group id

try {
    final result = await api_instance.domainsDomainUserOffsetBasedDropdown(domainId, filterRole, limit, offset, search, sortBy, sortDirection, filterOrganizationId, filterProjectId, filterGroupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainUserOffsetBasedDropdown: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        EFilteredUserRole filterRole = ; // EFilteredUserRole | Filter by user role
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over user names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer filterOrganizationId = 56; // Integer | Filter by organization id
        Integer filterProjectId = 56; // Integer | Filter by project id
        Integer filterGroupId = 56; // Integer | Filter by group id

        try {
            UserOffsetPaginationDropdownList result = apiInstance.domainsDomainUserOffsetBasedDropdown(domainId, filterRole, limit, offset, search, sortBy, sortDirection, filterOrganizationId, filterProjectId, filterGroupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUserOffsetBasedDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
EFilteredUserRole *filterRole = ; // Filter by user role (optional) (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
String *search = search_example; // Free-text search over user names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *filterOrganizationId = 56; // Filter by organization id (optional) (default to null)
Integer *filterProjectId = 56; // Filter by project id (optional) (default to null)
Integer *filterGroupId = 56; // Filter by group id (optional) (default to null)

// Retrieve domain users dropdown list by offset-based pagination
[apiInstance domainsDomainUserOffsetBasedDropdownWith:domainId
    filterRole:filterRole
    limit:limit
    offset:offset
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    filterOrganizationId:filterOrganizationId
    filterProjectId:filterProjectId
    filterGroupId:filterGroupId
              completionHandler: ^(UserOffsetPaginationDropdownList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'filterRole': , // {EFilteredUserRole} Filter by user role
  'limit': 56, // {Integer} Page size; defaults to 50
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'search': search_example, // {String} Free-text search over user names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'filterOrganizationId': 56, // {Integer} Filter by organization id
  'filterProjectId': 56, // {Integer} Filter by project id
  'filterGroupId': 56 // {Integer} Filter by group id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainUserOffsetBasedDropdown(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainUserOffsetBasedDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var filterRole = new EFilteredUserRole(); // EFilteredUserRole | Filter by user role (optional)  (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var search = search_example;  // String | Free-text search over user names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var filterOrganizationId = 56;  // Integer | Filter by organization id (optional)  (default to null)
            var filterProjectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var filterGroupId = 56;  // Integer | Filter by group id (optional)  (default to null)

            try {
                // Retrieve domain users dropdown list by offset-based pagination
                UserOffsetPaginationDropdownList result = apiInstance.domainsDomainUserOffsetBasedDropdown(domainId, filterRole, limit, offset, search, sortBy, sortDirection, filterOrganizationId, filterProjectId, filterGroupId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainUserOffsetBasedDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$filterRole = ; // EFilteredUserRole | Filter by user role
$limit = 56; // Integer | Page size; defaults to 50
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$search = search_example; // String | Free-text search over user names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$filterOrganizationId = 56; // Integer | Filter by organization id
$filterProjectId = 56; // Integer | Filter by project id
$filterGroupId = 56; // Integer | Filter by group id

try {
    $result = $api_instance->domainsDomainUserOffsetBasedDropdown($domainId, $filterRole, $limit, $offset, $search, $sortBy, $sortDirection, $filterOrganizationId, $filterProjectId, $filterGroupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainUserOffsetBasedDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $filterRole = ; # EFilteredUserRole | Filter by user role
my $limit = 56; # Integer | Page size; defaults to 50
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $search = search_example; # String | Free-text search over user names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $filterOrganizationId = 56; # Integer | Filter by organization id
my $filterProjectId = 56; # Integer | Filter by project id
my $filterGroupId = 56; # Integer | Filter by group id

eval {
    my $result = $api_instance->domainsDomainUserOffsetBasedDropdown(domainId => $domainId, filterRole => $filterRole, limit => $limit, offset => $offset, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, filterOrganizationId => $filterOrganizationId, filterProjectId => $filterProjectId, filterGroupId => $filterGroupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainUserOffsetBasedDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
filterRole =  # EFilteredUserRole | Filter by user role (optional) (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
search = search_example # String | Free-text search over user names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
filterOrganizationId = 56 # Integer | Filter by organization id (optional) (default to null)
filterProjectId = 56 # Integer | Filter by project id (optional) (default to null)
filterGroupId = 56 # Integer | Filter by group id (optional) (default to null)

try:
    # Retrieve domain users dropdown list by offset-based pagination
    api_response = api_instance.domains_domain_user_offset_based_dropdown(domainId, filterRole=filterRole, limit=limit, offset=offset, search=search, sortBy=sortBy, sortDirection=sortDirection, filterOrganizationId=filterOrganizationId, filterProjectId=filterProjectId, filterGroupId=filterGroupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainUserOffsetBasedDropdown: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let filterRole = ; // EFilteredUserRole
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let filterOrganizationId = 56; // Integer
    let filterProjectId = 56; // Integer
    let filterGroupId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainUserOffsetBasedDropdown(domainId, filterRole, limit, offset, search, sortBy, sortDirection, filterOrganizationId, filterProjectId, filterGroupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
FilterRole
EFilteredUserRole
Filter by user role
Limit
Integer (int32)
Page size; defaults to 50
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
FilterOrganizationId
Integer (int32)
Filter by organization id
FilterProjectId
Integer (int32)
Filter by project id
FilterGroupId
Integer (int32)
Filter by group id

Responses


domainsDomainUsersAvailable

Retrieve available users for adding to a group

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/domains/{domainId}/users/available

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains/{domainId}/users/available?GroupId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to scope availability to

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.domainsDomainUsersAvailable(domainId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUsersAvailable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final Integer groupId = new Integer(); // Integer | Optional group id to scope availability to

try {
    final result = await api_instance.domainsDomainUsersAvailable(domainId, groupId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsDomainUsersAvailable: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        Integer groupId = 56; // Integer | Optional group id to scope availability to

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.domainsDomainUsersAvailable(domainId, groupId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsDomainUsersAvailable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (default to null)
Integer *groupId = 56; // Optional group id to scope availability to (optional) (default to null)

// Retrieve available users for adding to a group
[apiInstance domainsDomainUsersAvailableWith:domainId
    groupId:groupId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var domainId = 56; // {Integer} Domain id, positive integer
var opts = {
  'groupId': 56 // {Integer} Optional group id to scope availability to
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.domainsDomainUsersAvailable(domainId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class domainsDomainUsersAvailableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (default to null)
            var groupId = 56;  // Integer | Optional group id to scope availability to (optional)  (default to null)

            try {
                // Retrieve available users for adding to a group
                array[CommonStringBasedDropdownDto] result = apiInstance.domainsDomainUsersAvailable(domainId, groupId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsDomainUsersAvailable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$groupId = 56; // Integer | Optional group id to scope availability to

try {
    $result = $api_instance->domainsDomainUsersAvailable($domainId, $groupId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsDomainUsersAvailable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $groupId = 56; # Integer | Optional group id to scope availability to

eval {
    my $result = $api_instance->domainsDomainUsersAvailable(domainId => $domainId, groupId => $groupId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsDomainUsersAvailable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (default to null)
groupId = 56 # Integer | Optional group id to scope availability to (optional) (default to null)

try:
    # Retrieve available users for adding to a group
    api_response = api_instance.domains_domain_users_available(domainId, groupId=groupId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsDomainUsersAvailable: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let groupId = 56; // Integer

    let mut context = DomainsApi::Context::default();
    let result = client.domainsDomainUsersAvailable(domainId, groupId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
domainId*
Integer (int32)
Domain id, positive integer
Required
Query parameters
Name Description
GroupId
Integer (int32)
Optional group id to scope availability to

Responses


domainsEnable2faManagement

Enable 2fa management


/api/v1/domains/enable-2fa-management

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/enable-2fa-management" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.domainsEnable2faManagement(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsEnable2faManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.domainsEnable2faManagement(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsEnable2faManagement: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.domainsEnable2faManagement(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsEnable2faManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Object *body = Object; //  (optional)

// Enable 2fa management
[apiInstance domainsEnable2faManagementWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'body': Object // {Object} 
};

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

namespace Example
{
    public class domainsEnable2faManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Enable 2fa management
                Object result = apiInstance.domainsEnable2faManagement(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsEnable2faManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$body = Object; // Object | 

try {
    $result = $api_instance->domainsEnable2faManagement($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsEnable2faManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->domainsEnable2faManagement(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsEnable2faManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
body = Object # Object |  (optional)

try:
    # Enable 2fa management
    api_response = api_instance.domains_enable2fa_management(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsEnable2faManagement: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let body = Object; // Object

    let mut context = DomainsApi::Context::default();
    let result = client.domainsEnable2faManagement(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


domainsListDomains

Retrieve domains list


/api/v1/domains

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/domains?Limit=56&CursorId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over domain names

        try {
            DomainListCursorPaginatedResponse result = apiInstance.domainsListDomains(limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsListDomains");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer cursorId = new Integer(); // Integer | Cursor id to page from; null for the first page
final String search = new String(); // String | Free-text search over domain names

try {
    final result = await api_instance.domainsListDomains(limit, cursorId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsListDomains: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer limit = 56; // Integer | Page size
        Integer cursorId = 56; // Integer | Cursor id to page from; null for the first page
        String search = search_example; // String | Free-text search over domain names

        try {
            DomainListCursorPaginatedResponse result = apiInstance.domainsListDomains(limit, cursorId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsListDomains");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *cursorId = 56; // Cursor id to page from; null for the first page (optional) (default to null)
String *search = search_example; // Free-text search over domain names (optional) (default to null)

// Retrieve domains list
[apiInstance domainsListDomainsWith:limit
    cursorId:cursorId
    search:search
              completionHandler: ^(DomainListCursorPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'cursorId': 56, // {Integer} Cursor id to page from; null for the first page
  'search': search_example // {String} Free-text search over domain names
};

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

namespace Example
{
    public class domainsListDomainsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var cursorId = 56;  // Integer | Cursor id to page from; null for the first page (optional)  (default to null)
            var search = search_example;  // String | Free-text search over domain names (optional)  (default to null)

            try {
                // Retrieve domains list
                DomainListCursorPaginatedResponse result = apiInstance.domainsListDomains(limit, cursorId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsListDomains: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$limit = 56; // Integer | Page size
$cursorId = 56; // Integer | Cursor id to page from; null for the first page
$search = search_example; // String | Free-text search over domain names

try {
    $result = $api_instance->domainsListDomains($limit, $cursorId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsListDomains: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $limit = 56; # Integer | Page size
my $cursorId = 56; # Integer | Cursor id to page from; null for the first page
my $search = search_example; # String | Free-text search over domain names

eval {
    my $result = $api_instance->domainsListDomains(limit => $limit, cursorId => $cursorId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsListDomains: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
limit = 56 # Integer | Page size (optional) (default to null)
cursorId = 56 # Integer | Cursor id to page from; null for the first page (optional) (default to null)
search = search_example # String | Free-text search over domain names (optional) (default to null)

try:
    # Retrieve domains list
    api_response = api_instance.domains_list_domains(limit=limit, cursorId=cursorId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsListDomains: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let limit = 56; // Integer
    let cursorId = 56; // Integer
    let search = search_example; // String

    let mut context = DomainsApi::Context::default();
    let result = client.domainsListDomains(limit, cursorId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
CursorId
Integer (int32)
Cursor id to page from; null for the first page
Search

Responses


domainsTransferOwnership

Transfer ownership


/api/v1/domains/transfer-ownership

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/transfer-ownership" \
 -d '{
  "userId" : "userId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        TransferOwnershipCommand transferOwnershipCommand = ; // TransferOwnershipCommand | 

        try {
            Object result = apiInstance.domainsTransferOwnership(transferOwnershipCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsTransferOwnership");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TransferOwnershipCommand transferOwnershipCommand = new TransferOwnershipCommand(); // TransferOwnershipCommand | 

try {
    final result = await api_instance.domainsTransferOwnership(transferOwnershipCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsTransferOwnership: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        TransferOwnershipCommand transferOwnershipCommand = ; // TransferOwnershipCommand | 

        try {
            Object result = apiInstance.domainsTransferOwnership(transferOwnershipCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsTransferOwnership");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
TransferOwnershipCommand *transferOwnershipCommand = ; //  (optional)

// Transfer ownership
[apiInstance domainsTransferOwnershipWith:transferOwnershipCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'transferOwnershipCommand':  // {TransferOwnershipCommand} 
};

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

namespace Example
{
    public class domainsTransferOwnershipExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var transferOwnershipCommand = new TransferOwnershipCommand(); // TransferOwnershipCommand |  (optional) 

            try {
                // Transfer ownership
                Object result = apiInstance.domainsTransferOwnership(transferOwnershipCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsTransferOwnership: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$transferOwnershipCommand = ; // TransferOwnershipCommand | 

try {
    $result = $api_instance->domainsTransferOwnership($transferOwnershipCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsTransferOwnership: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $transferOwnershipCommand = WWW::OPenAPIClient::Object::TransferOwnershipCommand->new(); # TransferOwnershipCommand | 

eval {
    my $result = $api_instance->domainsTransferOwnership(transferOwnershipCommand => $transferOwnershipCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsTransferOwnership: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
transferOwnershipCommand =  # TransferOwnershipCommand |  (optional)

try:
    # Transfer ownership
    api_response = api_instance.domains_transfer_ownership(transferOwnershipCommand=transferOwnershipCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsTransferOwnership: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let transferOwnershipCommand = ; // TransferOwnershipCommand

    let mut context = DomainsApi::Context::default();
    let result = client.domainsTransferOwnership(transferOwnershipCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
transferOwnershipCommand

Responses


domainsUpdate

Update domain


/api/v1/domains/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/domains/update" \
 -d '{
  "name" : "name",
  "id" : 0,
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        UpdateDomainCommand updateDomainCommand = ; // UpdateDomainCommand | 

        try {
            'Integer' result = apiInstance.domainsUpdate(updateDomainCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateDomainCommand updateDomainCommand = new UpdateDomainCommand(); // UpdateDomainCommand | 

try {
    final result = await api_instance.domainsUpdate(updateDomainCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsUpdate: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        UpdateDomainCommand updateDomainCommand = ; // UpdateDomainCommand | 

        try {
            'Integer' result = apiInstance.domainsUpdate(updateDomainCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
UpdateDomainCommand *updateDomainCommand = ; //  (optional)

// Update domain
[apiInstance domainsUpdateWith:updateDomainCommand
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'updateDomainCommand':  // {UpdateDomainCommand} 
};

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

namespace Example
{
    public class domainsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var updateDomainCommand = new UpdateDomainCommand(); // UpdateDomainCommand |  (optional) 

            try {
                // Update domain
                'Integer' result = apiInstance.domainsUpdate(updateDomainCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$updateDomainCommand = ; // UpdateDomainCommand | 

try {
    $result = $api_instance->domainsUpdate($updateDomainCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $updateDomainCommand = WWW::OPenAPIClient::Object::UpdateDomainCommand->new(); # UpdateDomainCommand | 

eval {
    my $result = $api_instance->domainsUpdate(updateDomainCommand => $updateDomainCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
updateDomainCommand =  # UpdateDomainCommand |  (optional)

try:
    # Update domain
    api_response = api_instance.domains_update(updateDomainCommand=updateDomainCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsUpdate: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let updateDomainCommand = ; // UpdateDomainCommand

    let mut context = DomainsApi::Context::default();
    let result = client.domainsUpdate(updateDomainCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateDomainCommand

Responses


domainsUpdateLicense

Add a Cloudera license to an existing domain that has none


/api/v1/domains/license/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/domains/license/update"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            'Integer' result = apiInstance.domainsUpdateLicense(domainId, licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsUpdateLicense");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Domain id, positive integer
final File licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    final result = await api_instance.domainsUpdateLicense(domainId, licenseFile);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsUpdateLicense: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        Integer domainId = 56; // Integer | Domain id, positive integer
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            'Integer' result = apiInstance.domainsUpdateLicense(domainId, licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsUpdateLicense");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
Integer *domainId = 56; // Domain id, positive integer (optional) (default to null)
File *licenseFile = ; // Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

// Add a Cloudera license to an existing domain that has none
[apiInstance domainsUpdateLicenseWith:domainId
    licenseFile:licenseFile
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'domainId': 56, // {Integer} Domain id, positive integer
  'licenseFile':  // {File} Signed Cloudera license file (PGP cleartext), max 16 KB
};

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

namespace Example
{
    public class domainsUpdateLicenseExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var domainId = 56;  // Integer | Domain id, positive integer (optional)  (default to null)
            var licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional)  (default to null)

            try {
                // Add a Cloudera license to an existing domain that has none
                'Integer' result = apiInstance.domainsUpdateLicense(domainId, licenseFile);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsUpdateLicense: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$domainId = 56; // Integer | Domain id, positive integer
$licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    $result = $api_instance->domainsUpdateLicense($domainId, $licenseFile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsUpdateLicense: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $domainId = 56; # Integer | Domain id, positive integer
my $licenseFile = ; # File | Signed Cloudera license file (PGP cleartext), max 16 KB

eval {
    my $result = $api_instance->domainsUpdateLicense(domainId => $domainId, licenseFile => $licenseFile);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsUpdateLicense: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
domainId = 56 # Integer | Domain id, positive integer (optional) (default to null)
licenseFile =  # File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

try:
    # Add a Cloudera license to an existing domain that has none
    api_response = api_instance.domains_update_license(domainId=domainId, licenseFile=licenseFile)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsUpdateLicense: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let domainId = 56; // Integer
    let licenseFile = ; // File

    let mut context = DomainsApi::Context::default();
    let result = client.domainsUpdateLicense(domainId, licenseFile, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
domainId
Integer (int32)
Domain id, positive integer
licenseFile
File (binary)
Signed Cloudera license file (PGP cleartext), max 16 KB

Responses


domainsVerifyLicense

Verify a Cloudera license file before creating a domain


/api/v1/domains/license/verify

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/domains/license/verify"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DomainsApi;

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

public class DomainsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        DomainsApi apiInstance = new DomainsApi();
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            DomainLicenseDto result = apiInstance.domainsVerifyLicense(licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsVerifyLicense");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    final result = await api_instance.domainsVerifyLicense(licenseFile);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->domainsVerifyLicense: $e\n');
}

import org.openapitools.client.api.DomainsApi;

public class DomainsApiExample {
    public static void main(String[] args) {
        DomainsApi apiInstance = new DomainsApi();
        File licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

        try {
            DomainLicenseDto result = apiInstance.domainsVerifyLicense(licenseFile);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DomainsApi#domainsVerifyLicense");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
DomainsApi *apiInstance = [[DomainsApi alloc] init];
File *licenseFile = ; // Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

// Verify a Cloudera license file before creating a domain
[apiInstance domainsVerifyLicenseWith:licenseFile
              completionHandler: ^(DomainLicenseDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.DomainsApi()
var opts = {
  'licenseFile':  // {File} Signed Cloudera license file (PGP cleartext), max 16 KB
};

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

namespace Example
{
    public class domainsVerifyLicenseExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new DomainsApi();
            var licenseFile = new File(); // File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional)  (default to null)

            try {
                // Verify a Cloudera license file before creating a domain
                DomainLicenseDto result = apiInstance.domainsVerifyLicense(licenseFile);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DomainsApi.domainsVerifyLicense: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DomainsApi();
$licenseFile = ; // File | Signed Cloudera license file (PGP cleartext), max 16 KB

try {
    $result = $api_instance->domainsVerifyLicense($licenseFile);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DomainsApi->domainsVerifyLicense: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DomainsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DomainsApi->new();
my $licenseFile = ; # File | Signed Cloudera license file (PGP cleartext), max 16 KB

eval {
    my $result = $api_instance->domainsVerifyLicense(licenseFile => $licenseFile);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling DomainsApi->domainsVerifyLicense: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.DomainsApi()
licenseFile =  # File | Signed Cloudera license file (PGP cleartext), max 16 KB (optional) (default to null)

try:
    # Verify a Cloudera license file before creating a domain
    api_response = api_instance.domains_verify_license(licenseFile=licenseFile)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainsApi->domainsVerifyLicense: %s\n" % e)
extern crate DomainsApi;

pub fn main() {
    let licenseFile = ; // File

    let mut context = DomainsApi::Context::default();
    let result = client.domainsVerifyLicense(licenseFile, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
licenseFile
File (binary)
Signed Cloudera license file (PGP cleartext), max 16 KB

Responses


Executors

executorsCreate

Create an executor


/api/v1/executors/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/executors/create" \
 -d '{
  "continent" : "continent",
  "name" : "name",
  "kubeConfig" : "kubeConfig",
  "localCluster" : true,
  "enabled" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ExecutorsApi;

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

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ExecutorsApi apiInstance = new ExecutorsApi();
        CreateExecutorCommand createExecutorCommand = ; // CreateExecutorCommand | 

        try {
            Object result = apiInstance.executorsCreate(createExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateExecutorCommand createExecutorCommand = new CreateExecutorCommand(); // CreateExecutorCommand | 

try {
    final result = await api_instance.executorsCreate(createExecutorCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->executorsCreate: $e\n');
}

import org.openapitools.client.api.ExecutorsApi;

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ExecutorsApi apiInstance = new ExecutorsApi();
        CreateExecutorCommand createExecutorCommand = ; // CreateExecutorCommand | 

        try {
            Object result = apiInstance.executorsCreate(createExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ExecutorsApi *apiInstance = [[ExecutorsApi alloc] init];
CreateExecutorCommand *createExecutorCommand = ; //  (optional)

// Create an executor
[apiInstance executorsCreateWith:createExecutorCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ExecutorsApi()
var opts = {
  'createExecutorCommand':  // {CreateExecutorCommand} 
};

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

namespace Example
{
    public class executorsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ExecutorsApi();
            var createExecutorCommand = new CreateExecutorCommand(); // CreateExecutorCommand |  (optional) 

            try {
                // Create an executor
                Object result = apiInstance.executorsCreate(createExecutorCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ExecutorsApi.executorsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ExecutorsApi();
$createExecutorCommand = ; // CreateExecutorCommand | 

try {
    $result = $api_instance->executorsCreate($createExecutorCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExecutorsApi->executorsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ExecutorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ExecutorsApi->new();
my $createExecutorCommand = WWW::OPenAPIClient::Object::CreateExecutorCommand->new(); # CreateExecutorCommand | 

eval {
    my $result = $api_instance->executorsCreate(createExecutorCommand => $createExecutorCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExecutorsApi->executorsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ExecutorsApi()
createExecutorCommand =  # CreateExecutorCommand |  (optional)

try:
    # Create an executor
    api_response = api_instance.executors_create(createExecutorCommand=createExecutorCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExecutorsApi->executorsCreate: %s\n" % e)
extern crate ExecutorsApi;

pub fn main() {
    let createExecutorCommand = ; // CreateExecutorCommand

    let mut context = ExecutorsApi::Context::default();
    let result = client.executorsCreate(createExecutorCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createExecutorCommand

Responses


executorsDelete

Delete an executor


/api/v1/executors/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/executors/delete" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ExecutorsApi;

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

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ExecutorsApi apiInstance = new ExecutorsApi();
        DeleteExecutorCommand deleteExecutorCommand = ; // DeleteExecutorCommand | 

        try {
            Object result = apiInstance.executorsDelete(deleteExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteExecutorCommand deleteExecutorCommand = new DeleteExecutorCommand(); // DeleteExecutorCommand | 

try {
    final result = await api_instance.executorsDelete(deleteExecutorCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->executorsDelete: $e\n');
}

import org.openapitools.client.api.ExecutorsApi;

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ExecutorsApi apiInstance = new ExecutorsApi();
        DeleteExecutorCommand deleteExecutorCommand = ; // DeleteExecutorCommand | 

        try {
            Object result = apiInstance.executorsDelete(deleteExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ExecutorsApi *apiInstance = [[ExecutorsApi alloc] init];
DeleteExecutorCommand *deleteExecutorCommand = ; //  (optional)

// Delete an executor
[apiInstance executorsDeleteWith:deleteExecutorCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ExecutorsApi()
var opts = {
  'deleteExecutorCommand':  // {DeleteExecutorCommand} 
};

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

namespace Example
{
    public class executorsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ExecutorsApi();
            var deleteExecutorCommand = new DeleteExecutorCommand(); // DeleteExecutorCommand |  (optional) 

            try {
                // Delete an executor
                Object result = apiInstance.executorsDelete(deleteExecutorCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ExecutorsApi.executorsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ExecutorsApi();
$deleteExecutorCommand = ; // DeleteExecutorCommand | 

try {
    $result = $api_instance->executorsDelete($deleteExecutorCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExecutorsApi->executorsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ExecutorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ExecutorsApi->new();
my $deleteExecutorCommand = WWW::OPenAPIClient::Object::DeleteExecutorCommand->new(); # DeleteExecutorCommand | 

eval {
    my $result = $api_instance->executorsDelete(deleteExecutorCommand => $deleteExecutorCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExecutorsApi->executorsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ExecutorsApi()
deleteExecutorCommand =  # DeleteExecutorCommand |  (optional)

try:
    # Delete an executor
    api_response = api_instance.executors_delete(deleteExecutorCommand=deleteExecutorCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExecutorsApi->executorsDelete: %s\n" % e)
extern crate ExecutorsApi;

pub fn main() {
    let deleteExecutorCommand = ; // DeleteExecutorCommand

    let mut context = ExecutorsApi::Context::default();
    let result = client.executorsDelete(deleteExecutorCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteExecutorCommand

Responses


executorsEditHealth

Update health status of the executor by Id


/api/v1/executors/edit/health

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/executors/edit/health" \
 -d '{
  "executorId" : 0,
  "health" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ExecutorsApi;

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

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ExecutorsApi apiInstance = new ExecutorsApi();
        UpdateExecutorHealthStatusCommand updateExecutorHealthStatusCommand = ; // UpdateExecutorHealthStatusCommand | 

        try {
            Object result = apiInstance.executorsEditHealth(updateExecutorHealthStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsEditHealth");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateExecutorHealthStatusCommand updateExecutorHealthStatusCommand = new UpdateExecutorHealthStatusCommand(); // UpdateExecutorHealthStatusCommand | 

try {
    final result = await api_instance.executorsEditHealth(updateExecutorHealthStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->executorsEditHealth: $e\n');
}

import org.openapitools.client.api.ExecutorsApi;

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ExecutorsApi apiInstance = new ExecutorsApi();
        UpdateExecutorHealthStatusCommand updateExecutorHealthStatusCommand = ; // UpdateExecutorHealthStatusCommand | 

        try {
            Object result = apiInstance.executorsEditHealth(updateExecutorHealthStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsEditHealth");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ExecutorsApi *apiInstance = [[ExecutorsApi alloc] init];
UpdateExecutorHealthStatusCommand *updateExecutorHealthStatusCommand = ; //  (optional)

// Update health status of the executor by Id
[apiInstance executorsEditHealthWith:updateExecutorHealthStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ExecutorsApi()
var opts = {
  'updateExecutorHealthStatusCommand':  // {UpdateExecutorHealthStatusCommand} 
};

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

namespace Example
{
    public class executorsEditHealthExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ExecutorsApi();
            var updateExecutorHealthStatusCommand = new UpdateExecutorHealthStatusCommand(); // UpdateExecutorHealthStatusCommand |  (optional) 

            try {
                // Update health status of the executor by Id
                Object result = apiInstance.executorsEditHealth(updateExecutorHealthStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ExecutorsApi.executorsEditHealth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ExecutorsApi();
$updateExecutorHealthStatusCommand = ; // UpdateExecutorHealthStatusCommand | 

try {
    $result = $api_instance->executorsEditHealth($updateExecutorHealthStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExecutorsApi->executorsEditHealth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ExecutorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ExecutorsApi->new();
my $updateExecutorHealthStatusCommand = WWW::OPenAPIClient::Object::UpdateExecutorHealthStatusCommand->new(); # UpdateExecutorHealthStatusCommand | 

eval {
    my $result = $api_instance->executorsEditHealth(updateExecutorHealthStatusCommand => $updateExecutorHealthStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExecutorsApi->executorsEditHealth: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ExecutorsApi()
updateExecutorHealthStatusCommand =  # UpdateExecutorHealthStatusCommand |  (optional)

try:
    # Update health status of the executor by Id
    api_response = api_instance.executors_edit_health(updateExecutorHealthStatusCommand=updateExecutorHealthStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExecutorsApi->executorsEditHealth: %s\n" % e)
extern crate ExecutorsApi;

pub fn main() {
    let updateExecutorHealthStatusCommand = ; // UpdateExecutorHealthStatusCommand

    let mut context = ExecutorsApi::Context::default();
    let result = client.executorsEditHealth(updateExecutorHealthStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateExecutorHealthStatusCommand

Responses


executorsList

Retrieve a list of kube configs of executors


/api/v1/executors

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/executors?Offset=56&Limit=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ExecutorsApi;

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

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ExecutorsApi apiInstance = new ExecutorsApi();
        Integer offset = 56; // Integer | Row offset for pagination
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over executor names
        Integer id = 56; // Integer | Filter by executor id

        try {
            ExecutorListResponse result = apiInstance.executorsList(offset, limit, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer offset = new Integer(); // Integer | Row offset for pagination
final Integer limit = new Integer(); // Integer | Page size
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over executor names
final Integer id = new Integer(); // Integer | Filter by executor id

try {
    final result = await api_instance.executorsList(offset, limit, sortBy, sortDirection, search, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->executorsList: $e\n');
}

import org.openapitools.client.api.ExecutorsApi;

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ExecutorsApi apiInstance = new ExecutorsApi();
        Integer offset = 56; // Integer | Row offset for pagination
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over executor names
        Integer id = 56; // Integer | Filter by executor id

        try {
            ExecutorListResponse result = apiInstance.executorsList(offset, limit, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ExecutorsApi *apiInstance = [[ExecutorsApi alloc] init];
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over executor names (optional) (default to null)
Integer *id = 56; // Filter by executor id (optional) (default to null)

// Retrieve a list of kube configs of executors
[apiInstance executorsListWith:offset
    limit:limit
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
              completionHandler: ^(ExecutorListResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ExecutorsApi()
var opts = {
  'offset': 56, // {Integer} Row offset for pagination
  'limit': 56, // {Integer} Page size
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over executor names
  'id': 56 // {Integer} Filter by executor id
};

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

namespace Example
{
    public class executorsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ExecutorsApi();
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over executor names (optional)  (default to null)
            var id = 56;  // Integer | Filter by executor id (optional)  (default to null)

            try {
                // Retrieve a list of kube configs of executors
                ExecutorListResponse result = apiInstance.executorsList(offset, limit, sortBy, sortDirection, search, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ExecutorsApi.executorsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ExecutorsApi();
$offset = 56; // Integer | Row offset for pagination
$limit = 56; // Integer | Page size
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over executor names
$id = 56; // Integer | Filter by executor id

try {
    $result = $api_instance->executorsList($offset, $limit, $sortBy, $sortDirection, $search, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExecutorsApi->executorsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ExecutorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ExecutorsApi->new();
my $offset = 56; # Integer | Row offset for pagination
my $limit = 56; # Integer | Page size
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over executor names
my $id = 56; # Integer | Filter by executor id

eval {
    my $result = $api_instance->executorsList(offset => $offset, limit => $limit, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExecutorsApi->executorsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ExecutorsApi()
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over executor names (optional) (default to null)
id = 56 # Integer | Filter by executor id (optional) (default to null)

try:
    # Retrieve a list of kube configs of executors
    api_response = api_instance.executors_list(offset=offset, limit=limit, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExecutorsApi->executorsList: %s\n" % e)
extern crate ExecutorsApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer

    let mut context = ExecutorsApi::Context::default();
    let result = client.executorsList(offset, limit, sortBy, sortDirection, search, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Offset
Integer (int32)
Row offset for pagination
Limit
Integer (int32)
Page size
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
Id
Integer (int32)
Filter by executor id

Responses


executorsToggle

Toggle an executor


/api/v1/executors/toggle

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/executors/toggle" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ExecutorsApi;

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

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ExecutorsApi apiInstance = new ExecutorsApi();
        ToggleExecutorCommand toggleExecutorCommand = ; // ToggleExecutorCommand | 

        try {
            Object result = apiInstance.executorsToggle(toggleExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsToggle");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ToggleExecutorCommand toggleExecutorCommand = new ToggleExecutorCommand(); // ToggleExecutorCommand | 

try {
    final result = await api_instance.executorsToggle(toggleExecutorCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->executorsToggle: $e\n');
}

import org.openapitools.client.api.ExecutorsApi;

public class ExecutorsApiExample {
    public static void main(String[] args) {
        ExecutorsApi apiInstance = new ExecutorsApi();
        ToggleExecutorCommand toggleExecutorCommand = ; // ToggleExecutorCommand | 

        try {
            Object result = apiInstance.executorsToggle(toggleExecutorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ExecutorsApi#executorsToggle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ExecutorsApi *apiInstance = [[ExecutorsApi alloc] init];
ToggleExecutorCommand *toggleExecutorCommand = ; //  (optional)

// Toggle an executor
[apiInstance executorsToggleWith:toggleExecutorCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ExecutorsApi()
var opts = {
  'toggleExecutorCommand':  // {ToggleExecutorCommand} 
};

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

namespace Example
{
    public class executorsToggleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ExecutorsApi();
            var toggleExecutorCommand = new ToggleExecutorCommand(); // ToggleExecutorCommand |  (optional) 

            try {
                // Toggle an executor
                Object result = apiInstance.executorsToggle(toggleExecutorCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ExecutorsApi.executorsToggle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ExecutorsApi();
$toggleExecutorCommand = ; // ToggleExecutorCommand | 

try {
    $result = $api_instance->executorsToggle($toggleExecutorCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ExecutorsApi->executorsToggle: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ExecutorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ExecutorsApi->new();
my $toggleExecutorCommand = WWW::OPenAPIClient::Object::ToggleExecutorCommand->new(); # ToggleExecutorCommand | 

eval {
    my $result = $api_instance->executorsToggle(toggleExecutorCommand => $toggleExecutorCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ExecutorsApi->executorsToggle: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ExecutorsApi()
toggleExecutorCommand =  # ToggleExecutorCommand |  (optional)

try:
    # Toggle an executor
    api_response = api_instance.executors_toggle(toggleExecutorCommand=toggleExecutorCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExecutorsApi->executorsToggle: %s\n" % e)
extern crate ExecutorsApi;

pub fn main() {
    let toggleExecutorCommand = ; // ToggleExecutorCommand

    let mut context = ExecutorsApi::Context::default();
    let result = client.executorsToggle(toggleExecutorCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
toggleExecutorCommand

Responses


Flavors

flavorsAwsInstanceTypes

Retrieve awz instance types


/api/v1/flavors/aws/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/aws/{cloudId}?Limit=56&Offset=56&StartRam=1.2&EndRam=1.2&StartCpu=56&EndCpu=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&ProjectId=56&HasGpuSupport=true&StartGpuCount=56&EndGpuCount=56&GpuModel=gpuModel_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            AwsFlavorList result = apiInstance.flavorsAwsInstanceTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsAwsInstanceTypes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Double startRam = new Double(); // Double | Minimum RAM in GB
final Double endRam = new Double(); // Double | Maximum RAM in GB
final Integer startCpu = new Integer(); // Integer | Minimum vCPU count
final Integer endCpu = new Integer(); // Integer | Maximum vCPU count
final String search = new String(); // String | Free-text search over flavor names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean hasGpuSupport = new Boolean(); // Boolean | Filter flavors with GPU support
final Integer startGpuCount = new Integer(); // Integer | Minimum GPU count
final Integer endGpuCount = new Integer(); // Integer | Maximum GPU count
final String gpuModel = new String(); // String | Filter by GPU model

try {
    final result = await api_instance.flavorsAwsInstanceTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsAwsInstanceTypes: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            AwsFlavorList result = apiInstance.flavorsAwsInstanceTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsAwsInstanceTypes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Double *startRam = 1.2; // Minimum RAM in GB (optional) (default to null)
Double *endRam = 1.2; // Maximum RAM in GB (optional) (default to null)
Integer *startCpu = 56; // Minimum vCPU count (optional) (default to null)
Integer *endCpu = 56; // Maximum vCPU count (optional) (default to null)
String *search = search_example; // Free-text search over flavor names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *hasGpuSupport = true; // Filter flavors with GPU support (optional) (default to null)
Integer *startGpuCount = 56; // Minimum GPU count (optional) (default to null)
Integer *endGpuCount = 56; // Maximum GPU count (optional) (default to null)
String *gpuModel = gpuModel_example; // Filter by GPU model (optional) (default to null)

// Retrieve awz instance types
[apiInstance flavorsAwsInstanceTypesWith:cloudId
    limit:limit
    offset:offset
    startRam:startRam
    endRam:endRam
    startCpu:startCpu
    endCpu:endCpu
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    projectId:projectId
    hasGpuSupport:hasGpuSupport
    startGpuCount:startGpuCount
    endGpuCount:endGpuCount
    gpuModel:gpuModel
              completionHandler: ^(AwsFlavorList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'startRam': 1.2, // {Double} Minimum RAM in GB
  'endRam': 1.2, // {Double} Maximum RAM in GB
  'startCpu': 56, // {Integer} Minimum vCPU count
  'endCpu': 56, // {Integer} Maximum vCPU count
  'search': search_example, // {String} Free-text search over flavor names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'projectId': 56, // {Integer} Filter by project id
  'hasGpuSupport': true, // {Boolean} Filter flavors with GPU support
  'startGpuCount': 56, // {Integer} Minimum GPU count
  'endGpuCount': 56, // {Integer} Maximum GPU count
  'gpuModel': gpuModel_example // {String} Filter by GPU model
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flavorsAwsInstanceTypes(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class flavorsAwsInstanceTypesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var startRam = 1.2;  // Double | Minimum RAM in GB (optional)  (default to null)
            var endRam = 1.2;  // Double | Maximum RAM in GB (optional)  (default to null)
            var startCpu = 56;  // Integer | Minimum vCPU count (optional)  (default to null)
            var endCpu = 56;  // Integer | Maximum vCPU count (optional)  (default to null)
            var search = search_example;  // String | Free-text search over flavor names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean | Filter flavors with GPU support (optional)  (default to null)
            var startGpuCount = 56;  // Integer | Minimum GPU count (optional)  (default to null)
            var endGpuCount = 56;  // Integer | Maximum GPU count (optional)  (default to null)
            var gpuModel = gpuModel_example;  // String | Filter by GPU model (optional)  (default to null)

            try {
                // Retrieve awz instance types
                AwsFlavorList result = apiInstance.flavorsAwsInstanceTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsAwsInstanceTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$startRam = 1.2; // Double | Minimum RAM in GB
$endRam = 1.2; // Double | Maximum RAM in GB
$startCpu = 56; // Integer | Minimum vCPU count
$endCpu = 56; // Integer | Maximum vCPU count
$search = search_example; // String | Free-text search over flavor names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$projectId = 56; // Integer | Filter by project id
$hasGpuSupport = true; // Boolean | Filter flavors with GPU support
$startGpuCount = 56; // Integer | Minimum GPU count
$endGpuCount = 56; // Integer | Maximum GPU count
$gpuModel = gpuModel_example; // String | Filter by GPU model

try {
    $result = $api_instance->flavorsAwsInstanceTypes($cloudId, $limit, $offset, $startRam, $endRam, $startCpu, $endCpu, $search, $sortBy, $sortDirection, $projectId, $hasGpuSupport, $startGpuCount, $endGpuCount, $gpuModel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsAwsInstanceTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $startRam = 1.2; # Double | Minimum RAM in GB
my $endRam = 1.2; # Double | Maximum RAM in GB
my $startCpu = 56; # Integer | Minimum vCPU count
my $endCpu = 56; # Integer | Maximum vCPU count
my $search = search_example; # String | Free-text search over flavor names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $projectId = 56; # Integer | Filter by project id
my $hasGpuSupport = true; # Boolean | Filter flavors with GPU support
my $startGpuCount = 56; # Integer | Minimum GPU count
my $endGpuCount = 56; # Integer | Maximum GPU count
my $gpuModel = gpuModel_example; # String | Filter by GPU model

eval {
    my $result = $api_instance->flavorsAwsInstanceTypes(cloudId => $cloudId, limit => $limit, offset => $offset, startRam => $startRam, endRam => $endRam, startCpu => $startCpu, endCpu => $endCpu, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, projectId => $projectId, hasGpuSupport => $hasGpuSupport, startGpuCount => $startGpuCount, endGpuCount => $endGpuCount, gpuModel => $gpuModel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsAwsInstanceTypes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
startRam = 1.2 # Double | Minimum RAM in GB (optional) (default to null)
endRam = 1.2 # Double | Maximum RAM in GB (optional) (default to null)
startCpu = 56 # Integer | Minimum vCPU count (optional) (default to null)
endCpu = 56 # Integer | Maximum vCPU count (optional) (default to null)
search = search_example # String | Free-text search over flavor names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
hasGpuSupport = true # Boolean | Filter flavors with GPU support (optional) (default to null)
startGpuCount = 56 # Integer | Minimum GPU count (optional) (default to null)
endGpuCount = 56 # Integer | Maximum GPU count (optional) (default to null)
gpuModel = gpuModel_example # String | Filter by GPU model (optional) (default to null)

try:
    # Retrieve awz instance types
    api_response = api_instance.flavors_aws_instance_types(cloudId, limit=limit, offset=offset, startRam=startRam, endRam=endRam, startCpu=startCpu, endCpu=endCpu, search=search, sortBy=sortBy, sortDirection=sortDirection, projectId=projectId, hasGpuSupport=hasGpuSupport, startGpuCount=startGpuCount, endGpuCount=endGpuCount, gpuModel=gpuModel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsAwsInstanceTypes: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let projectId = 56; // Integer
    let hasGpuSupport = true; // Boolean
    let startGpuCount = 56; // Integer
    let endGpuCount = 56; // Integer
    let gpuModel = gpuModel_example; // String

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsAwsInstanceTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
StartRam
Double (double)
Minimum RAM in GB
EndRam
Double (double)
Maximum RAM in GB
StartCpu
Integer (int32)
Minimum vCPU count
EndCpu
Integer (int32)
Maximum vCPU count
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
ProjectId
Integer (int32)
Filter by project id
HasGpuSupport
Boolean
Filter flavors with GPU support
StartGpuCount
Integer (int32)
Minimum GPU count
EndGpuCount
Integer (int32)
Maximum GPU count
GpuModel
String
Filter by GPU model

Responses


flavorsAzureVmSizes

Retrieve azure vm sizes


/api/v1/flavors/azure/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/azure/{cloudId}?Limit=56&Offset=56&StartRam=1.2&EndRam=1.2&StartCpu=56&EndCpu=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&ProjectId=56&HasGpuSupport=true&StartGpuCount=56&EndGpuCount=56&GpuModel=gpuModel_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            AzureFlavorList result = apiInstance.flavorsAzureVmSizes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsAzureVmSizes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Double startRam = new Double(); // Double | Minimum RAM in GB
final Double endRam = new Double(); // Double | Maximum RAM in GB
final Integer startCpu = new Integer(); // Integer | Minimum vCPU count
final Integer endCpu = new Integer(); // Integer | Maximum vCPU count
final String search = new String(); // String | Free-text search over flavor names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean hasGpuSupport = new Boolean(); // Boolean | Filter flavors with GPU support
final Integer startGpuCount = new Integer(); // Integer | Minimum GPU count
final Integer endGpuCount = new Integer(); // Integer | Maximum GPU count
final String gpuModel = new String(); // String | Filter by GPU model

try {
    final result = await api_instance.flavorsAzureVmSizes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsAzureVmSizes: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            AzureFlavorList result = apiInstance.flavorsAzureVmSizes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsAzureVmSizes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Double *startRam = 1.2; // Minimum RAM in GB (optional) (default to null)
Double *endRam = 1.2; // Maximum RAM in GB (optional) (default to null)
Integer *startCpu = 56; // Minimum vCPU count (optional) (default to null)
Integer *endCpu = 56; // Maximum vCPU count (optional) (default to null)
String *search = search_example; // Free-text search over flavor names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *hasGpuSupport = true; // Filter flavors with GPU support (optional) (default to null)
Integer *startGpuCount = 56; // Minimum GPU count (optional) (default to null)
Integer *endGpuCount = 56; // Maximum GPU count (optional) (default to null)
String *gpuModel = gpuModel_example; // Filter by GPU model (optional) (default to null)

// Retrieve azure vm sizes
[apiInstance flavorsAzureVmSizesWith:cloudId
    limit:limit
    offset:offset
    startRam:startRam
    endRam:endRam
    startCpu:startCpu
    endCpu:endCpu
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    projectId:projectId
    hasGpuSupport:hasGpuSupport
    startGpuCount:startGpuCount
    endGpuCount:endGpuCount
    gpuModel:gpuModel
              completionHandler: ^(AzureFlavorList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'startRam': 1.2, // {Double} Minimum RAM in GB
  'endRam': 1.2, // {Double} Maximum RAM in GB
  'startCpu': 56, // {Integer} Minimum vCPU count
  'endCpu': 56, // {Integer} Maximum vCPU count
  'search': search_example, // {String} Free-text search over flavor names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'projectId': 56, // {Integer} Filter by project id
  'hasGpuSupport': true, // {Boolean} Filter flavors with GPU support
  'startGpuCount': 56, // {Integer} Minimum GPU count
  'endGpuCount': 56, // {Integer} Maximum GPU count
  'gpuModel': gpuModel_example // {String} Filter by GPU model
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flavorsAzureVmSizes(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class flavorsAzureVmSizesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var startRam = 1.2;  // Double | Minimum RAM in GB (optional)  (default to null)
            var endRam = 1.2;  // Double | Maximum RAM in GB (optional)  (default to null)
            var startCpu = 56;  // Integer | Minimum vCPU count (optional)  (default to null)
            var endCpu = 56;  // Integer | Maximum vCPU count (optional)  (default to null)
            var search = search_example;  // String | Free-text search over flavor names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean | Filter flavors with GPU support (optional)  (default to null)
            var startGpuCount = 56;  // Integer | Minimum GPU count (optional)  (default to null)
            var endGpuCount = 56;  // Integer | Maximum GPU count (optional)  (default to null)
            var gpuModel = gpuModel_example;  // String | Filter by GPU model (optional)  (default to null)

            try {
                // Retrieve azure vm sizes
                AzureFlavorList result = apiInstance.flavorsAzureVmSizes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsAzureVmSizes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$startRam = 1.2; // Double | Minimum RAM in GB
$endRam = 1.2; // Double | Maximum RAM in GB
$startCpu = 56; // Integer | Minimum vCPU count
$endCpu = 56; // Integer | Maximum vCPU count
$search = search_example; // String | Free-text search over flavor names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$projectId = 56; // Integer | Filter by project id
$hasGpuSupport = true; // Boolean | Filter flavors with GPU support
$startGpuCount = 56; // Integer | Minimum GPU count
$endGpuCount = 56; // Integer | Maximum GPU count
$gpuModel = gpuModel_example; // String | Filter by GPU model

try {
    $result = $api_instance->flavorsAzureVmSizes($cloudId, $limit, $offset, $startRam, $endRam, $startCpu, $endCpu, $search, $sortBy, $sortDirection, $projectId, $hasGpuSupport, $startGpuCount, $endGpuCount, $gpuModel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsAzureVmSizes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $startRam = 1.2; # Double | Minimum RAM in GB
my $endRam = 1.2; # Double | Maximum RAM in GB
my $startCpu = 56; # Integer | Minimum vCPU count
my $endCpu = 56; # Integer | Maximum vCPU count
my $search = search_example; # String | Free-text search over flavor names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $projectId = 56; # Integer | Filter by project id
my $hasGpuSupport = true; # Boolean | Filter flavors with GPU support
my $startGpuCount = 56; # Integer | Minimum GPU count
my $endGpuCount = 56; # Integer | Maximum GPU count
my $gpuModel = gpuModel_example; # String | Filter by GPU model

eval {
    my $result = $api_instance->flavorsAzureVmSizes(cloudId => $cloudId, limit => $limit, offset => $offset, startRam => $startRam, endRam => $endRam, startCpu => $startCpu, endCpu => $endCpu, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, projectId => $projectId, hasGpuSupport => $hasGpuSupport, startGpuCount => $startGpuCount, endGpuCount => $endGpuCount, gpuModel => $gpuModel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsAzureVmSizes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
startRam = 1.2 # Double | Minimum RAM in GB (optional) (default to null)
endRam = 1.2 # Double | Maximum RAM in GB (optional) (default to null)
startCpu = 56 # Integer | Minimum vCPU count (optional) (default to null)
endCpu = 56 # Integer | Maximum vCPU count (optional) (default to null)
search = search_example # String | Free-text search over flavor names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
hasGpuSupport = true # Boolean | Filter flavors with GPU support (optional) (default to null)
startGpuCount = 56 # Integer | Minimum GPU count (optional) (default to null)
endGpuCount = 56 # Integer | Maximum GPU count (optional) (default to null)
gpuModel = gpuModel_example # String | Filter by GPU model (optional) (default to null)

try:
    # Retrieve azure vm sizes
    api_response = api_instance.flavors_azure_vm_sizes(cloudId, limit=limit, offset=offset, startRam=startRam, endRam=endRam, startCpu=startCpu, endCpu=endCpu, search=search, sortBy=sortBy, sortDirection=sortDirection, projectId=projectId, hasGpuSupport=hasGpuSupport, startGpuCount=startGpuCount, endGpuCount=endGpuCount, gpuModel=gpuModel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsAzureVmSizes: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let projectId = 56; // Integer
    let hasGpuSupport = true; // Boolean
    let startGpuCount = 56; // Integer
    let endGpuCount = 56; // Integer
    let gpuModel = gpuModel_example; // String

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsAzureVmSizes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
StartRam
Double (double)
Minimum RAM in GB
EndRam
Double (double)
Maximum RAM in GB
StartCpu
Integer (int32)
Minimum vCPU count
EndCpu
Integer (int32)
Maximum vCPU count
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
ProjectId
Integer (int32)
Filter by project id
HasGpuSupport
Boolean
Filter flavors with GPU support
StartGpuCount
Integer (int32)
Minimum GPU count
EndGpuCount
Integer (int32)
Maximum GPU count
GpuModel
String
Filter by GPU model

Responses


flavorsBindToProject

Bind flavors to project


/api/v1/flavors/bind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/flavors/bind" \
 -d '{
  "flavors" : [ "flavors", "flavors" ],
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        BindFlavorToProjectCommand bindFlavorToProjectCommand = ; // BindFlavorToProjectCommand | 

        try {
            Object result = apiInstance.flavorsBindToProject(bindFlavorToProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsBindToProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BindFlavorToProjectCommand bindFlavorToProjectCommand = new BindFlavorToProjectCommand(); // BindFlavorToProjectCommand | 

try {
    final result = await api_instance.flavorsBindToProject(bindFlavorToProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsBindToProject: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        BindFlavorToProjectCommand bindFlavorToProjectCommand = ; // BindFlavorToProjectCommand | 

        try {
            Object result = apiInstance.flavorsBindToProject(bindFlavorToProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsBindToProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
BindFlavorToProjectCommand *bindFlavorToProjectCommand = ; //  (optional)

// Bind flavors to project
[apiInstance flavorsBindToProjectWith:bindFlavorToProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var opts = {
  'bindFlavorToProjectCommand':  // {BindFlavorToProjectCommand} 
};

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

namespace Example
{
    public class flavorsBindToProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var bindFlavorToProjectCommand = new BindFlavorToProjectCommand(); // BindFlavorToProjectCommand |  (optional) 

            try {
                // Bind flavors to project
                Object result = apiInstance.flavorsBindToProject(bindFlavorToProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsBindToProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$bindFlavorToProjectCommand = ; // BindFlavorToProjectCommand | 

try {
    $result = $api_instance->flavorsBindToProject($bindFlavorToProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsBindToProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $bindFlavorToProjectCommand = WWW::OPenAPIClient::Object::BindFlavorToProjectCommand->new(); # BindFlavorToProjectCommand | 

eval {
    my $result = $api_instance->flavorsBindToProject(bindFlavorToProjectCommand => $bindFlavorToProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsBindToProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
bindFlavorToProjectCommand =  # BindFlavorToProjectCommand |  (optional)

try:
    # Bind flavors to project
    api_response = api_instance.flavors_bind_to_project(bindFlavorToProjectCommand=bindFlavorToProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsBindToProject: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let bindFlavorToProjectCommand = ; // BindFlavorToProjectCommand

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsBindToProject(bindFlavorToProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bindFlavorToProjectCommand

Responses


flavorsCloudCoreFlavors

Retrieve CloudCore flavors


/api/v1/flavors/cloud-core/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/cloud-core/{cloudId}?Limit=56&Offset=56&StartRam=1.2&EndRam=1.2&StartCpu=56&EndCpu=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&ProjectId=56&HasGpuSupport=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support

        try {
            CloudCoreFlavorList result = apiInstance.flavorsCloudCoreFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsCloudCoreFlavors");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Double startRam = new Double(); // Double | Minimum RAM in GB
final Double endRam = new Double(); // Double | Maximum RAM in GB
final Integer startCpu = new Integer(); // Integer | Minimum vCPU count
final Integer endCpu = new Integer(); // Integer | Maximum vCPU count
final String search = new String(); // String | Free-text search over flavor names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean hasGpuSupport = new Boolean(); // Boolean | Filter flavors with GPU support

try {
    final result = await api_instance.flavorsCloudCoreFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsCloudCoreFlavors: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support

        try {
            CloudCoreFlavorList result = apiInstance.flavorsCloudCoreFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsCloudCoreFlavors");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Double *startRam = 1.2; // Minimum RAM in GB (optional) (default to null)
Double *endRam = 1.2; // Maximum RAM in GB (optional) (default to null)
Integer *startCpu = 56; // Minimum vCPU count (optional) (default to null)
Integer *endCpu = 56; // Maximum vCPU count (optional) (default to null)
String *search = search_example; // Free-text search over flavor names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *hasGpuSupport = true; // Filter flavors with GPU support (optional) (default to null)

// Retrieve CloudCore flavors
[apiInstance flavorsCloudCoreFlavorsWith:cloudId
    limit:limit
    offset:offset
    startRam:startRam
    endRam:endRam
    startCpu:startCpu
    endCpu:endCpu
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    projectId:projectId
    hasGpuSupport:hasGpuSupport
              completionHandler: ^(CloudCoreFlavorList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'startRam': 1.2, // {Double} Minimum RAM in GB
  'endRam': 1.2, // {Double} Maximum RAM in GB
  'startCpu': 56, // {Integer} Minimum vCPU count
  'endCpu': 56, // {Integer} Maximum vCPU count
  'search': search_example, // {String} Free-text search over flavor names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'projectId': 56, // {Integer} Filter by project id
  'hasGpuSupport': true // {Boolean} Filter flavors with GPU support
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flavorsCloudCoreFlavors(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class flavorsCloudCoreFlavorsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var startRam = 1.2;  // Double | Minimum RAM in GB (optional)  (default to null)
            var endRam = 1.2;  // Double | Maximum RAM in GB (optional)  (default to null)
            var startCpu = 56;  // Integer | Minimum vCPU count (optional)  (default to null)
            var endCpu = 56;  // Integer | Maximum vCPU count (optional)  (default to null)
            var search = search_example;  // String | Free-text search over flavor names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean | Filter flavors with GPU support (optional)  (default to null)

            try {
                // Retrieve CloudCore flavors
                CloudCoreFlavorList result = apiInstance.flavorsCloudCoreFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsCloudCoreFlavors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$startRam = 1.2; // Double | Minimum RAM in GB
$endRam = 1.2; // Double | Maximum RAM in GB
$startCpu = 56; // Integer | Minimum vCPU count
$endCpu = 56; // Integer | Maximum vCPU count
$search = search_example; // String | Free-text search over flavor names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$projectId = 56; // Integer | Filter by project id
$hasGpuSupport = true; // Boolean | Filter flavors with GPU support

try {
    $result = $api_instance->flavorsCloudCoreFlavors($cloudId, $limit, $offset, $startRam, $endRam, $startCpu, $endCpu, $search, $sortBy, $sortDirection, $projectId, $hasGpuSupport);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsCloudCoreFlavors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $startRam = 1.2; # Double | Minimum RAM in GB
my $endRam = 1.2; # Double | Maximum RAM in GB
my $startCpu = 56; # Integer | Minimum vCPU count
my $endCpu = 56; # Integer | Maximum vCPU count
my $search = search_example; # String | Free-text search over flavor names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $projectId = 56; # Integer | Filter by project id
my $hasGpuSupport = true; # Boolean | Filter flavors with GPU support

eval {
    my $result = $api_instance->flavorsCloudCoreFlavors(cloudId => $cloudId, limit => $limit, offset => $offset, startRam => $startRam, endRam => $endRam, startCpu => $startCpu, endCpu => $endCpu, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, projectId => $projectId, hasGpuSupport => $hasGpuSupport);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsCloudCoreFlavors: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
startRam = 1.2 # Double | Minimum RAM in GB (optional) (default to null)
endRam = 1.2 # Double | Maximum RAM in GB (optional) (default to null)
startCpu = 56 # Integer | Minimum vCPU count (optional) (default to null)
endCpu = 56 # Integer | Maximum vCPU count (optional) (default to null)
search = search_example # String | Free-text search over flavor names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
hasGpuSupport = true # Boolean | Filter flavors with GPU support (optional) (default to null)

try:
    # Retrieve CloudCore flavors
    api_response = api_instance.flavors_cloud_core_flavors(cloudId, limit=limit, offset=offset, startRam=startRam, endRam=endRam, startCpu=startCpu, endCpu=endCpu, search=search, sortBy=sortBy, sortDirection=sortDirection, projectId=projectId, hasGpuSupport=hasGpuSupport)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsCloudCoreFlavors: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let projectId = 56; // Integer
    let hasGpuSupport = true; // Boolean

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsCloudCoreFlavors(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
StartRam
Double (double)
Minimum RAM in GB
EndRam
Double (double)
Maximum RAM in GB
StartCpu
Integer (int32)
Minimum vCPU count
EndCpu
Integer (int32)
Maximum vCPU count
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
ProjectId
Integer (int32)
Filter by project id
HasGpuSupport
Boolean
Filter flavors with GPU support

Responses


flavorsDropdownFlavors

Retrieve cloud credentials dropdown list

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/flavors/credentials/dropdown/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/credentials/dropdown/list?OrganizationId=56&FilterBy=filterBy_example&Search=search_example&IsInfra=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer organizationId = 56; // Integer | Filter by organization id
        String filterBy = filterBy_example; // String | Filter expression to narrow credentials
        String search = search_example; // String | Free-text search over credential names
        Boolean isInfra = true; // Boolean | Filter to infrastructure credentials only

        try {
            array[CloudCredentialsDropdownRecordDto] result = apiInstance.flavorsDropdownFlavors(organizationId, filterBy, search, isInfra);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsDropdownFlavors");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Filter by organization id
final String filterBy = new String(); // String | Filter expression to narrow credentials
final String search = new String(); // String | Free-text search over credential names
final Boolean isInfra = new Boolean(); // Boolean | Filter to infrastructure credentials only

try {
    final result = await api_instance.flavorsDropdownFlavors(organizationId, filterBy, search, isInfra);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsDropdownFlavors: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer organizationId = 56; // Integer | Filter by organization id
        String filterBy = filterBy_example; // String | Filter expression to narrow credentials
        String search = search_example; // String | Free-text search over credential names
        Boolean isInfra = true; // Boolean | Filter to infrastructure credentials only

        try {
            array[CloudCredentialsDropdownRecordDto] result = apiInstance.flavorsDropdownFlavors(organizationId, filterBy, search, isInfra);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsDropdownFlavors");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *organizationId = 56; // Filter by organization id (optional) (default to null)
String *filterBy = filterBy_example; // Filter expression to narrow credentials (optional) (default to null)
String *search = search_example; // Free-text search over credential names (optional) (default to null)
Boolean *isInfra = true; // Filter to infrastructure credentials only (optional) (default to null)

// Retrieve cloud credentials dropdown list
[apiInstance flavorsDropdownFlavorsWith:organizationId
    filterBy:filterBy
    search:search
    isInfra:isInfra
              completionHandler: ^(array[CloudCredentialsDropdownRecordDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var opts = {
  'organizationId': 56, // {Integer} Filter by organization id
  'filterBy': filterBy_example, // {String} Filter expression to narrow credentials
  'search': search_example, // {String} Free-text search over credential names
  'isInfra': true // {Boolean} Filter to infrastructure credentials only
};

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

namespace Example
{
    public class flavorsDropdownFlavorsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var organizationId = 56;  // Integer | Filter by organization id (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Filter expression to narrow credentials (optional)  (default to null)
            var search = search_example;  // String | Free-text search over credential names (optional)  (default to null)
            var isInfra = true;  // Boolean | Filter to infrastructure credentials only (optional)  (default to null)

            try {
                // Retrieve cloud credentials dropdown list
                array[CloudCredentialsDropdownRecordDto] result = apiInstance.flavorsDropdownFlavors(organizationId, filterBy, search, isInfra);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsDropdownFlavors: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$organizationId = 56; // Integer | Filter by organization id
$filterBy = filterBy_example; // String | Filter expression to narrow credentials
$search = search_example; // String | Free-text search over credential names
$isInfra = true; // Boolean | Filter to infrastructure credentials only

try {
    $result = $api_instance->flavorsDropdownFlavors($organizationId, $filterBy, $search, $isInfra);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsDropdownFlavors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $organizationId = 56; # Integer | Filter by organization id
my $filterBy = filterBy_example; # String | Filter expression to narrow credentials
my $search = search_example; # String | Free-text search over credential names
my $isInfra = true; # Boolean | Filter to infrastructure credentials only

eval {
    my $result = $api_instance->flavorsDropdownFlavors(organizationId => $organizationId, filterBy => $filterBy, search => $search, isInfra => $isInfra);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsDropdownFlavors: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
organizationId = 56 # Integer | Filter by organization id (optional) (default to null)
filterBy = filterBy_example # String | Filter expression to narrow credentials (optional) (default to null)
search = search_example # String | Free-text search over credential names (optional) (default to null)
isInfra = true # Boolean | Filter to infrastructure credentials only (optional) (default to null)

try:
    # Retrieve cloud credentials dropdown list
    api_response = api_instance.flavors_dropdown_flavors(organizationId=organizationId, filterBy=filterBy, search=search, isInfra=isInfra)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsDropdownFlavors: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let filterBy = filterBy_example; // String
    let search = search_example; // String
    let isInfra = true; // Boolean

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsDropdownFlavors(organizationId, filterBy, search, isInfra, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Filter by organization id
FilterBy
String
Filter expression to narrow credentials
Search
IsInfra
Boolean
Filter to infrastructure credentials only

Responses


flavorsGoogleMachineTypes

Retrieve google machine types


/api/v1/flavors/google/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/google/{cloudId}?Limit=56&Offset=56&StartRam=1.2&EndRam=1.2&StartCpu=56&EndCpu=56&Search=search_example&SortBy=sortBy_example&SortDirection=sortDirection_example&ProjectId=56&HasGpuSupport=true&StartGpuCount=56&EndGpuCount=56&GpuModel=gpuModel_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            GoogleFlavorList result = apiInstance.flavorsGoogleMachineTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsGoogleMachineTypes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Double startRam = new Double(); // Double | Minimum RAM in GB
final Double endRam = new Double(); // Double | Maximum RAM in GB
final Integer startCpu = new Integer(); // Integer | Minimum vCPU count
final Integer endCpu = new Integer(); // Integer | Maximum vCPU count
final String search = new String(); // String | Free-text search over flavor names
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean hasGpuSupport = new Boolean(); // Boolean | Filter flavors with GPU support
final Integer startGpuCount = new Integer(); // Integer | Minimum GPU count
final Integer endGpuCount = new Integer(); // Integer | Maximum GPU count
final String gpuModel = new String(); // String | Filter by GPU model

try {
    final result = await api_instance.flavorsGoogleMachineTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsGoogleMachineTypes: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Double startRam = 1.2; // Double | Minimum RAM in GB
        Double endRam = 1.2; // Double | Maximum RAM in GB
        Integer startCpu = 56; // Integer | Minimum vCPU count
        Integer endCpu = 56; // Integer | Maximum vCPU count
        String search = search_example; // String | Free-text search over flavor names
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        Integer projectId = 56; // Integer | Filter by project id
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support
        Integer startGpuCount = 56; // Integer | Minimum GPU count
        Integer endGpuCount = 56; // Integer | Maximum GPU count
        String gpuModel = gpuModel_example; // String | Filter by GPU model

        try {
            GoogleFlavorList result = apiInstance.flavorsGoogleMachineTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsGoogleMachineTypes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Double *startRam = 1.2; // Minimum RAM in GB (optional) (default to null)
Double *endRam = 1.2; // Maximum RAM in GB (optional) (default to null)
Integer *startCpu = 56; // Minimum vCPU count (optional) (default to null)
Integer *endCpu = 56; // Maximum vCPU count (optional) (default to null)
String *search = search_example; // Free-text search over flavor names (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *hasGpuSupport = true; // Filter flavors with GPU support (optional) (default to null)
Integer *startGpuCount = 56; // Minimum GPU count (optional) (default to null)
Integer *endGpuCount = 56; // Maximum GPU count (optional) (default to null)
String *gpuModel = gpuModel_example; // Filter by GPU model (optional) (default to null)

// Retrieve google machine types
[apiInstance flavorsGoogleMachineTypesWith:cloudId
    limit:limit
    offset:offset
    startRam:startRam
    endRam:endRam
    startCpu:startCpu
    endCpu:endCpu
    search:search
    sortBy:sortBy
    sortDirection:sortDirection
    projectId:projectId
    hasGpuSupport:hasGpuSupport
    startGpuCount:startGpuCount
    endGpuCount:endGpuCount
    gpuModel:gpuModel
              completionHandler: ^(GoogleFlavorList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'startRam': 1.2, // {Double} Minimum RAM in GB
  'endRam': 1.2, // {Double} Maximum RAM in GB
  'startCpu': 56, // {Integer} Minimum vCPU count
  'endCpu': 56, // {Integer} Maximum vCPU count
  'search': search_example, // {String} Free-text search over flavor names
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'projectId': 56, // {Integer} Filter by project id
  'hasGpuSupport': true, // {Boolean} Filter flavors with GPU support
  'startGpuCount': 56, // {Integer} Minimum GPU count
  'endGpuCount': 56, // {Integer} Maximum GPU count
  'gpuModel': gpuModel_example // {String} Filter by GPU model
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.flavorsGoogleMachineTypes(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class flavorsGoogleMachineTypesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var startRam = 1.2;  // Double | Minimum RAM in GB (optional)  (default to null)
            var endRam = 1.2;  // Double | Maximum RAM in GB (optional)  (default to null)
            var startCpu = 56;  // Integer | Minimum vCPU count (optional)  (default to null)
            var endCpu = 56;  // Integer | Maximum vCPU count (optional)  (default to null)
            var search = search_example;  // String | Free-text search over flavor names (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean | Filter flavors with GPU support (optional)  (default to null)
            var startGpuCount = 56;  // Integer | Minimum GPU count (optional)  (default to null)
            var endGpuCount = 56;  // Integer | Maximum GPU count (optional)  (default to null)
            var gpuModel = gpuModel_example;  // String | Filter by GPU model (optional)  (default to null)

            try {
                // Retrieve google machine types
                GoogleFlavorList result = apiInstance.flavorsGoogleMachineTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsGoogleMachineTypes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$startRam = 1.2; // Double | Minimum RAM in GB
$endRam = 1.2; // Double | Maximum RAM in GB
$startCpu = 56; // Integer | Minimum vCPU count
$endCpu = 56; // Integer | Maximum vCPU count
$search = search_example; // String | Free-text search over flavor names
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$projectId = 56; // Integer | Filter by project id
$hasGpuSupport = true; // Boolean | Filter flavors with GPU support
$startGpuCount = 56; // Integer | Minimum GPU count
$endGpuCount = 56; // Integer | Maximum GPU count
$gpuModel = gpuModel_example; // String | Filter by GPU model

try {
    $result = $api_instance->flavorsGoogleMachineTypes($cloudId, $limit, $offset, $startRam, $endRam, $startCpu, $endCpu, $search, $sortBy, $sortDirection, $projectId, $hasGpuSupport, $startGpuCount, $endGpuCount, $gpuModel);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsGoogleMachineTypes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $startRam = 1.2; # Double | Minimum RAM in GB
my $endRam = 1.2; # Double | Maximum RAM in GB
my $startCpu = 56; # Integer | Minimum vCPU count
my $endCpu = 56; # Integer | Maximum vCPU count
my $search = search_example; # String | Free-text search over flavor names
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $projectId = 56; # Integer | Filter by project id
my $hasGpuSupport = true; # Boolean | Filter flavors with GPU support
my $startGpuCount = 56; # Integer | Minimum GPU count
my $endGpuCount = 56; # Integer | Maximum GPU count
my $gpuModel = gpuModel_example; # String | Filter by GPU model

eval {
    my $result = $api_instance->flavorsGoogleMachineTypes(cloudId => $cloudId, limit => $limit, offset => $offset, startRam => $startRam, endRam => $endRam, startCpu => $startCpu, endCpu => $endCpu, search => $search, sortBy => $sortBy, sortDirection => $sortDirection, projectId => $projectId, hasGpuSupport => $hasGpuSupport, startGpuCount => $startGpuCount, endGpuCount => $endGpuCount, gpuModel => $gpuModel);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsGoogleMachineTypes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
startRam = 1.2 # Double | Minimum RAM in GB (optional) (default to null)
endRam = 1.2 # Double | Maximum RAM in GB (optional) (default to null)
startCpu = 56 # Integer | Minimum vCPU count (optional) (default to null)
endCpu = 56 # Integer | Maximum vCPU count (optional) (default to null)
search = search_example # String | Free-text search over flavor names (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
hasGpuSupport = true # Boolean | Filter flavors with GPU support (optional) (default to null)
startGpuCount = 56 # Integer | Minimum GPU count (optional) (default to null)
endGpuCount = 56 # Integer | Maximum GPU count (optional) (default to null)
gpuModel = gpuModel_example # String | Filter by GPU model (optional) (default to null)

try:
    # Retrieve google machine types
    api_response = api_instance.flavors_google_machine_types(cloudId, limit=limit, offset=offset, startRam=startRam, endRam=endRam, startCpu=startCpu, endCpu=endCpu, search=search, sortBy=sortBy, sortDirection=sortDirection, projectId=projectId, hasGpuSupport=hasGpuSupport, startGpuCount=startGpuCount, endGpuCount=endGpuCount, gpuModel=gpuModel)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsGoogleMachineTypes: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let search = search_example; // String
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let projectId = 56; // Integer
    let hasGpuSupport = true; // Boolean
    let startGpuCount = 56; // Integer
    let endGpuCount = 56; // Integer
    let gpuModel = gpuModel_example; // String

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsGoogleMachineTypes(cloudId, limit, offset, startRam, endRam, startCpu, endCpu, search, sortBy, sortDirection, projectId, hasGpuSupport, startGpuCount, endGpuCount, gpuModel, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
StartRam
Double (double)
Minimum RAM in GB
EndRam
Double (double)
Maximum RAM in GB
StartCpu
Integer (int32)
Minimum vCPU count
EndCpu
Integer (int32)
Maximum vCPU count
Search
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
ProjectId
Integer (int32)
Filter by project id
HasGpuSupport
Boolean
Filter flavors with GPU support
StartGpuCount
Integer (int32)
Minimum GPU count
EndGpuCount
Integer (int32)
Maximum GPU count
GpuModel
String
Filter by GPU model

Responses


flavorsSelectedFlavorsForProject

Retrieve selected flavors for project


/api/v1/flavors/projects/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/flavors/projects/list?Limit=56&Offset=56&ProjectId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&FilterBy=filterBy_example&OrganizationId=56&FlavorName=flavorName_example&WithPrice=true&HasGpuSupport=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Integer projectId = 56; // Integer | Filter by project id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over flavor names
        String filterBy = filterBy_example; // String | Filter expression to narrow flavors
        Integer organizationId = 56; // Integer | Filter by organization id
        String flavorName = flavorName_example; // String | Filter by flavor name
        Boolean withPrice = true; // Boolean | Include pricing information
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support

        try {
            BoundFlavorsForProjectsList result = apiInstance.flavorsSelectedFlavorsForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, flavorName, withPrice, hasGpuSupport);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsSelectedFlavorsForProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Integer projectId = new Integer(); // Integer | Filter by project id
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over flavor names
final String filterBy = new String(); // String | Filter expression to narrow flavors
final Integer organizationId = new Integer(); // Integer | Filter by organization id
final String flavorName = new String(); // String | Filter by flavor name
final Boolean withPrice = new Boolean(); // Boolean | Include pricing information
final Boolean hasGpuSupport = new Boolean(); // Boolean | Filter flavors with GPU support

try {
    final result = await api_instance.flavorsSelectedFlavorsForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, flavorName, withPrice, hasGpuSupport);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsSelectedFlavorsForProject: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Integer projectId = 56; // Integer | Filter by project id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over flavor names
        String filterBy = filterBy_example; // String | Filter expression to narrow flavors
        Integer organizationId = 56; // Integer | Filter by organization id
        String flavorName = flavorName_example; // String | Filter by flavor name
        Boolean withPrice = true; // Boolean | Include pricing information
        Boolean hasGpuSupport = true; // Boolean | Filter flavors with GPU support

        try {
            BoundFlavorsForProjectsList result = apiInstance.flavorsSelectedFlavorsForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, flavorName, withPrice, hasGpuSupport);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsSelectedFlavorsForProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over flavor names (optional) (default to null)
String *filterBy = filterBy_example; // Filter expression to narrow flavors (optional) (default to null)
Integer *organizationId = 56; // Filter by organization id (optional) (default to null)
String *flavorName = flavorName_example; // Filter by flavor name (optional) (default to null)
Boolean *withPrice = true; // Include pricing information (optional) (default to null)
Boolean *hasGpuSupport = true; // Filter flavors with GPU support (optional) (default to null)

// Retrieve selected flavors for project
[apiInstance flavorsSelectedFlavorsForProjectWith:limit
    offset:offset
    projectId:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    filterBy:filterBy
    organizationId:organizationId
    flavorName:flavorName
    withPrice:withPrice
    hasGpuSupport:hasGpuSupport
              completionHandler: ^(BoundFlavorsForProjectsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'projectId': 56, // {Integer} Filter by project id
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over flavor names
  'filterBy': filterBy_example, // {String} Filter expression to narrow flavors
  'organizationId': 56, // {Integer} Filter by organization id
  'flavorName': flavorName_example, // {String} Filter by flavor name
  'withPrice': true, // {Boolean} Include pricing information
  'hasGpuSupport': true // {Boolean} Filter flavors with GPU support
};

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

namespace Example
{
    public class flavorsSelectedFlavorsForProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over flavor names (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Filter expression to narrow flavors (optional)  (default to null)
            var organizationId = 56;  // Integer | Filter by organization id (optional)  (default to null)
            var flavorName = flavorName_example;  // String | Filter by flavor name (optional)  (default to null)
            var withPrice = true;  // Boolean | Include pricing information (optional)  (default to null)
            var hasGpuSupport = true;  // Boolean | Filter flavors with GPU support (optional)  (default to null)

            try {
                // Retrieve selected flavors for project
                BoundFlavorsForProjectsList result = apiInstance.flavorsSelectedFlavorsForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, flavorName, withPrice, hasGpuSupport);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsSelectedFlavorsForProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$projectId = 56; // Integer | Filter by project id
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over flavor names
$filterBy = filterBy_example; // String | Filter expression to narrow flavors
$organizationId = 56; // Integer | Filter by organization id
$flavorName = flavorName_example; // String | Filter by flavor name
$withPrice = true; // Boolean | Include pricing information
$hasGpuSupport = true; // Boolean | Filter flavors with GPU support

try {
    $result = $api_instance->flavorsSelectedFlavorsForProject($limit, $offset, $projectId, $sortBy, $sortDirection, $search, $filterBy, $organizationId, $flavorName, $withPrice, $hasGpuSupport);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsSelectedFlavorsForProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $projectId = 56; # Integer | Filter by project id
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over flavor names
my $filterBy = filterBy_example; # String | Filter expression to narrow flavors
my $organizationId = 56; # Integer | Filter by organization id
my $flavorName = flavorName_example; # String | Filter by flavor name
my $withPrice = true; # Boolean | Include pricing information
my $hasGpuSupport = true; # Boolean | Filter flavors with GPU support

eval {
    my $result = $api_instance->flavorsSelectedFlavorsForProject(limit => $limit, offset => $offset, projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, filterBy => $filterBy, organizationId => $organizationId, flavorName => $flavorName, withPrice => $withPrice, hasGpuSupport => $hasGpuSupport);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsSelectedFlavorsForProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over flavor names (optional) (default to null)
filterBy = filterBy_example # String | Filter expression to narrow flavors (optional) (default to null)
organizationId = 56 # Integer | Filter by organization id (optional) (default to null)
flavorName = flavorName_example # String | Filter by flavor name (optional) (default to null)
withPrice = true # Boolean | Include pricing information (optional) (default to null)
hasGpuSupport = true # Boolean | Filter flavors with GPU support (optional) (default to null)

try:
    # Retrieve selected flavors for project
    api_response = api_instance.flavors_selected_flavors_for_project(limit=limit, offset=offset, projectId=projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, filterBy=filterBy, organizationId=organizationId, flavorName=flavorName, withPrice=withPrice, hasGpuSupport=hasGpuSupport)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsSelectedFlavorsForProject: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let filterBy = filterBy_example; // String
    let organizationId = 56; // Integer
    let flavorName = flavorName_example; // String
    let withPrice = true; // Boolean
    let hasGpuSupport = true; // Boolean

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsSelectedFlavorsForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, flavorName, withPrice, hasGpuSupport, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
ProjectId
Integer (int32)
Filter by project id
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
FilterBy
String
Filter expression to narrow flavors
OrganizationId
Integer (int32)
Filter by organization id
FlavorName
String
Filter by flavor name
WithPrice
Boolean
Include pricing information
HasGpuSupport
Boolean
Filter flavors with GPU support

Responses


flavorsUnbindFromProject

Unbind flavors from project


/api/v1/flavors/unbind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/flavors/unbind" \
 -d '{
  "ids" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

public class FlavorsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        UnbindFlavorFromProjectCommand unbindFlavorFromProjectCommand = ; // UnbindFlavorFromProjectCommand | 

        try {
            Object result = apiInstance.flavorsUnbindFromProject(unbindFlavorFromProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsUnbindFromProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UnbindFlavorFromProjectCommand unbindFlavorFromProjectCommand = new UnbindFlavorFromProjectCommand(); // UnbindFlavorFromProjectCommand | 

try {
    final result = await api_instance.flavorsUnbindFromProject(unbindFlavorFromProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->flavorsUnbindFromProject: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        UnbindFlavorFromProjectCommand unbindFlavorFromProjectCommand = ; // UnbindFlavorFromProjectCommand | 

        try {
            Object result = apiInstance.flavorsUnbindFromProject(unbindFlavorFromProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#flavorsUnbindFromProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
UnbindFlavorFromProjectCommand *unbindFlavorFromProjectCommand = ; //  (optional)

// Unbind flavors from project
[apiInstance flavorsUnbindFromProjectWith:unbindFlavorFromProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.FlavorsApi()
var opts = {
  'unbindFlavorFromProjectCommand':  // {UnbindFlavorFromProjectCommand} 
};

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

namespace Example
{
    public class flavorsUnbindFromProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new FlavorsApi();
            var unbindFlavorFromProjectCommand = new UnbindFlavorFromProjectCommand(); // UnbindFlavorFromProjectCommand |  (optional) 

            try {
                // Unbind flavors from project
                Object result = apiInstance.flavorsUnbindFromProject(unbindFlavorFromProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.flavorsUnbindFromProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\FlavorsApi();
$unbindFlavorFromProjectCommand = ; // UnbindFlavorFromProjectCommand | 

try {
    $result = $api_instance->flavorsUnbindFromProject($unbindFlavorFromProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->flavorsUnbindFromProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::FlavorsApi->new();
my $unbindFlavorFromProjectCommand = WWW::OPenAPIClient::Object::UnbindFlavorFromProjectCommand->new(); # UnbindFlavorFromProjectCommand | 

eval {
    my $result = $api_instance->flavorsUnbindFromProject(unbindFlavorFromProjectCommand => $unbindFlavorFromProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->flavorsUnbindFromProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.FlavorsApi()
unbindFlavorFromProjectCommand =  # UnbindFlavorFromProjectCommand |  (optional)

try:
    # Unbind flavors from project
    api_response = api_instance.flavors_unbind_from_project(unbindFlavorFromProjectCommand=unbindFlavorFromProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->flavorsUnbindFromProject: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let unbindFlavorFromProjectCommand = ; // UnbindFlavorFromProjectCommand

    let mut context = FlavorsApi::Context::default();
    let result = client.flavorsUnbindFromProject(unbindFlavorFromProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unbindFlavorFromProjectCommand

Responses


GatewayAPI

gatewayApiEnable

Enable Gateway API modern CRD bundle


/api/v1/gateway-api/enable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/gateway-api/enable" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GatewayAPIApi;

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

public class GatewayAPIApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GatewayAPIApi apiInstance = new GatewayAPIApi();
        EnableGatewayApiModernCommand enableGatewayApiModernCommand = ; // EnableGatewayApiModernCommand | 

        try {
            Object result = apiInstance.gatewayApiEnable(enableGatewayApiModernCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GatewayAPIApi#gatewayApiEnable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EnableGatewayApiModernCommand enableGatewayApiModernCommand = new EnableGatewayApiModernCommand(); // EnableGatewayApiModernCommand | 

try {
    final result = await api_instance.gatewayApiEnable(enableGatewayApiModernCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->gatewayApiEnable: $e\n');
}

import org.openapitools.client.api.GatewayAPIApi;

public class GatewayAPIApiExample {
    public static void main(String[] args) {
        GatewayAPIApi apiInstance = new GatewayAPIApi();
        EnableGatewayApiModernCommand enableGatewayApiModernCommand = ; // EnableGatewayApiModernCommand | 

        try {
            Object result = apiInstance.gatewayApiEnable(enableGatewayApiModernCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GatewayAPIApi#gatewayApiEnable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GatewayAPIApi *apiInstance = [[GatewayAPIApi alloc] init];
EnableGatewayApiModernCommand *enableGatewayApiModernCommand = ; //  (optional)

// Enable Gateway API modern CRD bundle
[apiInstance gatewayApiEnableWith:enableGatewayApiModernCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GatewayAPIApi()
var opts = {
  'enableGatewayApiModernCommand':  // {EnableGatewayApiModernCommand} 
};

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

namespace Example
{
    public class gatewayApiEnableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GatewayAPIApi();
            var enableGatewayApiModernCommand = new EnableGatewayApiModernCommand(); // EnableGatewayApiModernCommand |  (optional) 

            try {
                // Enable Gateway API modern CRD bundle
                Object result = apiInstance.gatewayApiEnable(enableGatewayApiModernCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GatewayAPIApi.gatewayApiEnable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GatewayAPIApi();
$enableGatewayApiModernCommand = ; // EnableGatewayApiModernCommand | 

try {
    $result = $api_instance->gatewayApiEnable($enableGatewayApiModernCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GatewayAPIApi->gatewayApiEnable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GatewayAPIApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GatewayAPIApi->new();
my $enableGatewayApiModernCommand = WWW::OPenAPIClient::Object::EnableGatewayApiModernCommand->new(); # EnableGatewayApiModernCommand | 

eval {
    my $result = $api_instance->gatewayApiEnable(enableGatewayApiModernCommand => $enableGatewayApiModernCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GatewayAPIApi->gatewayApiEnable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GatewayAPIApi()
enableGatewayApiModernCommand =  # EnableGatewayApiModernCommand |  (optional)

try:
    # Enable Gateway API modern CRD bundle
    api_response = api_instance.gateway_api_enable(enableGatewayApiModernCommand=enableGatewayApiModernCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GatewayAPIApi->gatewayApiEnable: %s\n" % e)
extern crate GatewayAPIApi;

pub fn main() {
    let enableGatewayApiModernCommand = ; // EnableGatewayApiModernCommand

    let mut context = GatewayAPIApi::Context::default();
    let result = client.gatewayApiEnable(enableGatewayApiModernCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
enableGatewayApiModernCommand

Responses


GenericKubernetesCloudCredential

genericKubernetesList

Retrieve list of generic kubernetes cloud credentials


/api/v1/generic-kubernetes/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/generic-kubernetes/list?Limit=56&Offset=56&OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GenericKubernetesCloudCredentialApi;

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

public class GenericKubernetesCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GenericKubernetesCloudCredentialApi apiInstance = new GenericKubernetesCloudCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 

        try {
            GenericKubernetesList result = apiInstance.genericKubernetesList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GenericKubernetesCloudCredentialApi#genericKubernetesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Integer organizationId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 

try {
    final result = await api_instance.genericKubernetesList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->genericKubernetesList: $e\n');
}

import org.openapitools.client.api.GenericKubernetesCloudCredentialApi;

public class GenericKubernetesCloudCredentialApiExample {
    public static void main(String[] args) {
        GenericKubernetesCloudCredentialApi apiInstance = new GenericKubernetesCloudCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        Integer domainId = 56; // Integer | 

        try {
            GenericKubernetesList result = apiInstance.genericKubernetesList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GenericKubernetesCloudCredentialApi#genericKubernetesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GenericKubernetesCloudCredentialApi *apiInstance = [[GenericKubernetesCloudCredentialApi alloc] init];
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)

// Retrieve list of generic kubernetes cloud credentials
[apiInstance genericKubernetesListWith:limit
    offset:offset
    organizationId:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    domainId:domainId
              completionHandler: ^(GenericKubernetesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GenericKubernetesCloudCredentialApi()
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'organizationId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'domainId': 56 // {Integer} 
};

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

namespace Example
{
    public class genericKubernetesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GenericKubernetesCloudCredentialApi();
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve list of generic kubernetes cloud credentials
                GenericKubernetesList result = apiInstance.genericKubernetesList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GenericKubernetesCloudCredentialApi.genericKubernetesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GenericKubernetesCloudCredentialApi();
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$organizationId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$domainId = 56; // Integer | 

try {
    $result = $api_instance->genericKubernetesList($limit, $offset, $organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GenericKubernetesCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GenericKubernetesCloudCredentialApi->new();
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $organizationId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $domainId = 56; # Integer | 

eval {
    my $result = $api_instance->genericKubernetesList(limit => $limit, offset => $offset, organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GenericKubernetesCloudCredentialApi()
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve list of generic kubernetes cloud credentials
    api_response = api_instance.generic_kubernetes_list(limit=limit, offset=offset, organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesList: %s\n" % e)
extern crate GenericKubernetesCloudCredentialApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer

    let mut context = GenericKubernetesCloudCredentialApi::Context::default();
    let result = client.genericKubernetesList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
OrganizationId
Integer (int32)
SortBy
String
SortDirection
String
Search
SearchId
String
Id
Integer (int32)
DomainId
Integer (int32)

Responses


genericKubernetesUpdate

Update Generic kubernetes credentials


/api/v1/generic-kubernetes/update

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/generic-kubernetes/update" \
 -d '{
  "name" : "name",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GenericKubernetesCloudCredentialApi;

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

public class GenericKubernetesCloudCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GenericKubernetesCloudCredentialApi apiInstance = new GenericKubernetesCloudCredentialApi();
        UpdateGenericKubernetesCommand updateGenericKubernetesCommand = ; // UpdateGenericKubernetesCommand | 

        try {
            Object result = apiInstance.genericKubernetesUpdate(updateGenericKubernetesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GenericKubernetesCloudCredentialApi#genericKubernetesUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateGenericKubernetesCommand updateGenericKubernetesCommand = new UpdateGenericKubernetesCommand(); // UpdateGenericKubernetesCommand | 

try {
    final result = await api_instance.genericKubernetesUpdate(updateGenericKubernetesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->genericKubernetesUpdate: $e\n');
}

import org.openapitools.client.api.GenericKubernetesCloudCredentialApi;

public class GenericKubernetesCloudCredentialApiExample {
    public static void main(String[] args) {
        GenericKubernetesCloudCredentialApi apiInstance = new GenericKubernetesCloudCredentialApi();
        UpdateGenericKubernetesCommand updateGenericKubernetesCommand = ; // UpdateGenericKubernetesCommand | 

        try {
            Object result = apiInstance.genericKubernetesUpdate(updateGenericKubernetesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GenericKubernetesCloudCredentialApi#genericKubernetesUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GenericKubernetesCloudCredentialApi *apiInstance = [[GenericKubernetesCloudCredentialApi alloc] init];
UpdateGenericKubernetesCommand *updateGenericKubernetesCommand = ; //  (optional)

// Update Generic kubernetes credentials
[apiInstance genericKubernetesUpdateWith:updateGenericKubernetesCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GenericKubernetesCloudCredentialApi()
var opts = {
  'updateGenericKubernetesCommand':  // {UpdateGenericKubernetesCommand} 
};

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

namespace Example
{
    public class genericKubernetesUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GenericKubernetesCloudCredentialApi();
            var updateGenericKubernetesCommand = new UpdateGenericKubernetesCommand(); // UpdateGenericKubernetesCommand |  (optional) 

            try {
                // Update Generic kubernetes credentials
                Object result = apiInstance.genericKubernetesUpdate(updateGenericKubernetesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GenericKubernetesCloudCredentialApi.genericKubernetesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GenericKubernetesCloudCredentialApi();
$updateGenericKubernetesCommand = ; // UpdateGenericKubernetesCommand | 

try {
    $result = $api_instance->genericKubernetesUpdate($updateGenericKubernetesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GenericKubernetesCloudCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GenericKubernetesCloudCredentialApi->new();
my $updateGenericKubernetesCommand = WWW::OPenAPIClient::Object::UpdateGenericKubernetesCommand->new(); # UpdateGenericKubernetesCommand | 

eval {
    my $result = $api_instance->genericKubernetesUpdate(updateGenericKubernetesCommand => $updateGenericKubernetesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GenericKubernetesCloudCredentialApi()
updateGenericKubernetesCommand =  # UpdateGenericKubernetesCommand |  (optional)

try:
    # Update Generic kubernetes credentials
    api_response = api_instance.generic_kubernetes_update(updateGenericKubernetesCommand=updateGenericKubernetesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GenericKubernetesCloudCredentialApi->genericKubernetesUpdate: %s\n" % e)
extern crate GenericKubernetesCloudCredentialApi;

pub fn main() {
    let updateGenericKubernetesCommand = ; // UpdateGenericKubernetesCommand

    let mut context = GenericKubernetesCloudCredentialApi::Context::default();
    let result = client.genericKubernetesUpdate(updateGenericKubernetesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateGenericKubernetesCommand

Responses


GlobalConfiguration

globalConfigurationsCcfVersion

Get CCF release and component versions


/api/v1/global-configurations/version

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/version"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();

        try {
            CcfVersionDto result = apiInstance.globalConfigurationsCcfVersion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCcfVersion");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.globalConfigurationsCcfVersion();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsCcfVersion: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();

        try {
            CcfVersionDto result = apiInstance.globalConfigurationsCcfVersion();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCcfVersion");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];

// Get CCF release and component versions
[apiInstance globalConfigurationsCcfVersionWithCompletionHandler: 
              ^(CcfVersionDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.globalConfigurationsCcfVersion(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class globalConfigurationsCcfVersionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();

            try {
                // Get CCF release and component versions
                CcfVersionDto result = apiInstance.globalConfigurationsCcfVersion();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsCcfVersion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();

try {
    $result = $api_instance->globalConfigurationsCcfVersion();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsCcfVersion: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();

eval {
    my $result = $api_instance->globalConfigurationsCcfVersion();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsCcfVersion: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()

try:
    # Get CCF release and component versions
    api_response = api_instance.global_configurations_ccf_version()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsCcfVersion: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsCcfVersion(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


globalConfigurationsCreateAirgapConfiguration

Create airgap global configuration


/api/v1/global-configurations/airgap/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/airgap/create" \
 -d '{
  "password" : "password",
  "name" : "name",
  "ociRegistryHost" : "ociRegistryHost",
  "isActive" : true,
  "ociPlainHttp" : true,
  "username" : "username",
  "ociRegistryCaPem" : "ociRegistryCaPem"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateAirgapGlobalConfigurationCommand createAirgapGlobalConfigurationCommand = ; // CreateAirgapGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateAirgapGlobalConfigurationCommand createAirgapGlobalConfigurationCommand = new CreateAirgapGlobalConfigurationCommand(); // CreateAirgapGlobalConfigurationCommand | 

try {
    final result = await api_instance.globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsCreateAirgapConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateAirgapGlobalConfigurationCommand createAirgapGlobalConfigurationCommand = ; // CreateAirgapGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
CreateAirgapGlobalConfigurationCommand *createAirgapGlobalConfigurationCommand = ; //  (optional)

// Create airgap global configuration
[apiInstance globalConfigurationsCreateAirgapConfigurationWith:createAirgapGlobalConfigurationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'createAirgapGlobalConfigurationCommand':  // {CreateAirgapGlobalConfigurationCommand} 
};

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

namespace Example
{
    public class globalConfigurationsCreateAirgapConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var createAirgapGlobalConfigurationCommand = new CreateAirgapGlobalConfigurationCommand(); // CreateAirgapGlobalConfigurationCommand |  (optional) 

            try {
                // Create airgap global configuration
                Object result = apiInstance.globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsCreateAirgapConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$createAirgapGlobalConfigurationCommand = ; // CreateAirgapGlobalConfigurationCommand | 

try {
    $result = $api_instance->globalConfigurationsCreateAirgapConfiguration($createAirgapGlobalConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsCreateAirgapConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $createAirgapGlobalConfigurationCommand = WWW::OPenAPIClient::Object::CreateAirgapGlobalConfigurationCommand->new(); # CreateAirgapGlobalConfigurationCommand | 

eval {
    my $result = $api_instance->globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand => $createAirgapGlobalConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsCreateAirgapConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
createAirgapGlobalConfigurationCommand =  # CreateAirgapGlobalConfigurationCommand |  (optional)

try:
    # Create airgap global configuration
    api_response = api_instance.global_configurations_create_airgap_configuration(createAirgapGlobalConfigurationCommand=createAirgapGlobalConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsCreateAirgapConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let createAirgapGlobalConfigurationCommand = ; // CreateAirgapGlobalConfigurationCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsCreateAirgapConfiguration(createAirgapGlobalConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createAirgapGlobalConfigurationCommand

Responses


globalConfigurationsCreateDnsCertConfiguration

Create DNS/Cert global configuration


/api/v1/global-configurations/dns-cert/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/dns-cert/create" \
 -d '{
  "defaultCertIssuer" : "defaultCertIssuer",
  "supportedProviders" : "supportedProviders",
  "certManagerRepoUrl" : "certManagerRepoUrl",
  "defaultAcmeServer" : "defaultAcmeServer",
  "externalDnsRepoUrl" : "externalDnsRepoUrl",
  "name" : "name",
  "certManagerVersion" : "certManagerVersion",
  "externalDnsVersion" : "externalDnsVersion",
  "certManagerChartName" : "certManagerChartName",
  "externalDnsChartName" : "externalDnsChartName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateDnsCertGlobalConfigurationCommand createDnsCertGlobalConfigurationCommand = ; // CreateDnsCertGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateDnsCertGlobalConfigurationCommand createDnsCertGlobalConfigurationCommand = new CreateDnsCertGlobalConfigurationCommand(); // CreateDnsCertGlobalConfigurationCommand | 

try {
    final result = await api_instance.globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsCreateDnsCertConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateDnsCertGlobalConfigurationCommand createDnsCertGlobalConfigurationCommand = ; // CreateDnsCertGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
CreateDnsCertGlobalConfigurationCommand *createDnsCertGlobalConfigurationCommand = ; //  (optional)

// Create DNS/Cert global configuration
[apiInstance globalConfigurationsCreateDnsCertConfigurationWith:createDnsCertGlobalConfigurationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'createDnsCertGlobalConfigurationCommand':  // {CreateDnsCertGlobalConfigurationCommand} 
};

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

namespace Example
{
    public class globalConfigurationsCreateDnsCertConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var createDnsCertGlobalConfigurationCommand = new CreateDnsCertGlobalConfigurationCommand(); // CreateDnsCertGlobalConfigurationCommand |  (optional) 

            try {
                // Create DNS/Cert global configuration
                Object result = apiInstance.globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsCreateDnsCertConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$createDnsCertGlobalConfigurationCommand = ; // CreateDnsCertGlobalConfigurationCommand | 

try {
    $result = $api_instance->globalConfigurationsCreateDnsCertConfiguration($createDnsCertGlobalConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsCreateDnsCertConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $createDnsCertGlobalConfigurationCommand = WWW::OPenAPIClient::Object::CreateDnsCertGlobalConfigurationCommand->new(); # CreateDnsCertGlobalConfigurationCommand | 

eval {
    my $result = $api_instance->globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand => $createDnsCertGlobalConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsCreateDnsCertConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
createDnsCertGlobalConfigurationCommand =  # CreateDnsCertGlobalConfigurationCommand |  (optional)

try:
    # Create DNS/Cert global configuration
    api_response = api_instance.global_configurations_create_dns_cert_configuration(createDnsCertGlobalConfigurationCommand=createDnsCertGlobalConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsCreateDnsCertConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let createDnsCertGlobalConfigurationCommand = ; // CreateDnsCertGlobalConfigurationCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsCreateDnsCertConfiguration(createDnsCertGlobalConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createDnsCertGlobalConfigurationCommand

Responses


globalConfigurationsCreateEmailConfig

Create email config


/api/v1/global-configurations/email-validator-config/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/email-validator-config/create" \
 -d '{
  "apiKey" : "apiKey",
  "name" : "name",
  "host" : "host"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateEmailConfigurationCommand createEmailConfigurationCommand = ; // CreateEmailConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateEmailConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateEmailConfigurationCommand createEmailConfigurationCommand = new CreateEmailConfigurationCommand(); // CreateEmailConfigurationCommand | 

try {
    final result = await api_instance.globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsCreateEmailConfig: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateEmailConfigurationCommand createEmailConfigurationCommand = ; // CreateEmailConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateEmailConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
CreateEmailConfigurationCommand *createEmailConfigurationCommand = ; //  (optional)

// Create email config
[apiInstance globalConfigurationsCreateEmailConfigWith:createEmailConfigurationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'createEmailConfigurationCommand':  // {CreateEmailConfigurationCommand} 
};

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

namespace Example
{
    public class globalConfigurationsCreateEmailConfigExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var createEmailConfigurationCommand = new CreateEmailConfigurationCommand(); // CreateEmailConfigurationCommand |  (optional) 

            try {
                // Create email config
                Object result = apiInstance.globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsCreateEmailConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$createEmailConfigurationCommand = ; // CreateEmailConfigurationCommand | 

try {
    $result = $api_instance->globalConfigurationsCreateEmailConfig($createEmailConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsCreateEmailConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $createEmailConfigurationCommand = WWW::OPenAPIClient::Object::CreateEmailConfigurationCommand->new(); # CreateEmailConfigurationCommand | 

eval {
    my $result = $api_instance->globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand => $createEmailConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsCreateEmailConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
createEmailConfigurationCommand =  # CreateEmailConfigurationCommand |  (optional)

try:
    # Create email config
    api_response = api_instance.global_configurations_create_email_config(createEmailConfigurationCommand=createEmailConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsCreateEmailConfig: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let createEmailConfigurationCommand = ; // CreateEmailConfigurationCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsCreateEmailConfig(createEmailConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createEmailConfigurationCommand

Responses


globalConfigurationsCreateSlackConfiguration

Create slack configuration


/api/v1/global-configurations/slack/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/slack/create" \
 -d '{
  "name" : "name",
  "channel" : "channel",
  "userName" : "userName",
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateGlobalSlackConfigurationCommand createGlobalSlackConfigurationCommand = ; // CreateGlobalSlackConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateSlackConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateGlobalSlackConfigurationCommand createGlobalSlackConfigurationCommand = new CreateGlobalSlackConfigurationCommand(); // CreateGlobalSlackConfigurationCommand | 

try {
    final result = await api_instance.globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsCreateSlackConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CreateGlobalSlackConfigurationCommand createGlobalSlackConfigurationCommand = ; // CreateGlobalSlackConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsCreateSlackConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
CreateGlobalSlackConfigurationCommand *createGlobalSlackConfigurationCommand = ; //  (optional)

// Create slack configuration
[apiInstance globalConfigurationsCreateSlackConfigurationWith:createGlobalSlackConfigurationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'createGlobalSlackConfigurationCommand':  // {CreateGlobalSlackConfigurationCommand} 
};

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

namespace Example
{
    public class globalConfigurationsCreateSlackConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var createGlobalSlackConfigurationCommand = new CreateGlobalSlackConfigurationCommand(); // CreateGlobalSlackConfigurationCommand |  (optional) 

            try {
                // Create slack configuration
                Object result = apiInstance.globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsCreateSlackConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$createGlobalSlackConfigurationCommand = ; // CreateGlobalSlackConfigurationCommand | 

try {
    $result = $api_instance->globalConfigurationsCreateSlackConfiguration($createGlobalSlackConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsCreateSlackConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $createGlobalSlackConfigurationCommand = WWW::OPenAPIClient::Object::CreateGlobalSlackConfigurationCommand->new(); # CreateGlobalSlackConfigurationCommand | 

eval {
    my $result = $api_instance->globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand => $createGlobalSlackConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsCreateSlackConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
createGlobalSlackConfigurationCommand =  # CreateGlobalSlackConfigurationCommand |  (optional)

try:
    # Create slack configuration
    api_response = api_instance.global_configurations_create_slack_configuration(createGlobalSlackConfigurationCommand=createGlobalSlackConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsCreateSlackConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let createGlobalSlackConfigurationCommand = ; // CreateGlobalSlackConfigurationCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsCreateSlackConfiguration(createGlobalSlackConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createGlobalSlackConfigurationCommand

Responses


globalConfigurationsDeleteAirgapConfiguration

Delete airgap global configuration


/api/v1/global-configurations/airgap/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/airgap/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteAirgapConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.globalConfigurationsDeleteAirgapConfiguration(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsDeleteAirgapConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteAirgapConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete airgap global configuration
[apiInstance globalConfigurationsDeleteAirgapConfigurationWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class globalConfigurationsDeleteAirgapConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete airgap global configuration
                Object result = apiInstance.globalConfigurationsDeleteAirgapConfiguration(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsDeleteAirgapConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->globalConfigurationsDeleteAirgapConfiguration($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteAirgapConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->globalConfigurationsDeleteAirgapConfiguration(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteAirgapConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
id = 56 # Integer |  (default to null)

try:
    # Delete airgap global configuration
    api_response = api_instance.global_configurations_delete_airgap_configuration(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteAirgapConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsDeleteAirgapConfiguration(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


globalConfigurationsDeleteDnsCertConfiguration

Delete DNS/Cert global configuration


/api/v1/global-configurations/dns-cert/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/dns-cert/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteDnsCertConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.globalConfigurationsDeleteDnsCertConfiguration(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsDeleteDnsCertConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteDnsCertConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete DNS/Cert global configuration
[apiInstance globalConfigurationsDeleteDnsCertConfigurationWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class globalConfigurationsDeleteDnsCertConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete DNS/Cert global configuration
                Object result = apiInstance.globalConfigurationsDeleteDnsCertConfiguration(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsDeleteDnsCertConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->globalConfigurationsDeleteDnsCertConfiguration($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteDnsCertConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->globalConfigurationsDeleteDnsCertConfiguration(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteDnsCertConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
id = 56 # Integer |  (default to null)

try:
    # Delete DNS/Cert global configuration
    api_response = api_instance.global_configurations_delete_dns_cert_configuration(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteDnsCertConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsDeleteDnsCertConfiguration(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


globalConfigurationsDeleteSlackConfiguration

Remove global slack configuration


/api/v1/global-configurations/slack/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/slack/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteSlackConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteSlackConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.globalConfigurationsDeleteSlackConfiguration(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsDeleteSlackConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.globalConfigurationsDeleteSlackConfiguration(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsDeleteSlackConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *id = 56; //  (default to null)

// Remove global slack configuration
[apiInstance globalConfigurationsDeleteSlackConfigurationWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class globalConfigurationsDeleteSlackConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Remove global slack configuration
                Object result = apiInstance.globalConfigurationsDeleteSlackConfiguration(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsDeleteSlackConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->globalConfigurationsDeleteSlackConfiguration($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteSlackConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->globalConfigurationsDeleteSlackConfiguration(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteSlackConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
id = 56 # Integer |  (default to null)

try:
    # Remove global slack configuration
    api_response = api_instance.global_configurations_delete_slack_configuration(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsDeleteSlackConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsDeleteSlackConfiguration(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


globalConfigurationsGetFeatureFlags

Retrieve deployment-wide feature flags


/api/v1/global-configurations/feature-flags

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/feature-flags"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();

        try {
            GlobalFeatureFlagsDto result = apiInstance.globalConfigurationsGetFeatureFlags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsGetFeatureFlags");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.globalConfigurationsGetFeatureFlags();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsGetFeatureFlags: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();

        try {
            GlobalFeatureFlagsDto result = apiInstance.globalConfigurationsGetFeatureFlags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsGetFeatureFlags");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];

// Retrieve deployment-wide feature flags
[apiInstance globalConfigurationsGetFeatureFlagsWithCompletionHandler: 
              ^(GlobalFeatureFlagsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.globalConfigurationsGetFeatureFlags(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class globalConfigurationsGetFeatureFlagsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();

            try {
                // Retrieve deployment-wide feature flags
                GlobalFeatureFlagsDto result = apiInstance.globalConfigurationsGetFeatureFlags();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsGetFeatureFlags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();

try {
    $result = $api_instance->globalConfigurationsGetFeatureFlags();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsGetFeatureFlags: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();

eval {
    my $result = $api_instance->globalConfigurationsGetFeatureFlags();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsGetFeatureFlags: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()

try:
    # Retrieve deployment-wide feature flags
    api_response = api_instance.global_configurations_get_feature_flags()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsGetFeatureFlags: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsGetFeatureFlags(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


globalConfigurationsListAirgapConfiguration

List airgap global configurations


/api/v1/global-configurations/airgap/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/airgap/list?Limit=56&Offset=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            AirgapGlobalConfigurationList result = apiInstance.globalConfigurationsListAirgapConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final String search = new String(); // String | Free-text search over configuration names

try {
    final result = await api_instance.globalConfigurationsListAirgapConfiguration(limit, offset, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsListAirgapConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            AirgapGlobalConfigurationList result = apiInstance.globalConfigurationsListAirgapConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
String *search = search_example; // Free-text search over configuration names (optional) (default to null)

// List airgap global configurations
[apiInstance globalConfigurationsListAirgapConfigurationWith:limit
    offset:offset
    search:search
              completionHandler: ^(AirgapGlobalConfigurationList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 100
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'search': search_example // {String} Free-text search over configuration names
};

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

namespace Example
{
    public class globalConfigurationsListAirgapConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var search = search_example;  // String | Free-text search over configuration names (optional)  (default to null)

            try {
                // List airgap global configurations
                AirgapGlobalConfigurationList result = apiInstance.globalConfigurationsListAirgapConfiguration(limit, offset, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsListAirgapConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$limit = 56; // Integer | Page size; defaults to 100
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$search = search_example; // String | Free-text search over configuration names

try {
    $result = $api_instance->globalConfigurationsListAirgapConfiguration($limit, $offset, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsListAirgapConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $limit = 56; # Integer | Page size; defaults to 100
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $search = search_example; # String | Free-text search over configuration names

eval {
    my $result = $api_instance->globalConfigurationsListAirgapConfiguration(limit => $limit, offset => $offset, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsListAirgapConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
search = search_example # String | Free-text search over configuration names (optional) (default to null)

try:
    # List airgap global configurations
    api_response = api_instance.global_configurations_list_airgap_configuration(limit=limit, offset=offset, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsListAirgapConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsListAirgapConfiguration(limit, offset, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 100
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Search

Responses


globalConfigurationsListDnsCertConfiguration

List DNS/Cert global configurations


/api/v1/global-configurations/dns-cert/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/dns-cert/list?Limit=56&Offset=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            DnsCertGlobalConfigurationList result = apiInstance.globalConfigurationsListDnsCertConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final String search = new String(); // String | Free-text search over configuration names

try {
    final result = await api_instance.globalConfigurationsListDnsCertConfiguration(limit, offset, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsListDnsCertConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            DnsCertGlobalConfigurationList result = apiInstance.globalConfigurationsListDnsCertConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
String *search = search_example; // Free-text search over configuration names (optional) (default to null)

// List DNS/Cert global configurations
[apiInstance globalConfigurationsListDnsCertConfigurationWith:limit
    offset:offset
    search:search
              completionHandler: ^(DnsCertGlobalConfigurationList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 100
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'search': search_example // {String} Free-text search over configuration names
};

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

namespace Example
{
    public class globalConfigurationsListDnsCertConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var search = search_example;  // String | Free-text search over configuration names (optional)  (default to null)

            try {
                // List DNS/Cert global configurations
                DnsCertGlobalConfigurationList result = apiInstance.globalConfigurationsListDnsCertConfiguration(limit, offset, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsListDnsCertConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$limit = 56; // Integer | Page size; defaults to 100
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$search = search_example; // String | Free-text search over configuration names

try {
    $result = $api_instance->globalConfigurationsListDnsCertConfiguration($limit, $offset, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsListDnsCertConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $limit = 56; # Integer | Page size; defaults to 100
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $search = search_example; # String | Free-text search over configuration names

eval {
    my $result = $api_instance->globalConfigurationsListDnsCertConfiguration(limit => $limit, offset => $offset, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsListDnsCertConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
search = search_example # String | Free-text search over configuration names (optional) (default to null)

try:
    # List DNS/Cert global configurations
    api_response = api_instance.global_configurations_list_dns_cert_configuration(limit=limit, offset=offset, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsListDnsCertConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsListDnsCertConfiguration(limit, offset, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 100
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Search

Responses


globalConfigurationsListSlackConfiguration

Retrieve slack configuration list


/api/v1/global-configurations/slack/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/global-configurations/slack/list?Limit=56&Offset=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            GlobalSlackConfigurationList result = apiInstance.globalConfigurationsListSlackConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListSlackConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 100
final Integer offset = new Integer(); // Integer | Row offset for pagination; defaults to 0
final String search = new String(); // String | Free-text search over configuration names

try {
    final result = await api_instance.globalConfigurationsListSlackConfiguration(limit, offset, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsListSlackConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        Integer limit = 56; // Integer | Page size; defaults to 100
        Integer offset = 56; // Integer | Row offset for pagination; defaults to 0
        String search = search_example; // String | Free-text search over configuration names

        try {
            GlobalSlackConfigurationList result = apiInstance.globalConfigurationsListSlackConfiguration(limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsListSlackConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
Integer *limit = 56; // Page size; defaults to 100 (optional) (default to 100)
Integer *offset = 56; // Row offset for pagination; defaults to 0 (optional) (default to 0)
String *search = search_example; // Free-text search over configuration names (optional) (default to null)

// Retrieve slack configuration list
[apiInstance globalConfigurationsListSlackConfigurationWith:limit
    offset:offset
    search:search
              completionHandler: ^(GlobalSlackConfigurationList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 100
  'offset': 56, // {Integer} Row offset for pagination; defaults to 0
  'search': search_example // {String} Free-text search over configuration names
};

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

namespace Example
{
    public class globalConfigurationsListSlackConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var limit = 56;  // Integer | Page size; defaults to 100 (optional)  (default to 100)
            var offset = 56;  // Integer | Row offset for pagination; defaults to 0 (optional)  (default to 0)
            var search = search_example;  // String | Free-text search over configuration names (optional)  (default to null)

            try {
                // Retrieve slack configuration list
                GlobalSlackConfigurationList result = apiInstance.globalConfigurationsListSlackConfiguration(limit, offset, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsListSlackConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$limit = 56; // Integer | Page size; defaults to 100
$offset = 56; // Integer | Row offset for pagination; defaults to 0
$search = search_example; // String | Free-text search over configuration names

try {
    $result = $api_instance->globalConfigurationsListSlackConfiguration($limit, $offset, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsListSlackConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $limit = 56; # Integer | Page size; defaults to 100
my $offset = 56; # Integer | Row offset for pagination; defaults to 0
my $search = search_example; # String | Free-text search over configuration names

eval {
    my $result = $api_instance->globalConfigurationsListSlackConfiguration(limit => $limit, offset => $offset, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsListSlackConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
limit = 56 # Integer | Page size; defaults to 100 (optional) (default to 100)
offset = 56 # Integer | Row offset for pagination; defaults to 0 (optional) (default to 0)
search = search_example # String | Free-text search over configuration names (optional) (default to null)

try:
    # Retrieve slack configuration list
    api_response = api_instance.global_configurations_list_slack_configuration(limit=limit, offset=offset, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsListSlackConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsListSlackConfiguration(limit, offset, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 100
Offset
Integer (int32)
Row offset for pagination; defaults to 0
Search

Responses


globalConfigurationsUpdateAirgapConfiguration

Update airgap global configuration


/api/v1/global-configurations/airgap/update

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/airgap/update" \
 -d '{
  "password" : "password",
  "name" : "name",
  "ociRegistryHost" : "ociRegistryHost",
  "id" : 0,
  "ociPlainHttp" : true,
  "username" : "username",
  "ociRegistryCaPem" : "ociRegistryCaPem"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        UpdateAirgapGlobalConfigurationCommand updateAirgapGlobalConfigurationCommand = ; // UpdateAirgapGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateAirgapGlobalConfigurationCommand updateAirgapGlobalConfigurationCommand = new UpdateAirgapGlobalConfigurationCommand(); // UpdateAirgapGlobalConfigurationCommand | 

try {
    final result = await api_instance.globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsUpdateAirgapConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        UpdateAirgapGlobalConfigurationCommand updateAirgapGlobalConfigurationCommand = ; // UpdateAirgapGlobalConfigurationCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
UpdateAirgapGlobalConfigurationCommand *updateAirgapGlobalConfigurationCommand = ; //  (optional)

// Update airgap global configuration
[apiInstance globalConfigurationsUpdateAirgapConfigurationWith:updateAirgapGlobalConfigurationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'updateAirgapGlobalConfigurationCommand':  // {UpdateAirgapGlobalConfigurationCommand} 
};

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

namespace Example
{
    public class globalConfigurationsUpdateAirgapConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var updateAirgapGlobalConfigurationCommand = new UpdateAirgapGlobalConfigurationCommand(); // UpdateAirgapGlobalConfigurationCommand |  (optional) 

            try {
                // Update airgap global configuration
                Object result = apiInstance.globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsUpdateAirgapConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$updateAirgapGlobalConfigurationCommand = ; // UpdateAirgapGlobalConfigurationCommand | 

try {
    $result = $api_instance->globalConfigurationsUpdateAirgapConfiguration($updateAirgapGlobalConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateAirgapConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $updateAirgapGlobalConfigurationCommand = WWW::OPenAPIClient::Object::UpdateAirgapGlobalConfigurationCommand->new(); # UpdateAirgapGlobalConfigurationCommand | 

eval {
    my $result = $api_instance->globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand => $updateAirgapGlobalConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateAirgapConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
updateAirgapGlobalConfigurationCommand =  # UpdateAirgapGlobalConfigurationCommand |  (optional)

try:
    # Update airgap global configuration
    api_response = api_instance.global_configurations_update_airgap_configuration(updateAirgapGlobalConfigurationCommand=updateAirgapGlobalConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateAirgapConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let updateAirgapGlobalConfigurationCommand = ; // UpdateAirgapGlobalConfigurationCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsUpdateAirgapConfiguration(updateAirgapGlobalConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateAirgapGlobalConfigurationCommand

Responses


globalConfigurationsUpdateStatusAirgapConfiguration

Activate/Deactivate airgap global configuration


/api/v1/global-configurations/airgap/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/airgap/status" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        AirgapGlobalConfigurationStatusManagementCommand airgapGlobalConfigurationStatusManagementCommand = ; // AirgapGlobalConfigurationStatusManagementCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AirgapGlobalConfigurationStatusManagementCommand airgapGlobalConfigurationStatusManagementCommand = new AirgapGlobalConfigurationStatusManagementCommand(); // AirgapGlobalConfigurationStatusManagementCommand | 

try {
    final result = await api_instance.globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsUpdateStatusAirgapConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        AirgapGlobalConfigurationStatusManagementCommand airgapGlobalConfigurationStatusManagementCommand = ; // AirgapGlobalConfigurationStatusManagementCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusAirgapConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
AirgapGlobalConfigurationStatusManagementCommand *airgapGlobalConfigurationStatusManagementCommand = ; //  (optional)

// Activate/Deactivate airgap global configuration
[apiInstance globalConfigurationsUpdateStatusAirgapConfigurationWith:airgapGlobalConfigurationStatusManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'airgapGlobalConfigurationStatusManagementCommand':  // {AirgapGlobalConfigurationStatusManagementCommand} 
};

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

namespace Example
{
    public class globalConfigurationsUpdateStatusAirgapConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var airgapGlobalConfigurationStatusManagementCommand = new AirgapGlobalConfigurationStatusManagementCommand(); // AirgapGlobalConfigurationStatusManagementCommand |  (optional) 

            try {
                // Activate/Deactivate airgap global configuration
                Object result = apiInstance.globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsUpdateStatusAirgapConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$airgapGlobalConfigurationStatusManagementCommand = ; // AirgapGlobalConfigurationStatusManagementCommand | 

try {
    $result = $api_instance->globalConfigurationsUpdateStatusAirgapConfiguration($airgapGlobalConfigurationStatusManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusAirgapConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $airgapGlobalConfigurationStatusManagementCommand = WWW::OPenAPIClient::Object::AirgapGlobalConfigurationStatusManagementCommand->new(); # AirgapGlobalConfigurationStatusManagementCommand | 

eval {
    my $result = $api_instance->globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand => $airgapGlobalConfigurationStatusManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusAirgapConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
airgapGlobalConfigurationStatusManagementCommand =  # AirgapGlobalConfigurationStatusManagementCommand |  (optional)

try:
    # Activate/Deactivate airgap global configuration
    api_response = api_instance.global_configurations_update_status_airgap_configuration(airgapGlobalConfigurationStatusManagementCommand=airgapGlobalConfigurationStatusManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusAirgapConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let airgapGlobalConfigurationStatusManagementCommand = ; // AirgapGlobalConfigurationStatusManagementCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsUpdateStatusAirgapConfiguration(airgapGlobalConfigurationStatusManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
airgapGlobalConfigurationStatusManagementCommand

Responses


globalConfigurationsUpdateStatusCiliumFeatureFlag

Enable/Disable the Cilium feature for this deployment


/api/v1/global-configurations/feature-flags/cilium/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/feature-flags/cilium/status" \
 -d '{
  "mode" : "mode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CiliumFeatureFlagStatusCommand ciliumFeatureFlagStatusCommand = ; // CiliumFeatureFlagStatusCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusCiliumFeatureFlag");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CiliumFeatureFlagStatusCommand ciliumFeatureFlagStatusCommand = new CiliumFeatureFlagStatusCommand(); // CiliumFeatureFlagStatusCommand | 

try {
    final result = await api_instance.globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsUpdateStatusCiliumFeatureFlag: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        CiliumFeatureFlagStatusCommand ciliumFeatureFlagStatusCommand = ; // CiliumFeatureFlagStatusCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusCiliumFeatureFlag");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
CiliumFeatureFlagStatusCommand *ciliumFeatureFlagStatusCommand = ; //  (optional)

// Enable/Disable the Cilium feature for this deployment
[apiInstance globalConfigurationsUpdateStatusCiliumFeatureFlagWith:ciliumFeatureFlagStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'ciliumFeatureFlagStatusCommand':  // {CiliumFeatureFlagStatusCommand} 
};

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

namespace Example
{
    public class globalConfigurationsUpdateStatusCiliumFeatureFlagExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var ciliumFeatureFlagStatusCommand = new CiliumFeatureFlagStatusCommand(); // CiliumFeatureFlagStatusCommand |  (optional) 

            try {
                // Enable/Disable the Cilium feature for this deployment
                Object result = apiInstance.globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsUpdateStatusCiliumFeatureFlag: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$ciliumFeatureFlagStatusCommand = ; // CiliumFeatureFlagStatusCommand | 

try {
    $result = $api_instance->globalConfigurationsUpdateStatusCiliumFeatureFlag($ciliumFeatureFlagStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusCiliumFeatureFlag: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $ciliumFeatureFlagStatusCommand = WWW::OPenAPIClient::Object::CiliumFeatureFlagStatusCommand->new(); # CiliumFeatureFlagStatusCommand | 

eval {
    my $result = $api_instance->globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand => $ciliumFeatureFlagStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusCiliumFeatureFlag: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
ciliumFeatureFlagStatusCommand =  # CiliumFeatureFlagStatusCommand |  (optional)

try:
    # Enable/Disable the Cilium feature for this deployment
    api_response = api_instance.global_configurations_update_status_cilium_feature_flag(ciliumFeatureFlagStatusCommand=ciliumFeatureFlagStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusCiliumFeatureFlag: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let ciliumFeatureFlagStatusCommand = ; // CiliumFeatureFlagStatusCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsUpdateStatusCiliumFeatureFlag(ciliumFeatureFlagStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ciliumFeatureFlagStatusCommand

Responses


globalConfigurationsUpdateStatusDnsCertConfiguration

Activate/Deactivate DNS/Cert global configuration


/api/v1/global-configurations/dns-cert/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/dns-cert/status" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        DnsCertGlobalConfigurationStatusCommand dnsCertGlobalConfigurationStatusCommand = ; // DnsCertGlobalConfigurationStatusCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DnsCertGlobalConfigurationStatusCommand dnsCertGlobalConfigurationStatusCommand = new DnsCertGlobalConfigurationStatusCommand(); // DnsCertGlobalConfigurationStatusCommand | 

try {
    final result = await api_instance.globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsUpdateStatusDnsCertConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        DnsCertGlobalConfigurationStatusCommand dnsCertGlobalConfigurationStatusCommand = ; // DnsCertGlobalConfigurationStatusCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusDnsCertConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
DnsCertGlobalConfigurationStatusCommand *dnsCertGlobalConfigurationStatusCommand = ; //  (optional)

// Activate/Deactivate DNS/Cert global configuration
[apiInstance globalConfigurationsUpdateStatusDnsCertConfigurationWith:dnsCertGlobalConfigurationStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'dnsCertGlobalConfigurationStatusCommand':  // {DnsCertGlobalConfigurationStatusCommand} 
};

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

namespace Example
{
    public class globalConfigurationsUpdateStatusDnsCertConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var dnsCertGlobalConfigurationStatusCommand = new DnsCertGlobalConfigurationStatusCommand(); // DnsCertGlobalConfigurationStatusCommand |  (optional) 

            try {
                // Activate/Deactivate DNS/Cert global configuration
                Object result = apiInstance.globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsUpdateStatusDnsCertConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$dnsCertGlobalConfigurationStatusCommand = ; // DnsCertGlobalConfigurationStatusCommand | 

try {
    $result = $api_instance->globalConfigurationsUpdateStatusDnsCertConfiguration($dnsCertGlobalConfigurationStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusDnsCertConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $dnsCertGlobalConfigurationStatusCommand = WWW::OPenAPIClient::Object::DnsCertGlobalConfigurationStatusCommand->new(); # DnsCertGlobalConfigurationStatusCommand | 

eval {
    my $result = $api_instance->globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand => $dnsCertGlobalConfigurationStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusDnsCertConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
dnsCertGlobalConfigurationStatusCommand =  # DnsCertGlobalConfigurationStatusCommand |  (optional)

try:
    # Activate/Deactivate DNS/Cert global configuration
    api_response = api_instance.global_configurations_update_status_dns_cert_configuration(dnsCertGlobalConfigurationStatusCommand=dnsCertGlobalConfigurationStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusDnsCertConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let dnsCertGlobalConfigurationStatusCommand = ; // DnsCertGlobalConfigurationStatusCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsUpdateStatusDnsCertConfiguration(dnsCertGlobalConfigurationStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
dnsCertGlobalConfigurationStatusCommand

Responses


globalConfigurationsUpdateStatusSlackConfiguration

Activate/Deactivate global slack configuration


/api/v1/global-configurations/slack/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/global-configurations/slack/status" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GlobalConfigurationApi;

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

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        GlobalSlackConfigurationStatusManagementCommand globalSlackConfigurationStatusManagementCommand = ; // GlobalSlackConfigurationStatusManagementCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusSlackConfiguration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GlobalSlackConfigurationStatusManagementCommand globalSlackConfigurationStatusManagementCommand = new GlobalSlackConfigurationStatusManagementCommand(); // GlobalSlackConfigurationStatusManagementCommand | 

try {
    final result = await api_instance.globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->globalConfigurationsUpdateStatusSlackConfiguration: $e\n');
}

import org.openapitools.client.api.GlobalConfigurationApi;

public class GlobalConfigurationApiExample {
    public static void main(String[] args) {
        GlobalConfigurationApi apiInstance = new GlobalConfigurationApi();
        GlobalSlackConfigurationStatusManagementCommand globalSlackConfigurationStatusManagementCommand = ; // GlobalSlackConfigurationStatusManagementCommand | 

        try {
            Object result = apiInstance.globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GlobalConfigurationApi#globalConfigurationsUpdateStatusSlackConfiguration");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GlobalConfigurationApi *apiInstance = [[GlobalConfigurationApi alloc] init];
GlobalSlackConfigurationStatusManagementCommand *globalSlackConfigurationStatusManagementCommand = ; //  (optional)

// Activate/Deactivate global slack configuration
[apiInstance globalConfigurationsUpdateStatusSlackConfigurationWith:globalSlackConfigurationStatusManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GlobalConfigurationApi()
var opts = {
  'globalSlackConfigurationStatusManagementCommand':  // {GlobalSlackConfigurationStatusManagementCommand} 
};

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

namespace Example
{
    public class globalConfigurationsUpdateStatusSlackConfigurationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GlobalConfigurationApi();
            var globalSlackConfigurationStatusManagementCommand = new GlobalSlackConfigurationStatusManagementCommand(); // GlobalSlackConfigurationStatusManagementCommand |  (optional) 

            try {
                // Activate/Deactivate global slack configuration
                Object result = apiInstance.globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GlobalConfigurationApi.globalConfigurationsUpdateStatusSlackConfiguration: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GlobalConfigurationApi();
$globalSlackConfigurationStatusManagementCommand = ; // GlobalSlackConfigurationStatusManagementCommand | 

try {
    $result = $api_instance->globalConfigurationsUpdateStatusSlackConfiguration($globalSlackConfigurationStatusManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusSlackConfiguration: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GlobalConfigurationApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GlobalConfigurationApi->new();
my $globalSlackConfigurationStatusManagementCommand = WWW::OPenAPIClient::Object::GlobalSlackConfigurationStatusManagementCommand->new(); # GlobalSlackConfigurationStatusManagementCommand | 

eval {
    my $result = $api_instance->globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand => $globalSlackConfigurationStatusManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusSlackConfiguration: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GlobalConfigurationApi()
globalSlackConfigurationStatusManagementCommand =  # GlobalSlackConfigurationStatusManagementCommand |  (optional)

try:
    # Activate/Deactivate global slack configuration
    api_response = api_instance.global_configurations_update_status_slack_configuration(globalSlackConfigurationStatusManagementCommand=globalSlackConfigurationStatusManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GlobalConfigurationApi->globalConfigurationsUpdateStatusSlackConfiguration: %s\n" % e)
extern crate GlobalConfigurationApi;

pub fn main() {
    let globalSlackConfigurationStatusManagementCommand = ; // GlobalSlackConfigurationStatusManagementCommand

    let mut context = GlobalConfigurationApi::Context::default();
    let result = client.globalConfigurationsUpdateStatusSlackConfiguration(globalSlackConfigurationStatusManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
globalSlackConfigurationStatusManagementCommand

Responses


Google

googlecloudBillingAccountList

Retrieve google billing accounts list


/api/v1/googlecloud/billing-accounts

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/billing-accounts"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudBillingAccountList(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudBillingAccountList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB

try {
    final result = await api_instance.googlecloudBillingAccountList(config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudBillingAccountList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudBillingAccountList(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudBillingAccountList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)

// Retrieve google billing accounts list
[apiInstance googlecloudBillingAccountListWith:config
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB

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

namespace Example
{
    public class googlecloudBillingAccountListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)

            try {
                // Retrieve google billing accounts list
                array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudBillingAccountList(config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudBillingAccountList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB

try {
    $result = $api_instance->googlecloudBillingAccountList($config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudBillingAccountList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB

eval {
    my $result = $api_instance->googlecloudBillingAccountList(config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudBillingAccountList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)

try:
    # Retrieve google billing accounts list
    api_response = api_instance.googlecloud_billing_account_list(config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudBillingAccountList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudBillingAccountList(config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required

Responses


googlecloudCcfResources

Retrieve GCP resources labeled with the CCF ownership label


/api/v1/googlecloud/ccf-resources

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/googlecloud/ccf-resources" \
 -d '{
  "projectValue" : "projectValue",
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        GcpCcfResourceListCommand gcpCcfResourceListCommand = ; // GcpCcfResourceListCommand | 

        try {
            array[GcpCcfResourceDto] result = apiInstance.googlecloudCcfResources(gcpCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudCcfResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GcpCcfResourceListCommand gcpCcfResourceListCommand = new GcpCcfResourceListCommand(); // GcpCcfResourceListCommand | 

try {
    final result = await api_instance.googlecloudCcfResources(gcpCcfResourceListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudCcfResources: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        GcpCcfResourceListCommand gcpCcfResourceListCommand = ; // GcpCcfResourceListCommand | 

        try {
            array[GcpCcfResourceDto] result = apiInstance.googlecloudCcfResources(gcpCcfResourceListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudCcfResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
GcpCcfResourceListCommand *gcpCcfResourceListCommand = ; //  (optional)

// Retrieve GCP resources labeled with the CCF ownership label
[apiInstance googlecloudCcfResourcesWith:gcpCcfResourceListCommand
              completionHandler: ^(array[GcpCcfResourceDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'gcpCcfResourceListCommand':  // {GcpCcfResourceListCommand} 
};

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

namespace Example
{
    public class googlecloudCcfResourcesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var gcpCcfResourceListCommand = new GcpCcfResourceListCommand(); // GcpCcfResourceListCommand |  (optional) 

            try {
                // Retrieve GCP resources labeled with the CCF ownership label
                array[GcpCcfResourceDto] result = apiInstance.googlecloudCcfResources(gcpCcfResourceListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudCcfResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$gcpCcfResourceListCommand = ; // GcpCcfResourceListCommand | 

try {
    $result = $api_instance->googlecloudCcfResources($gcpCcfResourceListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudCcfResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $gcpCcfResourceListCommand = WWW::OPenAPIClient::Object::GcpCcfResourceListCommand->new(); # GcpCcfResourceListCommand | 

eval {
    my $result = $api_instance->googlecloudCcfResources(gcpCcfResourceListCommand => $gcpCcfResourceListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudCcfResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
gcpCcfResourceListCommand =  # GcpCcfResourceListCommand |  (optional)

try:
    # Retrieve GCP resources labeled with the CCF ownership label
    api_response = api_instance.googlecloud_ccf_resources(gcpCcfResourceListCommand=gcpCcfResourceListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudCcfResources: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let gcpCcfResourceListCommand = ; // GcpCcfResourceListCommand

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudCcfResources(gcpCcfResourceListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
gcpCcfResourceListCommand

Responses


googlecloudCreate

Create google cloud credential


/api/v1/googlecloud/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/create"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB
        String name = name_example; // String | Credential display name, 3-30 chars
        Integer azCount = 56; // Integer | Number of availability zones to spread across
        String region = region_example; // String | GCP region
        Boolean importProject = true; // Boolean | Import an existing GCP project instead of creating one
        String folderId = folderId_example; // String | GCP folder id to create the new project under
        String billingAccountId = billingAccountId_example; // String | Billing account id to attach to the new project
        Integer organizationId = 56; // Integer | Owning organization id; defaults to caller organization when null
        IpMode ipMode = ; // IpMode | IP addressing mode; defaults to IPv4
        String kubernetesImage = kubernetesImage_example; // String | Provider-native Kubernetes image id; omitted to use the default image
        Boolean usePreinstalledImage = true; // Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
        VpcMode vpcMode = ; // VpcMode | VPC handling; create a new VPC or import an existing one
        String importedGcpProjectId = importedGcpProjectId_example; // String | Existing GCP project id when importing
        String importedVpcName = importedVpcName_example; // String | Existing VPC name when VpcMode is import
        array[String] subnets = ; // array[String] | Subnet names to attach when importing a VPC
        String importedFilestoreId = importedFilestoreId_example; // String | Existing Filestore instance id to import
        String importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Project that owns the Filestore instance; falls back to the SA's own project when null

        try {
            ApiResponse result = apiInstance.googlecloudCreate(config, name, azCount, region, importProject, folderId, billingAccountId, organizationId, ipMode, kubernetesImage, usePreinstalledImage, vpcMode, importedGcpProjectId, importedVpcName, subnets, importedFilestoreId, importedFilestoreProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB
final String name = new String(); // String | Credential display name, 3-30 chars
final Integer azCount = new Integer(); // Integer | Number of availability zones to spread across
final String region = new String(); // String | GCP region
final Boolean importProject = new Boolean(); // Boolean | Import an existing GCP project instead of creating one
final String folderId = new String(); // String | GCP folder id to create the new project under
final String billingAccountId = new String(); // String | Billing account id to attach to the new project
final Integer organizationId = new Integer(); // Integer | Owning organization id; defaults to caller organization when null
final IpMode ipMode = new IpMode(); // IpMode | IP addressing mode; defaults to IPv4
final String kubernetesImage = new String(); // String | Provider-native Kubernetes image id; omitted to use the default image
final Boolean usePreinstalledImage = new Boolean(); // Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
final VpcMode vpcMode = new VpcMode(); // VpcMode | VPC handling; create a new VPC or import an existing one
final String importedGcpProjectId = new String(); // String | Existing GCP project id when importing
final String importedVpcName = new String(); // String | Existing VPC name when VpcMode is import
final array[String] subnets = new array[String](); // array[String] | Subnet names to attach when importing a VPC
final String importedFilestoreId = new String(); // String | Existing Filestore instance id to import
final String importedFilestoreProjectId = new String(); // String | Project that owns the Filestore instance; falls back to the SA's own project when null

try {
    final result = await api_instance.googlecloudCreate(config, name, azCount, region, importProject, folderId, billingAccountId, organizationId, ipMode, kubernetesImage, usePreinstalledImage, vpcMode, importedGcpProjectId, importedVpcName, subnets, importedFilestoreId, importedFilestoreProjectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudCreate: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB
        String name = name_example; // String | Credential display name, 3-30 chars
        Integer azCount = 56; // Integer | Number of availability zones to spread across
        String region = region_example; // String | GCP region
        Boolean importProject = true; // Boolean | Import an existing GCP project instead of creating one
        String folderId = folderId_example; // String | GCP folder id to create the new project under
        String billingAccountId = billingAccountId_example; // String | Billing account id to attach to the new project
        Integer organizationId = 56; // Integer | Owning organization id; defaults to caller organization when null
        IpMode ipMode = ; // IpMode | IP addressing mode; defaults to IPv4
        String kubernetesImage = kubernetesImage_example; // String | Provider-native Kubernetes image id; omitted to use the default image
        Boolean usePreinstalledImage = true; // Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
        VpcMode vpcMode = ; // VpcMode | VPC handling; create a new VPC or import an existing one
        String importedGcpProjectId = importedGcpProjectId_example; // String | Existing GCP project id when importing
        String importedVpcName = importedVpcName_example; // String | Existing VPC name when VpcMode is import
        array[String] subnets = ; // array[String] | Subnet names to attach when importing a VPC
        String importedFilestoreId = importedFilestoreId_example; // String | Existing Filestore instance id to import
        String importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Project that owns the Filestore instance; falls back to the SA's own project when null

        try {
            ApiResponse result = apiInstance.googlecloudCreate(config, name, azCount, region, importProject, folderId, billingAccountId, organizationId, ipMode, kubernetesImage, usePreinstalledImage, vpcMode, importedGcpProjectId, importedVpcName, subnets, importedFilestoreId, importedFilestoreProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)
String *name = name_example; // Credential display name, 3-30 chars (default to null)
Integer *azCount = 56; // Number of availability zones to spread across (default to null)
String *region = region_example; // GCP region (default to null)
Boolean *importProject = true; // Import an existing GCP project instead of creating one (optional) (default to null)
String *folderId = folderId_example; // GCP folder id to create the new project under (optional) (default to null)
String *billingAccountId = billingAccountId_example; // Billing account id to attach to the new project (optional) (default to null)
Integer *organizationId = 56; // Owning organization id; defaults to caller organization when null (optional) (default to null)
IpMode *ipMode = ; // IP addressing mode; defaults to IPv4 (optional) (default to null)
String *kubernetesImage = kubernetesImage_example; // Provider-native Kubernetes image id; omitted to use the default image (optional) (default to null)
Boolean *usePreinstalledImage = true; // Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories (optional) (default to null)
VpcMode *vpcMode = ; // VPC handling; create a new VPC or import an existing one (optional) (default to null)
String *importedGcpProjectId = importedGcpProjectId_example; // Existing GCP project id when importing (optional) (default to null)
String *importedVpcName = importedVpcName_example; // Existing VPC name when VpcMode is import (optional) (default to null)
array[String] *subnets = ; // Subnet names to attach when importing a VPC (optional) (default to null)
String *importedFilestoreId = importedFilestoreId_example; // Existing Filestore instance id to import (optional) (default to null)
String *importedFilestoreProjectId = importedFilestoreProjectId_example; // Project that owns the Filestore instance; falls back to the SA's own project when null (optional) (default to null)

// Create google cloud credential
[apiInstance googlecloudCreateWith:config
    name:name
    azCount:azCount
    region:region
    importProject:importProject
    folderId:folderId
    billingAccountId:billingAccountId
    organizationId:organizationId
    ipMode:ipMode
    kubernetesImage:kubernetesImage
    usePreinstalledImage:usePreinstalledImage
    vpcMode:vpcMode
    importedGcpProjectId:importedGcpProjectId
    importedVpcName:importedVpcName
    subnets:subnets
    importedFilestoreId:importedFilestoreId
    importedFilestoreProjectId:importedFilestoreProjectId
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB
var name = name_example; // {String} Credential display name, 3-30 chars
var azCount = 56; // {Integer} Number of availability zones to spread across
var region = region_example; // {String} GCP region
var opts = {
  'importProject': true, // {Boolean} Import an existing GCP project instead of creating one
  'folderId': folderId_example, // {String} GCP folder id to create the new project under
  'billingAccountId': billingAccountId_example, // {String} Billing account id to attach to the new project
  'organizationId': 56, // {Integer} Owning organization id; defaults to caller organization when null
  'ipMode': , // {IpMode} IP addressing mode; defaults to IPv4
  'kubernetesImage': kubernetesImage_example, // {String} Provider-native Kubernetes image id; omitted to use the default image
  'usePreinstalledImage': true, // {Boolean} Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
  'vpcMode': , // {VpcMode} VPC handling; create a new VPC or import an existing one
  'importedGcpProjectId': importedGcpProjectId_example, // {String} Existing GCP project id when importing
  'importedVpcName': importedVpcName_example, // {String} Existing VPC name when VpcMode is import
  'subnets': , // {array[String]} Subnet names to attach when importing a VPC
  'importedFilestoreId': importedFilestoreId_example, // {String} Existing Filestore instance id to import
  'importedFilestoreProjectId': importedFilestoreProjectId_example // {String} Project that owns the Filestore instance; falls back to the SA's own project when null
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.googlecloudCreate(config, name, azCount, region, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class googlecloudCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)
            var name = name_example;  // String | Credential display name, 3-30 chars (default to null)
            var azCount = 56;  // Integer | Number of availability zones to spread across (default to null)
            var region = region_example;  // String | GCP region (default to null)
            var importProject = true;  // Boolean | Import an existing GCP project instead of creating one (optional)  (default to null)
            var folderId = folderId_example;  // String | GCP folder id to create the new project under (optional)  (default to null)
            var billingAccountId = billingAccountId_example;  // String | Billing account id to attach to the new project (optional)  (default to null)
            var organizationId = 56;  // Integer | Owning organization id; defaults to caller organization when null (optional)  (default to null)
            var ipMode = new IpMode(); // IpMode | IP addressing mode; defaults to IPv4 (optional)  (default to null)
            var kubernetesImage = kubernetesImage_example;  // String | Provider-native Kubernetes image id; omitted to use the default image (optional)  (default to null)
            var usePreinstalledImage = true;  // Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories (optional)  (default to null)
            var vpcMode = new VpcMode(); // VpcMode | VPC handling; create a new VPC or import an existing one (optional)  (default to null)
            var importedGcpProjectId = importedGcpProjectId_example;  // String | Existing GCP project id when importing (optional)  (default to null)
            var importedVpcName = importedVpcName_example;  // String | Existing VPC name when VpcMode is import (optional)  (default to null)
            var subnets = new array[String](); // array[String] | Subnet names to attach when importing a VPC (optional)  (default to null)
            var importedFilestoreId = importedFilestoreId_example;  // String | Existing Filestore instance id to import (optional)  (default to null)
            var importedFilestoreProjectId = importedFilestoreProjectId_example;  // String | Project that owns the Filestore instance; falls back to the SA's own project when null (optional)  (default to null)

            try {
                // Create google cloud credential
                ApiResponse result = apiInstance.googlecloudCreate(config, name, azCount, region, importProject, folderId, billingAccountId, organizationId, ipMode, kubernetesImage, usePreinstalledImage, vpcMode, importedGcpProjectId, importedVpcName, subnets, importedFilestoreId, importedFilestoreProjectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB
$name = name_example; // String | Credential display name, 3-30 chars
$azCount = 56; // Integer | Number of availability zones to spread across
$region = region_example; // String | GCP region
$importProject = true; // Boolean | Import an existing GCP project instead of creating one
$folderId = folderId_example; // String | GCP folder id to create the new project under
$billingAccountId = billingAccountId_example; // String | Billing account id to attach to the new project
$organizationId = 56; // Integer | Owning organization id; defaults to caller organization when null
$ipMode = ; // IpMode | IP addressing mode; defaults to IPv4
$kubernetesImage = kubernetesImage_example; // String | Provider-native Kubernetes image id; omitted to use the default image
$usePreinstalledImage = true; // Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
$vpcMode = ; // VpcMode | VPC handling; create a new VPC or import an existing one
$importedGcpProjectId = importedGcpProjectId_example; // String | Existing GCP project id when importing
$importedVpcName = importedVpcName_example; // String | Existing VPC name when VpcMode is import
$subnets = ; // array[String] | Subnet names to attach when importing a VPC
$importedFilestoreId = importedFilestoreId_example; // String | Existing Filestore instance id to import
$importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Project that owns the Filestore instance; falls back to the SA's own project when null

try {
    $result = $api_instance->googlecloudCreate($config, $name, $azCount, $region, $importProject, $folderId, $billingAccountId, $organizationId, $ipMode, $kubernetesImage, $usePreinstalledImage, $vpcMode, $importedGcpProjectId, $importedVpcName, $subnets, $importedFilestoreId, $importedFilestoreProjectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB
my $name = name_example; # String | Credential display name, 3-30 chars
my $azCount = 56; # Integer | Number of availability zones to spread across
my $region = region_example; # String | GCP region
my $importProject = true; # Boolean | Import an existing GCP project instead of creating one
my $folderId = folderId_example; # String | GCP folder id to create the new project under
my $billingAccountId = billingAccountId_example; # String | Billing account id to attach to the new project
my $organizationId = 56; # Integer | Owning organization id; defaults to caller organization when null
my $ipMode = ; # IpMode | IP addressing mode; defaults to IPv4
my $kubernetesImage = kubernetesImage_example; # String | Provider-native Kubernetes image id; omitted to use the default image
my $usePreinstalledImage = true; # Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
my $vpcMode = ; # VpcMode | VPC handling; create a new VPC or import an existing one
my $importedGcpProjectId = importedGcpProjectId_example; # String | Existing GCP project id when importing
my $importedVpcName = importedVpcName_example; # String | Existing VPC name when VpcMode is import
my $subnets = []; # array[String] | Subnet names to attach when importing a VPC
my $importedFilestoreId = importedFilestoreId_example; # String | Existing Filestore instance id to import
my $importedFilestoreProjectId = importedFilestoreProjectId_example; # String | Project that owns the Filestore instance; falls back to the SA's own project when null

eval {
    my $result = $api_instance->googlecloudCreate(config => $config, name => $name, azCount => $azCount, region => $region, importProject => $importProject, folderId => $folderId, billingAccountId => $billingAccountId, organizationId => $organizationId, ipMode => $ipMode, kubernetesImage => $kubernetesImage, usePreinstalledImage => $usePreinstalledImage, vpcMode => $vpcMode, importedGcpProjectId => $importedGcpProjectId, importedVpcName => $importedVpcName, subnets => $subnets, importedFilestoreId => $importedFilestoreId, importedFilestoreProjectId => $importedFilestoreProjectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)
name = name_example # String | Credential display name, 3-30 chars (default to null)
azCount = 56 # Integer | Number of availability zones to spread across (default to null)
region = region_example # String | GCP region (default to null)
importProject = true # Boolean | Import an existing GCP project instead of creating one (optional) (default to null)
folderId = folderId_example # String | GCP folder id to create the new project under (optional) (default to null)
billingAccountId = billingAccountId_example # String | Billing account id to attach to the new project (optional) (default to null)
organizationId = 56 # Integer | Owning organization id; defaults to caller organization when null (optional) (default to null)
ipMode =  # IpMode | IP addressing mode; defaults to IPv4 (optional) (default to null)
kubernetesImage = kubernetesImage_example # String | Provider-native Kubernetes image id; omitted to use the default image (optional) (default to null)
usePreinstalledImage = true # Boolean | Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories (optional) (default to null)
vpcMode =  # VpcMode | VPC handling; create a new VPC or import an existing one (optional) (default to null)
importedGcpProjectId = importedGcpProjectId_example # String | Existing GCP project id when importing (optional) (default to null)
importedVpcName = importedVpcName_example # String | Existing VPC name when VpcMode is import (optional) (default to null)
subnets =  # array[String] | Subnet names to attach when importing a VPC (optional) (default to null)
importedFilestoreId = importedFilestoreId_example # String | Existing Filestore instance id to import (optional) (default to null)
importedFilestoreProjectId = importedFilestoreProjectId_example # String | Project that owns the Filestore instance; falls back to the SA's own project when null (optional) (default to null)

try:
    # Create google cloud credential
    api_response = api_instance.googlecloud_create(config, name, azCount, region, importProject=importProject, folderId=folderId, billingAccountId=billingAccountId, organizationId=organizationId, ipMode=ipMode, kubernetesImage=kubernetesImage, usePreinstalledImage=usePreinstalledImage, vpcMode=vpcMode, importedGcpProjectId=importedGcpProjectId, importedVpcName=importedVpcName, subnets=subnets, importedFilestoreId=importedFilestoreId, importedFilestoreProjectId=importedFilestoreProjectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudCreate: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File
    let name = name_example; // String
    let azCount = 56; // Integer
    let region = region_example; // String
    let importProject = true; // Boolean
    let folderId = folderId_example; // String
    let billingAccountId = billingAccountId_example; // String
    let organizationId = 56; // Integer
    let ipMode = ; // IpMode
    let kubernetesImage = kubernetesImage_example; // String
    let usePreinstalledImage = true; // Boolean
    let vpcMode = ; // VpcMode
    let importedGcpProjectId = importedGcpProjectId_example; // String
    let importedVpcName = importedVpcName_example; // String
    let subnets = ; // array[String]
    let importedFilestoreId = importedFilestoreId_example; // String
    let importedFilestoreProjectId = importedFilestoreProjectId_example; // String

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudCreate(config, name, azCount, region, importProject, folderId, billingAccountId, organizationId, ipMode, kubernetesImage, usePreinstalledImage, vpcMode, importedGcpProjectId, importedVpcName, subnets, importedFilestoreId, importedFilestoreProjectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required
name*
String
Credential display name, 3-30 chars
Required
importProject
Boolean
Import an existing GCP project instead of creating one
folderId
String
GCP folder id to create the new project under
billingAccountId
String
Billing account id to attach to the new project
azCount*
Integer (int32)
Number of availability zones to spread across
Required
region*
String
GCP region
Required
organizationId
Integer (int32)
Owning organization id; defaults to caller organization when null
ipMode
IpMode
IP addressing mode; defaults to IPv4
kubernetesImage
String
Provider-native Kubernetes image id; omitted to use the default image
usePreinstalledImage
Boolean
Deprecated and ignored; accepted for backward compatibility. Bootstrap uses the packages already in the node image and installs only the missing ones from the configured repositories
vpcMode
VpcMode
VPC handling; create a new VPC or import an existing one
importedGcpProjectId
String
Existing GCP project id when importing
importedVpcName
String
Existing VPC name when VpcMode is import
subnets
array[String]
Subnet names to attach when importing a VPC
importedFilestoreId
String
Existing Filestore instance id to import
importedFilestoreProjectId
String
Project that owns the Filestore instance; falls back to the SA's own project when null

Responses


googlecloudFilestoreList

Retrieve list of GCP Filestore instances for a given project and region


/api/v1/googlecloud/filestore-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/filestore-list"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | Host/VPC project id; retained for parity, not used by the Filestore lookup
        String importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Service project id that owns the Filestore instances; defaults to the credential's own project
        String region = region_example; // String | GCP region to enumerate Filestore instances in
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config

        try {
            array[GcpFilestoreDto] result = apiInstance.googlecloudFilestoreList(config, importedGcpProjectId, importedFilestoreProjectId, region, cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudFilestoreList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
final String importedGcpProjectId = new String(); // String | Host/VPC project id; retained for parity, not used by the Filestore lookup
final String importedFilestoreProjectId = new String(); // String | Service project id that owns the Filestore instances; defaults to the credential's own project
final String region = new String(); // String | GCP region to enumerate Filestore instances in
final Integer cloudId = new Integer(); // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config

try {
    final result = await api_instance.googlecloudFilestoreList(config, importedGcpProjectId, importedFilestoreProjectId, region, cloudId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudFilestoreList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | Host/VPC project id; retained for parity, not used by the Filestore lookup
        String importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Service project id that owns the Filestore instances; defaults to the credential's own project
        String region = region_example; // String | GCP region to enumerate Filestore instances in
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config

        try {
            array[GcpFilestoreDto] result = apiInstance.googlecloudFilestoreList(config, importedGcpProjectId, importedFilestoreProjectId, region, cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudFilestoreList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
String *importedGcpProjectId = importedGcpProjectId_example; // Host/VPC project id; retained for parity, not used by the Filestore lookup (optional) (default to null)
String *importedFilestoreProjectId = importedFilestoreProjectId_example; // Service project id that owns the Filestore instances; defaults to the credential's own project (optional) (default to null)
String *region = region_example; // GCP region to enumerate Filestore instances in (optional) (default to null)
Integer *cloudId = 56; // Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)

// Retrieve list of GCP Filestore instances for a given project and region
[apiInstance googlecloudFilestoreListWith:config
    importedGcpProjectId:importedGcpProjectId
    importedFilestoreProjectId:importedFilestoreProjectId
    region:region
    cloudId:cloudId
              completionHandler: ^(array[GcpFilestoreDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'config': , // {File} GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
  'importedGcpProjectId': importedGcpProjectId_example, // {String} Host/VPC project id; retained for parity, not used by the Filestore lookup
  'importedFilestoreProjectId': importedFilestoreProjectId_example, // {String} Service project id that owns the Filestore instances; defaults to the credential's own project
  'region': region_example, // {String} GCP region to enumerate Filestore instances in
  'cloudId': 56 // {Integer} Existing cloud credential id to reuse stored credentials instead of uploading Config
};

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

namespace Example
{
    public class googlecloudFilestoreListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional)  (default to null)
            var importedGcpProjectId = importedGcpProjectId_example;  // String | Host/VPC project id; retained for parity, not used by the Filestore lookup (optional)  (default to null)
            var importedFilestoreProjectId = importedFilestoreProjectId_example;  // String | Service project id that owns the Filestore instances; defaults to the credential's own project (optional)  (default to null)
            var region = region_example;  // String | GCP region to enumerate Filestore instances in (optional)  (default to null)
            var cloudId = 56;  // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional)  (default to null)

            try {
                // Retrieve list of GCP Filestore instances for a given project and region
                array[GcpFilestoreDto] result = apiInstance.googlecloudFilestoreList(config, importedGcpProjectId, importedFilestoreProjectId, region, cloudId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudFilestoreList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
$importedGcpProjectId = importedGcpProjectId_example; // String | Host/VPC project id; retained for parity, not used by the Filestore lookup
$importedFilestoreProjectId = importedFilestoreProjectId_example; // String | Service project id that owns the Filestore instances; defaults to the credential's own project
$region = region_example; // String | GCP region to enumerate Filestore instances in
$cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config

try {
    $result = $api_instance->googlecloudFilestoreList($config, $importedGcpProjectId, $importedFilestoreProjectId, $region, $cloudId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudFilestoreList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
my $importedGcpProjectId = importedGcpProjectId_example; # String | Host/VPC project id; retained for parity, not used by the Filestore lookup
my $importedFilestoreProjectId = importedFilestoreProjectId_example; # String | Service project id that owns the Filestore instances; defaults to the credential's own project
my $region = region_example; # String | GCP region to enumerate Filestore instances in
my $cloudId = 56; # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config

eval {
    my $result = $api_instance->googlecloudFilestoreList(config => $config, importedGcpProjectId => $importedGcpProjectId, importedFilestoreProjectId => $importedFilestoreProjectId, region => $region, cloudId => $cloudId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudFilestoreList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
importedGcpProjectId = importedGcpProjectId_example # String | Host/VPC project id; retained for parity, not used by the Filestore lookup (optional) (default to null)
importedFilestoreProjectId = importedFilestoreProjectId_example # String | Service project id that owns the Filestore instances; defaults to the credential's own project (optional) (default to null)
region = region_example # String | GCP region to enumerate Filestore instances in (optional) (default to null)
cloudId = 56 # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)

try:
    # Retrieve list of GCP Filestore instances for a given project and region
    api_response = api_instance.googlecloud_filestore_list(config=config, importedGcpProjectId=importedGcpProjectId, importedFilestoreProjectId=importedFilestoreProjectId, region=region, cloudId=cloudId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudFilestoreList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File
    let importedGcpProjectId = importedGcpProjectId_example; // String
    let importedFilestoreProjectId = importedFilestoreProjectId_example; // String
    let region = region_example; // String
    let cloudId = 56; // Integer

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudFilestoreList(config, importedGcpProjectId, importedFilestoreProjectId, region, cloudId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config
File (binary)
GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
importedGcpProjectId
String
Host/VPC project id; retained for parity, not used by the Filestore lookup
importedFilestoreProjectId
String
Service project id that owns the Filestore instances; defaults to the credential's own project
region
String
GCP region to enumerate Filestore instances in
cloudId
Integer (int32)
Existing cloud credential id to reuse stored credentials instead of uploading Config

Responses


googlecloudGkeClusters

List of gke clusters


/api/v1/googlecloud/gke-clusters

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/googlecloud/gke-clusters" \
 -d '{
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        GkeClustersListCommand gkeClustersListCommand = ; // GkeClustersListCommand | 

        try {
            array[GkeClusterDto] result = apiInstance.googlecloudGkeClusters(gkeClustersListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudGkeClusters");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GkeClustersListCommand gkeClustersListCommand = new GkeClustersListCommand(); // GkeClustersListCommand | 

try {
    final result = await api_instance.googlecloudGkeClusters(gkeClustersListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudGkeClusters: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        GkeClustersListCommand gkeClustersListCommand = ; // GkeClustersListCommand | 

        try {
            array[GkeClusterDto] result = apiInstance.googlecloudGkeClusters(gkeClustersListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudGkeClusters");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
GkeClustersListCommand *gkeClustersListCommand = ; //  (optional)

// List of gke clusters
[apiInstance googlecloudGkeClustersWith:gkeClustersListCommand
              completionHandler: ^(array[GkeClusterDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'gkeClustersListCommand':  // {GkeClustersListCommand} 
};

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

namespace Example
{
    public class googlecloudGkeClustersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var gkeClustersListCommand = new GkeClustersListCommand(); // GkeClustersListCommand |  (optional) 

            try {
                // List of gke clusters
                array[GkeClusterDto] result = apiInstance.googlecloudGkeClusters(gkeClustersListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudGkeClusters: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$gkeClustersListCommand = ; // GkeClustersListCommand | 

try {
    $result = $api_instance->googlecloudGkeClusters($gkeClustersListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudGkeClusters: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $gkeClustersListCommand = WWW::OPenAPIClient::Object::GkeClustersListCommand->new(); # GkeClustersListCommand | 

eval {
    my $result = $api_instance->googlecloudGkeClusters(gkeClustersListCommand => $gkeClustersListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudGkeClusters: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
gkeClustersListCommand =  # GkeClustersListCommand |  (optional)

try:
    # List of gke clusters
    api_response = api_instance.googlecloud_gke_clusters(gkeClustersListCommand=gkeClustersListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudGkeClusters: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let gkeClustersListCommand = ; // GkeClustersListCommand

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudGkeClusters(gkeClustersListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
gkeClustersListCommand

Responses


googlecloudKubernetesImages

Retrieve Google images available for Kubernetes nodes using inline config


/api/v1/googlecloud/kubernetes-images

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/kubernetes-images"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudKubernetesImages(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudKubernetesImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB

try {
    final result = await api_instance.googlecloudKubernetesImages(config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudKubernetesImages: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudKubernetesImages(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudKubernetesImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)

// Retrieve Google images available for Kubernetes nodes using inline config
[apiInstance googlecloudKubernetesImagesWith:config
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB

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

namespace Example
{
    public class googlecloudKubernetesImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)

            try {
                // Retrieve Google images available for Kubernetes nodes using inline config
                array[CommonStringBasedDropdownDto] result = apiInstance.googlecloudKubernetesImages(config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudKubernetesImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB

try {
    $result = $api_instance->googlecloudKubernetesImages($config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudKubernetesImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB

eval {
    my $result = $api_instance->googlecloudKubernetesImages(config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudKubernetesImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)

try:
    # Retrieve Google images available for Kubernetes nodes using inline config
    api_response = api_instance.googlecloud_kubernetes_images(config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudKubernetesImages: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudKubernetesImages(config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required

Responses


googlecloudList

Retrieve list of google cloud credentials


/api/v1/googlecloud/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/googlecloud/list?Limit=56&Offset=56&OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&DomainId=56&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer domainId = 56; // Integer | 
        Integer id = 56; // Integer | 

        try {
            GoogleCredentialList result = apiInstance.googlecloudList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final Integer organizationId = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer domainId = new Integer(); // Integer | 
final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.googlecloudList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, domainId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer domainId = 56; // Integer | 
        Integer id = 56; // Integer | 

        try {
            GoogleCredentialList result = apiInstance.googlecloudList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, domainId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)

// Retrieve list of google cloud credentials
[apiInstance googlecloudListWith:limit
    offset:offset
    organizationId:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    domainId:domainId
    id:id
              completionHandler: ^(GoogleCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'organizationId': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'domainId': 56, // {Integer} 
  'id': 56 // {Integer} 
};

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

namespace Example
{
    public class googlecloudListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve list of google cloud credentials
                GoogleCredentialList result = apiInstance.googlecloudList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, domainId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$organizationId = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$domainId = 56; // Integer | 
$id = 56; // Integer | 

try {
    $result = $api_instance->googlecloudList($limit, $offset, $organizationId, $sortBy, $sortDirection, $search, $searchId, $domainId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $organizationId = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $domainId = 56; # Integer | 
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->googlecloudList(limit => $limit, offset => $offset, organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, domainId => $domainId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve list of google cloud credentials
    api_response = api_instance.googlecloud_list(limit=limit, offset=offset, organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, domainId=domainId, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let domainId = 56; // Integer
    let id = 56; // Integer

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, domainId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
OrganizationId
Integer (int32)
SortBy
String
SortDirection
String
Search
SearchId
String
DomainId
Integer (int32)
Id
Integer (int32)

Responses


googlecloudRegionList

Retrieve google region list


/api/v1/googlecloud/regions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/regions"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array['String'] result = apiInstance.googlecloudRegionList(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudRegionList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB

try {
    final result = await api_instance.googlecloudRegionList(config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudRegionList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB

        try {
            array['String'] result = apiInstance.googlecloudRegionList(config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudRegionList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)

// Retrieve google region list
[apiInstance googlecloudRegionListWith:config
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB

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

namespace Example
{
    public class googlecloudRegionListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)

            try {
                // Retrieve google region list
                array['String'] result = apiInstance.googlecloudRegionList(config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudRegionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB

try {
    $result = $api_instance->googlecloudRegionList($config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudRegionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB

eval {
    my $result = $api_instance->googlecloudRegionList(config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudRegionList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)

try:
    # Retrieve google region list
    api_response = api_instance.googlecloud_region_list(config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudRegionList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudRegionList(config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required

Responses


googlecloudSubnetworkList

Retrieve list of GCP subnetworks for a given project and region


/api/v1/googlecloud/subnetwork-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/subnetwork-list"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id owning the network
        String region = region_example; // String | GCP region to list subnetworks in
        String networkName = networkName_example; // String | VPC network name to list subnetworks for
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
        IpMode ipMode = ; // IpMode | IP mode to filter subnetworks by

        try {
            array[GcpSubnetworkDto] result = apiInstance.googlecloudSubnetworkList(config, importedGcpProjectId, region, networkName, cloudId, ipMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudSubnetworkList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
final String importedGcpProjectId = new String(); // String | GCP project id owning the network
final String region = new String(); // String | GCP region to list subnetworks in
final String networkName = new String(); // String | VPC network name to list subnetworks for
final Integer cloudId = new Integer(); // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
final IpMode ipMode = new IpMode(); // IpMode | IP mode to filter subnetworks by

try {
    final result = await api_instance.googlecloudSubnetworkList(config, importedGcpProjectId, region, networkName, cloudId, ipMode);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudSubnetworkList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id owning the network
        String region = region_example; // String | GCP region to list subnetworks in
        String networkName = networkName_example; // String | VPC network name to list subnetworks for
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
        IpMode ipMode = ; // IpMode | IP mode to filter subnetworks by

        try {
            array[GcpSubnetworkDto] result = apiInstance.googlecloudSubnetworkList(config, importedGcpProjectId, region, networkName, cloudId, ipMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudSubnetworkList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
String *importedGcpProjectId = importedGcpProjectId_example; // GCP project id owning the network (optional) (default to null)
String *region = region_example; // GCP region to list subnetworks in (optional) (default to null)
String *networkName = networkName_example; // VPC network name to list subnetworks for (optional) (default to null)
Integer *cloudId = 56; // Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)
IpMode *ipMode = ; // IP mode to filter subnetworks by (optional) (default to null)

// Retrieve list of GCP subnetworks for a given project and region
[apiInstance googlecloudSubnetworkListWith:config
    importedGcpProjectId:importedGcpProjectId
    region:region
    networkName:networkName
    cloudId:cloudId
    ipMode:ipMode
              completionHandler: ^(array[GcpSubnetworkDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'config': , // {File} GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
  'importedGcpProjectId': importedGcpProjectId_example, // {String} GCP project id owning the network
  'region': region_example, // {String} GCP region to list subnetworks in
  'networkName': networkName_example, // {String} VPC network name to list subnetworks for
  'cloudId': 56, // {Integer} Existing cloud credential id to reuse stored credentials instead of uploading Config
  'ipMode':  // {IpMode} IP mode to filter subnetworks by
};

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

namespace Example
{
    public class googlecloudSubnetworkListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional)  (default to null)
            var importedGcpProjectId = importedGcpProjectId_example;  // String | GCP project id owning the network (optional)  (default to null)
            var region = region_example;  // String | GCP region to list subnetworks in (optional)  (default to null)
            var networkName = networkName_example;  // String | VPC network name to list subnetworks for (optional)  (default to null)
            var cloudId = 56;  // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional)  (default to null)
            var ipMode = new IpMode(); // IpMode | IP mode to filter subnetworks by (optional)  (default to null)

            try {
                // Retrieve list of GCP subnetworks for a given project and region
                array[GcpSubnetworkDto] result = apiInstance.googlecloudSubnetworkList(config, importedGcpProjectId, region, networkName, cloudId, ipMode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudSubnetworkList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
$importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id owning the network
$region = region_example; // String | GCP region to list subnetworks in
$networkName = networkName_example; // String | VPC network name to list subnetworks for
$cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
$ipMode = ; // IpMode | IP mode to filter subnetworks by

try {
    $result = $api_instance->googlecloudSubnetworkList($config, $importedGcpProjectId, $region, $networkName, $cloudId, $ipMode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudSubnetworkList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
my $importedGcpProjectId = importedGcpProjectId_example; # String | GCP project id owning the network
my $region = region_example; # String | GCP region to list subnetworks in
my $networkName = networkName_example; # String | VPC network name to list subnetworks for
my $cloudId = 56; # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
my $ipMode = ; # IpMode | IP mode to filter subnetworks by

eval {
    my $result = $api_instance->googlecloudSubnetworkList(config => $config, importedGcpProjectId => $importedGcpProjectId, region => $region, networkName => $networkName, cloudId => $cloudId, ipMode => $ipMode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudSubnetworkList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
importedGcpProjectId = importedGcpProjectId_example # String | GCP project id owning the network (optional) (default to null)
region = region_example # String | GCP region to list subnetworks in (optional) (default to null)
networkName = networkName_example # String | VPC network name to list subnetworks for (optional) (default to null)
cloudId = 56 # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)
ipMode =  # IpMode | IP mode to filter subnetworks by (optional) (default to null)

try:
    # Retrieve list of GCP subnetworks for a given project and region
    api_response = api_instance.googlecloud_subnetwork_list(config=config, importedGcpProjectId=importedGcpProjectId, region=region, networkName=networkName, cloudId=cloudId, ipMode=ipMode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudSubnetworkList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File
    let importedGcpProjectId = importedGcpProjectId_example; // String
    let region = region_example; // String
    let networkName = networkName_example; // String
    let cloudId = 56; // Integer
    let ipMode = ; // IpMode

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudSubnetworkList(config, importedGcpProjectId, region, networkName, cloudId, ipMode, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config
File (binary)
GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
importedGcpProjectId
String
GCP project id owning the network
region
String
GCP region to list subnetworks in
networkName
String
VPC network name to list subnetworks for
cloudId
Integer (int32)
Existing cloud credential id to reuse stored credentials instead of uploading Config
ipMode
IpMode
IP mode to filter subnetworks by

Responses


googlecloudVpcList

Retrieve list of GCP VPC networks


/api/v1/googlecloud/vpc-list

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/vpc-list"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id to list VPC networks in
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
        IpMode ipMode = ; // IpMode | IP mode to filter VPC networks by

        try {
            array[GcpVpcDto] result = apiInstance.googlecloudVpcList(config, importedGcpProjectId, cloudId, ipMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudVpcList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
final String importedGcpProjectId = new String(); // String | GCP project id to list VPC networks in
final Integer cloudId = new Integer(); // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
final IpMode ipMode = new IpMode(); // IpMode | IP mode to filter VPC networks by

try {
    final result = await api_instance.googlecloudVpcList(config, importedGcpProjectId, cloudId, ipMode);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudVpcList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
        String importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id to list VPC networks in
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
        IpMode ipMode = ; // IpMode | IP mode to filter VPC networks by

        try {
            array[GcpVpcDto] result = apiInstance.googlecloudVpcList(config, importedGcpProjectId, cloudId, ipMode);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudVpcList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
String *importedGcpProjectId = importedGcpProjectId_example; // GCP project id to list VPC networks in (optional) (default to null)
Integer *cloudId = 56; // Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)
IpMode *ipMode = ; // IP mode to filter VPC networks by (optional) (default to null)

// Retrieve list of GCP VPC networks
[apiInstance googlecloudVpcListWith:config
    importedGcpProjectId:importedGcpProjectId
    cloudId:cloudId
    ipMode:ipMode
              completionHandler: ^(array[GcpVpcDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var opts = {
  'config': , // {File} GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
  'importedGcpProjectId': importedGcpProjectId_example, // {String} GCP project id to list VPC networks in
  'cloudId': 56, // {Integer} Existing cloud credential id to reuse stored credentials instead of uploading Config
  'ipMode':  // {IpMode} IP mode to filter VPC networks by
};

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

namespace Example
{
    public class googlecloudVpcListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional)  (default to null)
            var importedGcpProjectId = importedGcpProjectId_example;  // String | GCP project id to list VPC networks in (optional)  (default to null)
            var cloudId = 56;  // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional)  (default to null)
            var ipMode = new IpMode(); // IpMode | IP mode to filter VPC networks by (optional)  (default to null)

            try {
                // Retrieve list of GCP VPC networks
                array[GcpVpcDto] result = apiInstance.googlecloudVpcList(config, importedGcpProjectId, cloudId, ipMode);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudVpcList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
$importedGcpProjectId = importedGcpProjectId_example; // String | GCP project id to list VPC networks in
$cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
$ipMode = ; // IpMode | IP mode to filter VPC networks by

try {
    $result = $api_instance->googlecloudVpcList($config, $importedGcpProjectId, $cloudId, $ipMode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudVpcList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
my $importedGcpProjectId = importedGcpProjectId_example; # String | GCP project id to list VPC networks in
my $cloudId = 56; # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config
my $ipMode = ; # IpMode | IP mode to filter VPC networks by

eval {
    my $result = $api_instance->googlecloudVpcList(config => $config, importedGcpProjectId => $importedGcpProjectId, cloudId => $cloudId, ipMode => $ipMode);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudVpcList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB; required unless CloudId is set (optional) (default to null)
importedGcpProjectId = importedGcpProjectId_example # String | GCP project id to list VPC networks in (optional) (default to null)
cloudId = 56 # Integer | Existing cloud credential id to reuse stored credentials instead of uploading Config (optional) (default to null)
ipMode =  # IpMode | IP mode to filter VPC networks by (optional) (default to null)

try:
    # Retrieve list of GCP VPC networks
    api_response = api_instance.googlecloud_vpc_list(config=config, importedGcpProjectId=importedGcpProjectId, cloudId=cloudId, ipMode=ipMode)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudVpcList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File
    let importedGcpProjectId = importedGcpProjectId_example; // String
    let cloudId = 56; // Integer
    let ipMode = ; // IpMode

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudVpcList(config, importedGcpProjectId, cloudId, ipMode, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config
File (binary)
GCP service-account config JSON file, max 10 MiB; required unless CloudId is set
importedGcpProjectId
String
GCP project id to list VPC networks in
cloudId
Integer (int32)
Existing cloud credential id to reuse stored credentials instead of uploading Config
ipMode
IpMode
IP mode to filter VPC networks by

Responses


googlecloudZoneList

Google zones list


/api/v1/googlecloud/zones

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/googlecloud/zones"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GoogleApi;

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

public class GoogleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB
        String region = region_example; // String | GCP region to list zones for
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials

        try {
            AzResult result = apiInstance.googlecloudZoneList(config, region, cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudZoneList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | GCP service-account config JSON file, max 10 MiB
final String region = new String(); // String | GCP region to list zones for
final Integer cloudId = new Integer(); // Integer | Existing cloud credential id to reuse stored credentials

try {
    final result = await api_instance.googlecloudZoneList(config, region, cloudId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->googlecloudZoneList: $e\n');
}

import org.openapitools.client.api.GoogleApi;

public class GoogleApiExample {
    public static void main(String[] args) {
        GoogleApi apiInstance = new GoogleApi();
        File config = ; // File | GCP service-account config JSON file, max 10 MiB
        String region = region_example; // String | GCP region to list zones for
        Integer cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials

        try {
            AzResult result = apiInstance.googlecloudZoneList(config, region, cloudId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GoogleApi#googlecloudZoneList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GoogleApi *apiInstance = [[GoogleApi alloc] init];
File *config = ; // GCP service-account config JSON file, max 10 MiB (default to null)
String *region = region_example; // GCP region to list zones for (default to null)
Integer *cloudId = 56; // Existing cloud credential id to reuse stored credentials (optional) (default to null)

// Google zones list
[apiInstance googlecloudZoneListWith:config
    region:region
    cloudId:cloudId
              completionHandler: ^(AzResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GoogleApi()
var config = ; // {File} GCP service-account config JSON file, max 10 MiB
var region = region_example; // {String} GCP region to list zones for
var opts = {
  'cloudId': 56 // {Integer} Existing cloud credential id to reuse stored credentials
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.googlecloudZoneList(config, region, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class googlecloudZoneListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GoogleApi();
            var config = new File(); // File | GCP service-account config JSON file, max 10 MiB (default to null)
            var region = region_example;  // String | GCP region to list zones for (default to null)
            var cloudId = 56;  // Integer | Existing cloud credential id to reuse stored credentials (optional)  (default to null)

            try {
                // Google zones list
                AzResult result = apiInstance.googlecloudZoneList(config, region, cloudId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GoogleApi.googlecloudZoneList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GoogleApi();
$config = ; // File | GCP service-account config JSON file, max 10 MiB
$region = region_example; // String | GCP region to list zones for
$cloudId = 56; // Integer | Existing cloud credential id to reuse stored credentials

try {
    $result = $api_instance->googlecloudZoneList($config, $region, $cloudId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GoogleApi->googlecloudZoneList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GoogleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GoogleApi->new();
my $config = ; # File | GCP service-account config JSON file, max 10 MiB
my $region = region_example; # String | GCP region to list zones for
my $cloudId = 56; # Integer | Existing cloud credential id to reuse stored credentials

eval {
    my $result = $api_instance->googlecloudZoneList(config => $config, region => $region, cloudId => $cloudId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GoogleApi->googlecloudZoneList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GoogleApi()
config =  # File | GCP service-account config JSON file, max 10 MiB (default to null)
region = region_example # String | GCP region to list zones for (default to null)
cloudId = 56 # Integer | Existing cloud credential id to reuse stored credentials (optional) (default to null)

try:
    # Google zones list
    api_response = api_instance.googlecloud_zone_list(config, region, cloudId=cloudId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GoogleApi->googlecloudZoneList: %s\n" % e)
extern crate GoogleApi;

pub fn main() {
    let config = ; // File
    let region = region_example; // String
    let cloudId = 56; // Integer

    let mut context = GoogleApi::Context::default();
    let result = client.googlecloudZoneList(config, region, cloudId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config*
File (binary)
GCP service-account config JSON file, max 10 MiB
Required
region*
String
GCP region to list zones for
Required
cloudId
Integer (int32)
Existing cloud credential id to reuse stored credentials

Responses


Groups

groupsAddOrganizations

Add organizations to group


/api/v1/groups/{id}/organizations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/{id}/organizations" \
 -d '{
  "role" : "Member",
  "projects" : [ 6, 6 ],
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        array[CreateGroupOrganizationDto] createGroupOrganizationDto = ; // array[CreateGroupOrganizationDto] | 

        try {
            Object result = apiInstance.groupsAddOrganizations(id, createGroupOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsAddOrganizations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[CreateGroupOrganizationDto] createGroupOrganizationDto = new array[CreateGroupOrganizationDto](); // array[CreateGroupOrganizationDto] | 

try {
    final result = await api_instance.groupsAddOrganizations(id, createGroupOrganizationDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsAddOrganizations: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        array[CreateGroupOrganizationDto] createGroupOrganizationDto = ; // array[CreateGroupOrganizationDto] | 

        try {
            Object result = apiInstance.groupsAddOrganizations(id, createGroupOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsAddOrganizations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *id = 56; //  (default to null)
array[CreateGroupOrganizationDto] *createGroupOrganizationDto = ; //  (optional)

// Add organizations to group
[apiInstance groupsAddOrganizationsWith:id
    createGroupOrganizationDto:createGroupOrganizationDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var id = 56; // {Integer} 
var opts = {
  'createGroupOrganizationDto':  // {array[CreateGroupOrganizationDto]} 
};

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

namespace Example
{
    public class groupsAddOrganizationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var id = 56;  // Integer |  (default to null)
            var createGroupOrganizationDto = new array[CreateGroupOrganizationDto](); // array[CreateGroupOrganizationDto] |  (optional) 

            try {
                // Add organizations to group
                Object result = apiInstance.groupsAddOrganizations(id, createGroupOrganizationDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsAddOrganizations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$id = 56; // Integer | 
$createGroupOrganizationDto = ; // array[CreateGroupOrganizationDto] | 

try {
    $result = $api_instance->groupsAddOrganizations($id, $createGroupOrganizationDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsAddOrganizations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $id = 56; # Integer | 
my $createGroupOrganizationDto = [WWW::OPenAPIClient::Object::array[CreateGroupOrganizationDto]->new()]; # array[CreateGroupOrganizationDto] | 

eval {
    my $result = $api_instance->groupsAddOrganizations(id => $id, createGroupOrganizationDto => $createGroupOrganizationDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsAddOrganizations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
id = 56 # Integer |  (default to null)
createGroupOrganizationDto =  # array[CreateGroupOrganizationDto] |  (optional)

try:
    # Add organizations to group
    api_response = api_instance.groups_add_organizations(id, createGroupOrganizationDto=createGroupOrganizationDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsAddOrganizations: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let id = 56; // Integer
    let createGroupOrganizationDto = ; // array[CreateGroupOrganizationDto]

    let mut context = GroupsApi::Context::default();
    let result = client.groupsAddOrganizations(id, createGroupOrganizationDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
createGroupOrganizationDto

Responses


groupsAddUsers

Add users to group


/api/v1/groups/{id}/users

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/{id}/users" \
 -d '{
  "id" : "id"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        array[CreateGroupUserDto] createGroupUserDto = ; // array[CreateGroupUserDto] | 

        try {
            Object result = apiInstance.groupsAddUsers(id, createGroupUserDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsAddUsers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[CreateGroupUserDto] createGroupUserDto = new array[CreateGroupUserDto](); // array[CreateGroupUserDto] | 

try {
    final result = await api_instance.groupsAddUsers(id, createGroupUserDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsAddUsers: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        array[CreateGroupUserDto] createGroupUserDto = ; // array[CreateGroupUserDto] | 

        try {
            Object result = apiInstance.groupsAddUsers(id, createGroupUserDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsAddUsers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *id = 56; //  (default to null)
array[CreateGroupUserDto] *createGroupUserDto = ; //  (optional)

// Add users to group
[apiInstance groupsAddUsersWith:id
    createGroupUserDto:createGroupUserDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var id = 56; // {Integer} 
var opts = {
  'createGroupUserDto':  // {array[CreateGroupUserDto]} 
};

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

namespace Example
{
    public class groupsAddUsersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var id = 56;  // Integer |  (default to null)
            var createGroupUserDto = new array[CreateGroupUserDto](); // array[CreateGroupUserDto] |  (optional) 

            try {
                // Add users to group
                Object result = apiInstance.groupsAddUsers(id, createGroupUserDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsAddUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$id = 56; // Integer | 
$createGroupUserDto = ; // array[CreateGroupUserDto] | 

try {
    $result = $api_instance->groupsAddUsers($id, $createGroupUserDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsAddUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $id = 56; # Integer | 
my $createGroupUserDto = [WWW::OPenAPIClient::Object::array[CreateGroupUserDto]->new()]; # array[CreateGroupUserDto] | 

eval {
    my $result = $api_instance->groupsAddUsers(id => $id, createGroupUserDto => $createGroupUserDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsAddUsers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
id = 56 # Integer |  (default to null)
createGroupUserDto =  # array[CreateGroupUserDto] |  (optional)

try:
    # Add users to group
    api_response = api_instance.groups_add_users(id, createGroupUserDto=createGroupUserDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsAddUsers: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let id = 56; // Integer
    let createGroupUserDto = ; // array[CreateGroupUserDto]

    let mut context = GroupsApi::Context::default();
    let result = client.groupsAddUsers(id, createGroupUserDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
createGroupUserDto

Responses


groupsCheckDuplicateEntity

Check duplicate entity


/api/v1/groups/check-duplicate-entity

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/check-duplicate-entity" \
 -d '{
  "name" : "name",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        CheckDuplicateGroupCommand checkDuplicateGroupCommand = ; // CheckDuplicateGroupCommand | 

        try {
            Object result = apiInstance.groupsCheckDuplicateEntity(checkDuplicateGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsCheckDuplicateEntity");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckDuplicateGroupCommand checkDuplicateGroupCommand = new CheckDuplicateGroupCommand(); // CheckDuplicateGroupCommand | 

try {
    final result = await api_instance.groupsCheckDuplicateEntity(checkDuplicateGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsCheckDuplicateEntity: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        CheckDuplicateGroupCommand checkDuplicateGroupCommand = ; // CheckDuplicateGroupCommand | 

        try {
            Object result = apiInstance.groupsCheckDuplicateEntity(checkDuplicateGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsCheckDuplicateEntity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
CheckDuplicateGroupCommand *checkDuplicateGroupCommand = ; //  (optional)

// Check duplicate entity
[apiInstance groupsCheckDuplicateEntityWith:checkDuplicateGroupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var opts = {
  'checkDuplicateGroupCommand':  // {CheckDuplicateGroupCommand} 
};

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

namespace Example
{
    public class groupsCheckDuplicateEntityExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var checkDuplicateGroupCommand = new CheckDuplicateGroupCommand(); // CheckDuplicateGroupCommand |  (optional) 

            try {
                // Check duplicate entity
                Object result = apiInstance.groupsCheckDuplicateEntity(checkDuplicateGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsCheckDuplicateEntity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$checkDuplicateGroupCommand = ; // CheckDuplicateGroupCommand | 

try {
    $result = $api_instance->groupsCheckDuplicateEntity($checkDuplicateGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsCheckDuplicateEntity: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $checkDuplicateGroupCommand = WWW::OPenAPIClient::Object::CheckDuplicateGroupCommand->new(); # CheckDuplicateGroupCommand | 

eval {
    my $result = $api_instance->groupsCheckDuplicateEntity(checkDuplicateGroupCommand => $checkDuplicateGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsCheckDuplicateEntity: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
checkDuplicateGroupCommand =  # CheckDuplicateGroupCommand |  (optional)

try:
    # Check duplicate entity
    api_response = api_instance.groups_check_duplicate_entity(checkDuplicateGroupCommand=checkDuplicateGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsCheckDuplicateEntity: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let checkDuplicateGroupCommand = ; // CheckDuplicateGroupCommand

    let mut context = GroupsApi::Context::default();
    let result = client.groupsCheckDuplicateEntity(checkDuplicateGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkDuplicateGroupCommand

Responses


groupsCreate

Create group


/api/v1/groups/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/create" \
 -d '{
  "name" : "name",
  "organizations" : [ {
    "role" : "Member",
    "projects" : [ 6, 6 ],
    "id" : 0
  }, {
    "role" : "Member",
    "projects" : [ 6, 6 ],
    "id" : 0
  } ],
  "claimValue" : "claimValue",
  "domainId" : 0,
  "users" : [ {
    "id" : "id"
  }, {
    "id" : "id"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        CreateGroupCommand createGroupCommand = ; // CreateGroupCommand | 

        try {
            'Integer' result = apiInstance.groupsCreate(createGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateGroupCommand createGroupCommand = new CreateGroupCommand(); // CreateGroupCommand | 

try {
    final result = await api_instance.groupsCreate(createGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsCreate: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        CreateGroupCommand createGroupCommand = ; // CreateGroupCommand | 

        try {
            'Integer' result = apiInstance.groupsCreate(createGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
CreateGroupCommand *createGroupCommand = ; //  (optional)

// Create group
[apiInstance groupsCreateWith:createGroupCommand
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var opts = {
  'createGroupCommand':  // {CreateGroupCommand} 
};

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

namespace Example
{
    public class groupsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var createGroupCommand = new CreateGroupCommand(); // CreateGroupCommand |  (optional) 

            try {
                // Create group
                'Integer' result = apiInstance.groupsCreate(createGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$createGroupCommand = ; // CreateGroupCommand | 

try {
    $result = $api_instance->groupsCreate($createGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $createGroupCommand = WWW::OPenAPIClient::Object::CreateGroupCommand->new(); # CreateGroupCommand | 

eval {
    my $result = $api_instance->groupsCreate(createGroupCommand => $createGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
createGroupCommand =  # CreateGroupCommand |  (optional)

try:
    # Create group
    api_response = api_instance.groups_create(createGroupCommand=createGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsCreate: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let createGroupCommand = ; // CreateGroupCommand

    let mut context = GroupsApi::Context::default();
    let result = client.groupsCreate(createGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createGroupCommand

Responses


groupsDelete

Delete group


/api/v1/groups/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/groups/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.groupsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.groupsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsDelete: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.groupsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete group
[apiInstance groupsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class groupsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete group
                Object result = apiInstance.groupsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->groupsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->groupsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
id = 56 # Integer |  (default to null)

try:
    # Delete group
    api_response = api_instance.groups_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsDelete: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = GroupsApi::Context::default();
    let result = client.groupsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


groupsDeleteOrganizations

Remove organizations from group


/api/v1/groups/delete-organizations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/delete-organizations" \
 -d '{
  "groupId" : 0,
  "organizations" : [ 6, 6 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        DeleteOrganizationFromGroupCommand deleteOrganizationFromGroupCommand = ; // DeleteOrganizationFromGroupCommand | 

        try {
            Object result = apiInstance.groupsDeleteOrganizations(deleteOrganizationFromGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDeleteOrganizations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteOrganizationFromGroupCommand deleteOrganizationFromGroupCommand = new DeleteOrganizationFromGroupCommand(); // DeleteOrganizationFromGroupCommand | 

try {
    final result = await api_instance.groupsDeleteOrganizations(deleteOrganizationFromGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsDeleteOrganizations: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        DeleteOrganizationFromGroupCommand deleteOrganizationFromGroupCommand = ; // DeleteOrganizationFromGroupCommand | 

        try {
            Object result = apiInstance.groupsDeleteOrganizations(deleteOrganizationFromGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDeleteOrganizations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
DeleteOrganizationFromGroupCommand *deleteOrganizationFromGroupCommand = ; //  (optional)

// Remove organizations from group
[apiInstance groupsDeleteOrganizationsWith:deleteOrganizationFromGroupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var opts = {
  'deleteOrganizationFromGroupCommand':  // {DeleteOrganizationFromGroupCommand} 
};

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

namespace Example
{
    public class groupsDeleteOrganizationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var deleteOrganizationFromGroupCommand = new DeleteOrganizationFromGroupCommand(); // DeleteOrganizationFromGroupCommand |  (optional) 

            try {
                // Remove organizations from group
                Object result = apiInstance.groupsDeleteOrganizations(deleteOrganizationFromGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsDeleteOrganizations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$deleteOrganizationFromGroupCommand = ; // DeleteOrganizationFromGroupCommand | 

try {
    $result = $api_instance->groupsDeleteOrganizations($deleteOrganizationFromGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsDeleteOrganizations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $deleteOrganizationFromGroupCommand = WWW::OPenAPIClient::Object::DeleteOrganizationFromGroupCommand->new(); # DeleteOrganizationFromGroupCommand | 

eval {
    my $result = $api_instance->groupsDeleteOrganizations(deleteOrganizationFromGroupCommand => $deleteOrganizationFromGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsDeleteOrganizations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
deleteOrganizationFromGroupCommand =  # DeleteOrganizationFromGroupCommand |  (optional)

try:
    # Remove organizations from group
    api_response = api_instance.groups_delete_organizations(deleteOrganizationFromGroupCommand=deleteOrganizationFromGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsDeleteOrganizations: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let deleteOrganizationFromGroupCommand = ; // DeleteOrganizationFromGroupCommand

    let mut context = GroupsApi::Context::default();
    let result = client.groupsDeleteOrganizations(deleteOrganizationFromGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteOrganizationFromGroupCommand

Responses


groupsDeleteUsers

Remove users from group


/api/v1/groups/delete-users

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/delete-users" \
 -d '{
  "groupId" : 0,
  "users" : [ "users", "users" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        DeleteUserFromGroupCommand deleteUserFromGroupCommand = ; // DeleteUserFromGroupCommand | 

        try {
            Object result = apiInstance.groupsDeleteUsers(deleteUserFromGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDeleteUsers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteUserFromGroupCommand deleteUserFromGroupCommand = new DeleteUserFromGroupCommand(); // DeleteUserFromGroupCommand | 

try {
    final result = await api_instance.groupsDeleteUsers(deleteUserFromGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsDeleteUsers: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        DeleteUserFromGroupCommand deleteUserFromGroupCommand = ; // DeleteUserFromGroupCommand | 

        try {
            Object result = apiInstance.groupsDeleteUsers(deleteUserFromGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsDeleteUsers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
DeleteUserFromGroupCommand *deleteUserFromGroupCommand = ; //  (optional)

// Remove users from group
[apiInstance groupsDeleteUsersWith:deleteUserFromGroupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var opts = {
  'deleteUserFromGroupCommand':  // {DeleteUserFromGroupCommand} 
};

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

namespace Example
{
    public class groupsDeleteUsersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var deleteUserFromGroupCommand = new DeleteUserFromGroupCommand(); // DeleteUserFromGroupCommand |  (optional) 

            try {
                // Remove users from group
                Object result = apiInstance.groupsDeleteUsers(deleteUserFromGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsDeleteUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$deleteUserFromGroupCommand = ; // DeleteUserFromGroupCommand | 

try {
    $result = $api_instance->groupsDeleteUsers($deleteUserFromGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsDeleteUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $deleteUserFromGroupCommand = WWW::OPenAPIClient::Object::DeleteUserFromGroupCommand->new(); # DeleteUserFromGroupCommand | 

eval {
    my $result = $api_instance->groupsDeleteUsers(deleteUserFromGroupCommand => $deleteUserFromGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsDeleteUsers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
deleteUserFromGroupCommand =  # DeleteUserFromGroupCommand |  (optional)

try:
    # Remove users from group
    api_response = api_instance.groups_delete_users(deleteUserFromGroupCommand=deleteUserFromGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsDeleteUsers: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let deleteUserFromGroupCommand = ; // DeleteUserFromGroupCommand

    let mut context = GroupsApi::Context::default();
    let result = client.groupsDeleteUsers(deleteUserFromGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteUserFromGroupCommand

Responses


groupsList

Group list for domain


/api/v1/groups

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/groups?DomainId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer domainId = 56; // Integer | Filter by domain id
        String search = search_example; // String | Free-text search over group names

        try {
            GroupList result = apiInstance.groupsList(domainId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Filter by domain id
final String search = new String(); // String | Free-text search over group names

try {
    final result = await api_instance.groupsList(domainId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsList: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer domainId = 56; // Integer | Filter by domain id
        String search = search_example; // String | Free-text search over group names

        try {
            GroupList result = apiInstance.groupsList(domainId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *domainId = 56; // Filter by domain id (optional) (default to null)
String *search = search_example; // Free-text search over group names (optional) (default to null)

// Group list for domain
[apiInstance groupsListWith:domainId
    search:search
              completionHandler: ^(GroupList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var opts = {
  'domainId': 56, // {Integer} Filter by domain id
  'search': search_example // {String} Free-text search over group names
};

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

namespace Example
{
    public class groupsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var domainId = 56;  // Integer | Filter by domain id (optional)  (default to null)
            var search = search_example;  // String | Free-text search over group names (optional)  (default to null)

            try {
                // Group list for domain
                GroupList result = apiInstance.groupsList(domainId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$domainId = 56; // Integer | Filter by domain id
$search = search_example; // String | Free-text search over group names

try {
    $result = $api_instance->groupsList($domainId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $domainId = 56; # Integer | Filter by domain id
my $search = search_example; # String | Free-text search over group names

eval {
    my $result = $api_instance->groupsList(domainId => $domainId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
domainId = 56 # Integer | Filter by domain id (optional) (default to null)
search = search_example # String | Free-text search over group names (optional) (default to null)

try:
    # Group list for domain
    api_response = api_instance.groups_list(domainId=domainId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsList: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let domainId = 56; // Integer
    let search = search_example; // String

    let mut context = GroupsApi::Context::default();
    let result = client.groupsList(domainId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
DomainId
Integer (int32)
Filter by domain id
Search

Responses


groupsUpdate

Update group


/api/v1/groups/update/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/update/{id}" \
 -d '{
  "name" : "name",
  "claimValue" : "claimValue"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        UpdateGroupDto updateGroupDto = ; // UpdateGroupDto | 

        try {
            Object result = apiInstance.groupsUpdate(id, updateGroupDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final UpdateGroupDto updateGroupDto = new UpdateGroupDto(); // UpdateGroupDto | 

try {
    final result = await api_instance.groupsUpdate(id, updateGroupDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsUpdate: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer id = 56; // Integer | 
        UpdateGroupDto updateGroupDto = ; // UpdateGroupDto | 

        try {
            Object result = apiInstance.groupsUpdate(id, updateGroupDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *id = 56; //  (default to null)
UpdateGroupDto *updateGroupDto = ; //  (optional)

// Update group
[apiInstance groupsUpdateWith:id
    updateGroupDto:updateGroupDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var id = 56; // {Integer} 
var opts = {
  'updateGroupDto':  // {UpdateGroupDto} 
};

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

namespace Example
{
    public class groupsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var id = 56;  // Integer |  (default to null)
            var updateGroupDto = new UpdateGroupDto(); // UpdateGroupDto |  (optional) 

            try {
                // Update group
                Object result = apiInstance.groupsUpdate(id, updateGroupDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$id = 56; // Integer | 
$updateGroupDto = ; // UpdateGroupDto | 

try {
    $result = $api_instance->groupsUpdate($id, $updateGroupDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $id = 56; # Integer | 
my $updateGroupDto = WWW::OPenAPIClient::Object::UpdateGroupDto->new(); # UpdateGroupDto | 

eval {
    my $result = $api_instance->groupsUpdate(id => $id, updateGroupDto => $updateGroupDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
id = 56 # Integer |  (default to null)
updateGroupDto =  # UpdateGroupDto |  (optional)

try:
    # Update group
    api_response = api_instance.groups_update(id, updateGroupDto=updateGroupDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsUpdate: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let id = 56; // Integer
    let updateGroupDto = ; // UpdateGroupDto

    let mut context = GroupsApi::Context::default();
    let result = client.groupsUpdate(id, updateGroupDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
updateGroupDto

Responses


groupsUpdateGroupOrganization

Update organization in group


/api/v1/groups/{groupId}/organizations/{organizationId}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/groups/{groupId}/organizations/{organizationId}" \
 -d '{
  "role" : "role",
  "projects" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.GroupsApi;

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

public class GroupsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        GroupsApi apiInstance = new GroupsApi();
        Integer groupId = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        UpdateGroupOrganizationDto updateGroupOrganizationDto = ; // UpdateGroupOrganizationDto | 

        try {
            Object result = apiInstance.groupsUpdateGroupOrganization(groupId, organizationId, updateGroupOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsUpdateGroupOrganization");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer groupId = new Integer(); // Integer | 
final Integer organizationId = new Integer(); // Integer | 
final UpdateGroupOrganizationDto updateGroupOrganizationDto = new UpdateGroupOrganizationDto(); // UpdateGroupOrganizationDto | 

try {
    final result = await api_instance.groupsUpdateGroupOrganization(groupId, organizationId, updateGroupOrganizationDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->groupsUpdateGroupOrganization: $e\n');
}

import org.openapitools.client.api.GroupsApi;

public class GroupsApiExample {
    public static void main(String[] args) {
        GroupsApi apiInstance = new GroupsApi();
        Integer groupId = 56; // Integer | 
        Integer organizationId = 56; // Integer | 
        UpdateGroupOrganizationDto updateGroupOrganizationDto = ; // UpdateGroupOrganizationDto | 

        try {
            Object result = apiInstance.groupsUpdateGroupOrganization(groupId, organizationId, updateGroupOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GroupsApi#groupsUpdateGroupOrganization");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
GroupsApi *apiInstance = [[GroupsApi alloc] init];
Integer *groupId = 56; //  (default to null)
Integer *organizationId = 56; //  (default to null)
UpdateGroupOrganizationDto *updateGroupOrganizationDto = ; //  (optional)

// Update organization in group
[apiInstance groupsUpdateGroupOrganizationWith:groupId
    organizationId:organizationId
    updateGroupOrganizationDto:updateGroupOrganizationDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.GroupsApi()
var groupId = 56; // {Integer} 
var organizationId = 56; // {Integer} 
var opts = {
  'updateGroupOrganizationDto':  // {UpdateGroupOrganizationDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.groupsUpdateGroupOrganization(groupId, organizationId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class groupsUpdateGroupOrganizationExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new GroupsApi();
            var groupId = 56;  // Integer |  (default to null)
            var organizationId = 56;  // Integer |  (default to null)
            var updateGroupOrganizationDto = new UpdateGroupOrganizationDto(); // UpdateGroupOrganizationDto |  (optional) 

            try {
                // Update organization in group
                Object result = apiInstance.groupsUpdateGroupOrganization(groupId, organizationId, updateGroupOrganizationDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling GroupsApi.groupsUpdateGroupOrganization: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\GroupsApi();
$groupId = 56; // Integer | 
$organizationId = 56; // Integer | 
$updateGroupOrganizationDto = ; // UpdateGroupOrganizationDto | 

try {
    $result = $api_instance->groupsUpdateGroupOrganization($groupId, $organizationId, $updateGroupOrganizationDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsUpdateGroupOrganization: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::GroupsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::GroupsApi->new();
my $groupId = 56; # Integer | 
my $organizationId = 56; # Integer | 
my $updateGroupOrganizationDto = WWW::OPenAPIClient::Object::UpdateGroupOrganizationDto->new(); # UpdateGroupOrganizationDto | 

eval {
    my $result = $api_instance->groupsUpdateGroupOrganization(groupId => $groupId, organizationId => $organizationId, updateGroupOrganizationDto => $updateGroupOrganizationDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling GroupsApi->groupsUpdateGroupOrganization: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.GroupsApi()
groupId = 56 # Integer |  (default to null)
organizationId = 56 # Integer |  (default to null)
updateGroupOrganizationDto =  # UpdateGroupOrganizationDto |  (optional)

try:
    # Update organization in group
    api_response = api_instance.groups_update_group_organization(groupId, organizationId, updateGroupOrganizationDto=updateGroupOrganizationDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling GroupsApi->groupsUpdateGroupOrganization: %s\n" % e)
extern crate GroupsApi;

pub fn main() {
    let groupId = 56; // Integer
    let organizationId = 56; // Integer
    let updateGroupOrganizationDto = ; // UpdateGroupOrganizationDto

    let mut context = GroupsApi::Context::default();
    let result = client.groupsUpdateGroupOrganization(groupId, organizationId, updateGroupOrganizationDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
groupId*
Integer (int32)
Required
organizationId*
Integer (int32)
Required
Body parameters
Name Description
updateGroupOrganizationDto

Responses


Images

imagesAwsCommonImages

Commonly used aws images (v1)


/api/v1/images/aws/common/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/aws/common/{cloudId}?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsCommonImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsCommonImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesAwsCommonImages(cloudId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAwsCommonImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsCommonImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsCommonImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Commonly used aws images (v1)
[apiInstance imagesAwsCommonImagesWith:cloudId
    projectId:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesAwsCommonImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesAwsCommonImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Commonly used aws images (v1)
                array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsCommonImages(cloudId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAwsCommonImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesAwsCommonImages($cloudId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAwsCommonImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesAwsCommonImages(cloudId => $cloudId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAwsCommonImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Commonly used aws images (v1)
    api_response = api_instance.images_aws_common_images(cloudId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAwsCommonImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAwsCommonImages(cloudId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
ProjectId
Integer (int32)
Filter by project id

Responses


imagesAwsImagesList

Retrieve aws images


/api/v1/images/aws

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/images/aws" \
 -d '{
  "sortDirection" : "sortDirection",
  "search" : "search",
  "offset" : 1,
  "cloudId" : 0,
  "limit" : 6,
  "sortBy" : "sortBy",
  "owners" : [ "owners", "owners" ],
  "projectId" : 5,
  "latest" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        AwsImagesPostListCommand awsImagesPostListCommand = ; // AwsImagesPostListCommand | 

        try {
            PublicImageList result = apiInstance.imagesAwsImagesList(awsImagesPostListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsImagesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AwsImagesPostListCommand awsImagesPostListCommand = new AwsImagesPostListCommand(); // AwsImagesPostListCommand | 

try {
    final result = await api_instance.imagesAwsImagesList(awsImagesPostListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAwsImagesList: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        AwsImagesPostListCommand awsImagesPostListCommand = ; // AwsImagesPostListCommand | 

        try {
            PublicImageList result = apiInstance.imagesAwsImagesList(awsImagesPostListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsImagesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
AwsImagesPostListCommand *awsImagesPostListCommand = ; //  (optional)

// Retrieve aws images
[apiInstance imagesAwsImagesListWith:awsImagesPostListCommand
              completionHandler: ^(PublicImageList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var opts = {
  'awsImagesPostListCommand':  // {AwsImagesPostListCommand} 
};

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

namespace Example
{
    public class imagesAwsImagesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var awsImagesPostListCommand = new AwsImagesPostListCommand(); // AwsImagesPostListCommand |  (optional) 

            try {
                // Retrieve aws images
                PublicImageList result = apiInstance.imagesAwsImagesList(awsImagesPostListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAwsImagesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$awsImagesPostListCommand = ; // AwsImagesPostListCommand | 

try {
    $result = $api_instance->imagesAwsImagesList($awsImagesPostListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAwsImagesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $awsImagesPostListCommand = WWW::OPenAPIClient::Object::AwsImagesPostListCommand->new(); # AwsImagesPostListCommand | 

eval {
    my $result = $api_instance->imagesAwsImagesList(awsImagesPostListCommand => $awsImagesPostListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAwsImagesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
awsImagesPostListCommand =  # AwsImagesPostListCommand |  (optional)

try:
    # Retrieve aws images
    api_response = api_instance.images_aws_images_list(awsImagesPostListCommand=awsImagesPostListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAwsImagesList: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let awsImagesPostListCommand = ; // AwsImagesPostListCommand

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAwsImagesList(awsImagesPostListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
awsImagesPostListCommand

Responses


imagesAwsPersonalImages

Aws personal images


/api/v1/images/aws/personal/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/aws/personal/{cloudId}?Search=search_example&ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsPersonalImages(cloudId, search, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsPersonalImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final String search = new String(); // String | Free-text search over image names
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesAwsPersonalImages(cloudId, search, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAwsPersonalImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsPersonalImages(cloudId, search, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAwsPersonalImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
String *search = search_example; // Free-text search over image names (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Aws personal images
[apiInstance imagesAwsPersonalImagesWith:cloudId
    search:search
    projectId:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'search': search_example, // {String} Free-text search over image names
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesAwsPersonalImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesAwsPersonalImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var search = search_example;  // String | Free-text search over image names (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Aws personal images
                array[CommonStringBasedDropdownDto] result = apiInstance.imagesAwsPersonalImages(cloudId, search, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAwsPersonalImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$search = search_example; // String | Free-text search over image names
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesAwsPersonalImages($cloudId, $search, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAwsPersonalImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $search = search_example; # String | Free-text search over image names
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesAwsPersonalImages(cloudId => $cloudId, search => $search, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAwsPersonalImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
search = search_example # String | Free-text search over image names (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Aws personal images
    api_response = api_instance.images_aws_personal_images(cloudId, search=search, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAwsPersonalImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let search = search_example; // String
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAwsPersonalImages(cloudId, search, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Search
ProjectId
Integer (int32)
Filter by project id

Responses


imagesAzureCommonImages

Commonly used azure images


/api/v1/images/azure/common/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/azure/common/{cloudId}?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzureCommonImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzureCommonImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesAzureCommonImages(cloudId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAzureCommonImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzureCommonImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzureCommonImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Commonly used azure images
[apiInstance imagesAzureCommonImagesWith:cloudId
    projectId:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesAzureCommonImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesAzureCommonImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Commonly used azure images
                array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzureCommonImages(cloudId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAzureCommonImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesAzureCommonImages($cloudId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAzureCommonImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesAzureCommonImages(cloudId => $cloudId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAzureCommonImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Commonly used azure images
    api_response = api_instance.images_azure_common_images(cloudId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAzureCommonImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAzureCommonImages(cloudId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
ProjectId
Integer (int32)
Filter by project id

Responses


imagesAzureImages

Retrieve azure images


/api/v1/images/azure/{cloudId}/{publisherName}/{offer}/{sku}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/azure/{cloudId}/{publisherName}/{offer}/{sku}?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&ProjectId=56&Latest=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String publisherName = publisherName_example; // String | Azure image publisher name
        String offer = offer_example; // String | Azure image offer
        String sku = sku_example; // String | Azure image SKU
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id
        Boolean latest = true; // Boolean | Return only the latest image version; defaults to false

        try {
            PublicImageList result = apiInstance.imagesAzureImages(cloudId, publisherName, offer, sku, limit, offset, sortBy, sortDirection, search, projectId, latest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzureImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final String publisherName = new String(); // String | Azure image publisher name
final String offer = new String(); // String | Azure image offer
final String sku = new String(); // String | Azure image SKU
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over image names
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean latest = new Boolean(); // Boolean | Return only the latest image version; defaults to false

try {
    final result = await api_instance.imagesAzureImages(cloudId, publisherName, offer, sku, limit, offset, sortBy, sortDirection, search, projectId, latest);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAzureImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String publisherName = publisherName_example; // String | Azure image publisher name
        String offer = offer_example; // String | Azure image offer
        String sku = sku_example; // String | Azure image SKU
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id
        Boolean latest = true; // Boolean | Return only the latest image version; defaults to false

        try {
            PublicImageList result = apiInstance.imagesAzureImages(cloudId, publisherName, offer, sku, limit, offset, sortBy, sortDirection, search, projectId, latest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzureImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
String *publisherName = publisherName_example; // Azure image publisher name (default to null)
String *offer = offer_example; // Azure image offer (default to null)
String *sku = sku_example; // Azure image SKU (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over image names (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *latest = true; // Return only the latest image version; defaults to false (optional) (default to false)

// Retrieve azure images
[apiInstance imagesAzureImagesWith:cloudId
    publisherName:publisherName
    offer:offer
    sku:sku
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    projectId:projectId
    latest:latest
              completionHandler: ^(PublicImageList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var publisherName = publisherName_example; // {String} Azure image publisher name
var offer = offer_example; // {String} Azure image offer
var sku = sku_example; // {String} Azure image SKU
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over image names
  'projectId': 56, // {Integer} Filter by project id
  'latest': true // {Boolean} Return only the latest image version; defaults to false
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesAzureImages(cloudId, publisherName, offer, sku, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesAzureImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var publisherName = publisherName_example;  // String | Azure image publisher name (default to null)
            var offer = offer_example;  // String | Azure image offer (default to null)
            var sku = sku_example;  // String | Azure image SKU (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over image names (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var latest = true;  // Boolean | Return only the latest image version; defaults to false (optional)  (default to false)

            try {
                // Retrieve azure images
                PublicImageList result = apiInstance.imagesAzureImages(cloudId, publisherName, offer, sku, limit, offset, sortBy, sortDirection, search, projectId, latest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAzureImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$publisherName = publisherName_example; // String | Azure image publisher name
$offer = offer_example; // String | Azure image offer
$sku = sku_example; // String | Azure image SKU
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over image names
$projectId = 56; // Integer | Filter by project id
$latest = true; // Boolean | Return only the latest image version; defaults to false

try {
    $result = $api_instance->imagesAzureImages($cloudId, $publisherName, $offer, $sku, $limit, $offset, $sortBy, $sortDirection, $search, $projectId, $latest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAzureImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $publisherName = publisherName_example; # String | Azure image publisher name
my $offer = offer_example; # String | Azure image offer
my $sku = sku_example; # String | Azure image SKU
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over image names
my $projectId = 56; # Integer | Filter by project id
my $latest = true; # Boolean | Return only the latest image version; defaults to false

eval {
    my $result = $api_instance->imagesAzureImages(cloudId => $cloudId, publisherName => $publisherName, offer => $offer, sku => $sku, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, projectId => $projectId, latest => $latest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAzureImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
publisherName = publisherName_example # String | Azure image publisher name (default to null)
offer = offer_example # String | Azure image offer (default to null)
sku = sku_example # String | Azure image SKU (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over image names (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
latest = true # Boolean | Return only the latest image version; defaults to false (optional) (default to false)

try:
    # Retrieve azure images
    api_response = api_instance.images_azure_images(cloudId, publisherName, offer, sku, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, projectId=projectId, latest=latest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAzureImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let publisherName = publisherName_example; // String
    let offer = offer_example; // String
    let sku = sku_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let projectId = 56; // Integer
    let latest = true; // Boolean

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAzureImages(cloudId, publisherName, offer, sku, limit, offset, sortBy, sortDirection, search, projectId, latest, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
publisherName*
String
Azure image publisher name
Required
offer*
String
Azure image offer
Required
sku*
String
Azure image SKU
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
ProjectId
Integer (int32)
Filter by project id
Latest
Boolean
Return only the latest image version; defaults to false

Responses


imagesAzurePersonalImages

Azure personal images


/api/v1/images/azure/personal/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/azure/personal/{cloudId}?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzurePersonalImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzurePersonalImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesAzurePersonalImages(cloudId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesAzurePersonalImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzurePersonalImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesAzurePersonalImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Azure personal images
[apiInstance imagesAzurePersonalImagesWith:cloudId
    projectId:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesAzurePersonalImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesAzurePersonalImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Azure personal images
                array[CommonStringBasedDropdownDto] result = apiInstance.imagesAzurePersonalImages(cloudId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesAzurePersonalImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesAzurePersonalImages($cloudId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesAzurePersonalImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesAzurePersonalImages(cloudId => $cloudId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesAzurePersonalImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Azure personal images
    api_response = api_instance.images_azure_personal_images(cloudId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesAzurePersonalImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesAzurePersonalImages(cloudId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
ProjectId
Integer (int32)
Filter by project id

Responses


imagesBindImagesToProject

Bind images to project


/api/v1/images/bind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/images/bind" \
 -d '{
  "images" : [ "images", "images" ],
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        BindImageToProjectCommand bindImageToProjectCommand = ; // BindImageToProjectCommand | 

        try {
            Object result = apiInstance.imagesBindImagesToProject(bindImageToProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesBindImagesToProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BindImageToProjectCommand bindImageToProjectCommand = new BindImageToProjectCommand(); // BindImageToProjectCommand | 

try {
    final result = await api_instance.imagesBindImagesToProject(bindImageToProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesBindImagesToProject: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        BindImageToProjectCommand bindImageToProjectCommand = ; // BindImageToProjectCommand | 

        try {
            Object result = apiInstance.imagesBindImagesToProject(bindImageToProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesBindImagesToProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
BindImageToProjectCommand *bindImageToProjectCommand = ; //  (optional)

// Bind images to project
[apiInstance imagesBindImagesToProjectWith:bindImageToProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var opts = {
  'bindImageToProjectCommand':  // {BindImageToProjectCommand} 
};

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

namespace Example
{
    public class imagesBindImagesToProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var bindImageToProjectCommand = new BindImageToProjectCommand(); // BindImageToProjectCommand |  (optional) 

            try {
                // Bind images to project
                Object result = apiInstance.imagesBindImagesToProject(bindImageToProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesBindImagesToProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$bindImageToProjectCommand = ; // BindImageToProjectCommand | 

try {
    $result = $api_instance->imagesBindImagesToProject($bindImageToProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesBindImagesToProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $bindImageToProjectCommand = WWW::OPenAPIClient::Object::BindImageToProjectCommand->new(); # BindImageToProjectCommand | 

eval {
    my $result = $api_instance->imagesBindImagesToProject(bindImageToProjectCommand => $bindImageToProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesBindImagesToProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
bindImageToProjectCommand =  # BindImageToProjectCommand |  (optional)

try:
    # Bind images to project
    api_response = api_instance.images_bind_images_to_project(bindImageToProjectCommand=bindImageToProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesBindImagesToProject: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let bindImageToProjectCommand = ; // BindImageToProjectCommand

    let mut context = ImagesApi::Context::default();
    let result = client.imagesBindImagesToProject(bindImageToProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
bindImageToProjectCommand

Responses


imagesCloudCoreImages

Retrieve CloudCore images


/api/v1/images/cloud-core/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/cloud-core/{cloudId}?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&ProjectId=56&Personal=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id
        Boolean personal = true; // Boolean | Return only personal images; defaults to false

        try {
            PublicImageList result = apiInstance.imagesCloudCoreImages(cloudId, limit, offset, sortBy, sortDirection, search, projectId, personal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesCloudCoreImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over image names
final Integer projectId = new Integer(); // Integer | Filter by project id
final Boolean personal = new Boolean(); // Boolean | Return only personal images; defaults to false

try {
    final result = await api_instance.imagesCloudCoreImages(cloudId, limit, offset, sortBy, sortDirection, search, projectId, personal);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesCloudCoreImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id
        Boolean personal = true; // Boolean | Return only personal images; defaults to false

        try {
            PublicImageList result = apiInstance.imagesCloudCoreImages(cloudId, limit, offset, sortBy, sortDirection, search, projectId, personal);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesCloudCoreImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over image names (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
Boolean *personal = true; // Return only personal images; defaults to false (optional) (default to false)

// Retrieve CloudCore images
[apiInstance imagesCloudCoreImagesWith:cloudId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    projectId:projectId
    personal:personal
              completionHandler: ^(PublicImageList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over image names
  'projectId': 56, // {Integer} Filter by project id
  'personal': true // {Boolean} Return only personal images; defaults to false
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesCloudCoreImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesCloudCoreImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over image names (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var personal = true;  // Boolean | Return only personal images; defaults to false (optional)  (default to false)

            try {
                // Retrieve CloudCore images
                PublicImageList result = apiInstance.imagesCloudCoreImages(cloudId, limit, offset, sortBy, sortDirection, search, projectId, personal);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesCloudCoreImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over image names
$projectId = 56; // Integer | Filter by project id
$personal = true; // Boolean | Return only personal images; defaults to false

try {
    $result = $api_instance->imagesCloudCoreImages($cloudId, $limit, $offset, $sortBy, $sortDirection, $search, $projectId, $personal);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesCloudCoreImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over image names
my $projectId = 56; # Integer | Filter by project id
my $personal = true; # Boolean | Return only personal images; defaults to false

eval {
    my $result = $api_instance->imagesCloudCoreImages(cloudId => $cloudId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, projectId => $projectId, personal => $personal);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesCloudCoreImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over image names (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
personal = true # Boolean | Return only personal images; defaults to false (optional) (default to false)

try:
    # Retrieve CloudCore images
    api_response = api_instance.images_cloud_core_images(cloudId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, projectId=projectId, personal=personal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesCloudCoreImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let projectId = 56; // Integer
    let personal = true; // Boolean

    let mut context = ImagesApi::Context::default();
    let result = client.imagesCloudCoreImages(cloudId, limit, offset, sortBy, sortDirection, search, projectId, personal, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
ProjectId
Integer (int32)
Filter by project id
Personal
Boolean
Return only personal images; defaults to false

Responses


imagesCommonGoogleImages

Commonly used google images


/api/v1/images/google/common/{cloudId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/google/common/{cloudId}?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesCommonGoogleImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesCommonGoogleImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesCommonGoogleImages(cloudId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesCommonGoogleImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        Integer projectId = 56; // Integer | Filter by project id

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.imagesCommonGoogleImages(cloudId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesCommonGoogleImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Commonly used google images
[apiInstance imagesCommonGoogleImagesWith:cloudId
    projectId:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var opts = {
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesCommonGoogleImages(cloudId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesCommonGoogleImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Commonly used google images
                array[CommonStringBasedDropdownDto] result = apiInstance.imagesCommonGoogleImages(cloudId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesCommonGoogleImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesCommonGoogleImages($cloudId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesCommonGoogleImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesCommonGoogleImages(cloudId => $cloudId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesCommonGoogleImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Commonly used google images
    api_response = api_instance.images_common_google_images(cloudId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesCommonGoogleImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesCommonGoogleImages(cloudId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
Query parameters
Name Description
ProjectId
Integer (int32)
Filter by project id

Responses


imagesGoogleImages

Retrieve google images


/api/v1/images/google/{cloudId}/{type}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/google/{cloudId}/{type}?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Latest=true&ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String type = type_example; // String | Image type/family filter
        Boolean latest = true; // Boolean | Return only the latest image per family
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id

        try {
            PublicImageList result = apiInstance.imagesGoogleImages(cloudId, type, latest, limit, offset, sortBy, sortDirection, search, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesGoogleImages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudId = new Integer(); // Integer | Cloud credential id, positive integer
final String type = new String(); // String | Image type/family filter
final Boolean latest = new Boolean(); // Boolean | Return only the latest image per family
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over image names
final Integer projectId = new Integer(); // Integer | Filter by project id

try {
    final result = await api_instance.imagesGoogleImages(cloudId, type, latest, limit, offset, sortBy, sortDirection, search, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesGoogleImages: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer cloudId = 56; // Integer | Cloud credential id, positive integer
        String type = type_example; // String | Image type/family filter
        Boolean latest = true; // Boolean | Return only the latest image per family
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        Integer projectId = 56; // Integer | Filter by project id

        try {
            PublicImageList result = apiInstance.imagesGoogleImages(cloudId, type, latest, limit, offset, sortBy, sortDirection, search, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesGoogleImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *cloudId = 56; // Cloud credential id, positive integer (default to null)
String *type = type_example; // Image type/family filter (default to null)
Boolean *latest = true; // Return only the latest image per family (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over image names (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)

// Retrieve google images
[apiInstance imagesGoogleImagesWith:cloudId
    type:type
    latest:latest
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    projectId:projectId
              completionHandler: ^(PublicImageList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var cloudId = 56; // {Integer} Cloud credential id, positive integer
var type = type_example; // {String} Image type/family filter
var latest = true; // {Boolean} Return only the latest image per family
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over image names
  'projectId': 56 // {Integer} Filter by project id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.imagesGoogleImages(cloudId, type, latest, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class imagesGoogleImagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var cloudId = 56;  // Integer | Cloud credential id, positive integer (default to null)
            var type = type_example;  // String | Image type/family filter (default to null)
            var latest = true;  // Boolean | Return only the latest image per family (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over image names (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)

            try {
                // Retrieve google images
                PublicImageList result = apiInstance.imagesGoogleImages(cloudId, type, latest, limit, offset, sortBy, sortDirection, search, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesGoogleImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$cloudId = 56; // Integer | Cloud credential id, positive integer
$type = type_example; // String | Image type/family filter
$latest = true; // Boolean | Return only the latest image per family
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over image names
$projectId = 56; // Integer | Filter by project id

try {
    $result = $api_instance->imagesGoogleImages($cloudId, $type, $latest, $limit, $offset, $sortBy, $sortDirection, $search, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesGoogleImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $cloudId = 56; # Integer | Cloud credential id, positive integer
my $type = type_example; # String | Image type/family filter
my $latest = true; # Boolean | Return only the latest image per family
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over image names
my $projectId = 56; # Integer | Filter by project id

eval {
    my $result = $api_instance->imagesGoogleImages(cloudId => $cloudId, type => $type, latest => $latest, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesGoogleImages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
cloudId = 56 # Integer | Cloud credential id, positive integer (default to null)
type = type_example # String | Image type/family filter (default to null)
latest = true # Boolean | Return only the latest image per family (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over image names (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)

try:
    # Retrieve google images
    api_response = api_instance.images_google_images(cloudId, type, latest, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesGoogleImages: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let cloudId = 56; // Integer
    let type = type_example; // String
    let latest = true; // Boolean
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let projectId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesGoogleImages(cloudId, type, latest, limit, offset, sortBy, sortDirection, search, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudId*
Integer (int32)
Cloud credential id, positive integer
Required
type*
String
Image type/family filter
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
Latest*
Boolean
Return only the latest image per family
Required
ProjectId
Integer (int32)
Filter by project id

Responses


imagesImageDetails

Get image details


/api/v1/images/details

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/images/details" \
 -d '{
  "imageId" : "imageId",
  "cloudId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        ImageByIdCommand imageByIdCommand = ; // ImageByIdCommand | 

        try {
            'String' result = apiInstance.imagesImageDetails(imageByIdCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesImageDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImageByIdCommand imageByIdCommand = new ImageByIdCommand(); // ImageByIdCommand | 

try {
    final result = await api_instance.imagesImageDetails(imageByIdCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesImageDetails: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        ImageByIdCommand imageByIdCommand = ; // ImageByIdCommand | 

        try {
            'String' result = apiInstance.imagesImageDetails(imageByIdCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesImageDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
ImageByIdCommand *imageByIdCommand = ; //  (optional)

// Get image details
[apiInstance imagesImageDetailsWith:imageByIdCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var opts = {
  'imageByIdCommand':  // {ImageByIdCommand} 
};

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

namespace Example
{
    public class imagesImageDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var imageByIdCommand = new ImageByIdCommand(); // ImageByIdCommand |  (optional) 

            try {
                // Get image details
                'String' result = apiInstance.imagesImageDetails(imageByIdCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesImageDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$imageByIdCommand = ; // ImageByIdCommand | 

try {
    $result = $api_instance->imagesImageDetails($imageByIdCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesImageDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $imageByIdCommand = WWW::OPenAPIClient::Object::ImageByIdCommand->new(); # ImageByIdCommand | 

eval {
    my $result = $api_instance->imagesImageDetails(imageByIdCommand => $imageByIdCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesImageDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
imageByIdCommand =  # ImageByIdCommand |  (optional)

try:
    # Get image details
    api_response = api_instance.images_image_details(imageByIdCommand=imageByIdCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesImageDetails: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let imageByIdCommand = ; // ImageByIdCommand

    let mut context = ImagesApi::Context::default();
    let result = client.imagesImageDetails(imageByIdCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
imageByIdCommand

Responses


imagesSelectedImagesForProject

Retrieve selected images for projects


/api/v1/images/projects/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/images/projects/list?Limit=56&Offset=56&ProjectId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&FilterBy=filterBy_example&OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Integer projectId = 56; // Integer | Filter by project id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        String filterBy = filterBy_example; // String | Filter expression to narrow images
        Integer organizationId = 56; // Integer | Filter by organization id

        try {
            BoundImagesForProjectsList result = apiInstance.imagesSelectedImagesForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesSelectedImagesForProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final Integer projectId = new Integer(); // Integer | Filter by project id
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over image names
final String filterBy = new String(); // String | Filter expression to narrow images
final Integer organizationId = new Integer(); // Integer | Filter by organization id

try {
    final result = await api_instance.imagesSelectedImagesForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesSelectedImagesForProject: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        Integer projectId = 56; // Integer | Filter by project id
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over image names
        String filterBy = filterBy_example; // String | Filter expression to narrow images
        Integer organizationId = 56; // Integer | Filter by organization id

        try {
            BoundImagesForProjectsList result = apiInstance.imagesSelectedImagesForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesSelectedImagesForProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
Integer *projectId = 56; // Filter by project id (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over image names (optional) (default to null)
String *filterBy = filterBy_example; // Filter expression to narrow images (optional) (default to null)
Integer *organizationId = 56; // Filter by organization id (optional) (default to null)

// Retrieve selected images for projects
[apiInstance imagesSelectedImagesForProjectWith:limit
    offset:offset
    projectId:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    filterBy:filterBy
    organizationId:organizationId
              completionHandler: ^(BoundImagesForProjectsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'projectId': 56, // {Integer} Filter by project id
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over image names
  'filterBy': filterBy_example, // {String} Filter expression to narrow images
  'organizationId': 56 // {Integer} Filter by organization id
};

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

namespace Example
{
    public class imagesSelectedImagesForProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var projectId = 56;  // Integer | Filter by project id (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over image names (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Filter expression to narrow images (optional)  (default to null)
            var organizationId = 56;  // Integer | Filter by organization id (optional)  (default to null)

            try {
                // Retrieve selected images for projects
                BoundImagesForProjectsList result = apiInstance.imagesSelectedImagesForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesSelectedImagesForProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$projectId = 56; // Integer | Filter by project id
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over image names
$filterBy = filterBy_example; // String | Filter expression to narrow images
$organizationId = 56; // Integer | Filter by organization id

try {
    $result = $api_instance->imagesSelectedImagesForProject($limit, $offset, $projectId, $sortBy, $sortDirection, $search, $filterBy, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesSelectedImagesForProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $projectId = 56; # Integer | Filter by project id
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over image names
my $filterBy = filterBy_example; # String | Filter expression to narrow images
my $organizationId = 56; # Integer | Filter by organization id

eval {
    my $result = $api_instance->imagesSelectedImagesForProject(limit => $limit, offset => $offset, projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, filterBy => $filterBy, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesSelectedImagesForProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
projectId = 56 # Integer | Filter by project id (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over image names (optional) (default to null)
filterBy = filterBy_example # String | Filter expression to narrow images (optional) (default to null)
organizationId = 56 # Integer | Filter by organization id (optional) (default to null)

try:
    # Retrieve selected images for projects
    api_response = api_instance.images_selected_images_for_project(limit=limit, offset=offset, projectId=projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, filterBy=filterBy, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesSelectedImagesForProject: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let filterBy = filterBy_example; // String
    let organizationId = 56; // Integer

    let mut context = ImagesApi::Context::default();
    let result = client.imagesSelectedImagesForProject(limit, offset, projectId, sortBy, sortDirection, search, filterBy, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
ProjectId
Integer (int32)
Filter by project id
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
FilterBy
String
Filter expression to narrow images
OrganizationId
Integer (int32)
Filter by organization id

Responses


imagesUnbindImagesFromProject

Unbind images from project


/api/v1/images/unbind

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/images/unbind" \
 -d '{
  "ids" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImagesApi;

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

public class ImagesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImagesApi apiInstance = new ImagesApi();
        DeleteImageFromProjectCommand deleteImageFromProjectCommand = ; // DeleteImageFromProjectCommand | 

        try {
            Object result = apiInstance.imagesUnbindImagesFromProject(deleteImageFromProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesUnbindImagesFromProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteImageFromProjectCommand deleteImageFromProjectCommand = new DeleteImageFromProjectCommand(); // DeleteImageFromProjectCommand | 

try {
    final result = await api_instance.imagesUnbindImagesFromProject(deleteImageFromProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->imagesUnbindImagesFromProject: $e\n');
}

import org.openapitools.client.api.ImagesApi;

public class ImagesApiExample {
    public static void main(String[] args) {
        ImagesApi apiInstance = new ImagesApi();
        DeleteImageFromProjectCommand deleteImageFromProjectCommand = ; // DeleteImageFromProjectCommand | 

        try {
            Object result = apiInstance.imagesUnbindImagesFromProject(deleteImageFromProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImagesApi#imagesUnbindImagesFromProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImagesApi *apiInstance = [[ImagesApi alloc] init];
DeleteImageFromProjectCommand *deleteImageFromProjectCommand = ; //  (optional)

// Unbind images from project
[apiInstance imagesUnbindImagesFromProjectWith:deleteImageFromProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImagesApi()
var opts = {
  'deleteImageFromProjectCommand':  // {DeleteImageFromProjectCommand} 
};

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

namespace Example
{
    public class imagesUnbindImagesFromProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImagesApi();
            var deleteImageFromProjectCommand = new DeleteImageFromProjectCommand(); // DeleteImageFromProjectCommand |  (optional) 

            try {
                // Unbind images from project
                Object result = apiInstance.imagesUnbindImagesFromProject(deleteImageFromProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImagesApi.imagesUnbindImagesFromProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImagesApi();
$deleteImageFromProjectCommand = ; // DeleteImageFromProjectCommand | 

try {
    $result = $api_instance->imagesUnbindImagesFromProject($deleteImageFromProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImagesApi->imagesUnbindImagesFromProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImagesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImagesApi->new();
my $deleteImageFromProjectCommand = WWW::OPenAPIClient::Object::DeleteImageFromProjectCommand->new(); # DeleteImageFromProjectCommand | 

eval {
    my $result = $api_instance->imagesUnbindImagesFromProject(deleteImageFromProjectCommand => $deleteImageFromProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImagesApi->imagesUnbindImagesFromProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImagesApi()
deleteImageFromProjectCommand =  # DeleteImageFromProjectCommand |  (optional)

try:
    # Unbind images from project
    api_response = api_instance.images_unbind_images_from_project(deleteImageFromProjectCommand=deleteImageFromProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImagesApi->imagesUnbindImagesFromProject: %s\n" % e)
extern crate ImagesApi;

pub fn main() {
    let deleteImageFromProjectCommand = ; // DeleteImageFromProjectCommand

    let mut context = ImagesApi::Context::default();
    let result = client.imagesUnbindImagesFromProject(deleteImageFromProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteImageFromProjectCommand

Responses


ImportedCluster

importedClusterAsCloudCredential

Imported cluster as cloud credential


/api/v1/imported-cluster/as-cloud-credential/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/imported-cluster/as-cloud-credential/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsCloudCredentialList result = apiInstance.importedClusterAsCloudCredential(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsCloudCredential");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.importedClusterAsCloudCredential(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterAsCloudCredential: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsCloudCredentialList result = apiInstance.importedClusterAsCloudCredential(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsCloudCredential");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Imported cluster as cloud credential
[apiInstance importedClusterAsCloudCredentialWith:projectId
              completionHandler: ^(ImportedAsCloudCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class importedClusterAsCloudCredentialExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Imported cluster as cloud credential
                ImportedAsCloudCredentialList result = apiInstance.importedClusterAsCloudCredential(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterAsCloudCredential: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->importedClusterAsCloudCredential($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterAsCloudCredential: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->importedClusterAsCloudCredential(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterAsCloudCredential: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Imported cluster as cloud credential
    api_response = api_instance.imported_cluster_as_cloud_credential(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterAsCloudCredential: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterAsCloudCredential(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


importedClusterAsFullyManaged

Imported cluster as fully managed


/api/v1/imported-cluster/as-fully-managed/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/imported-cluster/as-fully-managed/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsFullyManagedList result = apiInstance.importedClusterAsFullyManaged(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsFullyManaged");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.importedClusterAsFullyManaged(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterAsFullyManaged: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsFullyManagedList result = apiInstance.importedClusterAsFullyManaged(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsFullyManaged");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Imported cluster as fully managed
[apiInstance importedClusterAsFullyManagedWith:projectId
              completionHandler: ^(ImportedAsFullyManagedList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class importedClusterAsFullyManagedExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Imported cluster as fully managed
                ImportedAsFullyManagedList result = apiInstance.importedClusterAsFullyManaged(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterAsFullyManaged: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->importedClusterAsFullyManaged($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterAsFullyManaged: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->importedClusterAsFullyManaged(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterAsFullyManaged: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Imported cluster as fully managed
    api_response = api_instance.imported_cluster_as_fully_managed(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterAsFullyManaged: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterAsFullyManaged(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


importedClusterAsReadOnly

Imported cluster as read only


/api/v1/imported-cluster/as-read-only/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/imported-cluster/as-read-only/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsReadOnlyList result = apiInstance.importedClusterAsReadOnly(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsReadOnly");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.importedClusterAsReadOnly(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterAsReadOnly: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ImportedAsReadOnlyList result = apiInstance.importedClusterAsReadOnly(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterAsReadOnly");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Imported cluster as read only
[apiInstance importedClusterAsReadOnlyWith:projectId
              completionHandler: ^(ImportedAsReadOnlyList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class importedClusterAsReadOnlyExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Imported cluster as read only
                ImportedAsReadOnlyList result = apiInstance.importedClusterAsReadOnly(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterAsReadOnly: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->importedClusterAsReadOnly($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterAsReadOnly: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->importedClusterAsReadOnly(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterAsReadOnly: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Imported cluster as read only
    api_response = api_instance.imported_cluster_as_read_only(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterAsReadOnly: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterAsReadOnly(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


importedClusterDelete

Delete imported cluster


/api/v1/imported-cluster/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/imported-cluster/delete" \
 -d '{
  "isForceDelete" : true,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        DeleteImportedProjectCommand deleteImportedProjectCommand = ; // DeleteImportedProjectCommand | 

        try {
            Object result = apiInstance.importedClusterDelete(deleteImportedProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteImportedProjectCommand deleteImportedProjectCommand = new DeleteImportedProjectCommand(); // DeleteImportedProjectCommand | 

try {
    final result = await api_instance.importedClusterDelete(deleteImportedProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterDelete: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        DeleteImportedProjectCommand deleteImportedProjectCommand = ; // DeleteImportedProjectCommand | 

        try {
            Object result = apiInstance.importedClusterDelete(deleteImportedProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
DeleteImportedProjectCommand *deleteImportedProjectCommand = ; //  (optional)

// Delete imported cluster
[apiInstance importedClusterDeleteWith:deleteImportedProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var opts = {
  'deleteImportedProjectCommand':  // {DeleteImportedProjectCommand} 
};

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

namespace Example
{
    public class importedClusterDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var deleteImportedProjectCommand = new DeleteImportedProjectCommand(); // DeleteImportedProjectCommand |  (optional) 

            try {
                // Delete imported cluster
                Object result = apiInstance.importedClusterDelete(deleteImportedProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$deleteImportedProjectCommand = ; // DeleteImportedProjectCommand | 

try {
    $result = $api_instance->importedClusterDelete($deleteImportedProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $deleteImportedProjectCommand = WWW::OPenAPIClient::Object::DeleteImportedProjectCommand->new(); # DeleteImportedProjectCommand | 

eval {
    my $result = $api_instance->importedClusterDelete(deleteImportedProjectCommand => $deleteImportedProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
deleteImportedProjectCommand =  # DeleteImportedProjectCommand |  (optional)

try:
    # Delete imported cluster
    api_response = api_instance.imported_cluster_delete(deleteImportedProjectCommand=deleteImportedProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterDelete: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let deleteImportedProjectCommand = ; // DeleteImportedProjectCommand

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterDelete(deleteImportedProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteImportedProjectCommand

Responses


importedClusterDetails

Retrieve imported-cluster by given id


/api/v1/imported-cluster/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/imported-cluster/{id}?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer id = 56; // Integer | Imported cluster id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over cluster names
        String searchId = searchId_example; // String | Filter by specific id

        try {
            ImportedClusterList result = apiInstance.importedClusterDetails(id, limit, offset, sortBy, sortDirection, search, searchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Imported cluster id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Row offset for pagination
final String sortBy = new String(); // String | Column to sort by
final String sortDirection = new String(); // String | Sort direction, asc or desc
final String search = new String(); // String | Free-text search over cluster names
final String searchId = new String(); // String | Filter by specific id

try {
    final result = await api_instance.importedClusterDetails(id, limit, offset, sortBy, sortDirection, search, searchId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterDetails: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        Integer id = 56; // Integer | Imported cluster id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Row offset for pagination
        String sortBy = sortBy_example; // String | Column to sort by
        String sortDirection = sortDirection_example; // String | Sort direction, asc or desc
        String search = search_example; // String | Free-text search over cluster names
        String searchId = searchId_example; // String | Filter by specific id

        try {
            ImportedClusterList result = apiInstance.importedClusterDetails(id, limit, offset, sortBy, sortDirection, search, searchId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
Integer *id = 56; // Imported cluster id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Row offset for pagination (optional) (default to null)
String *sortBy = sortBy_example; // Column to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction, asc or desc (optional) (default to null)
String *search = search_example; // Free-text search over cluster names (optional) (default to null)
String *searchId = searchId_example; // Filter by specific id (optional) (default to null)

// Retrieve imported-cluster by given id
[apiInstance importedClusterDetailsWith:id
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
              completionHandler: ^(ImportedClusterList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var id = 56; // {Integer} Imported cluster id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Row offset for pagination
  'sortBy': sortBy_example, // {String} Column to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction, asc or desc
  'search': search_example, // {String} Free-text search over cluster names
  'searchId': searchId_example // {String} Filter by specific id
};

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

namespace Example
{
    public class importedClusterDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var id = 56;  // Integer | Imported cluster id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Row offset for pagination (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Column to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction, asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search over cluster names (optional)  (default to null)
            var searchId = searchId_example;  // String | Filter by specific id (optional)  (default to null)

            try {
                // Retrieve imported-cluster by given id
                ImportedClusterList result = apiInstance.importedClusterDetails(id, limit, offset, sortBy, sortDirection, search, searchId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$id = 56; // Integer | Imported cluster id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Row offset for pagination
$sortBy = sortBy_example; // String | Column to sort by
$sortDirection = sortDirection_example; // String | Sort direction, asc or desc
$search = search_example; // String | Free-text search over cluster names
$searchId = searchId_example; // String | Filter by specific id

try {
    $result = $api_instance->importedClusterDetails($id, $limit, $offset, $sortBy, $sortDirection, $search, $searchId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $id = 56; # Integer | Imported cluster id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Row offset for pagination
my $sortBy = sortBy_example; # String | Column to sort by
my $sortDirection = sortDirection_example; # String | Sort direction, asc or desc
my $search = search_example; # String | Free-text search over cluster names
my $searchId = searchId_example; # String | Filter by specific id

eval {
    my $result = $api_instance->importedClusterDetails(id => $id, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
id = 56 # Integer | Imported cluster id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Row offset for pagination (optional) (default to null)
sortBy = sortBy_example # String | Column to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction, asc or desc (optional) (default to null)
search = search_example # String | Free-text search over cluster names (optional) (default to null)
searchId = searchId_example # String | Filter by specific id (optional) (default to null)

try:
    # Retrieve imported-cluster by given id
    api_response = api_instance.imported_cluster_details(id, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterDetails: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let id = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterDetails(id, limit, offset, sortBy, sortDirection, search, searchId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Imported cluster id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Row offset for pagination
SortBy
String
Column to sort by
SortDirection
String
Sort direction, asc or desc
Search
SearchId
String
Filter by specific id

Responses


importedClusterDisableBackup

Disable backup for imported cluster


/api/v1/imported-cluster/disable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/imported-cluster/disable-backup" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterDisableBackupCommand importedClusterDisableBackupCommand = ; // ImportedClusterDisableBackupCommand | 

        try {
            Object result = apiInstance.importedClusterDisableBackup(importedClusterDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDisableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportedClusterDisableBackupCommand importedClusterDisableBackupCommand = new ImportedClusterDisableBackupCommand(); // ImportedClusterDisableBackupCommand | 

try {
    final result = await api_instance.importedClusterDisableBackup(importedClusterDisableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterDisableBackup: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterDisableBackupCommand importedClusterDisableBackupCommand = ; // ImportedClusterDisableBackupCommand | 

        try {
            Object result = apiInstance.importedClusterDisableBackup(importedClusterDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDisableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
ImportedClusterDisableBackupCommand *importedClusterDisableBackupCommand = ; //  (optional)

// Disable backup for imported cluster
[apiInstance importedClusterDisableBackupWith:importedClusterDisableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var opts = {
  'importedClusterDisableBackupCommand':  // {ImportedClusterDisableBackupCommand} 
};

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

namespace Example
{
    public class importedClusterDisableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var importedClusterDisableBackupCommand = new ImportedClusterDisableBackupCommand(); // ImportedClusterDisableBackupCommand |  (optional) 

            try {
                // Disable backup for imported cluster
                Object result = apiInstance.importedClusterDisableBackup(importedClusterDisableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterDisableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$importedClusterDisableBackupCommand = ; // ImportedClusterDisableBackupCommand | 

try {
    $result = $api_instance->importedClusterDisableBackup($importedClusterDisableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterDisableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $importedClusterDisableBackupCommand = WWW::OPenAPIClient::Object::ImportedClusterDisableBackupCommand->new(); # ImportedClusterDisableBackupCommand | 

eval {
    my $result = $api_instance->importedClusterDisableBackup(importedClusterDisableBackupCommand => $importedClusterDisableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterDisableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
importedClusterDisableBackupCommand =  # ImportedClusterDisableBackupCommand |  (optional)

try:
    # Disable backup for imported cluster
    api_response = api_instance.imported_cluster_disable_backup(importedClusterDisableBackupCommand=importedClusterDisableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterDisableBackup: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let importedClusterDisableBackupCommand = ; // ImportedClusterDisableBackupCommand

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterDisableBackup(importedClusterDisableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importedClusterDisableBackupCommand

Responses


importedClusterDisableMonitoring

Disable monitoring for imported cluster


/api/v1/imported-cluster/disable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/imported-cluster/disable-monitoring" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterDisableMonitoringCommand importedClusterDisableMonitoringCommand = ; // ImportedClusterDisableMonitoringCommand | 

        try {
            Object result = apiInstance.importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDisableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportedClusterDisableMonitoringCommand importedClusterDisableMonitoringCommand = new ImportedClusterDisableMonitoringCommand(); // ImportedClusterDisableMonitoringCommand | 

try {
    final result = await api_instance.importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterDisableMonitoring: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterDisableMonitoringCommand importedClusterDisableMonitoringCommand = ; // ImportedClusterDisableMonitoringCommand | 

        try {
            Object result = apiInstance.importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterDisableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
ImportedClusterDisableMonitoringCommand *importedClusterDisableMonitoringCommand = ; //  (optional)

// Disable monitoring for imported cluster
[apiInstance importedClusterDisableMonitoringWith:importedClusterDisableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var opts = {
  'importedClusterDisableMonitoringCommand':  // {ImportedClusterDisableMonitoringCommand} 
};

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

namespace Example
{
    public class importedClusterDisableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var importedClusterDisableMonitoringCommand = new ImportedClusterDisableMonitoringCommand(); // ImportedClusterDisableMonitoringCommand |  (optional) 

            try {
                // Disable monitoring for imported cluster
                Object result = apiInstance.importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterDisableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$importedClusterDisableMonitoringCommand = ; // ImportedClusterDisableMonitoringCommand | 

try {
    $result = $api_instance->importedClusterDisableMonitoring($importedClusterDisableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterDisableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $importedClusterDisableMonitoringCommand = WWW::OPenAPIClient::Object::ImportedClusterDisableMonitoringCommand->new(); # ImportedClusterDisableMonitoringCommand | 

eval {
    my $result = $api_instance->importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand => $importedClusterDisableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterDisableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
importedClusterDisableMonitoringCommand =  # ImportedClusterDisableMonitoringCommand |  (optional)

try:
    # Disable monitoring for imported cluster
    api_response = api_instance.imported_cluster_disable_monitoring(importedClusterDisableMonitoringCommand=importedClusterDisableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterDisableMonitoring: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let importedClusterDisableMonitoringCommand = ; // ImportedClusterDisableMonitoringCommand

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterDisableMonitoring(importedClusterDisableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importedClusterDisableMonitoringCommand

Responses


importedClusterEnableBackup

Enable backup for imported cluster


/api/v1/imported-cluster/enable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/imported-cluster/enable-backup" \
 -d '{
  "projectId" : 0,
  "backupCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterEnableBackupCommand importedClusterEnableBackupCommand = ; // ImportedClusterEnableBackupCommand | 

        try {
            Object result = apiInstance.importedClusterEnableBackup(importedClusterEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterEnableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportedClusterEnableBackupCommand importedClusterEnableBackupCommand = new ImportedClusterEnableBackupCommand(); // ImportedClusterEnableBackupCommand | 

try {
    final result = await api_instance.importedClusterEnableBackup(importedClusterEnableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterEnableBackup: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterEnableBackupCommand importedClusterEnableBackupCommand = ; // ImportedClusterEnableBackupCommand | 

        try {
            Object result = apiInstance.importedClusterEnableBackup(importedClusterEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterEnableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
ImportedClusterEnableBackupCommand *importedClusterEnableBackupCommand = ; //  (optional)

// Enable backup for imported cluster
[apiInstance importedClusterEnableBackupWith:importedClusterEnableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var opts = {
  'importedClusterEnableBackupCommand':  // {ImportedClusterEnableBackupCommand} 
};

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

namespace Example
{
    public class importedClusterEnableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var importedClusterEnableBackupCommand = new ImportedClusterEnableBackupCommand(); // ImportedClusterEnableBackupCommand |  (optional) 

            try {
                // Enable backup for imported cluster
                Object result = apiInstance.importedClusterEnableBackup(importedClusterEnableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterEnableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$importedClusterEnableBackupCommand = ; // ImportedClusterEnableBackupCommand | 

try {
    $result = $api_instance->importedClusterEnableBackup($importedClusterEnableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterEnableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $importedClusterEnableBackupCommand = WWW::OPenAPIClient::Object::ImportedClusterEnableBackupCommand->new(); # ImportedClusterEnableBackupCommand | 

eval {
    my $result = $api_instance->importedClusterEnableBackup(importedClusterEnableBackupCommand => $importedClusterEnableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterEnableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
importedClusterEnableBackupCommand =  # ImportedClusterEnableBackupCommand |  (optional)

try:
    # Enable backup for imported cluster
    api_response = api_instance.imported_cluster_enable_backup(importedClusterEnableBackupCommand=importedClusterEnableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterEnableBackup: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let importedClusterEnableBackupCommand = ; // ImportedClusterEnableBackupCommand

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterEnableBackup(importedClusterEnableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importedClusterEnableBackupCommand

Responses


importedClusterEnableMonitoring

Enable monitoring for imported cluster


/api/v1/imported-cluster/enable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/imported-cluster/enable-monitoring" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ImportedClusterApi;

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

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterEnableMonitoringCommand importedClusterEnableMonitoringCommand = ; // ImportedClusterEnableMonitoringCommand | 

        try {
            Object result = apiInstance.importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterEnableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ImportedClusterEnableMonitoringCommand importedClusterEnableMonitoringCommand = new ImportedClusterEnableMonitoringCommand(); // ImportedClusterEnableMonitoringCommand | 

try {
    final result = await api_instance.importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->importedClusterEnableMonitoring: $e\n');
}

import org.openapitools.client.api.ImportedClusterApi;

public class ImportedClusterApiExample {
    public static void main(String[] args) {
        ImportedClusterApi apiInstance = new ImportedClusterApi();
        ImportedClusterEnableMonitoringCommand importedClusterEnableMonitoringCommand = ; // ImportedClusterEnableMonitoringCommand | 

        try {
            Object result = apiInstance.importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ImportedClusterApi#importedClusterEnableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ImportedClusterApi *apiInstance = [[ImportedClusterApi alloc] init];
ImportedClusterEnableMonitoringCommand *importedClusterEnableMonitoringCommand = ; //  (optional)

// Enable monitoring for imported cluster
[apiInstance importedClusterEnableMonitoringWith:importedClusterEnableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ImportedClusterApi()
var opts = {
  'importedClusterEnableMonitoringCommand':  // {ImportedClusterEnableMonitoringCommand} 
};

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

namespace Example
{
    public class importedClusterEnableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ImportedClusterApi();
            var importedClusterEnableMonitoringCommand = new ImportedClusterEnableMonitoringCommand(); // ImportedClusterEnableMonitoringCommand |  (optional) 

            try {
                // Enable monitoring for imported cluster
                Object result = apiInstance.importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ImportedClusterApi.importedClusterEnableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ImportedClusterApi();
$importedClusterEnableMonitoringCommand = ; // ImportedClusterEnableMonitoringCommand | 

try {
    $result = $api_instance->importedClusterEnableMonitoring($importedClusterEnableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportedClusterApi->importedClusterEnableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ImportedClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ImportedClusterApi->new();
my $importedClusterEnableMonitoringCommand = WWW::OPenAPIClient::Object::ImportedClusterEnableMonitoringCommand->new(); # ImportedClusterEnableMonitoringCommand | 

eval {
    my $result = $api_instance->importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand => $importedClusterEnableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ImportedClusterApi->importedClusterEnableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ImportedClusterApi()
importedClusterEnableMonitoringCommand =  # ImportedClusterEnableMonitoringCommand |  (optional)

try:
    # Enable monitoring for imported cluster
    api_response = api_instance.imported_cluster_enable_monitoring(importedClusterEnableMonitoringCommand=importedClusterEnableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImportedClusterApi->importedClusterEnableMonitoring: %s\n" % e)
extern crate ImportedClusterApi;

pub fn main() {
    let importedClusterEnableMonitoringCommand = ; // ImportedClusterEnableMonitoringCommand

    let mut context = ImportedClusterApi::Context::default();
    let result = client.importedClusterEnableMonitoring(importedClusterEnableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
importedClusterEnableMonitoringCommand

Responses


Infra

infraDetails

Retrieve infra details


/api/v1/infra/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/infra/details?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InfraApi;

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

public class InfraApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InfraApi apiInstance = new InfraApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            CloudCoreQuotaList result = apiInstance.infraDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfraApi#infraDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Organization id, positive integer

try {
    final result = await api_instance.infraDetails(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->infraDetails: $e\n');
}

import org.openapitools.client.api.InfraApi;

public class InfraApiExample {
    public static void main(String[] args) {
        InfraApi apiInstance = new InfraApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            CloudCoreQuotaList result = apiInstance.infraDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfraApi#infraDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InfraApi *apiInstance = [[InfraApi alloc] init];
Integer *organizationId = 56; // Organization id, positive integer (default to null)

// Retrieve infra details
[apiInstance infraDetailsWith:organizationId
              completionHandler: ^(CloudCoreQuotaList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InfraApi()
var organizationId = 56; // {Integer} Organization id, positive integer

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

namespace Example
{
    public class infraDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InfraApi();
            var organizationId = 56;  // Integer | Organization id, positive integer (default to null)

            try {
                // Retrieve infra details
                CloudCoreQuotaList result = apiInstance.infraDetails(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InfraApi.infraDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InfraApi();
$organizationId = 56; // Integer | Organization id, positive integer

try {
    $result = $api_instance->infraDetails($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InfraApi->infraDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InfraApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InfraApi->new();
my $organizationId = 56; # Integer | Organization id, positive integer

eval {
    my $result = $api_instance->infraDetails(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfraApi->infraDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InfraApi()
organizationId = 56 # Integer | Organization id, positive integer (default to null)

try:
    # Retrieve infra details
    api_response = api_instance.infra_details(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfraApi->infraDetails: %s\n" % e)
extern crate InfraApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = InfraApi::Context::default();
    let result = client.infraDetails(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId*
Integer (int32)
Organization id, positive integer
Required

Responses


Internal

internalAlertsList

Retrieve alerts list


/api/v1/internal/alerts

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/alerts?ProjectId=56&Limit=56&LastAlertId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer lastAlertId = 56; // Integer | Return alerts after this id (cursor)

        try {
            array[InternalAlertDto] result = apiInstance.internalAlertsList(projectId, limit, lastAlertId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalAlertsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer lastAlertId = new Integer(); // Integer | Return alerts after this id (cursor)

try {
    final result = await api_instance.internalAlertsList(projectId, limit, lastAlertId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAlertsList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer lastAlertId = 56; // Integer | Return alerts after this id (cursor)

        try {
            array[InternalAlertDto] result = apiInstance.internalAlertsList(projectId, limit, lastAlertId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalAlertsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size (default to null)
Integer *lastAlertId = 56; // Return alerts after this id (cursor) (optional) (default to null)

// Retrieve alerts list
[apiInstance internalAlertsListWith:projectId
    limit:limit
    lastAlertId:lastAlertId
              completionHandler: ^(array[InternalAlertDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var projectId = 56; // {Integer} Project id, positive integer
var limit = 56; // {Integer} Page size
var opts = {
  'lastAlertId': 56 // {Integer} Return alerts after this id (cursor)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalAlertsList(projectId, limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalAlertsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (default to null)
            var lastAlertId = 56;  // Integer | Return alerts after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve alerts list
                array[InternalAlertDto] result = apiInstance.internalAlertsList(projectId, limit, lastAlertId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalAlertsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size
$lastAlertId = 56; // Integer | Return alerts after this id (cursor)

try {
    $result = $api_instance->internalAlertsList($projectId, $limit, $lastAlertId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalAlertsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size
my $lastAlertId = 56; # Integer | Return alerts after this id (cursor)

eval {
    my $result = $api_instance->internalAlertsList(projectId => $projectId, limit => $limit, lastAlertId => $lastAlertId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalAlertsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size (default to null)
lastAlertId = 56 # Integer | Return alerts after this id (cursor) (optional) (default to null)

try:
    # Retrieve alerts list
    api_response = api_instance.internal_alerts_list(projectId, limit, lastAlertId=lastAlertId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalAlertsList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let lastAlertId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalAlertsList(projectId, limit, lastAlertId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
ProjectId*
Integer (int32)
Project id, positive integer
Required
Limit*
Integer (int32)
Page size
Required
LastAlertId
Integer (int32)
Return alerts after this id (cursor)

Responses


internalExporterDomainsList

Retrieve exporter domains list


/api/v1/internal/prometheus-exporter/domains

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/prometheus-exporter/domains?Limit=56&LastDomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastDomainId = 56; // Integer | Return domains after this id (cursor)

        try {
            array[InternalExporterDomainDto] result = apiInstance.internalExporterDomainsList(limit, lastDomainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterDomainsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 5000
final Integer lastDomainId = new Integer(); // Integer | Return domains after this id (cursor)

try {
    final result = await api_instance.internalExporterDomainsList(limit, lastDomainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalExporterDomainsList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastDomainId = 56; // Integer | Return domains after this id (cursor)

        try {
            array[InternalExporterDomainDto] result = apiInstance.internalExporterDomainsList(limit, lastDomainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterDomainsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size; defaults to 5000 (optional) (default to 5000)
Integer *lastDomainId = 56; // Return domains after this id (cursor) (optional) (default to null)

// Retrieve exporter domains list
[apiInstance internalExporterDomainsListWith:limit
    lastDomainId:lastDomainId
              completionHandler: ^(array[InternalExporterDomainDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 5000
  'lastDomainId': 56 // {Integer} Return domains after this id (cursor)
};

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

namespace Example
{
    public class internalExporterDomainsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size; defaults to 5000 (optional)  (default to 5000)
            var lastDomainId = 56;  // Integer | Return domains after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve exporter domains list
                array[InternalExporterDomainDto] result = apiInstance.internalExporterDomainsList(limit, lastDomainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalExporterDomainsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size; defaults to 5000
$lastDomainId = 56; // Integer | Return domains after this id (cursor)

try {
    $result = $api_instance->internalExporterDomainsList($limit, $lastDomainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalExporterDomainsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size; defaults to 5000
my $lastDomainId = 56; # Integer | Return domains after this id (cursor)

eval {
    my $result = $api_instance->internalExporterDomainsList(limit => $limit, lastDomainId => $lastDomainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalExporterDomainsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size; defaults to 5000 (optional) (default to 5000)
lastDomainId = 56 # Integer | Return domains after this id (cursor) (optional) (default to null)

try:
    # Retrieve exporter domains list
    api_response = api_instance.internal_exporter_domains_list(limit=limit, lastDomainId=lastDomainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalExporterDomainsList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let lastDomainId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalExporterDomainsList(limit, lastDomainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 5000
LastDomainId
Integer (int32)
Return domains after this id (cursor)

Responses


internalExporterProjectsList

Retrieve exporter projects list


/api/v1/internal/prometheus-exporter/projects

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/prometheus-exporter/projects?Limit=56&LastProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[InternalExporterProjectDto] result = apiInstance.internalExporterProjectsList(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterProjectsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 5000
final Integer lastProjectId = new Integer(); // Integer | Return projects after this id (cursor)

try {
    final result = await api_instance.internalExporterProjectsList(limit, lastProjectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalExporterProjectsList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[InternalExporterProjectDto] result = apiInstance.internalExporterProjectsList(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterProjectsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size; defaults to 5000 (optional) (default to 5000)
Integer *lastProjectId = 56; // Return projects after this id (cursor) (optional) (default to null)

// Retrieve exporter projects list
[apiInstance internalExporterProjectsListWith:limit
    lastProjectId:lastProjectId
              completionHandler: ^(array[InternalExporterProjectDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 5000
  'lastProjectId': 56 // {Integer} Return projects after this id (cursor)
};

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

namespace Example
{
    public class internalExporterProjectsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size; defaults to 5000 (optional)  (default to 5000)
            var lastProjectId = 56;  // Integer | Return projects after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve exporter projects list
                array[InternalExporterProjectDto] result = apiInstance.internalExporterProjectsList(limit, lastProjectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalExporterProjectsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size; defaults to 5000
$lastProjectId = 56; // Integer | Return projects after this id (cursor)

try {
    $result = $api_instance->internalExporterProjectsList($limit, $lastProjectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalExporterProjectsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size; defaults to 5000
my $lastProjectId = 56; # Integer | Return projects after this id (cursor)

eval {
    my $result = $api_instance->internalExporterProjectsList(limit => $limit, lastProjectId => $lastProjectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalExporterProjectsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size; defaults to 5000 (optional) (default to 5000)
lastProjectId = 56 # Integer | Return projects after this id (cursor) (optional) (default to null)

try:
    # Retrieve exporter projects list
    api_response = api_instance.internal_exporter_projects_list(limit=limit, lastProjectId=lastProjectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalExporterProjectsList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let lastProjectId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalExporterProjectsList(limit, lastProjectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 5000
LastProjectId
Integer (int32)
Return projects after this id (cursor)

Responses


internalExporterServersList

Retrieve exporter servers list


/api/v1/internal/prometheus-exporter/servers

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/prometheus-exporter/servers?Limit=56&LastServerId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastServerId = 56; // Integer | Return servers after this id (cursor)

        try {
            array[InternalExporterServerDto] result = apiInstance.internalExporterServersList(limit, lastServerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterServersList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 5000
final Integer lastServerId = new Integer(); // Integer | Return servers after this id (cursor)

try {
    final result = await api_instance.internalExporterServersList(limit, lastServerId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalExporterServersList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastServerId = 56; // Integer | Return servers after this id (cursor)

        try {
            array[InternalExporterServerDto] result = apiInstance.internalExporterServersList(limit, lastServerId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterServersList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size; defaults to 5000 (optional) (default to 5000)
Integer *lastServerId = 56; // Return servers after this id (cursor) (optional) (default to null)

// Retrieve exporter servers list
[apiInstance internalExporterServersListWith:limit
    lastServerId:lastServerId
              completionHandler: ^(array[InternalExporterServerDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 5000
  'lastServerId': 56 // {Integer} Return servers after this id (cursor)
};

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

namespace Example
{
    public class internalExporterServersListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size; defaults to 5000 (optional)  (default to 5000)
            var lastServerId = 56;  // Integer | Return servers after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve exporter servers list
                array[InternalExporterServerDto] result = apiInstance.internalExporterServersList(limit, lastServerId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalExporterServersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size; defaults to 5000
$lastServerId = 56; // Integer | Return servers after this id (cursor)

try {
    $result = $api_instance->internalExporterServersList($limit, $lastServerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalExporterServersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size; defaults to 5000
my $lastServerId = 56; # Integer | Return servers after this id (cursor)

eval {
    my $result = $api_instance->internalExporterServersList(limit => $limit, lastServerId => $lastServerId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalExporterServersList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size; defaults to 5000 (optional) (default to 5000)
lastServerId = 56 # Integer | Return servers after this id (cursor) (optional) (default to null)

try:
    # Retrieve exporter servers list
    api_response = api_instance.internal_exporter_servers_list(limit=limit, lastServerId=lastServerId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalExporterServersList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let lastServerId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalExporterServersList(limit, lastServerId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 5000
LastServerId
Integer (int32)
Return servers after this id (cursor)

Responses


internalExporterStandaloneVmsList

Retrieve exporter standalone VMs list


/api/v1/internal/prometheus-exporter/standalone

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/prometheus-exporter/standalone?Limit=56&LastStandaloneVmId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastStandaloneVmId = 56; // Integer | Return standalone VMs after this id (cursor)

        try {
            array[InternalExporterStandaloneVmDto] result = apiInstance.internalExporterStandaloneVmsList(limit, lastStandaloneVmId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterStandaloneVmsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 5000
final Integer lastStandaloneVmId = new Integer(); // Integer | Return standalone VMs after this id (cursor)

try {
    final result = await api_instance.internalExporterStandaloneVmsList(limit, lastStandaloneVmId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalExporterStandaloneVmsList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastStandaloneVmId = 56; // Integer | Return standalone VMs after this id (cursor)

        try {
            array[InternalExporterStandaloneVmDto] result = apiInstance.internalExporterStandaloneVmsList(limit, lastStandaloneVmId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalExporterStandaloneVmsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size; defaults to 5000 (optional) (default to 5000)
Integer *lastStandaloneVmId = 56; // Return standalone VMs after this id (cursor) (optional) (default to null)

// Retrieve exporter standalone VMs list
[apiInstance internalExporterStandaloneVmsListWith:limit
    lastStandaloneVmId:lastStandaloneVmId
              completionHandler: ^(array[InternalExporterStandaloneVmDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 5000
  'lastStandaloneVmId': 56 // {Integer} Return standalone VMs after this id (cursor)
};

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

namespace Example
{
    public class internalExporterStandaloneVmsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size; defaults to 5000 (optional)  (default to 5000)
            var lastStandaloneVmId = 56;  // Integer | Return standalone VMs after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve exporter standalone VMs list
                array[InternalExporterStandaloneVmDto] result = apiInstance.internalExporterStandaloneVmsList(limit, lastStandaloneVmId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalExporterStandaloneVmsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size; defaults to 5000
$lastStandaloneVmId = 56; // Integer | Return standalone VMs after this id (cursor)

try {
    $result = $api_instance->internalExporterStandaloneVmsList($limit, $lastStandaloneVmId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalExporterStandaloneVmsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size; defaults to 5000
my $lastStandaloneVmId = 56; # Integer | Return standalone VMs after this id (cursor)

eval {
    my $result = $api_instance->internalExporterStandaloneVmsList(limit => $limit, lastStandaloneVmId => $lastStandaloneVmId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalExporterStandaloneVmsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size; defaults to 5000 (optional) (default to 5000)
lastStandaloneVmId = 56 # Integer | Return standalone VMs after this id (cursor) (optional) (default to null)

try:
    # Retrieve exporter standalone VMs list
    api_response = api_instance.internal_exporter_standalone_vms_list(limit=limit, lastStandaloneVmId=lastStandaloneVmId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalExporterStandaloneVmsList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let lastStandaloneVmId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalExporterStandaloneVmsList(limit, lastStandaloneVmId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 5000
LastStandaloneVmId
Integer (int32)
Return standalone VMs after this id (cursor)

Responses


internalGetUserInfo

Get user info


/api/v1/internal/get-user-info

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/internal/get-user-info" \
 -d '{
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        InternalUserInfoListCommand internalUserInfoListCommand = ; // InternalUserInfoListCommand | 

        try {
            UserAuthContext result = apiInstance.internalGetUserInfo(internalUserInfoListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalGetUserInfo");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final InternalUserInfoListCommand internalUserInfoListCommand = new InternalUserInfoListCommand(); // InternalUserInfoListCommand | 

try {
    final result = await api_instance.internalGetUserInfo(internalUserInfoListCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalGetUserInfo: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        InternalUserInfoListCommand internalUserInfoListCommand = ; // InternalUserInfoListCommand | 

        try {
            UserAuthContext result = apiInstance.internalGetUserInfo(internalUserInfoListCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalGetUserInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
InternalUserInfoListCommand *internalUserInfoListCommand = ; //  (optional)

// Get user info
[apiInstance internalGetUserInfoWith:internalUserInfoListCommand
              completionHandler: ^(UserAuthContext output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var opts = {
  'internalUserInfoListCommand':  // {InternalUserInfoListCommand} 
};

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

namespace Example
{
    public class internalGetUserInfoExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var internalUserInfoListCommand = new InternalUserInfoListCommand(); // InternalUserInfoListCommand |  (optional) 

            try {
                // Get user info
                UserAuthContext result = apiInstance.internalGetUserInfo(internalUserInfoListCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalGetUserInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$internalUserInfoListCommand = ; // InternalUserInfoListCommand | 

try {
    $result = $api_instance->internalGetUserInfo($internalUserInfoListCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalGetUserInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $internalUserInfoListCommand = WWW::OPenAPIClient::Object::InternalUserInfoListCommand->new(); # InternalUserInfoListCommand | 

eval {
    my $result = $api_instance->internalGetUserInfo(internalUserInfoListCommand => $internalUserInfoListCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalGetUserInfo: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
internalUserInfoListCommand =  # InternalUserInfoListCommand |  (optional)

try:
    # Get user info
    api_response = api_instance.internal_get_user_info(internalUserInfoListCommand=internalUserInfoListCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalGetUserInfo: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let internalUserInfoListCommand = ; // InternalUserInfoListCommand

    let mut context = InternalApi::Context::default();
    let result = client.internalGetUserInfo(internalUserInfoListCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
internalUserInfoListCommand

Responses


internalProjectsForBilling

Retrieve projects list for internal billing


/api/v1/internal/projects-for-billing

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/projects-for-billing?Limit=56&LastProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[ProjectsForBillingDto] result = apiInstance.internalProjectsForBilling(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalProjectsForBilling");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer lastProjectId = new Integer(); // Integer | Return projects after this id (cursor)

try {
    final result = await api_instance.internalProjectsForBilling(limit, lastProjectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalProjectsForBilling: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[ProjectsForBillingDto] result = apiInstance.internalProjectsForBilling(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalProjectsForBilling");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size (default to null)
Integer *lastProjectId = 56; // Return projects after this id (cursor) (optional) (default to null)

// Retrieve projects list for internal billing
[apiInstance internalProjectsForBillingWith:limit
    lastProjectId:lastProjectId
              completionHandler: ^(array[ProjectsForBillingDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var limit = 56; // {Integer} Page size
var opts = {
  'lastProjectId': 56 // {Integer} Return projects after this id (cursor)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalProjectsForBilling(limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalProjectsForBillingExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size (default to null)
            var lastProjectId = 56;  // Integer | Return projects after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve projects list for internal billing
                array[ProjectsForBillingDto] result = apiInstance.internalProjectsForBilling(limit, lastProjectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalProjectsForBilling: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size
$lastProjectId = 56; // Integer | Return projects after this id (cursor)

try {
    $result = $api_instance->internalProjectsForBilling($limit, $lastProjectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalProjectsForBilling: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size
my $lastProjectId = 56; # Integer | Return projects after this id (cursor)

eval {
    my $result = $api_instance->internalProjectsForBilling(limit => $limit, lastProjectId => $lastProjectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalProjectsForBilling: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size (default to null)
lastProjectId = 56 # Integer | Return projects after this id (cursor) (optional) (default to null)

try:
    # Retrieve projects list for internal billing
    api_response = api_instance.internal_projects_for_billing(limit, lastProjectId=lastProjectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalProjectsForBilling: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let lastProjectId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalProjectsForBilling(limit, lastProjectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit*
Integer (int32)
Page size
Required
LastProjectId
Integer (int32)
Return projects after this id (cursor)

Responses


internalProjectsList

Retrieve projects list


/api/v1/internal/projects

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/projects?Limit=56&ProjectId=56&LastProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalApi;

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

public class InternalApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size
        Integer projectId = 56; // Integer | Filter to a single project id
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[InternalProjectListDto] result = apiInstance.internalProjectsList(limit, projectId, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalProjectsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer projectId = new Integer(); // Integer | Filter to a single project id
final Integer lastProjectId = new Integer(); // Integer | Return projects after this id (cursor)

try {
    final result = await api_instance.internalProjectsList(limit, projectId, lastProjectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalProjectsList: $e\n');
}

import org.openapitools.client.api.InternalApi;

public class InternalApiExample {
    public static void main(String[] args) {
        InternalApi apiInstance = new InternalApi();
        Integer limit = 56; // Integer | Page size
        Integer projectId = 56; // Integer | Filter to a single project id
        Integer lastProjectId = 56; // Integer | Return projects after this id (cursor)

        try {
            array[InternalProjectListDto] result = apiInstance.internalProjectsList(limit, projectId, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalApi#internalProjectsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalApi *apiInstance = [[InternalApi alloc] init];
Integer *limit = 56; // Page size (default to null)
Integer *projectId = 56; // Filter to a single project id (optional) (default to null)
Integer *lastProjectId = 56; // Return projects after this id (cursor) (optional) (default to null)

// Retrieve projects list
[apiInstance internalProjectsListWith:limit
    projectId:projectId
    lastProjectId:lastProjectId
              completionHandler: ^(array[InternalProjectListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalApi()
var limit = 56; // {Integer} Page size
var opts = {
  'projectId': 56, // {Integer} Filter to a single project id
  'lastProjectId': 56 // {Integer} Return projects after this id (cursor)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalProjectsList(limit, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalProjectsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalApi();
            var limit = 56;  // Integer | Page size (default to null)
            var projectId = 56;  // Integer | Filter to a single project id (optional)  (default to null)
            var lastProjectId = 56;  // Integer | Return projects after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve projects list
                array[InternalProjectListDto] result = apiInstance.internalProjectsList(limit, projectId, lastProjectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalApi.internalProjectsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalApi();
$limit = 56; // Integer | Page size
$projectId = 56; // Integer | Filter to a single project id
$lastProjectId = 56; // Integer | Return projects after this id (cursor)

try {
    $result = $api_instance->internalProjectsList($limit, $projectId, $lastProjectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalApi->internalProjectsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalApi->new();
my $limit = 56; # Integer | Page size
my $projectId = 56; # Integer | Filter to a single project id
my $lastProjectId = 56; # Integer | Return projects after this id (cursor)

eval {
    my $result = $api_instance->internalProjectsList(limit => $limit, projectId => $projectId, lastProjectId => $lastProjectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalApi->internalProjectsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalApi()
limit = 56 # Integer | Page size (default to null)
projectId = 56 # Integer | Filter to a single project id (optional) (default to null)
lastProjectId = 56 # Integer | Return projects after this id (cursor) (optional) (default to null)

try:
    # Retrieve projects list
    api_response = api_instance.internal_projects_list(limit, projectId=projectId, lastProjectId=lastProjectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalApi->internalProjectsList: %s\n" % e)
extern crate InternalApi;

pub fn main() {
    let limit = 56; // Integer
    let projectId = 56; // Integer
    let lastProjectId = 56; // Integer

    let mut context = InternalApi::Context::default();
    let result = client.internalProjectsList(limit, projectId, lastProjectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit*
Integer (int32)
Page size
Required
ProjectId
Integer (int32)
Filter to a single project id
LastProjectId
Integer (int32)
Return projects after this id (cursor)

Responses


InternalAppRepositories

internalAppRepositoryDetails

Retrieve one app repository for the artifact tracker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/app-repositories/{appRepoId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/app-repositories/{appRepoId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalAppRepositoriesApi;

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

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 

        try {
            InternalAppRepositoryDto result = apiInstance.internalAppRepositoryDetails(appRepoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer appRepoId = new Integer(); // Integer | 

try {
    final result = await api_instance.internalAppRepositoryDetails(appRepoId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAppRepositoryDetails: $e\n');
}

import org.openapitools.client.api.InternalAppRepositoriesApi;

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 

        try {
            InternalAppRepositoryDto result = apiInstance.internalAppRepositoryDetails(appRepoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalAppRepositoriesApi *apiInstance = [[InternalAppRepositoriesApi alloc] init];
Integer *appRepoId = 56; //  (default to null)

// Retrieve one app repository for the artifact tracker
[apiInstance internalAppRepositoryDetailsWith:appRepoId
              completionHandler: ^(InternalAppRepositoryDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalAppRepositoriesApi()
var appRepoId = 56; // {Integer} 

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

namespace Example
{
    public class internalAppRepositoryDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalAppRepositoriesApi();
            var appRepoId = 56;  // Integer |  (default to null)

            try {
                // Retrieve one app repository for the artifact tracker
                InternalAppRepositoryDto result = apiInstance.internalAppRepositoryDetails(appRepoId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalAppRepositoriesApi.internalAppRepositoryDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalAppRepositoriesApi();
$appRepoId = 56; // Integer | 

try {
    $result = $api_instance->internalAppRepositoryDetails($appRepoId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalAppRepositoriesApi->internalAppRepositoryDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalAppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalAppRepositoriesApi->new();
my $appRepoId = 56; # Integer | 

eval {
    my $result = $api_instance->internalAppRepositoryDetails(appRepoId => $appRepoId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalAppRepositoriesApi->internalAppRepositoryDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalAppRepositoriesApi()
appRepoId = 56 # Integer |  (default to null)

try:
    # Retrieve one app repository for the artifact tracker
    api_response = api_instance.internal_app_repository_details(appRepoId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalAppRepositoriesApi->internalAppRepositoryDetails: %s\n" % e)
extern crate InternalAppRepositoriesApi;

pub fn main() {
    let appRepoId = 56; // Integer

    let mut context = InternalAppRepositoriesApi::Context::default();
    let result = client.internalAppRepositoryDetails(appRepoId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
appRepoId*
Integer (int32)
Required

Responses


internalAppRepositoryList

Retrieve app repositories for the artifact tracker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/app-repositories

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/app-repositories?Limit=56&AppRepoId=56&LastAppRepoId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalAppRepositoriesApi;

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

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer limit = 56; // Integer | Page size, from 1 through 500
        Integer appRepoId = 56; // Integer | Filter to a single app repository id
        Integer lastAppRepoId = 56; // Integer | Return app repositories after this id (cursor)

        try {
            array[InternalAppRepositoryDto] result = apiInstance.internalAppRepositoryList(limit, appRepoId, lastAppRepoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size, from 1 through 500
final Integer appRepoId = new Integer(); // Integer | Filter to a single app repository id
final Integer lastAppRepoId = new Integer(); // Integer | Return app repositories after this id (cursor)

try {
    final result = await api_instance.internalAppRepositoryList(limit, appRepoId, lastAppRepoId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAppRepositoryList: $e\n');
}

import org.openapitools.client.api.InternalAppRepositoriesApi;

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer limit = 56; // Integer | Page size, from 1 through 500
        Integer appRepoId = 56; // Integer | Filter to a single app repository id
        Integer lastAppRepoId = 56; // Integer | Return app repositories after this id (cursor)

        try {
            array[InternalAppRepositoryDto] result = apiInstance.internalAppRepositoryList(limit, appRepoId, lastAppRepoId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalAppRepositoriesApi *apiInstance = [[InternalAppRepositoriesApi alloc] init];
Integer *limit = 56; // Page size, from 1 through 500 (optional) (default to null)
Integer *appRepoId = 56; // Filter to a single app repository id (optional) (default to null)
Integer *lastAppRepoId = 56; // Return app repositories after this id (cursor) (optional) (default to null)

// Retrieve app repositories for the artifact tracker
[apiInstance internalAppRepositoryListWith:limit
    appRepoId:appRepoId
    lastAppRepoId:lastAppRepoId
              completionHandler: ^(array[InternalAppRepositoryDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalAppRepositoriesApi()
var opts = {
  'limit': 56, // {Integer} Page size, from 1 through 500
  'appRepoId': 56, // {Integer} Filter to a single app repository id
  'lastAppRepoId': 56 // {Integer} Return app repositories after this id (cursor)
};

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

namespace Example
{
    public class internalAppRepositoryListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalAppRepositoriesApi();
            var limit = 56;  // Integer | Page size, from 1 through 500 (optional)  (default to null)
            var appRepoId = 56;  // Integer | Filter to a single app repository id (optional)  (default to null)
            var lastAppRepoId = 56;  // Integer | Return app repositories after this id (cursor) (optional)  (default to null)

            try {
                // Retrieve app repositories for the artifact tracker
                array[InternalAppRepositoryDto] result = apiInstance.internalAppRepositoryList(limit, appRepoId, lastAppRepoId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalAppRepositoriesApi.internalAppRepositoryList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalAppRepositoriesApi();
$limit = 56; // Integer | Page size, from 1 through 500
$appRepoId = 56; // Integer | Filter to a single app repository id
$lastAppRepoId = 56; // Integer | Return app repositories after this id (cursor)

try {
    $result = $api_instance->internalAppRepositoryList($limit, $appRepoId, $lastAppRepoId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalAppRepositoriesApi->internalAppRepositoryList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalAppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalAppRepositoriesApi->new();
my $limit = 56; # Integer | Page size, from 1 through 500
my $appRepoId = 56; # Integer | Filter to a single app repository id
my $lastAppRepoId = 56; # Integer | Return app repositories after this id (cursor)

eval {
    my $result = $api_instance->internalAppRepositoryList(limit => $limit, appRepoId => $appRepoId, lastAppRepoId => $lastAppRepoId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalAppRepositoriesApi->internalAppRepositoryList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalAppRepositoriesApi()
limit = 56 # Integer | Page size, from 1 through 500 (optional) (default to null)
appRepoId = 56 # Integer | Filter to a single app repository id (optional) (default to null)
lastAppRepoId = 56 # Integer | Return app repositories after this id (cursor) (optional) (default to null)

try:
    # Retrieve app repositories for the artifact tracker
    api_response = api_instance.internal_app_repository_list(limit=limit, appRepoId=appRepoId, lastAppRepoId=lastAppRepoId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalAppRepositoriesApi->internalAppRepositoryList: %s\n" % e)
extern crate InternalAppRepositoriesApi;

pub fn main() {
    let limit = 56; // Integer
    let appRepoId = 56; // Integer
    let lastAppRepoId = 56; // Integer

    let mut context = InternalAppRepositoriesApi::Context::default();
    let result = client.internalAppRepositoryList(limit, appRepoId, lastAppRepoId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size, from 1 through 500
AppRepoId
Integer (int32)
Filter to a single app repository id
LastAppRepoId
Integer (int32)
Return app repositories after this id (cursor)

Responses


internalAppRepositoryPackageList

Retrieve packages in one app repository for the artifact tracker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/app-repositories/{appRepoId}/packages

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/app-repositories/{appRepoId}/packages?limit=56&packageId=56&lastPackageId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalAppRepositoriesApi;

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

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer packageId = 56; // Integer | 
        Integer lastPackageId = 56; // Integer | 

        try {
            array[InternalRegistryPackageDto] result = apiInstance.internalAppRepositoryPackageList(appRepoId, limit, packageId, lastPackageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryPackageList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer appRepoId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer packageId = new Integer(); // Integer | 
final Integer lastPackageId = new Integer(); // Integer | 

try {
    final result = await api_instance.internalAppRepositoryPackageList(appRepoId, limit, packageId, lastPackageId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAppRepositoryPackageList: $e\n');
}

import org.openapitools.client.api.InternalAppRepositoriesApi;

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer packageId = 56; // Integer | 
        Integer lastPackageId = 56; // Integer | 

        try {
            array[InternalRegistryPackageDto] result = apiInstance.internalAppRepositoryPackageList(appRepoId, limit, packageId, lastPackageId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryPackageList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalAppRepositoriesApi *apiInstance = [[InternalAppRepositoriesApi alloc] init];
Integer *appRepoId = 56; //  (default to null)
Integer *limit = 56; //  (optional) (default to null)
Integer *packageId = 56; //  (optional) (default to null)
Integer *lastPackageId = 56; //  (optional) (default to null)

// Retrieve packages in one app repository for the artifact tracker
[apiInstance internalAppRepositoryPackageListWith:appRepoId
    limit:limit
    packageId:packageId
    lastPackageId:lastPackageId
              completionHandler: ^(array[InternalRegistryPackageDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalAppRepositoriesApi()
var appRepoId = 56; // {Integer} 
var opts = {
  'limit': 56, // {Integer} 
  'packageId': 56, // {Integer} 
  'lastPackageId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalAppRepositoryPackageList(appRepoId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalAppRepositoryPackageListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalAppRepositoriesApi();
            var appRepoId = 56;  // Integer |  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var packageId = 56;  // Integer |  (optional)  (default to null)
            var lastPackageId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve packages in one app repository for the artifact tracker
                array[InternalRegistryPackageDto] result = apiInstance.internalAppRepositoryPackageList(appRepoId, limit, packageId, lastPackageId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalAppRepositoriesApi.internalAppRepositoryPackageList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalAppRepositoriesApi();
$appRepoId = 56; // Integer | 
$limit = 56; // Integer | 
$packageId = 56; // Integer | 
$lastPackageId = 56; // Integer | 

try {
    $result = $api_instance->internalAppRepositoryPackageList($appRepoId, $limit, $packageId, $lastPackageId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalAppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalAppRepositoriesApi->new();
my $appRepoId = 56; # Integer | 
my $limit = 56; # Integer | 
my $packageId = 56; # Integer | 
my $lastPackageId = 56; # Integer | 

eval {
    my $result = $api_instance->internalAppRepositoryPackageList(appRepoId => $appRepoId, limit => $limit, packageId => $packageId, lastPackageId => $lastPackageId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalAppRepositoriesApi()
appRepoId = 56 # Integer |  (default to null)
limit = 56 # Integer |  (optional) (default to null)
packageId = 56 # Integer |  (optional) (default to null)
lastPackageId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve packages in one app repository for the artifact tracker
    api_response = api_instance.internal_app_repository_package_list(appRepoId, limit=limit, packageId=packageId, lastPackageId=lastPackageId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageList: %s\n" % e)
extern crate InternalAppRepositoriesApi;

pub fn main() {
    let appRepoId = 56; // Integer
    let limit = 56; // Integer
    let packageId = 56; // Integer
    let lastPackageId = 56; // Integer

    let mut context = InternalAppRepositoriesApi::Context::default();
    let result = client.internalAppRepositoryPackageList(appRepoId, limit, packageId, lastPackageId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
appRepoId*
Integer (int32)
Required
Query parameters
Name Description
limit
Integer (int32)
packageId
Integer (int32)
lastPackageId
Integer (int32)

Responses


internalAppRepositoryPackageVersionList

Retrieve package versions for the artifact tracker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/app-repositories/{appRepoId}/packages/{packageId}/versions

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/app-repositories/{appRepoId}/packages/{packageId}/versions?limit=56&packageVersionId=56&lastPackageVersionId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalAppRepositoriesApi;

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

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        Integer packageId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer packageVersionId = 56; // Integer | 
        Integer lastPackageVersionId = 56; // Integer | 

        try {
            array[InternalRegistryPackageVersionDto] result = apiInstance.internalAppRepositoryPackageVersionList(appRepoId, packageId, limit, packageVersionId, lastPackageVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryPackageVersionList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer appRepoId = new Integer(); // Integer | 
final Integer packageId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer packageVersionId = new Integer(); // Integer | 
final Integer lastPackageVersionId = new Integer(); // Integer | 

try {
    final result = await api_instance.internalAppRepositoryPackageVersionList(appRepoId, packageId, limit, packageVersionId, lastPackageVersionId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAppRepositoryPackageVersionList: $e\n');
}

import org.openapitools.client.api.InternalAppRepositoriesApi;

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        Integer packageId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer packageVersionId = 56; // Integer | 
        Integer lastPackageVersionId = 56; // Integer | 

        try {
            array[InternalRegistryPackageVersionDto] result = apiInstance.internalAppRepositoryPackageVersionList(appRepoId, packageId, limit, packageVersionId, lastPackageVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositoryPackageVersionList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalAppRepositoriesApi *apiInstance = [[InternalAppRepositoriesApi alloc] init];
Integer *appRepoId = 56; //  (default to null)
Integer *packageId = 56; //  (default to null)
Integer *limit = 56; //  (optional) (default to null)
Integer *packageVersionId = 56; //  (optional) (default to null)
Integer *lastPackageVersionId = 56; //  (optional) (default to null)

// Retrieve package versions for the artifact tracker
[apiInstance internalAppRepositoryPackageVersionListWith:appRepoId
    packageId:packageId
    limit:limit
    packageVersionId:packageVersionId
    lastPackageVersionId:lastPackageVersionId
              completionHandler: ^(array[InternalRegistryPackageVersionDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalAppRepositoriesApi()
var appRepoId = 56; // {Integer} 
var packageId = 56; // {Integer} 
var opts = {
  'limit': 56, // {Integer} 
  'packageVersionId': 56, // {Integer} 
  'lastPackageVersionId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalAppRepositoryPackageVersionList(appRepoId, packageId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalAppRepositoryPackageVersionListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalAppRepositoriesApi();
            var appRepoId = 56;  // Integer |  (default to null)
            var packageId = 56;  // Integer |  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var packageVersionId = 56;  // Integer |  (optional)  (default to null)
            var lastPackageVersionId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve package versions for the artifact tracker
                array[InternalRegistryPackageVersionDto] result = apiInstance.internalAppRepositoryPackageVersionList(appRepoId, packageId, limit, packageVersionId, lastPackageVersionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalAppRepositoriesApi.internalAppRepositoryPackageVersionList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalAppRepositoriesApi();
$appRepoId = 56; // Integer | 
$packageId = 56; // Integer | 
$limit = 56; // Integer | 
$packageVersionId = 56; // Integer | 
$lastPackageVersionId = 56; // Integer | 

try {
    $result = $api_instance->internalAppRepositoryPackageVersionList($appRepoId, $packageId, $limit, $packageVersionId, $lastPackageVersionId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageVersionList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalAppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalAppRepositoriesApi->new();
my $appRepoId = 56; # Integer | 
my $packageId = 56; # Integer | 
my $limit = 56; # Integer | 
my $packageVersionId = 56; # Integer | 
my $lastPackageVersionId = 56; # Integer | 

eval {
    my $result = $api_instance->internalAppRepositoryPackageVersionList(appRepoId => $appRepoId, packageId => $packageId, limit => $limit, packageVersionId => $packageVersionId, lastPackageVersionId => $lastPackageVersionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageVersionList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalAppRepositoriesApi()
appRepoId = 56 # Integer |  (default to null)
packageId = 56 # Integer |  (default to null)
limit = 56 # Integer |  (optional) (default to null)
packageVersionId = 56 # Integer |  (optional) (default to null)
lastPackageVersionId = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve package versions for the artifact tracker
    api_response = api_instance.internal_app_repository_package_version_list(appRepoId, packageId, limit=limit, packageVersionId=packageVersionId, lastPackageVersionId=lastPackageVersionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalAppRepositoriesApi->internalAppRepositoryPackageVersionList: %s\n" % e)
extern crate InternalAppRepositoriesApi;

pub fn main() {
    let appRepoId = 56; // Integer
    let packageId = 56; // Integer
    let limit = 56; // Integer
    let packageVersionId = 56; // Integer
    let lastPackageVersionId = 56; // Integer

    let mut context = InternalAppRepositoriesApi::Context::default();
    let result = client.internalAppRepositoryPackageVersionList(appRepoId, packageId, limit, packageVersionId, lastPackageVersionId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
appRepoId*
Integer (int32)
Required
packageId*
Integer (int32)
Required
Query parameters
Name Description
limit
Integer (int32)
packageVersionId
Integer (int32)
lastPackageVersionId
Integer (int32)

Responses


internalAppRepositorySnapshot

Apply an app repository snapshot from the artifact tracker

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/app-repositories/{appRepoId}/snapshot

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/internal/app-repositories/{appRepoId}/snapshot" \
 -d '{
  "removeMissing" : false,
  "generatedAt" : "2000-01-23T04:56:07.000+00:00",
  "packages" : [ {
    "latestVersion" : "latestVersion",
    "versions" : [ {
      "valuesYaml" : "valuesYaml",
      "appVersion" : "appVersion",
      "contentUrl" : "contentUrl",
      "hasJsonSchema" : true,
      "relativePath" : "relativePath",
      "valuesSchema" : "",
      "deprecated" : true,
      "digest" : "digest",
      "signed" : true,
      "readme" : "readme",
      "version" : "version",
      "ts" : "2000-01-23T04:56:07.000+00:00"
    }, {
      "valuesYaml" : "valuesYaml",
      "appVersion" : "appVersion",
      "contentUrl" : "contentUrl",
      "hasJsonSchema" : true,
      "relativePath" : "relativePath",
      "valuesSchema" : "",
      "deprecated" : true,
      "digest" : "digest",
      "signed" : true,
      "readme" : "readme",
      "version" : "version",
      "ts" : "2000-01-23T04:56:07.000+00:00"
    } ],
    "deprecated" : true,
    "name" : "name",
    "externalId" : "externalId",
    "description" : "description",
    "signed" : true,
    "stars" : 0,
    "securityReportSummary" : "",
    "logoId" : "logoId"
  }, {
    "latestVersion" : "latestVersion",
    "versions" : [ {
      "valuesYaml" : "valuesYaml",
      "appVersion" : "appVersion",
      "contentUrl" : "contentUrl",
      "hasJsonSchema" : true,
      "relativePath" : "relativePath",
      "valuesSchema" : "",
      "deprecated" : true,
      "digest" : "digest",
      "signed" : true,
      "readme" : "readme",
      "version" : "version",
      "ts" : "2000-01-23T04:56:07.000+00:00"
    }, {
      "valuesYaml" : "valuesYaml",
      "appVersion" : "appVersion",
      "contentUrl" : "contentUrl",
      "hasJsonSchema" : true,
      "relativePath" : "relativePath",
      "valuesSchema" : "",
      "deprecated" : true,
      "digest" : "digest",
      "signed" : true,
      "readme" : "readme",
      "version" : "version",
      "ts" : "2000-01-23T04:56:07.000+00:00"
    } ],
    "deprecated" : true,
    "name" : "name",
    "externalId" : "externalId",
    "description" : "description",
    "signed" : true,
    "stars" : 0,
    "securityReportSummary" : "",
    "logoId" : "logoId"
  } ],
  "revision" : "revision"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalAppRepositoriesApi;

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

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        ArtifactSnapshot artifactSnapshot = ; // ArtifactSnapshot | 

        try {
            ArtifactSnapshotResult result = apiInstance.internalAppRepositorySnapshot(appRepoId, artifactSnapshot);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositorySnapshot");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer appRepoId = new Integer(); // Integer | 
final ArtifactSnapshot artifactSnapshot = new ArtifactSnapshot(); // ArtifactSnapshot | 

try {
    final result = await api_instance.internalAppRepositorySnapshot(appRepoId, artifactSnapshot);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalAppRepositorySnapshot: $e\n');
}

import org.openapitools.client.api.InternalAppRepositoriesApi;

public class InternalAppRepositoriesApiExample {
    public static void main(String[] args) {
        InternalAppRepositoriesApi apiInstance = new InternalAppRepositoriesApi();
        Integer appRepoId = 56; // Integer | 
        ArtifactSnapshot artifactSnapshot = ; // ArtifactSnapshot | 

        try {
            ArtifactSnapshotResult result = apiInstance.internalAppRepositorySnapshot(appRepoId, artifactSnapshot);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalAppRepositoriesApi#internalAppRepositorySnapshot");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalAppRepositoriesApi *apiInstance = [[InternalAppRepositoriesApi alloc] init];
Integer *appRepoId = 56; //  (default to null)
ArtifactSnapshot *artifactSnapshot = ; //  (optional)

// Apply an app repository snapshot from the artifact tracker
[apiInstance internalAppRepositorySnapshotWith:appRepoId
    artifactSnapshot:artifactSnapshot
              completionHandler: ^(ArtifactSnapshotResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalAppRepositoriesApi()
var appRepoId = 56; // {Integer} 
var opts = {
  'artifactSnapshot':  // {ArtifactSnapshot} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.internalAppRepositorySnapshot(appRepoId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class internalAppRepositorySnapshotExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalAppRepositoriesApi();
            var appRepoId = 56;  // Integer |  (default to null)
            var artifactSnapshot = new ArtifactSnapshot(); // ArtifactSnapshot |  (optional) 

            try {
                // Apply an app repository snapshot from the artifact tracker
                ArtifactSnapshotResult result = apiInstance.internalAppRepositorySnapshot(appRepoId, artifactSnapshot);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalAppRepositoriesApi.internalAppRepositorySnapshot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalAppRepositoriesApi();
$appRepoId = 56; // Integer | 
$artifactSnapshot = ; // ArtifactSnapshot | 

try {
    $result = $api_instance->internalAppRepositorySnapshot($appRepoId, $artifactSnapshot);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalAppRepositoriesApi->internalAppRepositorySnapshot: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalAppRepositoriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalAppRepositoriesApi->new();
my $appRepoId = 56; # Integer | 
my $artifactSnapshot = WWW::OPenAPIClient::Object::ArtifactSnapshot->new(); # ArtifactSnapshot | 

eval {
    my $result = $api_instance->internalAppRepositorySnapshot(appRepoId => $appRepoId, artifactSnapshot => $artifactSnapshot);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalAppRepositoriesApi->internalAppRepositorySnapshot: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalAppRepositoriesApi()
appRepoId = 56 # Integer |  (default to null)
artifactSnapshot =  # ArtifactSnapshot |  (optional)

try:
    # Apply an app repository snapshot from the artifact tracker
    api_response = api_instance.internal_app_repository_snapshot(appRepoId, artifactSnapshot=artifactSnapshot)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalAppRepositoriesApi->internalAppRepositorySnapshot: %s\n" % e)
extern crate InternalAppRepositoriesApi;

pub fn main() {
    let appRepoId = 56; // Integer
    let artifactSnapshot = ; // ArtifactSnapshot

    let mut context = InternalAppRepositoriesApi::Context::default();
    let result = client.internalAppRepositorySnapshot(appRepoId, artifactSnapshot, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
appRepoId*
Integer (int32)
Required
Body parameters
Name Description
artifactSnapshot

Responses


InternalCSKClusters

internalCskClusterDetails

Retrieve one CSK cluster managed by CCF

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/csk-clusters/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/csk-clusters/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalCSKClustersApi;

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

public class InternalCSKClustersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalCSKClustersApi apiInstance = new InternalCSKClustersApi();
        Integer projectId = 56; // Integer | 

        try {
            InternalCskClusterDetailsDto result = apiInstance.internalCskClusterDetails(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalCSKClustersApi#internalCskClusterDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.internalCskClusterDetails(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalCskClusterDetails: $e\n');
}

import org.openapitools.client.api.InternalCSKClustersApi;

public class InternalCSKClustersApiExample {
    public static void main(String[] args) {
        InternalCSKClustersApi apiInstance = new InternalCSKClustersApi();
        Integer projectId = 56; // Integer | 

        try {
            InternalCskClusterDetailsDto result = apiInstance.internalCskClusterDetails(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalCSKClustersApi#internalCskClusterDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalCSKClustersApi *apiInstance = [[InternalCSKClustersApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Retrieve one CSK cluster managed by CCF
[apiInstance internalCskClusterDetailsWith:projectId
              completionHandler: ^(InternalCskClusterDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalCSKClustersApi()
var projectId = 56; // {Integer} 

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

namespace Example
{
    public class internalCskClusterDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalCSKClustersApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Retrieve one CSK cluster managed by CCF
                InternalCskClusterDetailsDto result = apiInstance.internalCskClusterDetails(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalCSKClustersApi.internalCskClusterDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalCSKClustersApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->internalCskClusterDetails($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalCSKClustersApi->internalCskClusterDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalCSKClustersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalCSKClustersApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->internalCskClusterDetails(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalCSKClustersApi->internalCskClusterDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalCSKClustersApi()
projectId = 56 # Integer |  (default to null)

try:
    # Retrieve one CSK cluster managed by CCF
    api_response = api_instance.internal_csk_cluster_details(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalCSKClustersApi->internalCskClusterDetails: %s\n" % e)
extern crate InternalCSKClustersApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = InternalCSKClustersApi::Context::default();
    let result = client.internalCskClusterDetails(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


internalCskClusterList

List CSK clusters managed by CCF

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/internal/csk-clusters

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/internal/csk-clusters?Limit=56&LastProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InternalCSKClustersApi;

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

public class InternalCSKClustersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        InternalCSKClustersApi apiInstance = new InternalCSKClustersApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastProjectId = 56; // Integer | Return clusters after this project id (cursor)

        try {
            array[InternalCskClusterListDto] result = apiInstance.internalCskClusterList(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalCSKClustersApi#internalCskClusterList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size; defaults to 5000
final Integer lastProjectId = new Integer(); // Integer | Return clusters after this project id (cursor)

try {
    final result = await api_instance.internalCskClusterList(limit, lastProjectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->internalCskClusterList: $e\n');
}

import org.openapitools.client.api.InternalCSKClustersApi;

public class InternalCSKClustersApiExample {
    public static void main(String[] args) {
        InternalCSKClustersApi apiInstance = new InternalCSKClustersApi();
        Integer limit = 56; // Integer | Page size; defaults to 5000
        Integer lastProjectId = 56; // Integer | Return clusters after this project id (cursor)

        try {
            array[InternalCskClusterListDto] result = apiInstance.internalCskClusterList(limit, lastProjectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InternalCSKClustersApi#internalCskClusterList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
InternalCSKClustersApi *apiInstance = [[InternalCSKClustersApi alloc] init];
Integer *limit = 56; // Page size; defaults to 5000 (optional) (default to 5000)
Integer *lastProjectId = 56; // Return clusters after this project id (cursor) (optional) (default to null)

// List CSK clusters managed by CCF
[apiInstance internalCskClusterListWith:limit
    lastProjectId:lastProjectId
              completionHandler: ^(array[InternalCskClusterListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.InternalCSKClustersApi()
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 5000
  'lastProjectId': 56 // {Integer} Return clusters after this project id (cursor)
};

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

namespace Example
{
    public class internalCskClusterListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new InternalCSKClustersApi();
            var limit = 56;  // Integer | Page size; defaults to 5000 (optional)  (default to 5000)
            var lastProjectId = 56;  // Integer | Return clusters after this project id (cursor) (optional)  (default to null)

            try {
                // List CSK clusters managed by CCF
                array[InternalCskClusterListDto] result = apiInstance.internalCskClusterList(limit, lastProjectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InternalCSKClustersApi.internalCskClusterList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\InternalCSKClustersApi();
$limit = 56; // Integer | Page size; defaults to 5000
$lastProjectId = 56; // Integer | Return clusters after this project id (cursor)

try {
    $result = $api_instance->internalCskClusterList($limit, $lastProjectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling InternalCSKClustersApi->internalCskClusterList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::InternalCSKClustersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::InternalCSKClustersApi->new();
my $limit = 56; # Integer | Page size; defaults to 5000
my $lastProjectId = 56; # Integer | Return clusters after this project id (cursor)

eval {
    my $result = $api_instance->internalCskClusterList(limit => $limit, lastProjectId => $lastProjectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InternalCSKClustersApi->internalCskClusterList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.InternalCSKClustersApi()
limit = 56 # Integer | Page size; defaults to 5000 (optional) (default to 5000)
lastProjectId = 56 # Integer | Return clusters after this project id (cursor) (optional) (default to null)

try:
    # List CSK clusters managed by CCF
    api_response = api_instance.internal_csk_cluster_list(limit=limit, lastProjectId=lastProjectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InternalCSKClustersApi->internalCskClusterList: %s\n" % e)
extern crate InternalCSKClustersApi;

pub fn main() {
    let limit = 56; // Integer
    let lastProjectId = 56; // Integer

    let mut context = InternalCSKClustersApi::Context::default();
    let result = client.internalCskClusterList(limit, lastProjectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 5000
LastProjectId
Integer (int32)
Return clusters after this project id (cursor)

Responses


KubeConfig

kubeconfigCreate

Create kube config


/api/v1/kubeconfig

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig" \
 -d '{
  "isAccessibleForManager" : true,
  "name" : "name",
  "namespace" : "namespace",
  "isAccessibleForAll" : true,
  "kubeConfigRoleId" : 6,
  "projectId" : 0,
  "userId" : "userId",
  "ttl" : 1
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        CreateKubeConfigCommand createKubeConfigCommand = ; // CreateKubeConfigCommand | 

        try {
            ApiResponse result = apiInstance.kubeconfigCreate(createKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateKubeConfigCommand createKubeConfigCommand = new CreateKubeConfigCommand(); // CreateKubeConfigCommand | 

try {
    final result = await api_instance.kubeconfigCreate(createKubeConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigCreate: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        CreateKubeConfigCommand createKubeConfigCommand = ; // CreateKubeConfigCommand | 

        try {
            ApiResponse result = apiInstance.kubeconfigCreate(createKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
CreateKubeConfigCommand *createKubeConfigCommand = ; //  (optional)

// Create kube config
[apiInstance kubeconfigCreateWith:createKubeConfigCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'createKubeConfigCommand':  // {CreateKubeConfigCommand} 
};

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

namespace Example
{
    public class kubeconfigCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var createKubeConfigCommand = new CreateKubeConfigCommand(); // CreateKubeConfigCommand |  (optional) 

            try {
                // Create kube config
                ApiResponse result = apiInstance.kubeconfigCreate(createKubeConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$createKubeConfigCommand = ; // CreateKubeConfigCommand | 

try {
    $result = $api_instance->kubeconfigCreate($createKubeConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $createKubeConfigCommand = WWW::OPenAPIClient::Object::CreateKubeConfigCommand->new(); # CreateKubeConfigCommand | 

eval {
    my $result = $api_instance->kubeconfigCreate(createKubeConfigCommand => $createKubeConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
createKubeConfigCommand =  # CreateKubeConfigCommand |  (optional)

try:
    # Create kube config
    api_response = api_instance.kubeconfig_create(createKubeConfigCommand=createKubeConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigCreate: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let createKubeConfigCommand = ; // CreateKubeConfigCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigCreate(createKubeConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createKubeConfigCommand

Responses


kubeconfigDelete

Delete kube config


/api/v1/kubeconfig/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig/delete" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        DeleteKubeConfigCommand deleteKubeConfigCommand = ; // DeleteKubeConfigCommand | 

        try {
            Object result = apiInstance.kubeconfigDelete(deleteKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteKubeConfigCommand deleteKubeConfigCommand = new DeleteKubeConfigCommand(); // DeleteKubeConfigCommand | 

try {
    final result = await api_instance.kubeconfigDelete(deleteKubeConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigDelete: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        DeleteKubeConfigCommand deleteKubeConfigCommand = ; // DeleteKubeConfigCommand | 

        try {
            Object result = apiInstance.kubeconfigDelete(deleteKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
DeleteKubeConfigCommand *deleteKubeConfigCommand = ; //  (optional)

// Delete kube config
[apiInstance kubeconfigDeleteWith:deleteKubeConfigCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'deleteKubeConfigCommand':  // {DeleteKubeConfigCommand} 
};

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

namespace Example
{
    public class kubeconfigDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var deleteKubeConfigCommand = new DeleteKubeConfigCommand(); // DeleteKubeConfigCommand |  (optional) 

            try {
                // Delete kube config
                Object result = apiInstance.kubeconfigDelete(deleteKubeConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$deleteKubeConfigCommand = ; // DeleteKubeConfigCommand | 

try {
    $result = $api_instance->kubeconfigDelete($deleteKubeConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $deleteKubeConfigCommand = WWW::OPenAPIClient::Object::DeleteKubeConfigCommand->new(); # DeleteKubeConfigCommand | 

eval {
    my $result = $api_instance->kubeconfigDelete(deleteKubeConfigCommand => $deleteKubeConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
deleteKubeConfigCommand =  # DeleteKubeConfigCommand |  (optional)

try:
    # Delete kube config
    api_response = api_instance.kubeconfig_delete(deleteKubeConfigCommand=deleteKubeConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigDelete: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let deleteKubeConfigCommand = ; // DeleteKubeConfigCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigDelete(deleteKubeConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteKubeConfigCommand

Responses


kubeconfigDeleteByProjectId

Delete kube config by project id


/api/v1/kubeconfig/delete-by-project-id

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig/delete-by-project-id" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        DeleteKubeConfigByProjectIdCommand deleteKubeConfigByProjectIdCommand = ; // DeleteKubeConfigByProjectIdCommand | 

        try {
            Object result = apiInstance.kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDeleteByProjectId");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteKubeConfigByProjectIdCommand deleteKubeConfigByProjectIdCommand = new DeleteKubeConfigByProjectIdCommand(); // DeleteKubeConfigByProjectIdCommand | 

try {
    final result = await api_instance.kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigDeleteByProjectId: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        DeleteKubeConfigByProjectIdCommand deleteKubeConfigByProjectIdCommand = ; // DeleteKubeConfigByProjectIdCommand | 

        try {
            Object result = apiInstance.kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDeleteByProjectId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
DeleteKubeConfigByProjectIdCommand *deleteKubeConfigByProjectIdCommand = ; //  (optional)

// Delete kube config by project id
[apiInstance kubeconfigDeleteByProjectIdWith:deleteKubeConfigByProjectIdCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'deleteKubeConfigByProjectIdCommand':  // {DeleteKubeConfigByProjectIdCommand} 
};

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

namespace Example
{
    public class kubeconfigDeleteByProjectIdExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var deleteKubeConfigByProjectIdCommand = new DeleteKubeConfigByProjectIdCommand(); // DeleteKubeConfigByProjectIdCommand |  (optional) 

            try {
                // Delete kube config by project id
                Object result = apiInstance.kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigDeleteByProjectId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$deleteKubeConfigByProjectIdCommand = ; // DeleteKubeConfigByProjectIdCommand | 

try {
    $result = $api_instance->kubeconfigDeleteByProjectId($deleteKubeConfigByProjectIdCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigDeleteByProjectId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $deleteKubeConfigByProjectIdCommand = WWW::OPenAPIClient::Object::DeleteKubeConfigByProjectIdCommand->new(); # DeleteKubeConfigByProjectIdCommand | 

eval {
    my $result = $api_instance->kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand => $deleteKubeConfigByProjectIdCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigDeleteByProjectId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
deleteKubeConfigByProjectIdCommand =  # DeleteKubeConfigByProjectIdCommand |  (optional)

try:
    # Delete kube config by project id
    api_response = api_instance.kubeconfig_delete_by_project_id(deleteKubeConfigByProjectIdCommand=deleteKubeConfigByProjectIdCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigDeleteByProjectId: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let deleteKubeConfigByProjectIdCommand = ; // DeleteKubeConfigByProjectIdCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigDeleteByProjectId(deleteKubeConfigByProjectIdCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteKubeConfigByProjectIdCommand

Responses


kubeconfigDownload

Download kube config file for user by project Id


/api/v1/kubeconfig/download

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig/download" \
 -d '{
  "id" : 0,
  "projectId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        DownloadKubeConfigCommand downloadKubeConfigCommand = ; // DownloadKubeConfigCommand | 

        try {
            'String' result = apiInstance.kubeconfigDownload(downloadKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDownload");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DownloadKubeConfigCommand downloadKubeConfigCommand = new DownloadKubeConfigCommand(); // DownloadKubeConfigCommand | 

try {
    final result = await api_instance.kubeconfigDownload(downloadKubeConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigDownload: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        DownloadKubeConfigCommand downloadKubeConfigCommand = ; // DownloadKubeConfigCommand | 

        try {
            'String' result = apiInstance.kubeconfigDownload(downloadKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigDownload");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
DownloadKubeConfigCommand *downloadKubeConfigCommand = ; //  (optional)

// Download kube config file for user by project Id
[apiInstance kubeconfigDownloadWith:downloadKubeConfigCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'downloadKubeConfigCommand':  // {DownloadKubeConfigCommand} 
};

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

namespace Example
{
    public class kubeconfigDownloadExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var downloadKubeConfigCommand = new DownloadKubeConfigCommand(); // DownloadKubeConfigCommand |  (optional) 

            try {
                // Download kube config file for user by project Id
                'String' result = apiInstance.kubeconfigDownload(downloadKubeConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigDownload: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$downloadKubeConfigCommand = ; // DownloadKubeConfigCommand | 

try {
    $result = $api_instance->kubeconfigDownload($downloadKubeConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigDownload: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $downloadKubeConfigCommand = WWW::OPenAPIClient::Object::DownloadKubeConfigCommand->new(); # DownloadKubeConfigCommand | 

eval {
    my $result = $api_instance->kubeconfigDownload(downloadKubeConfigCommand => $downloadKubeConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigDownload: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
downloadKubeConfigCommand =  # DownloadKubeConfigCommand |  (optional)

try:
    # Download kube config file for user by project Id
    api_response = api_instance.kubeconfig_download(downloadKubeConfigCommand=downloadKubeConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigDownload: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let downloadKubeConfigCommand = ; // DownloadKubeConfigCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigDownload(downloadKubeConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
downloadKubeConfigCommand

Responses


kubeconfigExport

Export


/api/v1/kubeconfig/export

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig/export" \
 -d '{
  "id" : 0,
  "projectId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        ExportKubeConfigCommand exportKubeConfigCommand = ; // ExportKubeConfigCommand | 

        try {
            CsvExporter result = apiInstance.kubeconfigExport(exportKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigExport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ExportKubeConfigCommand exportKubeConfigCommand = new ExportKubeConfigCommand(); // ExportKubeConfigCommand | 

try {
    final result = await api_instance.kubeconfigExport(exportKubeConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigExport: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        ExportKubeConfigCommand exportKubeConfigCommand = ; // ExportKubeConfigCommand | 

        try {
            CsvExporter result = apiInstance.kubeconfigExport(exportKubeConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigExport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
ExportKubeConfigCommand *exportKubeConfigCommand = ; //  (optional)

// Export
[apiInstance kubeconfigExportWith:exportKubeConfigCommand
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'exportKubeConfigCommand':  // {ExportKubeConfigCommand} 
};

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

namespace Example
{
    public class kubeconfigExportExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var exportKubeConfigCommand = new ExportKubeConfigCommand(); // ExportKubeConfigCommand |  (optional) 

            try {
                // Export
                CsvExporter result = apiInstance.kubeconfigExport(exportKubeConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigExport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$exportKubeConfigCommand = ; // ExportKubeConfigCommand | 

try {
    $result = $api_instance->kubeconfigExport($exportKubeConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigExport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $exportKubeConfigCommand = WWW::OPenAPIClient::Object::ExportKubeConfigCommand->new(); # ExportKubeConfigCommand | 

eval {
    my $result = $api_instance->kubeconfigExport(exportKubeConfigCommand => $exportKubeConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigExport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
exportKubeConfigCommand =  # ExportKubeConfigCommand |  (optional)

try:
    # Export
    api_response = api_instance.kubeconfig_export(exportKubeConfigCommand=exportKubeConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigExport: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let exportKubeConfigCommand = ; // ExportKubeConfigCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigExport(exportKubeConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
exportKubeConfigCommand

Responses


kubeconfigInteractiveShell

Interactive shell for user kube config


/api/v1/kubeconfig/interactive-shell

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubeconfig/interactive-shell" \
 -d '{
  "kubeConfigId" : 0,
  "projectId" : 6,
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        KubeConfigInteractiveShellCommand kubeConfigInteractiveShellCommand = ; // KubeConfigInteractiveShellCommand | 

        try {
            InteractiveShellDto result = apiInstance.kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigInteractiveShell");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final KubeConfigInteractiveShellCommand kubeConfigInteractiveShellCommand = new KubeConfigInteractiveShellCommand(); // KubeConfigInteractiveShellCommand | 

try {
    final result = await api_instance.kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigInteractiveShell: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        KubeConfigInteractiveShellCommand kubeConfigInteractiveShellCommand = ; // KubeConfigInteractiveShellCommand | 

        try {
            InteractiveShellDto result = apiInstance.kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigInteractiveShell");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
KubeConfigInteractiveShellCommand *kubeConfigInteractiveShellCommand = ; //  (optional)

// Interactive shell for user kube config
[apiInstance kubeconfigInteractiveShellWith:kubeConfigInteractiveShellCommand
              completionHandler: ^(InteractiveShellDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var opts = {
  'kubeConfigInteractiveShellCommand':  // {KubeConfigInteractiveShellCommand} 
};

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

namespace Example
{
    public class kubeconfigInteractiveShellExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var kubeConfigInteractiveShellCommand = new KubeConfigInteractiveShellCommand(); // KubeConfigInteractiveShellCommand |  (optional) 

            try {
                // Interactive shell for user kube config
                InteractiveShellDto result = apiInstance.kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigInteractiveShell: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$kubeConfigInteractiveShellCommand = ; // KubeConfigInteractiveShellCommand | 

try {
    $result = $api_instance->kubeconfigInteractiveShell($kubeConfigInteractiveShellCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigInteractiveShell: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $kubeConfigInteractiveShellCommand = WWW::OPenAPIClient::Object::KubeConfigInteractiveShellCommand->new(); # KubeConfigInteractiveShellCommand | 

eval {
    my $result = $api_instance->kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand => $kubeConfigInteractiveShellCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigInteractiveShell: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
kubeConfigInteractiveShellCommand =  # KubeConfigInteractiveShellCommand |  (optional)

try:
    # Interactive shell for user kube config
    api_response = api_instance.kubeconfig_interactive_shell(kubeConfigInteractiveShellCommand=kubeConfigInteractiveShellCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigInteractiveShell: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let kubeConfigInteractiveShellCommand = ; // KubeConfigInteractiveShellCommand

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigInteractiveShell(kubeConfigInteractiveShellCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
kubeConfigInteractiveShellCommand

Responses


kubeconfigList

Retrieve a list of kube configs for project


/api/v1/kubeconfig

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubeconfig?OrganizationId=56&ProjectId=56&Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigApi;

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

public class KubeConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigApi apiInstance = new KubeConfigApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional kube-config id filter

        try {
            KubeConfigForUserList result = apiInstance.kubeconfigList(projectId, organizationId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Integer id = new Integer(); // Integer | Optional kube-config id filter

try {
    final result = await api_instance.kubeconfigList(projectId, organizationId, limit, offset, sortBy, sortDirection, search, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigList: $e\n');
}

import org.openapitools.client.api.KubeConfigApi;

public class KubeConfigApiExample {
    public static void main(String[] args) {
        KubeConfigApi apiInstance = new KubeConfigApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional kube-config id filter

        try {
            KubeConfigForUserList result = apiInstance.kubeconfigList(projectId, organizationId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigApi#kubeconfigList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigApi *apiInstance = [[KubeConfigApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Integer *id = 56; // Optional kube-config id filter (optional) (default to null)

// Retrieve a list of kube configs for project
[apiInstance kubeconfigListWith:projectId
    organizationId:organizationId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
              completionHandler: ^(KubeConfigForUserList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'id': 56 // {Integer} Optional kube-config id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubeconfigList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubeconfigListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var id = 56;  // Integer | Optional kube-config id filter (optional)  (default to null)

            try {
                // Retrieve a list of kube configs for project
                KubeConfigForUserList result = apiInstance.kubeconfigList(projectId, organizationId, limit, offset, sortBy, sortDirection, search, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigApi.kubeconfigList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigApi();
$projectId = 56; // Integer | Project id, positive integer
$organizationId = 56; // Integer | Optional organization id filter
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$id = 56; // Integer | Optional kube-config id filter

try {
    $result = $api_instance->kubeconfigList($projectId, $organizationId, $limit, $offset, $sortBy, $sortDirection, $search, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigApi->kubeconfigList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $organizationId = 56; # Integer | Optional organization id filter
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $id = 56; # Integer | Optional kube-config id filter

eval {
    my $result = $api_instance->kubeconfigList(projectId => $projectId, organizationId => $organizationId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigApi->kubeconfigList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
id = 56 # Integer | Optional kube-config id filter (optional) (default to null)

try:
    # Retrieve a list of kube configs for project
    api_response = api_instance.kubeconfig_list(projectId, organizationId=organizationId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigApi->kubeconfigList: %s\n" % e)
extern crate KubeConfigApi;

pub fn main() {
    let projectId = 56; // Integer
    let organizationId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer

    let mut context = KubeConfigApi::Context::default();
    let result = client.kubeconfigList(projectId, organizationId, limit, offset, sortBy, sortDirection, search, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
ProjectId*
Integer (int32)
Project id, positive integer
Required
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Id
Integer (int32)
Optional kube-config id filter

Responses


KubeConfigRole

kubeconfigroleList

Retrieve list of kube config role


/api/v1/kubeconfigrole

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubeconfigrole?Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubeConfigRoleApi;

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

public class KubeConfigRoleApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubeConfigRoleApi apiInstance = new KubeConfigRoleApi();
        String search = search_example; // String | Free-text search filter over kube-config role names

        try {
            KubeConfigRoleResponse result = apiInstance.kubeconfigroleList(search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigRoleApi#kubeconfigroleList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String search = new String(); // String | Free-text search filter over kube-config role names

try {
    final result = await api_instance.kubeconfigroleList(search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubeconfigroleList: $e\n');
}

import org.openapitools.client.api.KubeConfigRoleApi;

public class KubeConfigRoleApiExample {
    public static void main(String[] args) {
        KubeConfigRoleApi apiInstance = new KubeConfigRoleApi();
        String search = search_example; // String | Free-text search filter over kube-config role names

        try {
            KubeConfigRoleResponse result = apiInstance.kubeconfigroleList(search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubeConfigRoleApi#kubeconfigroleList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubeConfigRoleApi *apiInstance = [[KubeConfigRoleApi alloc] init];
String *search = search_example; // Free-text search filter over kube-config role names (optional) (default to null)

// Retrieve list of kube config role
[apiInstance kubeconfigroleListWith:search
              completionHandler: ^(KubeConfigRoleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubeConfigRoleApi()
var opts = {
  'search': search_example // {String} Free-text search filter over kube-config role names
};

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

namespace Example
{
    public class kubeconfigroleListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubeConfigRoleApi();
            var search = search_example;  // String | Free-text search filter over kube-config role names (optional)  (default to null)

            try {
                // Retrieve list of kube config role
                KubeConfigRoleResponse result = apiInstance.kubeconfigroleList(search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubeConfigRoleApi.kubeconfigroleList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubeConfigRoleApi();
$search = search_example; // String | Free-text search filter over kube-config role names

try {
    $result = $api_instance->kubeconfigroleList($search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubeConfigRoleApi->kubeconfigroleList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubeConfigRoleApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubeConfigRoleApi->new();
my $search = search_example; # String | Free-text search filter over kube-config role names

eval {
    my $result = $api_instance->kubeconfigroleList(search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubeConfigRoleApi->kubeconfigroleList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubeConfigRoleApi()
search = search_example # String | Free-text search filter over kube-config role names (optional) (default to null)

try:
    # Retrieve list of kube config role
    api_response = api_instance.kubeconfigrole_list(search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubeConfigRoleApi->kubeconfigroleList: %s\n" % e)
extern crate KubeConfigRoleApi;

pub fn main() {
    let search = search_example; // String

    let mut context = KubeConfigRoleApi::Context::default();
    let result = client.kubeconfigroleList(search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Search

Responses


Kubernetes

kubernetesAddK8sAlert

Add k8s alert


/api/v1/kubernetes/alert/{projectId}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/alert/{projectId}" \
 -d '{
  "alerts" : [ {
    "fingerprint" : "fingerprint",
    "annotations" : {
      "description" : "description",
      "title" : "title"
    },
    "startsAt" : "2000-01-23T04:56:07.000+00:00",
    "endsAt" : "2000-01-23T04:56:07.000+00:00",
    "status" : "status",
    "labels" : "{}"
  }, {
    "fingerprint" : "fingerprint",
    "annotations" : {
      "description" : "description",
      "title" : "title"
    },
    "startsAt" : "2000-01-23T04:56:07.000+00:00",
    "endsAt" : "2000-01-23T04:56:07.000+00:00",
    "status" : "status",
    "labels" : "{}"
  } ],
  "status" : "status"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | 
        CreateAlertDto createAlertDto = ; // CreateAlertDto | 

        try {
            Object result = apiInstance.kubernetesAddK8sAlert(projectId, createAlertDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAddK8sAlert");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final CreateAlertDto createAlertDto = new CreateAlertDto(); // CreateAlertDto | 

try {
    final result = await api_instance.kubernetesAddK8sAlert(projectId, createAlertDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesAddK8sAlert: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | 
        CreateAlertDto createAlertDto = ; // CreateAlertDto | 

        try {
            Object result = apiInstance.kubernetesAddK8sAlert(projectId, createAlertDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAddK8sAlert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; //  (default to null)
CreateAlertDto *createAlertDto = ; //  (optional)

// Add k8s alert
[apiInstance kubernetesAddK8sAlertWith:projectId
    createAlertDto:createAlertDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} 
var opts = {
  'createAlertDto':  // {CreateAlertDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesAddK8sAlert(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesAddK8sAlertExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer |  (default to null)
            var createAlertDto = new CreateAlertDto(); // CreateAlertDto |  (optional) 

            try {
                // Add k8s alert
                Object result = apiInstance.kubernetesAddK8sAlert(projectId, createAlertDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesAddK8sAlert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | 
$createAlertDto = ; // CreateAlertDto | 

try {
    $result = $api_instance->kubernetesAddK8sAlert($projectId, $createAlertDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesAddK8sAlert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | 
my $createAlertDto = WWW::OPenAPIClient::Object::CreateAlertDto->new(); # CreateAlertDto | 

eval {
    my $result = $api_instance->kubernetesAddK8sAlert(projectId => $projectId, createAlertDto => $createAlertDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesAddK8sAlert: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer |  (default to null)
createAlertDto =  # CreateAlertDto |  (optional)

try:
    # Add k8s alert
    api_response = api_instance.kubernetes_add_k8s_alert(projectId, createAlertDto=createAlertDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesAddK8sAlert: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let createAlertDto = ; // CreateAlertDto

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesAddK8sAlert(projectId, createAlertDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Body parameters
Name Description
createAlertDto

Responses


kubernetesAddK8sEvents

Add k8s event


/api/v1/kubernetes/event/{projectId}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/event/{projectId}" \
 -d '{
  "reason" : "reason",
  "metadata" : "{}",
  "lastTimeStamp" : "2000-01-23T04:56:07.000+00:00",
  "involvedObject" : "{}",
  "firstTimeStamp" : "2000-01-23T04:56:07.000+00:00",
  "count" : 0,
  "source" : "{}",
  "type" : "type",
  "message" : "message"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | 
        KubernetesEventCreateDto kubernetesEventCreateDto = ; // KubernetesEventCreateDto | 

        try {
            Object result = apiInstance.kubernetesAddK8sEvents(projectId, kubernetesEventCreateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAddK8sEvents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final KubernetesEventCreateDto kubernetesEventCreateDto = new KubernetesEventCreateDto(); // KubernetesEventCreateDto | 

try {
    final result = await api_instance.kubernetesAddK8sEvents(projectId, kubernetesEventCreateDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesAddK8sEvents: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | 
        KubernetesEventCreateDto kubernetesEventCreateDto = ; // KubernetesEventCreateDto | 

        try {
            Object result = apiInstance.kubernetesAddK8sEvents(projectId, kubernetesEventCreateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAddK8sEvents");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; //  (default to null)
KubernetesEventCreateDto *kubernetesEventCreateDto = ; //  (optional)

// Add k8s event
[apiInstance kubernetesAddK8sEventsWith:projectId
    kubernetesEventCreateDto:kubernetesEventCreateDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} 
var opts = {
  'kubernetesEventCreateDto':  // {KubernetesEventCreateDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesAddK8sEvents(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesAddK8sEventsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer |  (default to null)
            var kubernetesEventCreateDto = new KubernetesEventCreateDto(); // KubernetesEventCreateDto |  (optional) 

            try {
                // Add k8s event
                Object result = apiInstance.kubernetesAddK8sEvents(projectId, kubernetesEventCreateDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesAddK8sEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | 
$kubernetesEventCreateDto = ; // KubernetesEventCreateDto | 

try {
    $result = $api_instance->kubernetesAddK8sEvents($projectId, $kubernetesEventCreateDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesAddK8sEvents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | 
my $kubernetesEventCreateDto = WWW::OPenAPIClient::Object::KubernetesEventCreateDto->new(); # KubernetesEventCreateDto | 

eval {
    my $result = $api_instance->kubernetesAddK8sEvents(projectId => $projectId, kubernetesEventCreateDto => $kubernetesEventCreateDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesAddK8sEvents: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer |  (default to null)
kubernetesEventCreateDto =  # KubernetesEventCreateDto |  (optional)

try:
    # Add k8s event
    api_response = api_instance.kubernetes_add_k8s_events(projectId, kubernetesEventCreateDto=kubernetesEventCreateDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesAddK8sEvents: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let kubernetesEventCreateDto = ; // KubernetesEventCreateDto

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesAddK8sEvents(projectId, kubernetesEventCreateDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Body parameters
Name Description
kubernetesEventCreateDto

Responses


kubernetesAlertList

Retrieve a list of alerts for project


/api/v1/kubernetes/{projectId}/alerts

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/alerts?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Type=type_example&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String type = type_example; // String | Alert type filter
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or before this date

        try {
            KubernetesAlertList result = apiInstance.kubernetesAlertList(projectId, limit, offset, sortBy, sortDirection, search, type, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAlertList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String type = new String(); // String | Alert type filter
final Date startDate = new Date(); // Date | Filter alerts on or after this date
final Date endDate = new Date(); // Date | Filter alerts on or before this date

try {
    final result = await api_instance.kubernetesAlertList(projectId, limit, offset, sortBy, sortDirection, search, type, startDate, endDate);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesAlertList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String type = type_example; // String | Alert type filter
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or before this date

        try {
            KubernetesAlertList result = apiInstance.kubernetesAlertList(projectId, limit, offset, sortBy, sortDirection, search, type, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesAlertList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *type = type_example; // Alert type filter (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // Filter alerts on or after this date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // Filter alerts on or before this date (optional) (default to null)

// Retrieve a list of alerts for project
[apiInstance kubernetesAlertListWith:projectId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    type:type
    startDate:startDate
    endDate:endDate
              completionHandler: ^(KubernetesAlertList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'type': type_example, // {String} Alert type filter
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Filter alerts on or after this date
  'endDate': 2013-10-20T19:20:30+01:00 // {Date} Filter alerts on or before this date
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesAlertList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesAlertListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var type = type_example;  // String | Alert type filter (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Filter alerts on or after this date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | Filter alerts on or before this date (optional)  (default to null)

            try {
                // Retrieve a list of alerts for project
                KubernetesAlertList result = apiInstance.kubernetesAlertList(projectId, limit, offset, sortBy, sortDirection, search, type, startDate, endDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesAlertList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$type = type_example; // String | Alert type filter
$startDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or after this date
$endDate = 2013-10-20T19:20:30+01:00; // Date | Filter alerts on or before this date

try {
    $result = $api_instance->kubernetesAlertList($projectId, $limit, $offset, $sortBy, $sortDirection, $search, $type, $startDate, $endDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesAlertList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $type = type_example; # String | Alert type filter
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Filter alerts on or after this date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | Filter alerts on or before this date

eval {
    my $result = $api_instance->kubernetesAlertList(projectId => $projectId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, type => $type, startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesAlertList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
type = type_example # String | Alert type filter (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | Filter alerts on or after this date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | Filter alerts on or before this date (optional) (default to null)

try:
    # Retrieve a list of alerts for project
    api_response = api_instance.kubernetes_alert_list(projectId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, type=type, startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesAlertList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let type = type_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesAlertList(projectId, limit, offset, sortBy, sortDirection, search, type, startDate, endDate, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Type
String
Alert type filter
StartDate
Date (date-time)
Filter alerts on or after this date
EndDate
Date (date-time)
Filter alerts on or before this date

Responses


kubernetesCli

Execute k8s web socket namespaced pod

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/kubernetes/cli

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/cli" \
 -d '{
  "kubeConfigId" : 6,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        KubernetesCliCommand kubernetesCliCommand = ; // KubernetesCliCommand | 

        try {
            'String' result = apiInstance.kubernetesCli(kubernetesCliCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCli");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final KubernetesCliCommand kubernetesCliCommand = new KubernetesCliCommand(); // KubernetesCliCommand | 

try {
    final result = await api_instance.kubernetesCli(kubernetesCliCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesCli: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        KubernetesCliCommand kubernetesCliCommand = ; // KubernetesCliCommand | 

        try {
            'String' result = apiInstance.kubernetesCli(kubernetesCliCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCli");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
KubernetesCliCommand *kubernetesCliCommand = ; //  (optional)

// Execute k8s web socket namespaced pod
[apiInstance kubernetesCliWith:kubernetesCliCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'kubernetesCliCommand':  // {KubernetesCliCommand} 
};

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

namespace Example
{
    public class kubernetesCliExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var kubernetesCliCommand = new KubernetesCliCommand(); // KubernetesCliCommand |  (optional) 

            try {
                // Execute k8s web socket namespaced pod
                'String' result = apiInstance.kubernetesCli(kubernetesCliCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesCli: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$kubernetesCliCommand = ; // KubernetesCliCommand | 

try {
    $result = $api_instance->kubernetesCli($kubernetesCliCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesCli: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $kubernetesCliCommand = WWW::OPenAPIClient::Object::KubernetesCliCommand->new(); # KubernetesCliCommand | 

eval {
    my $result = $api_instance->kubernetesCli(kubernetesCliCommand => $kubernetesCliCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesCli: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
kubernetesCliCommand =  # KubernetesCliCommand |  (optional)

try:
    # Execute k8s web socket namespaced pod
    api_response = api_instance.kubernetes_cli(kubernetesCliCommand=kubernetesCliCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesCli: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let kubernetesCliCommand = ; // KubernetesCliCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesCli(kubernetesCliCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
kubernetesCliCommand

Responses


kubernetesConfigmapList

K8s configmap list


/api/v1/kubernetes/list/{projectId}/configmap

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/configmap?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            ConfigmapListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesConfigmapList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesConfigmapList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesConfigmapList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesConfigmapList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            ConfigmapListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesConfigmapList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesConfigmapList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s configmap list
[apiInstance kubernetesConfigmapListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(ConfigmapListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesConfigmapList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesConfigmapListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s configmap list
                ConfigmapListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesConfigmapList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesConfigmapList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesConfigmapList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesConfigmapList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesConfigmapList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesConfigmapList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s configmap list
    api_response = api_instance.kubernetes_configmap_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesConfigmapList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesConfigmapList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesCreateResource

Create kubernetes resource


/api/v1/kubernetes/create-resource

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/create-resource" \
 -d '{
  "projectId" : 0,
  "yaml" : "yaml"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        CreateKubernetesResourceCommand createKubernetesResourceCommand = ; // CreateKubernetesResourceCommand | 

        try {
            Object result = apiInstance.kubernetesCreateResource(createKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCreateResource");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateKubernetesResourceCommand createKubernetesResourceCommand = new CreateKubernetesResourceCommand(); // CreateKubernetesResourceCommand | 

try {
    final result = await api_instance.kubernetesCreateResource(createKubernetesResourceCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesCreateResource: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        CreateKubernetesResourceCommand createKubernetesResourceCommand = ; // CreateKubernetesResourceCommand | 

        try {
            Object result = apiInstance.kubernetesCreateResource(createKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCreateResource");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
CreateKubernetesResourceCommand *createKubernetesResourceCommand = ; //  (optional)

// Create kubernetes resource
[apiInstance kubernetesCreateResourceWith:createKubernetesResourceCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'createKubernetesResourceCommand':  // {CreateKubernetesResourceCommand} 
};

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

namespace Example
{
    public class kubernetesCreateResourceExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var createKubernetesResourceCommand = new CreateKubernetesResourceCommand(); // CreateKubernetesResourceCommand |  (optional) 

            try {
                // Create kubernetes resource
                Object result = apiInstance.kubernetesCreateResource(createKubernetesResourceCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesCreateResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$createKubernetesResourceCommand = ; // CreateKubernetesResourceCommand | 

try {
    $result = $api_instance->kubernetesCreateResource($createKubernetesResourceCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesCreateResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $createKubernetesResourceCommand = WWW::OPenAPIClient::Object::CreateKubernetesResourceCommand->new(); # CreateKubernetesResourceCommand | 

eval {
    my $result = $api_instance->kubernetesCreateResource(createKubernetesResourceCommand => $createKubernetesResourceCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesCreateResource: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
createKubernetesResourceCommand =  # CreateKubernetesResourceCommand |  (optional)

try:
    # Create kubernetes resource
    api_response = api_instance.kubernetes_create_resource(createKubernetesResourceCommand=createKubernetesResourceCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesCreateResource: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let createKubernetesResourceCommand = ; // CreateKubernetesResourceCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesCreateResource(createKubernetesResourceCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createKubernetesResourceCommand

Responses


kubernetesCronjobActions

Cronjob actions


/api/v1/kubernetes/cronjob/actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/cronjob/actions" \
 -d '{
  "data" : [ {
    "name" : "name",
    "namespace" : "namespace"
  }, {
    "name" : "name",
    "namespace" : "namespace"
  } ],
  "action" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        CronjobActionCommand cronjobActionCommand = ; // CronjobActionCommand | 

        try {
            KubernetesActionResponse result = apiInstance.kubernetesCronjobActions(cronjobActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCronjobActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CronjobActionCommand cronjobActionCommand = new CronjobActionCommand(); // CronjobActionCommand | 

try {
    final result = await api_instance.kubernetesCronjobActions(cronjobActionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesCronjobActions: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        CronjobActionCommand cronjobActionCommand = ; // CronjobActionCommand | 

        try {
            KubernetesActionResponse result = apiInstance.kubernetesCronjobActions(cronjobActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesCronjobActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
CronjobActionCommand *cronjobActionCommand = ; //  (optional)

// Cronjob actions
[apiInstance kubernetesCronjobActionsWith:cronjobActionCommand
              completionHandler: ^(KubernetesActionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'cronjobActionCommand':  // {CronjobActionCommand} 
};

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

namespace Example
{
    public class kubernetesCronjobActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var cronjobActionCommand = new CronjobActionCommand(); // CronjobActionCommand |  (optional) 

            try {
                // Cronjob actions
                KubernetesActionResponse result = apiInstance.kubernetesCronjobActions(cronjobActionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesCronjobActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$cronjobActionCommand = ; // CronjobActionCommand | 

try {
    $result = $api_instance->kubernetesCronjobActions($cronjobActionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesCronjobActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $cronjobActionCommand = WWW::OPenAPIClient::Object::CronjobActionCommand->new(); # CronjobActionCommand | 

eval {
    my $result = $api_instance->kubernetesCronjobActions(cronjobActionCommand => $cronjobActionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesCronjobActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
cronjobActionCommand =  # CronjobActionCommand |  (optional)

try:
    # Cronjob actions
    api_response = api_instance.kubernetes_cronjob_actions(cronjobActionCommand=cronjobActionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesCronjobActions: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let cronjobActionCommand = ; // CronjobActionCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesCronjobActions(cronjobActionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cronjobActionCommand

Responses


kubernetesDaemonsetActions

Daemonset actions


/api/v1/kubernetes/daemonset/actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/daemonset/actions" \
 -d '{
  "name" : "name",
  "namespace" : "namespace",
  "action" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DaemonsetActionCommand daemonsetActionCommand = ; // DaemonsetActionCommand | 

        try {
            Object result = apiInstance.kubernetesDaemonsetActions(daemonsetActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDaemonsetActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DaemonsetActionCommand daemonsetActionCommand = new DaemonsetActionCommand(); // DaemonsetActionCommand | 

try {
    final result = await api_instance.kubernetesDaemonsetActions(daemonsetActionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDaemonsetActions: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DaemonsetActionCommand daemonsetActionCommand = ; // DaemonsetActionCommand | 

        try {
            Object result = apiInstance.kubernetesDaemonsetActions(daemonsetActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDaemonsetActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DaemonsetActionCommand *daemonsetActionCommand = ; //  (optional)

// Daemonset actions
[apiInstance kubernetesDaemonsetActionsWith:daemonsetActionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'daemonsetActionCommand':  // {DaemonsetActionCommand} 
};

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

namespace Example
{
    public class kubernetesDaemonsetActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var daemonsetActionCommand = new DaemonsetActionCommand(); // DaemonsetActionCommand |  (optional) 

            try {
                // Daemonset actions
                Object result = apiInstance.kubernetesDaemonsetActions(daemonsetActionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDaemonsetActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$daemonsetActionCommand = ; // DaemonsetActionCommand | 

try {
    $result = $api_instance->kubernetesDaemonsetActions($daemonsetActionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDaemonsetActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $daemonsetActionCommand = WWW::OPenAPIClient::Object::DaemonsetActionCommand->new(); # DaemonsetActionCommand | 

eval {
    my $result = $api_instance->kubernetesDaemonsetActions(daemonsetActionCommand => $daemonsetActionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDaemonsetActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
daemonsetActionCommand =  # DaemonsetActionCommand |  (optional)

try:
    # Daemonset actions
    api_response = api_instance.kubernetes_daemonset_actions(daemonsetActionCommand=daemonsetActionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDaemonsetActions: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let daemonsetActionCommand = ; // DaemonsetActionCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDaemonsetActions(daemonsetActionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
daemonsetActionCommand

Responses


kubernetesDaemonsetList

K8s daemonset list


/api/v1/kubernetes/list/{projectId}/daemonset

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/daemonset?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            DaemonsetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDaemonsetList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDaemonsetList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesDaemonsetList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDaemonsetList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            DaemonsetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDaemonsetList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDaemonsetList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s daemonset list
[apiInstance kubernetesDaemonsetListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(DaemonsetListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesDaemonsetList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesDaemonsetListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s daemonset list
                DaemonsetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDaemonsetList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDaemonsetList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesDaemonsetList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDaemonsetList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesDaemonsetList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDaemonsetList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s daemonset list
    api_response = api_instance.kubernetes_daemonset_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDaemonsetList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDaemonsetList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesDashboardList

Retrieve a list of crd

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/kubernetes/{projectId}/dashboard

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/dashboard"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesDashboardDto result = apiInstance.kubernetesDashboardList(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDashboardList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesDashboardList(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDashboardList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesDashboardDto result = apiInstance.kubernetesDashboardList(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDashboardList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Retrieve a list of crd
[apiInstance kubernetesDashboardListWith:projectId
              completionHandler: ^(KubernetesDashboardDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesDashboardListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Retrieve a list of crd
                KubernetesDashboardDto result = apiInstance.kubernetesDashboardList(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDashboardList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesDashboardList($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDashboardList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesDashboardList(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDashboardList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Retrieve a list of crd
    api_response = api_instance.kubernetes_dashboard_list(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDashboardList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDashboardList(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesDeleteResource

Delete kubernetes resource


/api/v1/kubernetes/delete-resource

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/delete-resource" \
 -d '{
  "data" : [ {
    "name" : "name",
    "namespace" : "namespace"
  }, {
    "name" : "name",
    "namespace" : "namespace"
  } ],
  "kind" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DeleteKubernetesResourceCommand deleteKubernetesResourceCommand = ; // DeleteKubernetesResourceCommand | 

        try {
            KubernetesActionResponse result = apiInstance.kubernetesDeleteResource(deleteKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeleteResource");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteKubernetesResourceCommand deleteKubernetesResourceCommand = new DeleteKubernetesResourceCommand(); // DeleteKubernetesResourceCommand | 

try {
    final result = await api_instance.kubernetesDeleteResource(deleteKubernetesResourceCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDeleteResource: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DeleteKubernetesResourceCommand deleteKubernetesResourceCommand = ; // DeleteKubernetesResourceCommand | 

        try {
            KubernetesActionResponse result = apiInstance.kubernetesDeleteResource(deleteKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeleteResource");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DeleteKubernetesResourceCommand *deleteKubernetesResourceCommand = ; //  (optional)

// Delete kubernetes resource
[apiInstance kubernetesDeleteResourceWith:deleteKubernetesResourceCommand
              completionHandler: ^(KubernetesActionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'deleteKubernetesResourceCommand':  // {DeleteKubernetesResourceCommand} 
};

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

namespace Example
{
    public class kubernetesDeleteResourceExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var deleteKubernetesResourceCommand = new DeleteKubernetesResourceCommand(); // DeleteKubernetesResourceCommand |  (optional) 

            try {
                // Delete kubernetes resource
                KubernetesActionResponse result = apiInstance.kubernetesDeleteResource(deleteKubernetesResourceCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDeleteResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$deleteKubernetesResourceCommand = ; // DeleteKubernetesResourceCommand | 

try {
    $result = $api_instance->kubernetesDeleteResource($deleteKubernetesResourceCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDeleteResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $deleteKubernetesResourceCommand = WWW::OPenAPIClient::Object::DeleteKubernetesResourceCommand->new(); # DeleteKubernetesResourceCommand | 

eval {
    my $result = $api_instance->kubernetesDeleteResource(deleteKubernetesResourceCommand => $deleteKubernetesResourceCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDeleteResource: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
deleteKubernetesResourceCommand =  # DeleteKubernetesResourceCommand |  (optional)

try:
    # Delete kubernetes resource
    api_response = api_instance.kubernetes_delete_resource(deleteKubernetesResourceCommand=deleteKubernetesResourceCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDeleteResource: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let deleteKubernetesResourceCommand = ; // DeleteKubernetesResourceCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDeleteResource(deleteKubernetesResourceCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteKubernetesResourceCommand

Responses


kubernetesDeploymentActions

Deployment actions


/api/v1/kubernetes/deployment/actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/deployment/actions" \
 -d '{
  "name" : "name",
  "namespace" : "namespace",
  "action" : "",
  "projectId" : 0,
  "scaleReplicaCount" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DeploymentActionCommand deploymentActionCommand = ; // DeploymentActionCommand | 

        try {
            Object result = apiInstance.kubernetesDeploymentActions(deploymentActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeploymentActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentActionCommand deploymentActionCommand = new DeploymentActionCommand(); // DeploymentActionCommand | 

try {
    final result = await api_instance.kubernetesDeploymentActions(deploymentActionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDeploymentActions: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DeploymentActionCommand deploymentActionCommand = ; // DeploymentActionCommand | 

        try {
            Object result = apiInstance.kubernetesDeploymentActions(deploymentActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeploymentActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DeploymentActionCommand *deploymentActionCommand = ; //  (optional)

// Deployment actions
[apiInstance kubernetesDeploymentActionsWith:deploymentActionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'deploymentActionCommand':  // {DeploymentActionCommand} 
};

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

namespace Example
{
    public class kubernetesDeploymentActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var deploymentActionCommand = new DeploymentActionCommand(); // DeploymentActionCommand |  (optional) 

            try {
                // Deployment actions
                Object result = apiInstance.kubernetesDeploymentActions(deploymentActionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDeploymentActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$deploymentActionCommand = ; // DeploymentActionCommand | 

try {
    $result = $api_instance->kubernetesDeploymentActions($deploymentActionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDeploymentActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $deploymentActionCommand = WWW::OPenAPIClient::Object::DeploymentActionCommand->new(); # DeploymentActionCommand | 

eval {
    my $result = $api_instance->kubernetesDeploymentActions(deploymentActionCommand => $deploymentActionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDeploymentActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
deploymentActionCommand =  # DeploymentActionCommand |  (optional)

try:
    # Deployment actions
    api_response = api_instance.kubernetes_deployment_actions(deploymentActionCommand=deploymentActionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDeploymentActions: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let deploymentActionCommand = ; // DeploymentActionCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDeploymentActions(deploymentActionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentActionCommand

Responses


kubernetesDeploymentsList

K8s deployment list


/api/v1/kubernetes/list/{projectId}/deployments

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/deployments?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            DeploymentListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDeploymentsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeploymentsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesDeploymentsList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDeploymentsList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            DeploymentListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDeploymentsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDeploymentsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s deployment list
[apiInstance kubernetesDeploymentsListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(DeploymentListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesDeploymentsList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesDeploymentsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s deployment list
                DeploymentListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesDeploymentsList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDeploymentsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesDeploymentsList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDeploymentsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesDeploymentsList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDeploymentsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s deployment list
    api_response = api_instance.kubernetes_deployments_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDeploymentsList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDeploymentsList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesDescribeResource

Describe kubernetes resource


/api/v1/kubernetes/describe-resource

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/describe-resource" \
 -d '{
  "kind" : "",
  "name" : "name",
  "namespace" : "namespace",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DescribeKubernetesResourceCommand describeKubernetesResourceCommand = ; // DescribeKubernetesResourceCommand | 

        try {
            'String' result = apiInstance.kubernetesDescribeResource(describeKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDescribeResource");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DescribeKubernetesResourceCommand describeKubernetesResourceCommand = new DescribeKubernetesResourceCommand(); // DescribeKubernetesResourceCommand | 

try {
    final result = await api_instance.kubernetesDescribeResource(describeKubernetesResourceCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDescribeResource: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DescribeKubernetesResourceCommand describeKubernetesResourceCommand = ; // DescribeKubernetesResourceCommand | 

        try {
            'String' result = apiInstance.kubernetesDescribeResource(describeKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDescribeResource");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DescribeKubernetesResourceCommand *describeKubernetesResourceCommand = ; //  (optional)

// Describe kubernetes resource
[apiInstance kubernetesDescribeResourceWith:describeKubernetesResourceCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'describeKubernetesResourceCommand':  // {DescribeKubernetesResourceCommand} 
};

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

namespace Example
{
    public class kubernetesDescribeResourceExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var describeKubernetesResourceCommand = new DescribeKubernetesResourceCommand(); // DescribeKubernetesResourceCommand |  (optional) 

            try {
                // Describe kubernetes resource
                'String' result = apiInstance.kubernetesDescribeResource(describeKubernetesResourceCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDescribeResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$describeKubernetesResourceCommand = ; // DescribeKubernetesResourceCommand | 

try {
    $result = $api_instance->kubernetesDescribeResource($describeKubernetesResourceCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDescribeResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $describeKubernetesResourceCommand = WWW::OPenAPIClient::Object::DescribeKubernetesResourceCommand->new(); # DescribeKubernetesResourceCommand | 

eval {
    my $result = $api_instance->kubernetesDescribeResource(describeKubernetesResourceCommand => $describeKubernetesResourceCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDescribeResource: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
describeKubernetesResourceCommand =  # DescribeKubernetesResourceCommand |  (optional)

try:
    # Describe kubernetes resource
    api_response = api_instance.kubernetes_describe_resource(describeKubernetesResourceCommand=describeKubernetesResourceCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDescribeResource: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let describeKubernetesResourceCommand = ; // DescribeKubernetesResourceCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDescribeResource(describeKubernetesResourceCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
describeKubernetesResourceCommand

Responses


kubernetesDownload

Download kube config file


/api/v1/kubernetes/{projectId}/download

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/download"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            Object result = apiInstance.kubernetesDownload(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDownload");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesDownload(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDownload: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            Object result = apiInstance.kubernetesDownload(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDownload");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Download kube config file
[apiInstance kubernetesDownloadWith:projectId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesDownloadExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Download kube config file
                Object result = apiInstance.kubernetesDownload(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDownload: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesDownload($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDownload: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesDownload(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDownload: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Download kube config file
    api_response = api_instance.kubernetes_download(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDownload: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDownload(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesDownloadManifest

Download manifest


/api/v1/kubernetes/download-manifest

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/download-manifest" \
 -d '{
  "kind" : "",
  "name" : "name",
  "namespace" : "namespace",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DownloadKubernetesResourceCommand downloadKubernetesResourceCommand = ; // DownloadKubernetesResourceCommand | 

        try {
            CsvExporter result = apiInstance.kubernetesDownloadManifest(downloadKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDownloadManifest");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DownloadKubernetesResourceCommand downloadKubernetesResourceCommand = new DownloadKubernetesResourceCommand(); // DownloadKubernetesResourceCommand | 

try {
    final result = await api_instance.kubernetesDownloadManifest(downloadKubernetesResourceCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesDownloadManifest: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DownloadKubernetesResourceCommand downloadKubernetesResourceCommand = ; // DownloadKubernetesResourceCommand | 

        try {
            CsvExporter result = apiInstance.kubernetesDownloadManifest(downloadKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesDownloadManifest");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DownloadKubernetesResourceCommand *downloadKubernetesResourceCommand = ; //  (optional)

// Download manifest
[apiInstance kubernetesDownloadManifestWith:downloadKubernetesResourceCommand
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'downloadKubernetesResourceCommand':  // {DownloadKubernetesResourceCommand} 
};

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

namespace Example
{
    public class kubernetesDownloadManifestExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var downloadKubernetesResourceCommand = new DownloadKubernetesResourceCommand(); // DownloadKubernetesResourceCommand |  (optional) 

            try {
                // Download manifest
                CsvExporter result = apiInstance.kubernetesDownloadManifest(downloadKubernetesResourceCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesDownloadManifest: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$downloadKubernetesResourceCommand = ; // DownloadKubernetesResourceCommand | 

try {
    $result = $api_instance->kubernetesDownloadManifest($downloadKubernetesResourceCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesDownloadManifest: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $downloadKubernetesResourceCommand = WWW::OPenAPIClient::Object::DownloadKubernetesResourceCommand->new(); # DownloadKubernetesResourceCommand | 

eval {
    my $result = $api_instance->kubernetesDownloadManifest(downloadKubernetesResourceCommand => $downloadKubernetesResourceCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesDownloadManifest: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
downloadKubernetesResourceCommand =  # DownloadKubernetesResourceCommand |  (optional)

try:
    # Download manifest
    api_response = api_instance.kubernetes_download_manifest(downloadKubernetesResourceCommand=downloadKubernetesResourceCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesDownloadManifest: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let downloadKubernetesResourceCommand = ; // DownloadKubernetesResourceCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesDownloadManifest(downloadKubernetesResourceCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
downloadKubernetesResourceCommand

Responses


kubernetesExport

Export


/api/v1/kubernetes/export

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/export?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            CsvExporter result = apiInstance.kubernetesExport(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesExport");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesExport(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesExport: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            CsvExporter result = apiInstance.kubernetesExport(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesExport");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Export
[apiInstance kubernetesExportWith:projectId
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesExportExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Export
                CsvExporter result = apiInstance.kubernetesExport(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesExport: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesExport($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesExport: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesExport(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesExport: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Export
    api_response = api_instance.kubernetes_export(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesExport: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesExport(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
ProjectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesForbiddenNamespaces

Forbidden namespaces for k8s actions


/api/v1/kubernetes/forbidden-namespaces/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/forbidden-namespaces/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array['String'] result = apiInstance.kubernetesForbiddenNamespaces(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesForbiddenNamespaces");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesForbiddenNamespaces(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesForbiddenNamespaces: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array['String'] result = apiInstance.kubernetesForbiddenNamespaces(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesForbiddenNamespaces");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Forbidden namespaces for k8s actions
[apiInstance kubernetesForbiddenNamespacesWith:projectId
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesForbiddenNamespacesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Forbidden namespaces for k8s actions
                array['String'] result = apiInstance.kubernetesForbiddenNamespaces(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesForbiddenNamespaces: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesForbiddenNamespaces($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesForbiddenNamespaces: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesForbiddenNamespaces(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesForbiddenNamespaces: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Forbidden namespaces for k8s actions
    api_response = api_instance.kubernetes_forbidden_namespaces(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesForbiddenNamespaces: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesForbiddenNamespaces(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesGetSupportedList

Retrieve CCF supported kubernetes versions


/api/v1/kubernetes/supported/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/supported/list"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();

        try {
            array[KubernetesVersionListDto] result = apiInstance.kubernetesGetSupportedList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesGetSupportedList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.kubernetesGetSupportedList();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesGetSupportedList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();

        try {
            array[KubernetesVersionListDto] result = apiInstance.kubernetesGetSupportedList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesGetSupportedList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];

// Retrieve CCF supported kubernetes versions
[apiInstance kubernetesGetSupportedListWithCompletionHandler: 
              ^(array[KubernetesVersionListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesGetSupportedList(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesGetSupportedListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();

            try {
                // Retrieve CCF supported kubernetes versions
                array[KubernetesVersionListDto] result = apiInstance.kubernetesGetSupportedList();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesGetSupportedList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();

try {
    $result = $api_instance->kubernetesGetSupportedList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesGetSupportedList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();

eval {
    my $result = $api_instance->kubernetesGetSupportedList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesGetSupportedList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()

try:
    # Retrieve CCF supported kubernetes versions
    api_response = api_instance.kubernetes_get_supported_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesGetSupportedList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesGetSupportedList(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


kubernetesIngressClasses

List of ingress classes


/api/v1/kubernetes/ingress-classes

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/kubernetes/ingress-classes"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        File config = ; // File | Optional kube-config file, max 10 MB
        Integer cloudId = 56; // Integer | Optional cloud credential id
        String region = region_example; // String | Optional cloud region
        String importClusterName = importClusterName_example; // String | Optional cluster name to import
        String resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)

        try {
            array['String'] result = apiInstance.kubernetesIngressClasses(config, cloudId, region, importClusterName, resourceGroupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesIngressClasses");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final File config = new File(); // File | Optional kube-config file, max 10 MB
final Integer cloudId = new Integer(); // Integer | Optional cloud credential id
final String region = new String(); // String | Optional cloud region
final String importClusterName = new String(); // String | Optional cluster name to import
final String resourceGroupName = new String(); // String | Optional resource group name (Azure)

try {
    final result = await api_instance.kubernetesIngressClasses(config, cloudId, region, importClusterName, resourceGroupName);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesIngressClasses: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        File config = ; // File | Optional kube-config file, max 10 MB
        Integer cloudId = 56; // Integer | Optional cloud credential id
        String region = region_example; // String | Optional cloud region
        String importClusterName = importClusterName_example; // String | Optional cluster name to import
        String resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)

        try {
            array['String'] result = apiInstance.kubernetesIngressClasses(config, cloudId, region, importClusterName, resourceGroupName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesIngressClasses");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
File *config = ; // Optional kube-config file, max 10 MB (optional) (default to null)
Integer *cloudId = 56; // Optional cloud credential id (optional) (default to null)
String *region = region_example; // Optional cloud region (optional) (default to null)
String *importClusterName = importClusterName_example; // Optional cluster name to import (optional) (default to null)
String *resourceGroupName = resourceGroupName_example; // Optional resource group name (Azure) (optional) (default to null)

// List of ingress classes
[apiInstance kubernetesIngressClassesWith:config
    cloudId:cloudId
    region:region
    importClusterName:importClusterName
    resourceGroupName:resourceGroupName
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'config': , // {File} Optional kube-config file, max 10 MB
  'cloudId': 56, // {Integer} Optional cloud credential id
  'region': region_example, // {String} Optional cloud region
  'importClusterName': importClusterName_example, // {String} Optional cluster name to import
  'resourceGroupName': resourceGroupName_example // {String} Optional resource group name (Azure)
};

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

namespace Example
{
    public class kubernetesIngressClassesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var config = new File(); // File | Optional kube-config file, max 10 MB (optional)  (default to null)
            var cloudId = 56;  // Integer | Optional cloud credential id (optional)  (default to null)
            var region = region_example;  // String | Optional cloud region (optional)  (default to null)
            var importClusterName = importClusterName_example;  // String | Optional cluster name to import (optional)  (default to null)
            var resourceGroupName = resourceGroupName_example;  // String | Optional resource group name (Azure) (optional)  (default to null)

            try {
                // List of ingress classes
                array['String'] result = apiInstance.kubernetesIngressClasses(config, cloudId, region, importClusterName, resourceGroupName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesIngressClasses: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$config = ; // File | Optional kube-config file, max 10 MB
$cloudId = 56; // Integer | Optional cloud credential id
$region = region_example; // String | Optional cloud region
$importClusterName = importClusterName_example; // String | Optional cluster name to import
$resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)

try {
    $result = $api_instance->kubernetesIngressClasses($config, $cloudId, $region, $importClusterName, $resourceGroupName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesIngressClasses: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $config = ; # File | Optional kube-config file, max 10 MB
my $cloudId = 56; # Integer | Optional cloud credential id
my $region = region_example; # String | Optional cloud region
my $importClusterName = importClusterName_example; # String | Optional cluster name to import
my $resourceGroupName = resourceGroupName_example; # String | Optional resource group name (Azure)

eval {
    my $result = $api_instance->kubernetesIngressClasses(config => $config, cloudId => $cloudId, region => $region, importClusterName => $importClusterName, resourceGroupName => $resourceGroupName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesIngressClasses: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
config =  # File | Optional kube-config file, max 10 MB (optional) (default to null)
cloudId = 56 # Integer | Optional cloud credential id (optional) (default to null)
region = region_example # String | Optional cloud region (optional) (default to null)
importClusterName = importClusterName_example # String | Optional cluster name to import (optional) (default to null)
resourceGroupName = resourceGroupName_example # String | Optional resource group name (Azure) (optional) (default to null)

try:
    # List of ingress classes
    api_response = api_instance.kubernetes_ingress_classes(config=config, cloudId=cloudId, region=region, importClusterName=importClusterName, resourceGroupName=resourceGroupName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesIngressClasses: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let config = ; // File
    let cloudId = 56; // Integer
    let region = region_example; // String
    let importClusterName = importClusterName_example; // String
    let resourceGroupName = resourceGroupName_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesIngressClasses(config, cloudId, region, importClusterName, resourceGroupName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
config
File (binary)
Optional kube-config file, max 10 MB
cloudId
Integer (int32)
Optional cloud credential id
region
String
Optional cloud region
importClusterName
String
Optional cluster name to import
resourceGroupName
String
Optional resource group name (Azure)

Responses


kubernetesIngressList

K8s ingress list


/api/v1/kubernetes/list/{projectId}/ingress

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/ingress?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            IngressListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesIngressList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesIngressList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesIngressList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesIngressList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            IngressListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesIngressList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesIngressList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s ingress list
[apiInstance kubernetesIngressListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(IngressListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesIngressList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesIngressListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s ingress list
                IngressListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesIngressList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesIngressList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesIngressList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesIngressList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesIngressList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesIngressList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s ingress list
    api_response = api_instance.kubernetes_ingress_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesIngressList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesIngressList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesInteractiveShell

Produce interactive shell command


/api/v1/kubernetes/interactive-shell

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/interactive-shell" \
 -d '{
  "instanceId" : 6,
  "projectId" : 0,
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        InteractiveShellSendCommand interactiveShellSendCommand = ; // InteractiveShellSendCommand | 

        try {
            KubernetesInteractiveShellDto result = apiInstance.kubernetesInteractiveShell(interactiveShellSendCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesInteractiveShell");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final InteractiveShellSendCommand interactiveShellSendCommand = new InteractiveShellSendCommand(); // InteractiveShellSendCommand | 

try {
    final result = await api_instance.kubernetesInteractiveShell(interactiveShellSendCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesInteractiveShell: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        InteractiveShellSendCommand interactiveShellSendCommand = ; // InteractiveShellSendCommand | 

        try {
            KubernetesInteractiveShellDto result = apiInstance.kubernetesInteractiveShell(interactiveShellSendCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesInteractiveShell");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
InteractiveShellSendCommand *interactiveShellSendCommand = ; //  (optional)

// Produce interactive shell command
[apiInstance kubernetesInteractiveShellWith:interactiveShellSendCommand
              completionHandler: ^(KubernetesInteractiveShellDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'interactiveShellSendCommand':  // {InteractiveShellSendCommand} 
};

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

namespace Example
{
    public class kubernetesInteractiveShellExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var interactiveShellSendCommand = new InteractiveShellSendCommand(); // InteractiveShellSendCommand |  (optional) 

            try {
                // Produce interactive shell command
                KubernetesInteractiveShellDto result = apiInstance.kubernetesInteractiveShell(interactiveShellSendCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesInteractiveShell: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$interactiveShellSendCommand = ; // InteractiveShellSendCommand | 

try {
    $result = $api_instance->kubernetesInteractiveShell($interactiveShellSendCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesInteractiveShell: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $interactiveShellSendCommand = WWW::OPenAPIClient::Object::InteractiveShellSendCommand->new(); # InteractiveShellSendCommand | 

eval {
    my $result = $api_instance->kubernetesInteractiveShell(interactiveShellSendCommand => $interactiveShellSendCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesInteractiveShell: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
interactiveShellSendCommand =  # InteractiveShellSendCommand |  (optional)

try:
    # Produce interactive shell command
    api_response = api_instance.kubernetes_interactive_shell(interactiveShellSendCommand=interactiveShellSendCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesInteractiveShell: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let interactiveShellSendCommand = ; // InteractiveShellSendCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesInteractiveShell(interactiveShellSendCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
interactiveShellSendCommand

Responses


kubernetesKubeConfig

Retrieve kube config file


/api/v1/kubernetes/{projectId}/kubeconfig

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/kubeconfig"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubeConfigResponse result = apiInstance.kubernetesKubeConfig(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesKubeConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesKubeConfig(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesKubeConfig: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubeConfigResponse result = apiInstance.kubernetesKubeConfig(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesKubeConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Retrieve kube config file
[apiInstance kubernetesKubeConfigWith:projectId
              completionHandler: ^(KubeConfigResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesKubeConfigExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Retrieve kube config file
                KubeConfigResponse result = apiInstance.kubernetesKubeConfig(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesKubeConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesKubeConfig($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesKubeConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesKubeConfig(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesKubeConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Retrieve kube config file
    api_response = api_instance.kubernetes_kube_config(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesKubeConfig: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesKubeConfig(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesNamespaceList

Retrieve kube config file


/api/v1/kubernetes/{projectId}/namespaces

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/namespaces?Installation=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Boolean installation = true; // Boolean | Optional: filter to installation namespaces

        try {
            array['String'] result = apiInstance.kubernetesNamespaceList(projectId, installation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNamespaceList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Boolean installation = new Boolean(); // Boolean | Optional: filter to installation namespaces

try {
    final result = await api_instance.kubernetesNamespaceList(projectId, installation);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesNamespaceList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Boolean installation = true; // Boolean | Optional: filter to installation namespaces

        try {
            array['String'] result = apiInstance.kubernetesNamespaceList(projectId, installation);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNamespaceList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Boolean *installation = true; // Optional: filter to installation namespaces (optional) (default to null)

// Retrieve kube config file
[apiInstance kubernetesNamespaceListWith:projectId
    installation:installation
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'installation': true // {Boolean} Optional: filter to installation namespaces
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesNamespaceList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesNamespaceListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var installation = true;  // Boolean | Optional: filter to installation namespaces (optional)  (default to null)

            try {
                // Retrieve kube config file
                array['String'] result = apiInstance.kubernetesNamespaceList(projectId, installation);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesNamespaceList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$installation = true; // Boolean | Optional: filter to installation namespaces

try {
    $result = $api_instance->kubernetesNamespaceList($projectId, $installation);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesNamespaceList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $installation = true; # Boolean | Optional: filter to installation namespaces

eval {
    my $result = $api_instance->kubernetesNamespaceList(projectId => $projectId, installation => $installation);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesNamespaceList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
installation = true # Boolean | Optional: filter to installation namespaces (optional) (default to null)

try:
    # Retrieve kube config file
    api_response = api_instance.kubernetes_namespace_list(projectId, installation=installation)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesNamespaceList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let installation = true; // Boolean

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesNamespaceList(projectId, installation, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Installation
Boolean
Optional: filter to installation namespaces

Responses


kubernetesNetworkPolicyList

K8s network policy list


/api/v1/kubernetes/list/{projectId}/network-policy

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/network-policy?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            NetworkPolicyListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNetworkPolicyList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNetworkPolicyList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesNetworkPolicyList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesNetworkPolicyList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            NetworkPolicyListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNetworkPolicyList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNetworkPolicyList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s network policy list
[apiInstance kubernetesNetworkPolicyListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(NetworkPolicyListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesNetworkPolicyList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesNetworkPolicyListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s network policy list
                NetworkPolicyListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNetworkPolicyList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesNetworkPolicyList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesNetworkPolicyList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesNetworkPolicyList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesNetworkPolicyList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesNetworkPolicyList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s network policy list
    api_response = api_instance.kubernetes_network_policy_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesNetworkPolicyList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesNetworkPolicyList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesNodeActions

Node actions


/api/v1/kubernetes/nodes/actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/nodes/actions" \
 -d '{
  "name" : "name",
  "action" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        NodeActionCommand nodeActionCommand = ; // NodeActionCommand | 

        try {
            Object result = apiInstance.kubernetesNodeActions(nodeActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNodeActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final NodeActionCommand nodeActionCommand = new NodeActionCommand(); // NodeActionCommand | 

try {
    final result = await api_instance.kubernetesNodeActions(nodeActionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesNodeActions: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        NodeActionCommand nodeActionCommand = ; // NodeActionCommand | 

        try {
            Object result = apiInstance.kubernetesNodeActions(nodeActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNodeActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
NodeActionCommand *nodeActionCommand = ; //  (optional)

// Node actions
[apiInstance kubernetesNodeActionsWith:nodeActionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'nodeActionCommand':  // {NodeActionCommand} 
};

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

namespace Example
{
    public class kubernetesNodeActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var nodeActionCommand = new NodeActionCommand(); // NodeActionCommand |  (optional) 

            try {
                // Node actions
                Object result = apiInstance.kubernetesNodeActions(nodeActionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesNodeActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$nodeActionCommand = ; // NodeActionCommand | 

try {
    $result = $api_instance->kubernetesNodeActions($nodeActionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesNodeActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $nodeActionCommand = WWW::OPenAPIClient::Object::NodeActionCommand->new(); # NodeActionCommand | 

eval {
    my $result = $api_instance->kubernetesNodeActions(nodeActionCommand => $nodeActionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesNodeActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
nodeActionCommand =  # NodeActionCommand |  (optional)

try:
    # Node actions
    api_response = api_instance.kubernetes_node_actions(nodeActionCommand=nodeActionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesNodeActions: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let nodeActionCommand = ; // NodeActionCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesNodeActions(nodeActionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
nodeActionCommand

Responses


kubernetesNodeList

K8s node list


/api/v1/kubernetes/list/{projectId}/nodes

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/nodes?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            NodeListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNodeList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNodeList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesNodeList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesNodeList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            NodeListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNodeList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesNodeList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s node list
[apiInstance kubernetesNodeListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(NodeListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesNodeList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesNodeListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s node list
                NodeListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesNodeList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesNodeList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesNodeList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesNodeList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesNodeList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesNodeList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s node list
    api_response = api_instance.kubernetes_node_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesNodeList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesNodeList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesOverview

Overview kubernetes nodes and pods by organization id

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/kubernetes/overview

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/overview?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            array[KubernetesOverviewDto] result = apiInstance.kubernetesOverview(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesOverview");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Organization id, positive integer

try {
    final result = await api_instance.kubernetesOverview(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesOverview: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            array[KubernetesOverviewDto] result = apiInstance.kubernetesOverview(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesOverview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *organizationId = 56; // Organization id, positive integer (default to null)

// Overview kubernetes nodes and pods by organization id
[apiInstance kubernetesOverviewWith:organizationId
              completionHandler: ^(array[KubernetesOverviewDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var organizationId = 56; // {Integer} Organization id, positive integer

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

namespace Example
{
    public class kubernetesOverviewExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var organizationId = 56;  // Integer | Organization id, positive integer (default to null)

            try {
                // Overview kubernetes nodes and pods by organization id
                array[KubernetesOverviewDto] result = apiInstance.kubernetesOverview(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesOverview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$organizationId = 56; // Integer | Organization id, positive integer

try {
    $result = $api_instance->kubernetesOverview($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesOverview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $organizationId = 56; # Integer | Organization id, positive integer

eval {
    my $result = $api_instance->kubernetesOverview(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesOverview: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
organizationId = 56 # Integer | Organization id, positive integer (default to null)

try:
    # Overview kubernetes nodes and pods by organization id
    api_response = api_instance.kubernetes_overview(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesOverview: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesOverview(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId*
Integer (int32)
Organization id, positive integer
Required

Responses


kubernetesPatchResource

Patch kubernetes resource


/api/v1/kubernetes/patch-resource

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/patch-resource" \
 -d '{
  "name" : "name",
  "namespace" : "namespace",
  "projectId" : 0,
  "yaml" : "yaml"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        PatchKubernetesResourceCommand patchKubernetesResourceCommand = ; // PatchKubernetesResourceCommand | 

        try {
            Object result = apiInstance.kubernetesPatchResource(patchKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPatchResource");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PatchKubernetesResourceCommand patchKubernetesResourceCommand = new PatchKubernetesResourceCommand(); // PatchKubernetesResourceCommand | 

try {
    final result = await api_instance.kubernetesPatchResource(patchKubernetesResourceCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesPatchResource: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        PatchKubernetesResourceCommand patchKubernetesResourceCommand = ; // PatchKubernetesResourceCommand | 

        try {
            Object result = apiInstance.kubernetesPatchResource(patchKubernetesResourceCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPatchResource");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
PatchKubernetesResourceCommand *patchKubernetesResourceCommand = ; //  (optional)

// Patch kubernetes resource
[apiInstance kubernetesPatchResourceWith:patchKubernetesResourceCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'patchKubernetesResourceCommand':  // {PatchKubernetesResourceCommand} 
};

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

namespace Example
{
    public class kubernetesPatchResourceExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var patchKubernetesResourceCommand = new PatchKubernetesResourceCommand(); // PatchKubernetesResourceCommand |  (optional) 

            try {
                // Patch kubernetes resource
                Object result = apiInstance.kubernetesPatchResource(patchKubernetesResourceCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesPatchResource: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$patchKubernetesResourceCommand = ; // PatchKubernetesResourceCommand | 

try {
    $result = $api_instance->kubernetesPatchResource($patchKubernetesResourceCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesPatchResource: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $patchKubernetesResourceCommand = WWW::OPenAPIClient::Object::PatchKubernetesResourceCommand->new(); # PatchKubernetesResourceCommand | 

eval {
    my $result = $api_instance->kubernetesPatchResource(patchKubernetesResourceCommand => $patchKubernetesResourceCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesPatchResource: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
patchKubernetesResourceCommand =  # PatchKubernetesResourceCommand |  (optional)

try:
    # Patch kubernetes resource
    api_response = api_instance.kubernetes_patch_resource(patchKubernetesResourceCommand=patchKubernetesResourceCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesPatchResource: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let patchKubernetesResourceCommand = ; // PatchKubernetesResourceCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesPatchResource(patchKubernetesResourceCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
patchKubernetesResourceCommand

Responses


kubernetesPodLogs

Retrieve k8s pod logs


/api/v1/kubernetes/podLogs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/podLogs" \
 -d '{
  "container" : "container",
  "name" : "name",
  "namespace" : "namespace",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        KubernetesPodLogsCommand kubernetesPodLogsCommand = ; // KubernetesPodLogsCommand | 

        try {
            'String' result = apiInstance.kubernetesPodLogs(kubernetesPodLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPodLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final KubernetesPodLogsCommand kubernetesPodLogsCommand = new KubernetesPodLogsCommand(); // KubernetesPodLogsCommand | 

try {
    final result = await api_instance.kubernetesPodLogs(kubernetesPodLogsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesPodLogs: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        KubernetesPodLogsCommand kubernetesPodLogsCommand = ; // KubernetesPodLogsCommand | 

        try {
            'String' result = apiInstance.kubernetesPodLogs(kubernetesPodLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPodLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
KubernetesPodLogsCommand *kubernetesPodLogsCommand = ; //  (optional)

// Retrieve k8s pod logs
[apiInstance kubernetesPodLogsWith:kubernetesPodLogsCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'kubernetesPodLogsCommand':  // {KubernetesPodLogsCommand} 
};

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

namespace Example
{
    public class kubernetesPodLogsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var kubernetesPodLogsCommand = new KubernetesPodLogsCommand(); // KubernetesPodLogsCommand |  (optional) 

            try {
                // Retrieve k8s pod logs
                'String' result = apiInstance.kubernetesPodLogs(kubernetesPodLogsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesPodLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$kubernetesPodLogsCommand = ; // KubernetesPodLogsCommand | 

try {
    $result = $api_instance->kubernetesPodLogs($kubernetesPodLogsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesPodLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $kubernetesPodLogsCommand = WWW::OPenAPIClient::Object::KubernetesPodLogsCommand->new(); # KubernetesPodLogsCommand | 

eval {
    my $result = $api_instance->kubernetesPodLogs(kubernetesPodLogsCommand => $kubernetesPodLogsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesPodLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
kubernetesPodLogsCommand =  # KubernetesPodLogsCommand |  (optional)

try:
    # Retrieve k8s pod logs
    api_response = api_instance.kubernetes_pod_logs(kubernetesPodLogsCommand=kubernetesPodLogsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesPodLogs: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let kubernetesPodLogsCommand = ; // KubernetesPodLogsCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesPodLogs(kubernetesPodLogsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
kubernetesPodLogsCommand

Responses


kubernetesPodsList

K8s pods list


/api/v1/kubernetes/{projectId}/pods-list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/pods-list?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            PodsListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPodsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPodsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesPodsList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesPodsList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            PodsListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPodsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPodsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s pods list
[apiInstance kubernetesPodsListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(PodsListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesPodsList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesPodsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s pods list
                PodsListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPodsList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesPodsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesPodsList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesPodsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesPodsList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesPodsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s pods list
    api_response = api_instance.kubernetes_pods_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesPodsList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesPodsList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesPvcList

K8s pvc list


/api/v1/kubernetes/list/{projectId}/pvc

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/pvc?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            PvcListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPvcList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPvcList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesPvcList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesPvcList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            PvcListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPvcList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesPvcList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s pvc list
[apiInstance kubernetesPvcListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(PvcListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesPvcList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesPvcListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s pvc list
                PvcListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesPvcList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesPvcList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesPvcList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesPvcList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesPvcList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesPvcList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s pvc list
    api_response = api_instance.kubernetes_pvc_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesPvcList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesPvcList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesQuota

K8s quota usage

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/kubernetes/{projectId}/quota

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/quota"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesQuotaListDto result = apiInstance.kubernetesQuota(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesQuota");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesQuota(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesQuota: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesQuotaListDto result = apiInstance.kubernetesQuota(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesQuota");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// K8s quota usage
[apiInstance kubernetesQuotaWith:projectId
              completionHandler: ^(KubernetesQuotaListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesQuotaExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // K8s quota usage
                KubernetesQuotaListDto result = apiInstance.kubernetesQuota(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesQuota: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesQuota($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesQuota: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesQuota(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesQuota: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # K8s quota usage
    api_response = api_instance.kubernetes_quota(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesQuota: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesQuota(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesRemovealerts

Remove k8s alerts


/api/v1/kubernetes/removealerts

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/removealerts" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        DeleteAlertCommand deleteAlertCommand = ; // DeleteAlertCommand | 

        try {
            Object result = apiInstance.kubernetesRemovealerts(deleteAlertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesRemovealerts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteAlertCommand deleteAlertCommand = new DeleteAlertCommand(); // DeleteAlertCommand | 

try {
    final result = await api_instance.kubernetesRemovealerts(deleteAlertCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesRemovealerts: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        DeleteAlertCommand deleteAlertCommand = ; // DeleteAlertCommand | 

        try {
            Object result = apiInstance.kubernetesRemovealerts(deleteAlertCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesRemovealerts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
DeleteAlertCommand *deleteAlertCommand = ; //  (optional)

// Remove k8s alerts
[apiInstance kubernetesRemovealertsWith:deleteAlertCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'deleteAlertCommand':  // {DeleteAlertCommand} 
};

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

namespace Example
{
    public class kubernetesRemovealertsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var deleteAlertCommand = new DeleteAlertCommand(); // DeleteAlertCommand |  (optional) 

            try {
                // Remove k8s alerts
                Object result = apiInstance.kubernetesRemovealerts(deleteAlertCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesRemovealerts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$deleteAlertCommand = ; // DeleteAlertCommand | 

try {
    $result = $api_instance->kubernetesRemovealerts($deleteAlertCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesRemovealerts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $deleteAlertCommand = WWW::OPenAPIClient::Object::DeleteAlertCommand->new(); # DeleteAlertCommand | 

eval {
    my $result = $api_instance->kubernetesRemovealerts(deleteAlertCommand => $deleteAlertCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesRemovealerts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
deleteAlertCommand =  # DeleteAlertCommand |  (optional)

try:
    # Remove k8s alerts
    api_response = api_instance.kubernetes_removealerts(deleteAlertCommand=deleteAlertCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesRemovealerts: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let deleteAlertCommand = ; // DeleteAlertCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesRemovealerts(deleteAlertCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteAlertCommand

Responses


kubernetesResources

Retrieve all total count


/api/v1/kubernetes/{projectId}/resources

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/{projectId}/resources"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesResourcesDto result = apiInstance.kubernetesResources(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.kubernetesResources(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesResources: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            KubernetesResourcesDto result = apiInstance.kubernetesResources(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Retrieve all total count
[apiInstance kubernetesResourcesWith:projectId
              completionHandler: ^(KubernetesResourcesDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer

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

namespace Example
{
    public class kubernetesResourcesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Retrieve all total count
                KubernetesResourcesDto result = apiInstance.kubernetesResources(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->kubernetesResources($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->kubernetesResources(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Retrieve all total count
    api_response = api_instance.kubernetes_resources(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesResources: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesResources(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


kubernetesSecretList

K8s secret list


/api/v1/kubernetes/list/{projectId}/secret

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/secret?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            SecretListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesSecretList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesSecretList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesSecretList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesSecretList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            SecretListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesSecretList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesSecretList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s secret list
[apiInstance kubernetesSecretListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(SecretListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesSecretList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesSecretListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s secret list
                SecretListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesSecretList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesSecretList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesSecretList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesSecretList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesSecretList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesSecretList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s secret list
    api_response = api_instance.kubernetes_secret_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesSecretList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesSecretList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesServicesList

K8s service list


/api/v1/kubernetes/list/{projectId}/service

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/service?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            ServiceListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesServicesList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesServicesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesServicesList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesServicesList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            ServiceListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesServicesList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesServicesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s service list
[apiInstance kubernetesServicesListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(ServiceListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesServicesList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesServicesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s service list
                ServiceListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesServicesList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesServicesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesServicesList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesServicesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesServicesList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesServicesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s service list
    api_response = api_instance.kubernetes_services_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesServicesList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesServicesList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesSilenceManager

Silence management for k8s alerts


/api/v1/kubernetes/silencemanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/silencemanager" \
 -d '{
  "mode" : "mode",
  "reason" : "reason",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        SilenceOperationsCommand silenceOperationsCommand = ; // SilenceOperationsCommand | 

        try {
            Object result = apiInstance.kubernetesSilenceManager(silenceOperationsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesSilenceManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SilenceOperationsCommand silenceOperationsCommand = new SilenceOperationsCommand(); // SilenceOperationsCommand | 

try {
    final result = await api_instance.kubernetesSilenceManager(silenceOperationsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesSilenceManager: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        SilenceOperationsCommand silenceOperationsCommand = ; // SilenceOperationsCommand | 

        try {
            Object result = apiInstance.kubernetesSilenceManager(silenceOperationsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesSilenceManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
SilenceOperationsCommand *silenceOperationsCommand = ; //  (optional)

// Silence management for k8s alerts
[apiInstance kubernetesSilenceManagerWith:silenceOperationsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'silenceOperationsCommand':  // {SilenceOperationsCommand} 
};

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

namespace Example
{
    public class kubernetesSilenceManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var silenceOperationsCommand = new SilenceOperationsCommand(); // SilenceOperationsCommand |  (optional) 

            try {
                // Silence management for k8s alerts
                Object result = apiInstance.kubernetesSilenceManager(silenceOperationsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesSilenceManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$silenceOperationsCommand = ; // SilenceOperationsCommand | 

try {
    $result = $api_instance->kubernetesSilenceManager($silenceOperationsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesSilenceManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $silenceOperationsCommand = WWW::OPenAPIClient::Object::SilenceOperationsCommand->new(); # SilenceOperationsCommand | 

eval {
    my $result = $api_instance->kubernetesSilenceManager(silenceOperationsCommand => $silenceOperationsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesSilenceManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
silenceOperationsCommand =  # SilenceOperationsCommand |  (optional)

try:
    # Silence management for k8s alerts
    api_response = api_instance.kubernetes_silence_manager(silenceOperationsCommand=silenceOperationsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesSilenceManager: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let silenceOperationsCommand = ; // SilenceOperationsCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesSilenceManager(silenceOperationsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
silenceOperationsCommand

Responses


kubernetesStsActions

Stateful set actions


/api/v1/kubernetes/sts/actions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/sts/actions" \
 -d '{
  "name" : "name",
  "namespace" : "namespace",
  "action" : "",
  "projectId" : 0,
  "scaleReplicaCount" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        StsActionCommand stsActionCommand = ; // StsActionCommand | 

        try {
            Object result = apiInstance.kubernetesStsActions(stsActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesStsActions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StsActionCommand stsActionCommand = new StsActionCommand(); // StsActionCommand | 

try {
    final result = await api_instance.kubernetesStsActions(stsActionCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesStsActions: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        StsActionCommand stsActionCommand = ; // StsActionCommand | 

        try {
            Object result = apiInstance.kubernetesStsActions(stsActionCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesStsActions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
StsActionCommand *stsActionCommand = ; //  (optional)

// Stateful set actions
[apiInstance kubernetesStsActionsWith:stsActionCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var opts = {
  'stsActionCommand':  // {StsActionCommand} 
};

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

namespace Example
{
    public class kubernetesStsActionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var stsActionCommand = new StsActionCommand(); // StsActionCommand |  (optional) 

            try {
                // Stateful set actions
                Object result = apiInstance.kubernetesStsActions(stsActionCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesStsActions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$stsActionCommand = ; // StsActionCommand | 

try {
    $result = $api_instance->kubernetesStsActions($stsActionCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesStsActions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $stsActionCommand = WWW::OPenAPIClient::Object::StsActionCommand->new(); # StsActionCommand | 

eval {
    my $result = $api_instance->kubernetesStsActions(stsActionCommand => $stsActionCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesStsActions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
stsActionCommand =  # StsActionCommand |  (optional)

try:
    # Stateful set actions
    api_response = api_instance.kubernetes_sts_actions(stsActionCommand=stsActionCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesStsActions: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let stsActionCommand = ; // StsActionCommand

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesStsActions(stsActionCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
stsActionCommand

Responses


kubernetesStsList

K8s sts list


/api/v1/kubernetes/list/{projectId}/sts

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetes/list/{projectId}/sts?Limit=56&Cursor=cursor_example&SearchTerm=searchTerm_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            StatefulSetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesStsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesStsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final String cursor = new String(); // String | Opaque pagination cursor
final String searchTerm = new String(); // String | Free-text search filter

try {
    final result = await api_instance.kubernetesStsList(projectId, limit, cursor, searchTerm);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesStsList: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        Integer limit = 56; // Integer | Page size; defaults to 50
        String cursor = cursor_example; // String | Opaque pagination cursor
        String searchTerm = searchTerm_example; // String | Free-text search filter

        try {
            StatefulSetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesStsList(projectId, limit, cursor, searchTerm);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesStsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
String *cursor = cursor_example; // Opaque pagination cursor (optional) (default to null)
String *searchTerm = searchTerm_example; // Free-text search filter (optional) (default to null)

// K8s sts list
[apiInstance kubernetesStsListWith:projectId
    limit:limit
    cursor:cursor
    searchTerm:searchTerm
              completionHandler: ^(StatefulSetListDtoCursorStringPaginatedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'limit': 56, // {Integer} Page size; defaults to 50
  'cursor': cursor_example, // {String} Opaque pagination cursor
  'searchTerm': searchTerm_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesStsList(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesStsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var cursor = cursor_example;  // String | Opaque pagination cursor (optional)  (default to null)
            var searchTerm = searchTerm_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // K8s sts list
                StatefulSetListDtoCursorStringPaginatedResponse result = apiInstance.kubernetesStsList(projectId, limit, cursor, searchTerm);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesStsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$projectId = 56; // Integer | Project id, positive integer
$limit = 56; // Integer | Page size; defaults to 50
$cursor = cursor_example; // String | Opaque pagination cursor
$searchTerm = searchTerm_example; // String | Free-text search filter

try {
    $result = $api_instance->kubernetesStsList($projectId, $limit, $cursor, $searchTerm);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesStsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $limit = 56; # Integer | Page size; defaults to 50
my $cursor = cursor_example; # String | Opaque pagination cursor
my $searchTerm = searchTerm_example; # String | Free-text search filter

eval {
    my $result = $api_instance->kubernetesStsList(projectId => $projectId, limit => $limit, cursor => $cursor, searchTerm => $searchTerm);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesStsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
cursor = cursor_example # String | Opaque pagination cursor (optional) (default to null)
searchTerm = searchTerm_example # String | Free-text search filter (optional) (default to null)

try:
    # K8s sts list
    api_response = api_instance.kubernetes_sts_list(projectId, limit=limit, cursor=cursor, searchTerm=searchTerm)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesStsList: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let cursor = cursor_example; // String
    let searchTerm = searchTerm_example; // String

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesStsList(projectId, limit, cursor, searchTerm, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Page size; defaults to 50
Cursor
String
Opaque pagination cursor
SearchTerm
String
Free-text search filter

Responses


kubernetesUpdateAlert

Update k8s alert


/api/v1/kubernetes/updatealert/{alertId}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetes/updatealert/{alertId}" \
 -d '{
  "isSilenced" : true,
  "fingerprint" : "fingerprint",
  "startsAt" : "2000-01-23T04:56:07.000+00:00",
  "silenceReason" : "silenceReason",
  "endsAt" : "2000-01-23T04:56:07.000+00:00",
  "status" : "status",
  "labels" : "{}"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesApi;

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

public class KubernetesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesApi apiInstance = new KubernetesApi();
        Integer alertId = 56; // Integer | 
        UpdateKubernetesAlertDto updateKubernetesAlertDto = ; // UpdateKubernetesAlertDto | 

        try {
            Object result = apiInstance.kubernetesUpdateAlert(alertId, updateKubernetesAlertDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesUpdateAlert");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer alertId = new Integer(); // Integer | 
final UpdateKubernetesAlertDto updateKubernetesAlertDto = new UpdateKubernetesAlertDto(); // UpdateKubernetesAlertDto | 

try {
    final result = await api_instance.kubernetesUpdateAlert(alertId, updateKubernetesAlertDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesUpdateAlert: $e\n');
}

import org.openapitools.client.api.KubernetesApi;

public class KubernetesApiExample {
    public static void main(String[] args) {
        KubernetesApi apiInstance = new KubernetesApi();
        Integer alertId = 56; // Integer | 
        UpdateKubernetesAlertDto updateKubernetesAlertDto = ; // UpdateKubernetesAlertDto | 

        try {
            Object result = apiInstance.kubernetesUpdateAlert(alertId, updateKubernetesAlertDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesApi#kubernetesUpdateAlert");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesApi *apiInstance = [[KubernetesApi alloc] init];
Integer *alertId = 56; //  (default to null)
UpdateKubernetesAlertDto *updateKubernetesAlertDto = ; //  (optional)

// Update k8s alert
[apiInstance kubernetesUpdateAlertWith:alertId
    updateKubernetesAlertDto:updateKubernetesAlertDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesApi()
var alertId = 56; // {Integer} 
var opts = {
  'updateKubernetesAlertDto':  // {UpdateKubernetesAlertDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubernetesUpdateAlert(alertId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubernetesUpdateAlertExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesApi();
            var alertId = 56;  // Integer |  (default to null)
            var updateKubernetesAlertDto = new UpdateKubernetesAlertDto(); // UpdateKubernetesAlertDto |  (optional) 

            try {
                // Update k8s alert
                Object result = apiInstance.kubernetesUpdateAlert(alertId, updateKubernetesAlertDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesApi.kubernetesUpdateAlert: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesApi();
$alertId = 56; // Integer | 
$updateKubernetesAlertDto = ; // UpdateKubernetesAlertDto | 

try {
    $result = $api_instance->kubernetesUpdateAlert($alertId, $updateKubernetesAlertDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesApi->kubernetesUpdateAlert: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesApi->new();
my $alertId = 56; # Integer | 
my $updateKubernetesAlertDto = WWW::OPenAPIClient::Object::UpdateKubernetesAlertDto->new(); # UpdateKubernetesAlertDto | 

eval {
    my $result = $api_instance->kubernetesUpdateAlert(alertId => $alertId, updateKubernetesAlertDto => $updateKubernetesAlertDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesApi->kubernetesUpdateAlert: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesApi()
alertId = 56 # Integer |  (default to null)
updateKubernetesAlertDto =  # UpdateKubernetesAlertDto |  (optional)

try:
    # Update k8s alert
    api_response = api_instance.kubernetes_update_alert(alertId, updateKubernetesAlertDto=updateKubernetesAlertDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesApi->kubernetesUpdateAlert: %s\n" % e)
extern crate KubernetesApi;

pub fn main() {
    let alertId = 56; // Integer
    let updateKubernetesAlertDto = ; // UpdateKubernetesAlertDto

    let mut context = KubernetesApi::Context::default();
    let result = client.kubernetesUpdateAlert(alertId, updateKubernetesAlertDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
alertId*
Integer (int32)
Required
Body parameters
Name Description
updateKubernetesAlertDto

Responses


KubernetesProfiles

kubernetesprofilesCreate

Add kubernetes profile


/api/v1/kubernetesprofiles

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetesprofiles" \
 -d '{
  "organizationId" : 0,
  "components" : [ {
    "chartName" : "chartName",
    "releaseName" : "releaseName",
    "values" : "values",
    "namespace" : "namespace",
    "registryCredentialId" : 6,
    "version" : "version",
    "order" : 0
  }, {
    "chartName" : "chartName",
    "releaseName" : "releaseName",
    "values" : "values",
    "namespace" : "namespace",
    "registryCredentialId" : 6,
    "version" : "version",
    "order" : 0
  } ],
  "octaviaEnabled" : true,
  "cniEncryption" : false,
  "name" : "name",
  "exposeNodePortOnBastion" : true,
  "allowSchedulingOnMaster" : true,
  "nvidiaGpuOperatorEnabled" : true,
  "uniqueClusterName" : true,
  "agentSandboxingEnabled" : false
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        CreateKubernetesProfileCommand createKubernetesProfileCommand = ; // CreateKubernetesProfileCommand | 

        try {
            ApiResponse result = apiInstance.kubernetesprofilesCreate(createKubernetesProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateKubernetesProfileCommand createKubernetesProfileCommand = new CreateKubernetesProfileCommand(); // CreateKubernetesProfileCommand | 

try {
    final result = await api_instance.kubernetesprofilesCreate(createKubernetesProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesCreate: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        CreateKubernetesProfileCommand createKubernetesProfileCommand = ; // CreateKubernetesProfileCommand | 

        try {
            ApiResponse result = apiInstance.kubernetesprofilesCreate(createKubernetesProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
CreateKubernetesProfileCommand *createKubernetesProfileCommand = ; //  (optional)

// Add kubernetes profile
[apiInstance kubernetesprofilesCreateWith:createKubernetesProfileCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var opts = {
  'createKubernetesProfileCommand':  // {CreateKubernetesProfileCommand} 
};

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

namespace Example
{
    public class kubernetesprofilesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var createKubernetesProfileCommand = new CreateKubernetesProfileCommand(); // CreateKubernetesProfileCommand |  (optional) 

            try {
                // Add kubernetes profile
                ApiResponse result = apiInstance.kubernetesprofilesCreate(createKubernetesProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$createKubernetesProfileCommand = ; // CreateKubernetesProfileCommand | 

try {
    $result = $api_instance->kubernetesprofilesCreate($createKubernetesProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $createKubernetesProfileCommand = WWW::OPenAPIClient::Object::CreateKubernetesProfileCommand->new(); # CreateKubernetesProfileCommand | 

eval {
    my $result = $api_instance->kubernetesprofilesCreate(createKubernetesProfileCommand => $createKubernetesProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
createKubernetesProfileCommand =  # CreateKubernetesProfileCommand |  (optional)

try:
    # Add kubernetes profile
    api_response = api_instance.kubernetesprofiles_create(createKubernetesProfileCommand=createKubernetesProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesCreate: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let createKubernetesProfileCommand = ; // CreateKubernetesProfileCommand

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesCreate(createKubernetesProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createKubernetesProfileCommand

Responses


kubernetesprofilesDelete

Delete kubernetes profile


/api/v1/kubernetesprofiles/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetesprofiles/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.kubernetesprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.kubernetesprofilesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesDelete: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.kubernetesprofilesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete kubernetes profile
[apiInstance kubernetesprofilesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class kubernetesprofilesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete kubernetes profile
                Object result = apiInstance.kubernetesprofilesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->kubernetesprofilesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->kubernetesprofilesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete kubernetes profile
    api_response = api_instance.kubernetesprofiles_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesDelete: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


kubernetesprofilesDropdown

Retrieve all kubernetes profiles for organization


/api/v1/kubernetesprofiles

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetesprofiles?OrganizationId=56&Search=search_example&CloudId=56&Offset=56&Limit=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        Integer cloudId = 56; // Integer | Optional cloud credential id filter
        Integer offset = 56; // Integer | Number of items to skip; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 50

        try {
            array[KubernetesProfilesEntity] result = apiInstance.kubernetesprofilesDropdown(organizationId, search, cloudId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter
final Integer cloudId = new Integer(); // Integer | Optional cloud credential id filter
final Integer offset = new Integer(); // Integer | Number of items to skip; defaults to 0
final Integer limit = new Integer(); // Integer | Page size; defaults to 50

try {
    final result = await api_instance.kubernetesprofilesDropdown(organizationId, search, cloudId, offset, limit);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesDropdown: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        Integer cloudId = 56; // Integer | Optional cloud credential id filter
        Integer offset = 56; // Integer | Number of items to skip; defaults to 0
        Integer limit = 56; // Integer | Page size; defaults to 50

        try {
            array[KubernetesProfilesEntity] result = apiInstance.kubernetesprofilesDropdown(organizationId, search, cloudId, offset, limit);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Integer *cloudId = 56; // Optional cloud credential id filter (optional) (default to null)
Integer *offset = 56; // Number of items to skip; defaults to 0 (optional) (default to 0)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)

// Retrieve all kubernetes profiles for organization
[apiInstance kubernetesprofilesDropdownWith:organizationId
    search:search
    cloudId:cloudId
    offset:offset
    limit:limit
              completionHandler: ^(array[KubernetesProfilesEntity] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example, // {String} Free-text search filter
  'cloudId': 56, // {Integer} Optional cloud credential id filter
  'offset': 56, // {Integer} Number of items to skip; defaults to 0
  'limit': 56 // {Integer} Page size; defaults to 50
};

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

namespace Example
{
    public class kubernetesprofilesDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var cloudId = 56;  // Integer | Optional cloud credential id filter (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip; defaults to 0 (optional)  (default to 0)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)

            try {
                // Retrieve all kubernetes profiles for organization
                array[KubernetesProfilesEntity] result = apiInstance.kubernetesprofilesDropdown(organizationId, search, cloudId, offset, limit);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter
$cloudId = 56; // Integer | Optional cloud credential id filter
$offset = 56; // Integer | Number of items to skip; defaults to 0
$limit = 56; // Integer | Page size; defaults to 50

try {
    $result = $api_instance->kubernetesprofilesDropdown($organizationId, $search, $cloudId, $offset, $limit);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter
my $cloudId = 56; # Integer | Optional cloud credential id filter
my $offset = 56; # Integer | Number of items to skip; defaults to 0
my $limit = 56; # Integer | Page size; defaults to 50

eval {
    my $result = $api_instance->kubernetesprofilesDropdown(organizationId => $organizationId, search => $search, cloudId => $cloudId, offset => $offset, limit => $limit);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
cloudId = 56 # Integer | Optional cloud credential id filter (optional) (default to null)
offset = 56 # Integer | Number of items to skip; defaults to 0 (optional) (default to 0)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)

try:
    # Retrieve all kubernetes profiles for organization
    api_response = api_instance.kubernetesprofiles_dropdown(organizationId=organizationId, search=search, cloudId=cloudId, offset=offset, limit=limit)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesDropdown: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String
    let cloudId = 56; // Integer
    let offset = 56; // Integer
    let limit = 56; // Integer

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesDropdown(organizationId, search, cloudId, offset, limit, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
Search
CloudId
Integer (int32)
Optional cloud credential id filter
Offset
Integer (int32)
Number of items to skip; defaults to 0
Limit
Integer (int32)
Page size; defaults to 50

Responses


kubernetesprofilesList

Retrieve all kubernetes profiles


/api/v1/kubernetesprofiles/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubernetesprofiles/list?OrganizationId=56&DomainId=56&Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional profile id filter

        try {
            KubernetesProfilesList result = apiInstance.kubernetesprofilesList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String searchId = new String(); // String | Search by id substring
final Integer id = new Integer(); // Integer | Optional profile id filter

try {
    final result = await api_instance.kubernetesprofilesList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, searchId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesList: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional profile id filter

        try {
            KubernetesProfilesList result = apiInstance.kubernetesprofilesList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *id = 56; // Optional profile id filter (optional) (default to null)

// Retrieve all kubernetes profiles
[apiInstance kubernetesprofilesListWith:organizationId
    domainId:domainId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
              completionHandler: ^(KubernetesProfilesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'domainId': 56, // {Integer} Optional domain id filter
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'searchId': searchId_example, // {String} Search by id substring
  'id': 56 // {Integer} Optional profile id filter
};

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

namespace Example
{
    public class kubernetesprofilesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var id = 56;  // Integer | Optional profile id filter (optional)  (default to null)

            try {
                // Retrieve all kubernetes profiles
                KubernetesProfilesList result = apiInstance.kubernetesprofilesList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, searchId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$organizationId = 56; // Integer | Optional organization id filter
$domainId = 56; // Integer | Optional domain id filter
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$searchId = searchId_example; // String | Search by id substring
$id = 56; // Integer | Optional profile id filter

try {
    $result = $api_instance->kubernetesprofilesList($organizationId, $domainId, $limit, $offset, $sortBy, $sortDirection, $search, $searchId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $domainId = 56; # Integer | Optional domain id filter
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $searchId = searchId_example; # String | Search by id substring
my $id = 56; # Integer | Optional profile id filter

eval {
    my $result = $api_instance->kubernetesprofilesList(organizationId => $organizationId, domainId => $domainId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
id = 56 # Integer | Optional profile id filter (optional) (default to null)

try:
    # Retrieve all kubernetes profiles
    api_response = api_instance.kubernetesprofiles_list(organizationId=organizationId, domainId=domainId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesList: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, searchId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
DomainId
Integer (int32)
Optional domain id filter
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
SearchId
String
Search by id substring
Id
Integer (int32)
Optional profile id filter

Responses


kubernetesprofilesLockManager

Kubernetes profile lock/unlock


/api/v1/kubernetesprofiles/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetesprofiles/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        KubernetesProfilesLockManagerCommand kubernetesProfilesLockManagerCommand = ; // KubernetesProfilesLockManagerCommand | 

        try {
            Object result = apiInstance.kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final KubernetesProfilesLockManagerCommand kubernetesProfilesLockManagerCommand = new KubernetesProfilesLockManagerCommand(); // KubernetesProfilesLockManagerCommand | 

try {
    final result = await api_instance.kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesLockManager: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        KubernetesProfilesLockManagerCommand kubernetesProfilesLockManagerCommand = ; // KubernetesProfilesLockManagerCommand | 

        try {
            Object result = apiInstance.kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
KubernetesProfilesLockManagerCommand *kubernetesProfilesLockManagerCommand = ; //  (optional)

// Kubernetes profile lock/unlock
[apiInstance kubernetesprofilesLockManagerWith:kubernetesProfilesLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var opts = {
  'kubernetesProfilesLockManagerCommand':  // {KubernetesProfilesLockManagerCommand} 
};

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

namespace Example
{
    public class kubernetesprofilesLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var kubernetesProfilesLockManagerCommand = new KubernetesProfilesLockManagerCommand(); // KubernetesProfilesLockManagerCommand |  (optional) 

            try {
                // Kubernetes profile lock/unlock
                Object result = apiInstance.kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$kubernetesProfilesLockManagerCommand = ; // KubernetesProfilesLockManagerCommand | 

try {
    $result = $api_instance->kubernetesprofilesLockManager($kubernetesProfilesLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $kubernetesProfilesLockManagerCommand = WWW::OPenAPIClient::Object::KubernetesProfilesLockManagerCommand->new(); # KubernetesProfilesLockManagerCommand | 

eval {
    my $result = $api_instance->kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand => $kubernetesProfilesLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
kubernetesProfilesLockManagerCommand =  # KubernetesProfilesLockManagerCommand |  (optional)

try:
    # Kubernetes profile lock/unlock
    api_response = api_instance.kubernetesprofiles_lock_manager(kubernetesProfilesLockManagerCommand=kubernetesProfilesLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesLockManager: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let kubernetesProfilesLockManagerCommand = ; // KubernetesProfilesLockManagerCommand

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesLockManager(kubernetesProfilesLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
kubernetesProfilesLockManagerCommand

Responses


kubernetesprofilesUpdateComponents

Replace a kubernetes profile's Helm add-on components


/api/v1/kubernetesprofiles/{id}/components

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubernetesprofiles/{id}/components" \
 -d '{
  "chartName" : "chartName",
  "releaseName" : "releaseName",
  "values" : "values",
  "namespace" : "namespace",
  "registryCredentialId" : 6,
  "version" : "version",
  "order" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubernetesProfilesApi;

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

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer id = 56; // Integer | 
        array[KubernetesProfileComponentDto] kubernetesProfileComponentDto = ; // array[KubernetesProfileComponentDto] | 

        try {
            ApiResponse result = apiInstance.kubernetesprofilesUpdateComponents(id, kubernetesProfileComponentDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesUpdateComponents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[KubernetesProfileComponentDto] kubernetesProfileComponentDto = new array[KubernetesProfileComponentDto](); // array[KubernetesProfileComponentDto] | 

try {
    final result = await api_instance.kubernetesprofilesUpdateComponents(id, kubernetesProfileComponentDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubernetesprofilesUpdateComponents: $e\n');
}

import org.openapitools.client.api.KubernetesProfilesApi;

public class KubernetesProfilesApiExample {
    public static void main(String[] args) {
        KubernetesProfilesApi apiInstance = new KubernetesProfilesApi();
        Integer id = 56; // Integer | 
        array[KubernetesProfileComponentDto] kubernetesProfileComponentDto = ; // array[KubernetesProfileComponentDto] | 

        try {
            ApiResponse result = apiInstance.kubernetesprofilesUpdateComponents(id, kubernetesProfileComponentDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubernetesProfilesApi#kubernetesprofilesUpdateComponents");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubernetesProfilesApi *apiInstance = [[KubernetesProfilesApi alloc] init];
Integer *id = 56; //  (default to null)
array[KubernetesProfileComponentDto] *kubernetesProfileComponentDto = ; //  (optional)

// Replace a kubernetes profile's Helm add-on components
[apiInstance kubernetesprofilesUpdateComponentsWith:id
    kubernetesProfileComponentDto:kubernetesProfileComponentDto
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubernetesProfilesApi()
var id = 56; // {Integer} 
var opts = {
  'kubernetesProfileComponentDto':  // {array[KubernetesProfileComponentDto]} 
};

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

namespace Example
{
    public class kubernetesprofilesUpdateComponentsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubernetesProfilesApi();
            var id = 56;  // Integer |  (default to null)
            var kubernetesProfileComponentDto = new array[KubernetesProfileComponentDto](); // array[KubernetesProfileComponentDto] |  (optional) 

            try {
                // Replace a kubernetes profile's Helm add-on components
                ApiResponse result = apiInstance.kubernetesprofilesUpdateComponents(id, kubernetesProfileComponentDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubernetesProfilesApi.kubernetesprofilesUpdateComponents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubernetesProfilesApi();
$id = 56; // Integer | 
$kubernetesProfileComponentDto = ; // array[KubernetesProfileComponentDto] | 

try {
    $result = $api_instance->kubernetesprofilesUpdateComponents($id, $kubernetesProfileComponentDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubernetesProfilesApi->kubernetesprofilesUpdateComponents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubernetesProfilesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubernetesProfilesApi->new();
my $id = 56; # Integer | 
my $kubernetesProfileComponentDto = [WWW::OPenAPIClient::Object::array[KubernetesProfileComponentDto]->new()]; # array[KubernetesProfileComponentDto] | 

eval {
    my $result = $api_instance->kubernetesprofilesUpdateComponents(id => $id, kubernetesProfileComponentDto => $kubernetesProfileComponentDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubernetesProfilesApi->kubernetesprofilesUpdateComponents: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubernetesProfilesApi()
id = 56 # Integer |  (default to null)
kubernetesProfileComponentDto =  # array[KubernetesProfileComponentDto] |  (optional)

try:
    # Replace a kubernetes profile's Helm add-on components
    api_response = api_instance.kubernetesprofiles_update_components(id, kubernetesProfileComponentDto=kubernetesProfileComponentDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubernetesProfilesApi->kubernetesprofilesUpdateComponents: %s\n" % e)
extern crate KubernetesProfilesApi;

pub fn main() {
    let id = 56; // Integer
    let kubernetesProfileComponentDto = ; // array[KubernetesProfileComponentDto]

    let mut context = KubernetesProfilesApi::Context::default();
    let result = client.kubernetesprofilesUpdateComponents(id, kubernetesProfileComponentDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
kubernetesProfileComponentDto

Responses


Kubespray

kubesprayCreate

Add kubespray


/api/v1/kubespray

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/kubespray" \
 -d '{
  "version" : "version",
  "kubernetesVersion" : "kubernetesVersion"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubesprayApi;

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

public class KubesprayApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubesprayApi apiInstance = new KubesprayApi();
        KubesprayCreateCommand kubesprayCreateCommand = ; // KubesprayCreateCommand | 

        try {
            ApiResponse result = apiInstance.kubesprayCreate(kubesprayCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final KubesprayCreateCommand kubesprayCreateCommand = new KubesprayCreateCommand(); // KubesprayCreateCommand | 

try {
    final result = await api_instance.kubesprayCreate(kubesprayCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubesprayCreate: $e\n');
}

import org.openapitools.client.api.KubesprayApi;

public class KubesprayApiExample {
    public static void main(String[] args) {
        KubesprayApi apiInstance = new KubesprayApi();
        KubesprayCreateCommand kubesprayCreateCommand = ; // KubesprayCreateCommand | 

        try {
            ApiResponse result = apiInstance.kubesprayCreate(kubesprayCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubesprayApi *apiInstance = [[KubesprayApi alloc] init];
KubesprayCreateCommand *kubesprayCreateCommand = ; //  (optional)

// Add kubespray
[apiInstance kubesprayCreateWith:kubesprayCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubesprayApi()
var opts = {
  'kubesprayCreateCommand':  // {KubesprayCreateCommand} 
};

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

namespace Example
{
    public class kubesprayCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubesprayApi();
            var kubesprayCreateCommand = new KubesprayCreateCommand(); // KubesprayCreateCommand |  (optional) 

            try {
                // Add kubespray
                ApiResponse result = apiInstance.kubesprayCreate(kubesprayCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubesprayApi.kubesprayCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubesprayApi();
$kubesprayCreateCommand = ; // KubesprayCreateCommand | 

try {
    $result = $api_instance->kubesprayCreate($kubesprayCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubesprayApi->kubesprayCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubesprayApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubesprayApi->new();
my $kubesprayCreateCommand = WWW::OPenAPIClient::Object::KubesprayCreateCommand->new(); # KubesprayCreateCommand | 

eval {
    my $result = $api_instance->kubesprayCreate(kubesprayCreateCommand => $kubesprayCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubesprayApi->kubesprayCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubesprayApi()
kubesprayCreateCommand =  # KubesprayCreateCommand |  (optional)

try:
    # Add kubespray
    api_response = api_instance.kubespray_create(kubesprayCreateCommand=kubesprayCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubesprayApi->kubesprayCreate: %s\n" % e)
extern crate KubesprayApi;

pub fn main() {
    let kubesprayCreateCommand = ; // KubesprayCreateCommand

    let mut context = KubesprayApi::Context::default();
    let result = client.kubesprayCreate(kubesprayCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
kubesprayCreateCommand

Responses


kubesprayDelete

Delete kubespray


/api/v1/kubespray/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubespray/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubesprayApi;

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

public class KubesprayApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubesprayApi apiInstance = new KubesprayApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.kubesprayDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.kubesprayDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubesprayDelete: $e\n');
}

import org.openapitools.client.api.KubesprayApi;

public class KubesprayApiExample {
    public static void main(String[] args) {
        KubesprayApi apiInstance = new KubesprayApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.kubesprayDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubesprayApi *apiInstance = [[KubesprayApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete kubespray
[apiInstance kubesprayDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubesprayApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class kubesprayDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubesprayApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete kubespray
                Object result = apiInstance.kubesprayDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubesprayApi.kubesprayDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubesprayApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->kubesprayDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubesprayApi->kubesprayDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubesprayApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubesprayApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->kubesprayDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubesprayApi->kubesprayDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubesprayApi()
id = 56 # Integer |  (default to null)

try:
    # Delete kubespray
    api_response = api_instance.kubespray_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubesprayApi->kubesprayDelete: %s\n" % e)
extern crate KubesprayApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = KubesprayApi::Context::default();
    let result = client.kubesprayDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


kubesprayList

Retrieve all kubespray versions


/api/v1/kubespray/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/kubespray/list"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.KubesprayApi;

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

public class KubesprayApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        KubesprayApi apiInstance = new KubesprayApi();

        try {
            Kubesprays result = apiInstance.kubesprayList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.kubesprayList();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->kubesprayList: $e\n');
}

import org.openapitools.client.api.KubesprayApi;

public class KubesprayApiExample {
    public static void main(String[] args) {
        KubesprayApi apiInstance = new KubesprayApi();

        try {
            Kubesprays result = apiInstance.kubesprayList();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling KubesprayApi#kubesprayList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
KubesprayApi *apiInstance = [[KubesprayApi alloc] init];

// Retrieve all kubespray versions
[apiInstance kubesprayListWithCompletionHandler: 
              ^(Kubesprays output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.KubesprayApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.kubesprayList(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class kubesprayListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new KubesprayApi();

            try {
                // Retrieve all kubespray versions
                Kubesprays result = apiInstance.kubesprayList();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling KubesprayApi.kubesprayList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\KubesprayApi();

try {
    $result = $api_instance->kubesprayList();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling KubesprayApi->kubesprayList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::KubesprayApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::KubesprayApi->new();

eval {
    my $result = $api_instance->kubesprayList();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling KubesprayApi->kubesprayList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.KubesprayApi()

try:
    # Retrieve all kubespray versions
    api_response = api_instance.kubespray_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling KubesprayApi->kubesprayList: %s\n" % e)
extern crate KubesprayApi;

pub fn main() {

    let mut context = KubesprayApi::Context::default();
    let result = client.kubesprayList(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


NoProxies

noproxiesCreate

Create no_proxy entries for access profile


/api/v1/noproxies/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/noproxies/create" \
 -d '{
  "address" : "address",
  "accessProfileId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NoProxiesApi;

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

public class NoProxiesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NoProxiesApi apiInstance = new NoProxiesApi();
        CreateNoProxiesCommand createNoProxiesCommand = ; // CreateNoProxiesCommand | 

        try {
            ApiResponse result = apiInstance.noproxiesCreate(createNoProxiesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateNoProxiesCommand createNoProxiesCommand = new CreateNoProxiesCommand(); // CreateNoProxiesCommand | 

try {
    final result = await api_instance.noproxiesCreate(createNoProxiesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->noproxiesCreate: $e\n');
}

import org.openapitools.client.api.NoProxiesApi;

public class NoProxiesApiExample {
    public static void main(String[] args) {
        NoProxiesApi apiInstance = new NoProxiesApi();
        CreateNoProxiesCommand createNoProxiesCommand = ; // CreateNoProxiesCommand | 

        try {
            ApiResponse result = apiInstance.noproxiesCreate(createNoProxiesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NoProxiesApi *apiInstance = [[NoProxiesApi alloc] init];
CreateNoProxiesCommand *createNoProxiesCommand = ; //  (optional)

// Create no_proxy entries for access profile
[apiInstance noproxiesCreateWith:createNoProxiesCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NoProxiesApi()
var opts = {
  'createNoProxiesCommand':  // {CreateNoProxiesCommand} 
};

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

namespace Example
{
    public class noproxiesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NoProxiesApi();
            var createNoProxiesCommand = new CreateNoProxiesCommand(); // CreateNoProxiesCommand |  (optional) 

            try {
                // Create no_proxy entries for access profile
                ApiResponse result = apiInstance.noproxiesCreate(createNoProxiesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NoProxiesApi.noproxiesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NoProxiesApi();
$createNoProxiesCommand = ; // CreateNoProxiesCommand | 

try {
    $result = $api_instance->noproxiesCreate($createNoProxiesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NoProxiesApi->noproxiesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NoProxiesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NoProxiesApi->new();
my $createNoProxiesCommand = WWW::OPenAPIClient::Object::CreateNoProxiesCommand->new(); # CreateNoProxiesCommand | 

eval {
    my $result = $api_instance->noproxiesCreate(createNoProxiesCommand => $createNoProxiesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NoProxiesApi->noproxiesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NoProxiesApi()
createNoProxiesCommand =  # CreateNoProxiesCommand |  (optional)

try:
    # Create no_proxy entries for access profile
    api_response = api_instance.noproxies_create(createNoProxiesCommand=createNoProxiesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NoProxiesApi->noproxiesCreate: %s\n" % e)
extern crate NoProxiesApi;

pub fn main() {
    let createNoProxiesCommand = ; // CreateNoProxiesCommand

    let mut context = NoProxiesApi::Context::default();
    let result = client.noproxiesCreate(createNoProxiesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createNoProxiesCommand

Responses


noproxiesDelete

Delete no_proxy entry


/api/v1/noproxies/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/noproxies/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NoProxiesApi;

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

public class NoProxiesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.noproxiesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.noproxiesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->noproxiesDelete: $e\n');
}

import org.openapitools.client.api.NoProxiesApi;

public class NoProxiesApiExample {
    public static void main(String[] args) {
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.noproxiesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NoProxiesApi *apiInstance = [[NoProxiesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete no_proxy entry
[apiInstance noproxiesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NoProxiesApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class noproxiesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NoProxiesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete no_proxy entry
                Object result = apiInstance.noproxiesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NoProxiesApi.noproxiesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NoProxiesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->noproxiesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NoProxiesApi->noproxiesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NoProxiesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NoProxiesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->noproxiesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NoProxiesApi->noproxiesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NoProxiesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete no_proxy entry
    api_response = api_instance.noproxies_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NoProxiesApi->noproxiesDelete: %s\n" % e)
extern crate NoProxiesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = NoProxiesApi::Context::default();
    let result = client.noproxiesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


noproxiesEdit

Edit no_proxy entry


/api/v1/noproxies/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/noproxies/edit/{id}" \
 -d '{
  "address" : "address"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NoProxiesApi;

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

public class NoProxiesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 
        NoProxyEditDto noProxyEditDto = ; // NoProxyEditDto | 

        try {
            Object result = apiInstance.noproxiesEdit(id, noProxyEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final NoProxyEditDto noProxyEditDto = new NoProxyEditDto(); // NoProxyEditDto | 

try {
    final result = await api_instance.noproxiesEdit(id, noProxyEditDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->noproxiesEdit: $e\n');
}

import org.openapitools.client.api.NoProxiesApi;

public class NoProxiesApiExample {
    public static void main(String[] args) {
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 
        NoProxyEditDto noProxyEditDto = ; // NoProxyEditDto | 

        try {
            Object result = apiInstance.noproxiesEdit(id, noProxyEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NoProxiesApi *apiInstance = [[NoProxiesApi alloc] init];
Integer *id = 56; //  (default to null)
NoProxyEditDto *noProxyEditDto = ; //  (optional)

// Edit no_proxy entry
[apiInstance noproxiesEditWith:id
    noProxyEditDto:noProxyEditDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NoProxiesApi()
var id = 56; // {Integer} 
var opts = {
  'noProxyEditDto':  // {NoProxyEditDto} 
};

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

namespace Example
{
    public class noproxiesEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NoProxiesApi();
            var id = 56;  // Integer |  (default to null)
            var noProxyEditDto = new NoProxyEditDto(); // NoProxyEditDto |  (optional) 

            try {
                // Edit no_proxy entry
                Object result = apiInstance.noproxiesEdit(id, noProxyEditDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NoProxiesApi.noproxiesEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NoProxiesApi();
$id = 56; // Integer | 
$noProxyEditDto = ; // NoProxyEditDto | 

try {
    $result = $api_instance->noproxiesEdit($id, $noProxyEditDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NoProxiesApi->noproxiesEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NoProxiesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NoProxiesApi->new();
my $id = 56; # Integer | 
my $noProxyEditDto = WWW::OPenAPIClient::Object::NoProxyEditDto->new(); # NoProxyEditDto | 

eval {
    my $result = $api_instance->noproxiesEdit(id => $id, noProxyEditDto => $noProxyEditDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NoProxiesApi->noproxiesEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NoProxiesApi()
id = 56 # Integer |  (default to null)
noProxyEditDto =  # NoProxyEditDto |  (optional)

try:
    # Edit no_proxy entry
    api_response = api_instance.noproxies_edit(id, noProxyEditDto=noProxyEditDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NoProxiesApi->noproxiesEdit: %s\n" % e)
extern crate NoProxiesApi;

pub fn main() {
    let id = 56; // Integer
    let noProxyEditDto = ; // NoProxyEditDto

    let mut context = NoProxiesApi::Context::default();
    let result = client.noproxiesEdit(id, noProxyEditDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
noProxyEditDto

Responses


noproxiesList

List no_proxy entries by profile id


/api/v1/noproxies/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/noproxies/{id}?search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NoProxiesApi;

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

public class NoProxiesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[NoProxiesListDto] result = apiInstance.noproxiesList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.noproxiesList(id, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->noproxiesList: $e\n');
}

import org.openapitools.client.api.NoProxiesApi;

public class NoProxiesApiExample {
    public static void main(String[] args) {
        NoProxiesApi apiInstance = new NoProxiesApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[NoProxiesListDto] result = apiInstance.noproxiesList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NoProxiesApi#noproxiesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NoProxiesApi *apiInstance = [[NoProxiesApi alloc] init];
Integer *id = 56; //  (default to null)
String *search = search_example; //  (optional) (default to null)

// List no_proxy entries by profile id
[apiInstance noproxiesListWith:id
    search:search
              completionHandler: ^(array[NoProxiesListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NoProxiesApi()
var id = 56; // {Integer} 
var opts = {
  'search': search_example // {String} 
};

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

namespace Example
{
    public class noproxiesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NoProxiesApi();
            var id = 56;  // Integer |  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // List no_proxy entries by profile id
                array[NoProxiesListDto] result = apiInstance.noproxiesList(id, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NoProxiesApi.noproxiesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NoProxiesApi();
$id = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->noproxiesList($id, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NoProxiesApi->noproxiesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NoProxiesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NoProxiesApi->new();
my $id = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->noproxiesList(id => $id, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NoProxiesApi->noproxiesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NoProxiesApi()
id = 56 # Integer |  (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # List no_proxy entries by profile id
    api_response = api_instance.noproxies_list(id, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NoProxiesApi->noproxiesList: %s\n" % e)
extern crate NoProxiesApi;

pub fn main() {
    let id = 56; // Integer
    let search = search_example; // String

    let mut context = NoProxiesApi::Context::default();
    let result = client.noproxiesList(id, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
search

Responses


Notifications

notificationsExportCsv

Export Csv


/api/v1/notifications/download

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/notifications/download?SortBy=sortBy_example&SortDirection=sortDirection_example&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&OrganizationId=56&FilterBy=filterBy_example&ProjectId=56&UserId=userId_example&IsDeleted=true&IsEmailEnabled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NotificationsApi;

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

public class NotificationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NotificationsApi apiInstance = new NotificationsApi();
        Boolean isEmailEnabled = true; // Boolean | Include email-enabled notifications
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
        Integer organizationId = 56; // Integer | Optional organization id filter
        String filterBy = filterBy_example; // String | Field to filter by
        Integer projectId = 56; // Integer | Optional project id filter
        String userId = userId_example; // String | Optional user id filter
        Boolean isDeleted = true; // Boolean | Filter by deleted state

        try {
            CsvExporter result = apiInstance.notificationsExportCsv(isEmailEnabled, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsExportCsv");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean isEmailEnabled = new Boolean(); // Boolean | Include email-enabled notifications
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final Date startDate = new Date(); // Date | Filter logs on or after this date
final Date endDate = new Date(); // Date | Filter logs on or before this date
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String filterBy = new String(); // String | Field to filter by
final Integer projectId = new Integer(); // Integer | Optional project id filter
final String userId = new String(); // String | Optional user id filter
final Boolean isDeleted = new Boolean(); // Boolean | Filter by deleted state

try {
    final result = await api_instance.notificationsExportCsv(isEmailEnabled, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->notificationsExportCsv: $e\n');
}

import org.openapitools.client.api.NotificationsApi;

public class NotificationsApiExample {
    public static void main(String[] args) {
        NotificationsApi apiInstance = new NotificationsApi();
        Boolean isEmailEnabled = true; // Boolean | Include email-enabled notifications
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
        Integer organizationId = 56; // Integer | Optional organization id filter
        String filterBy = filterBy_example; // String | Field to filter by
        Integer projectId = 56; // Integer | Optional project id filter
        String userId = userId_example; // String | Optional user id filter
        Boolean isDeleted = true; // Boolean | Filter by deleted state

        try {
            CsvExporter result = apiInstance.notificationsExportCsv(isEmailEnabled, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsExportCsv");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NotificationsApi *apiInstance = [[NotificationsApi alloc] init];
Boolean *isEmailEnabled = true; // Include email-enabled notifications (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // Filter logs on or after this date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // Filter logs on or before this date (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *filterBy = filterBy_example; // Field to filter by (optional) (default to null)
Integer *projectId = 56; // Optional project id filter (optional) (default to null)
String *userId = userId_example; // Optional user id filter (optional) (default to null)
Boolean *isDeleted = true; // Filter by deleted state (optional) (default to null)

// Export Csv
[apiInstance notificationsExportCsvWith:isEmailEnabled
    sortBy:sortBy
    sortDirection:sortDirection
    startDate:startDate
    endDate:endDate
    organizationId:organizationId
    filterBy:filterBy
    projectId:projectId
    userId:userId
    isDeleted:isDeleted
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NotificationsApi()
var isEmailEnabled = true; // {Boolean} Include email-enabled notifications
var opts = {
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Filter logs on or after this date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} Filter logs on or before this date
  'organizationId': 56, // {Integer} Optional organization id filter
  'filterBy': filterBy_example, // {String} Field to filter by
  'projectId': 56, // {Integer} Optional project id filter
  'userId': userId_example, // {String} Optional user id filter
  'isDeleted': true // {Boolean} Filter by deleted state
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.notificationsExportCsv(isEmailEnabled, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class notificationsExportCsvExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NotificationsApi();
            var isEmailEnabled = true;  // Boolean | Include email-enabled notifications (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Filter logs on or after this date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | Filter logs on or before this date (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Field to filter by (optional)  (default to null)
            var projectId = 56;  // Integer | Optional project id filter (optional)  (default to null)
            var userId = userId_example;  // String | Optional user id filter (optional)  (default to null)
            var isDeleted = true;  // Boolean | Filter by deleted state (optional)  (default to null)

            try {
                // Export Csv
                CsvExporter result = apiInstance.notificationsExportCsv(isEmailEnabled, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NotificationsApi.notificationsExportCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NotificationsApi();
$isEmailEnabled = true; // Boolean | Include email-enabled notifications
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
$endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
$organizationId = 56; // Integer | Optional organization id filter
$filterBy = filterBy_example; // String | Field to filter by
$projectId = 56; // Integer | Optional project id filter
$userId = userId_example; // String | Optional user id filter
$isDeleted = true; // Boolean | Filter by deleted state

try {
    $result = $api_instance->notificationsExportCsv($isEmailEnabled, $sortBy, $sortDirection, $startDate, $endDate, $organizationId, $filterBy, $projectId, $userId, $isDeleted);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NotificationsApi->notificationsExportCsv: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NotificationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NotificationsApi->new();
my $isEmailEnabled = true; # Boolean | Include email-enabled notifications
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Filter logs on or after this date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | Filter logs on or before this date
my $organizationId = 56; # Integer | Optional organization id filter
my $filterBy = filterBy_example; # String | Field to filter by
my $projectId = 56; # Integer | Optional project id filter
my $userId = userId_example; # String | Optional user id filter
my $isDeleted = true; # Boolean | Filter by deleted state

eval {
    my $result = $api_instance->notificationsExportCsv(isEmailEnabled => $isEmailEnabled, sortBy => $sortBy, sortDirection => $sortDirection, startDate => $startDate, endDate => $endDate, organizationId => $organizationId, filterBy => $filterBy, projectId => $projectId, userId => $userId, isDeleted => $isDeleted);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NotificationsApi->notificationsExportCsv: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NotificationsApi()
isEmailEnabled = true # Boolean | Include email-enabled notifications (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | Filter logs on or after this date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | Filter logs on or before this date (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
filterBy = filterBy_example # String | Field to filter by (optional) (default to null)
projectId = 56 # Integer | Optional project id filter (optional) (default to null)
userId = userId_example # String | Optional user id filter (optional) (default to null)
isDeleted = true # Boolean | Filter by deleted state (optional) (default to null)

try:
    # Export Csv
    api_response = api_instance.notifications_export_csv(isEmailEnabled, sortBy=sortBy, sortDirection=sortDirection, startDate=startDate, endDate=endDate, organizationId=organizationId, filterBy=filterBy, projectId=projectId, userId=userId, isDeleted=isDeleted)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationsApi->notificationsExportCsv: %s\n" % e)
extern crate NotificationsApi;

pub fn main() {
    let isEmailEnabled = true; // Boolean
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let organizationId = 56; // Integer
    let filterBy = filterBy_example; // String
    let projectId = 56; // Integer
    let userId = userId_example; // String
    let isDeleted = true; // Boolean

    let mut context = NotificationsApi::Context::default();
    let result = client.notificationsExportCsv(isEmailEnabled, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
StartDate
Date (date-time)
Filter logs on or after this date
EndDate
Date (date-time)
Filter logs on or before this date
OrganizationId
Integer (int32)
Optional organization id filter
FilterBy
String
Field to filter by
ProjectId
Integer (int32)
Optional project id filter
UserId
String
Optional user id filter
IsDeleted
Boolean
Filter by deleted state
IsEmailEnabled*
Boolean
Include email-enabled notifications
Required

Responses


notificationsList

Retrieve all notifications

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/notifications/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/notifications/list?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&OrganizationId=56&FilterBy=filterBy_example&ProjectId=56&UserId=userId_example&IsDeleted=true&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NotificationsApi;

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

public class NotificationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NotificationsApi apiInstance = new NotificationsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
        Integer organizationId = 56; // Integer | Optional organization id filter
        String filterBy = filterBy_example; // String | Field to filter by
        Integer projectId = 56; // Integer | Optional project id filter
        String userId = userId_example; // String | Optional user id filter
        Boolean isDeleted = true; // Boolean | Filter by deleted state
        String search = search_example; // String | Free-text search filter

        try {
            NotificationHistory result = apiInstance.notificationsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final Date startDate = new Date(); // Date | Filter logs on or after this date
final Date endDate = new Date(); // Date | Filter logs on or before this date
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String filterBy = new String(); // String | Field to filter by
final Integer projectId = new Integer(); // Integer | Optional project id filter
final String userId = new String(); // String | Optional user id filter
final Boolean isDeleted = new Boolean(); // Boolean | Filter by deleted state
final String search = new String(); // String | Free-text search filter

try {
    final result = await api_instance.notificationsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->notificationsList: $e\n');
}

import org.openapitools.client.api.NotificationsApi;

public class NotificationsApiExample {
    public static void main(String[] args) {
        NotificationsApi apiInstance = new NotificationsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
        Integer organizationId = 56; // Integer | Optional organization id filter
        String filterBy = filterBy_example; // String | Field to filter by
        Integer projectId = 56; // Integer | Optional project id filter
        String userId = userId_example; // String | Optional user id filter
        Boolean isDeleted = true; // Boolean | Filter by deleted state
        String search = search_example; // String | Free-text search filter

        try {
            NotificationHistory result = apiInstance.notificationsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NotificationsApi *apiInstance = [[NotificationsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // Filter logs on or after this date (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // Filter logs on or before this date (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *filterBy = filterBy_example; // Field to filter by (optional) (default to null)
Integer *projectId = 56; // Optional project id filter (optional) (default to null)
String *userId = userId_example; // Optional user id filter (optional) (default to null)
Boolean *isDeleted = true; // Filter by deleted state (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)

// Retrieve all notifications
[apiInstance notificationsListWith:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    startDate:startDate
    endDate:endDate
    organizationId:organizationId
    filterBy:filterBy
    projectId:projectId
    userId:userId
    isDeleted:isDeleted
    search:search
              completionHandler: ^(NotificationHistory output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NotificationsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Filter logs on or after this date
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} Filter logs on or before this date
  'organizationId': 56, // {Integer} Optional organization id filter
  'filterBy': filterBy_example, // {String} Field to filter by
  'projectId': 56, // {Integer} Optional project id filter
  'userId': userId_example, // {String} Optional user id filter
  'isDeleted': true, // {Boolean} Filter by deleted state
  'search': search_example // {String} Free-text search filter
};

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

namespace Example
{
    public class notificationsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NotificationsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Filter logs on or after this date (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | Filter logs on or before this date (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Field to filter by (optional)  (default to null)
            var projectId = 56;  // Integer | Optional project id filter (optional)  (default to null)
            var userId = userId_example;  // String | Optional user id filter (optional)  (default to null)
            var isDeleted = true;  // Boolean | Filter by deleted state (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // Retrieve all notifications
                NotificationHistory result = apiInstance.notificationsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NotificationsApi.notificationsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NotificationsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$startDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or after this date
$endDate = 2013-10-20T19:20:30+01:00; // Date | Filter logs on or before this date
$organizationId = 56; // Integer | Optional organization id filter
$filterBy = filterBy_example; // String | Field to filter by
$projectId = 56; // Integer | Optional project id filter
$userId = userId_example; // String | Optional user id filter
$isDeleted = true; // Boolean | Filter by deleted state
$search = search_example; // String | Free-text search filter

try {
    $result = $api_instance->notificationsList($limit, $offset, $sortBy, $sortDirection, $startDate, $endDate, $organizationId, $filterBy, $projectId, $userId, $isDeleted, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NotificationsApi->notificationsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NotificationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NotificationsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Filter logs on or after this date
my $endDate = 2013-10-20T19:20:30+01:00; # Date | Filter logs on or before this date
my $organizationId = 56; # Integer | Optional organization id filter
my $filterBy = filterBy_example; # String | Field to filter by
my $projectId = 56; # Integer | Optional project id filter
my $userId = userId_example; # String | Optional user id filter
my $isDeleted = true; # Boolean | Filter by deleted state
my $search = search_example; # String | Free-text search filter

eval {
    my $result = $api_instance->notificationsList(limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, startDate => $startDate, endDate => $endDate, organizationId => $organizationId, filterBy => $filterBy, projectId => $projectId, userId => $userId, isDeleted => $isDeleted, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NotificationsApi->notificationsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NotificationsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | Filter logs on or after this date (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | Filter logs on or before this date (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
filterBy = filterBy_example # String | Field to filter by (optional) (default to null)
projectId = 56 # Integer | Optional project id filter (optional) (default to null)
userId = userId_example # String | Optional user id filter (optional) (default to null)
isDeleted = true # Boolean | Filter by deleted state (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)

try:
    # Retrieve all notifications
    api_response = api_instance.notifications_list(limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, startDate=startDate, endDate=endDate, organizationId=organizationId, filterBy=filterBy, projectId=projectId, userId=userId, isDeleted=isDeleted, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationsApi->notificationsList: %s\n" % e)
extern crate NotificationsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let organizationId = 56; // Integer
    let filterBy = filterBy_example; // String
    let projectId = 56; // Integer
    let userId = userId_example; // String
    let isDeleted = true; // Boolean
    let search = search_example; // String

    let mut context = NotificationsApi::Context::default();
    let result = client.notificationsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, filterBy, projectId, userId, isDeleted, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
StartDate
Date (date-time)
Filter logs on or after this date
EndDate
Date (date-time)
Filter logs on or before this date
OrganizationId
Integer (int32)
Optional organization id filter
FilterBy
String
Field to filter by
ProjectId
Integer (int32)
Optional project id filter
UserId
String
Optional user id filter
IsDeleted
Boolean
Filter by deleted state
Search

Responses


notificationsNotifyOwner

Notify owner


/api/v1/notifications/notifyowner

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/notifications/notifyowner?command=command_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NotificationsApi;

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

public class NotificationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NotificationsApi apiInstance = new NotificationsApi();
        String command = command_example; // String | 

        try {
            Object result = apiInstance.notificationsNotifyOwner(command);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsNotifyOwner");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String command = new String(); // String | 

try {
    final result = await api_instance.notificationsNotifyOwner(command);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->notificationsNotifyOwner: $e\n');
}

import org.openapitools.client.api.NotificationsApi;

public class NotificationsApiExample {
    public static void main(String[] args) {
        NotificationsApi apiInstance = new NotificationsApi();
        String command = command_example; // String | 

        try {
            Object result = apiInstance.notificationsNotifyOwner(command);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NotificationsApi#notificationsNotifyOwner");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NotificationsApi *apiInstance = [[NotificationsApi alloc] init];
String *command = command_example; //  (optional) (default to null)

// Notify owner
[apiInstance notificationsNotifyOwnerWith:command
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NotificationsApi()
var opts = {
  'command': command_example // {String} 
};

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

namespace Example
{
    public class notificationsNotifyOwnerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NotificationsApi();
            var command = command_example;  // String |  (optional)  (default to null)

            try {
                // Notify owner
                Object result = apiInstance.notificationsNotifyOwner(command);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NotificationsApi.notificationsNotifyOwner: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NotificationsApi();
$command = command_example; // String | 

try {
    $result = $api_instance->notificationsNotifyOwner($command);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NotificationsApi->notificationsNotifyOwner: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NotificationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NotificationsApi->new();
my $command = command_example; # String | 

eval {
    my $result = $api_instance->notificationsNotifyOwner(command => $command);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NotificationsApi->notificationsNotifyOwner: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NotificationsApi()
command = command_example # String |  (optional) (default to null)

try:
    # Notify owner
    api_response = api_instance.notifications_notify_owner(command=command)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NotificationsApi->notificationsNotifyOwner: %s\n" % e)
extern crate NotificationsApi;

pub fn main() {
    let command = command_example; // String

    let mut context = NotificationsApi::Context::default();
    let result = client.notificationsNotifyOwner(command, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
command
String

Responses


NtpServers

ntpserversCreate

Create access profile ntp server


/api/v1/ntpservers/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/ntpservers/create" \
 -d '{
  "address" : "address",
  "accessProfileId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NtpServersApi;

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

public class NtpServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NtpServersApi apiInstance = new NtpServersApi();
        CreateNtpServerCommand createNtpServerCommand = ; // CreateNtpServerCommand | 

        try {
            ApiResponse result = apiInstance.ntpserversCreate(createNtpServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateNtpServerCommand createNtpServerCommand = new CreateNtpServerCommand(); // CreateNtpServerCommand | 

try {
    final result = await api_instance.ntpserversCreate(createNtpServerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ntpserversCreate: $e\n');
}

import org.openapitools.client.api.NtpServersApi;

public class NtpServersApiExample {
    public static void main(String[] args) {
        NtpServersApi apiInstance = new NtpServersApi();
        CreateNtpServerCommand createNtpServerCommand = ; // CreateNtpServerCommand | 

        try {
            ApiResponse result = apiInstance.ntpserversCreate(createNtpServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NtpServersApi *apiInstance = [[NtpServersApi alloc] init];
CreateNtpServerCommand *createNtpServerCommand = ; //  (optional)

// Create access profile ntp server
[apiInstance ntpserversCreateWith:createNtpServerCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NtpServersApi()
var opts = {
  'createNtpServerCommand':  // {CreateNtpServerCommand} 
};

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

namespace Example
{
    public class ntpserversCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NtpServersApi();
            var createNtpServerCommand = new CreateNtpServerCommand(); // CreateNtpServerCommand |  (optional) 

            try {
                // Create access profile ntp server
                ApiResponse result = apiInstance.ntpserversCreate(createNtpServerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NtpServersApi.ntpserversCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NtpServersApi();
$createNtpServerCommand = ; // CreateNtpServerCommand | 

try {
    $result = $api_instance->ntpserversCreate($createNtpServerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NtpServersApi->ntpserversCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NtpServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NtpServersApi->new();
my $createNtpServerCommand = WWW::OPenAPIClient::Object::CreateNtpServerCommand->new(); # CreateNtpServerCommand | 

eval {
    my $result = $api_instance->ntpserversCreate(createNtpServerCommand => $createNtpServerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NtpServersApi->ntpserversCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NtpServersApi()
createNtpServerCommand =  # CreateNtpServerCommand |  (optional)

try:
    # Create access profile ntp server
    api_response = api_instance.ntpservers_create(createNtpServerCommand=createNtpServerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NtpServersApi->ntpserversCreate: %s\n" % e)
extern crate NtpServersApi;

pub fn main() {
    let createNtpServerCommand = ; // CreateNtpServerCommand

    let mut context = NtpServersApi::Context::default();
    let result = client.ntpserversCreate(createNtpServerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createNtpServerCommand

Responses


ntpserversDelete

Delete access profile ntp server


/api/v1/ntpservers/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/ntpservers/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NtpServersApi;

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

public class NtpServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NtpServersApi apiInstance = new NtpServersApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.ntpserversDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.ntpserversDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ntpserversDelete: $e\n');
}

import org.openapitools.client.api.NtpServersApi;

public class NtpServersApiExample {
    public static void main(String[] args) {
        NtpServersApi apiInstance = new NtpServersApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.ntpserversDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NtpServersApi *apiInstance = [[NtpServersApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete access profile ntp server
[apiInstance ntpserversDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NtpServersApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class ntpserversDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NtpServersApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete access profile ntp server
                Object result = apiInstance.ntpserversDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NtpServersApi.ntpserversDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NtpServersApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->ntpserversDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NtpServersApi->ntpserversDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NtpServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NtpServersApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->ntpserversDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NtpServersApi->ntpserversDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NtpServersApi()
id = 56 # Integer |  (default to null)

try:
    # Delete access profile ntp server
    api_response = api_instance.ntpservers_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NtpServersApi->ntpserversDelete: %s\n" % e)
extern crate NtpServersApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = NtpServersApi::Context::default();
    let result = client.ntpserversDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


ntpserversEdit

Edit access profile ntp server


/api/v1/ntpservers/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/ntpservers/edit/{id}" \
 -d '{
  "address" : "address"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NtpServersApi;

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

public class NtpServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NtpServersApi apiInstance = new NtpServersApi();
        Integer id = 56; // Integer | 
        DnsNtpAddressEditDto dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

        try {
            Object result = apiInstance.ntpserversEdit(id, dnsNtpAddressEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final DnsNtpAddressEditDto dnsNtpAddressEditDto = new DnsNtpAddressEditDto(); // DnsNtpAddressEditDto | 

try {
    final result = await api_instance.ntpserversEdit(id, dnsNtpAddressEditDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ntpserversEdit: $e\n');
}

import org.openapitools.client.api.NtpServersApi;

public class NtpServersApiExample {
    public static void main(String[] args) {
        NtpServersApi apiInstance = new NtpServersApi();
        Integer id = 56; // Integer | 
        DnsNtpAddressEditDto dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

        try {
            Object result = apiInstance.ntpserversEdit(id, dnsNtpAddressEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NtpServersApi *apiInstance = [[NtpServersApi alloc] init];
Integer *id = 56; //  (default to null)
DnsNtpAddressEditDto *dnsNtpAddressEditDto = ; //  (optional)

// Edit access profile ntp server
[apiInstance ntpserversEditWith:id
    dnsNtpAddressEditDto:dnsNtpAddressEditDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NtpServersApi()
var id = 56; // {Integer} 
var opts = {
  'dnsNtpAddressEditDto':  // {DnsNtpAddressEditDto} 
};

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

namespace Example
{
    public class ntpserversEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NtpServersApi();
            var id = 56;  // Integer |  (default to null)
            var dnsNtpAddressEditDto = new DnsNtpAddressEditDto(); // DnsNtpAddressEditDto |  (optional) 

            try {
                // Edit access profile ntp server
                Object result = apiInstance.ntpserversEdit(id, dnsNtpAddressEditDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NtpServersApi.ntpserversEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NtpServersApi();
$id = 56; // Integer | 
$dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto | 

try {
    $result = $api_instance->ntpserversEdit($id, $dnsNtpAddressEditDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NtpServersApi->ntpserversEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NtpServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NtpServersApi->new();
my $id = 56; # Integer | 
my $dnsNtpAddressEditDto = WWW::OPenAPIClient::Object::DnsNtpAddressEditDto->new(); # DnsNtpAddressEditDto | 

eval {
    my $result = $api_instance->ntpserversEdit(id => $id, dnsNtpAddressEditDto => $dnsNtpAddressEditDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NtpServersApi->ntpserversEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NtpServersApi()
id = 56 # Integer |  (default to null)
dnsNtpAddressEditDto =  # DnsNtpAddressEditDto |  (optional)

try:
    # Edit access profile ntp server
    api_response = api_instance.ntpservers_edit(id, dnsNtpAddressEditDto=dnsNtpAddressEditDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NtpServersApi->ntpserversEdit: %s\n" % e)
extern crate NtpServersApi;

pub fn main() {
    let id = 56; // Integer
    let dnsNtpAddressEditDto = ; // DnsNtpAddressEditDto

    let mut context = NtpServersApi::Context::default();
    let result = client.ntpserversEdit(id, dnsNtpAddressEditDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
dnsNtpAddressEditDto

Responses


ntpserversList

List ntp server by access profile id


/api/v1/ntpservers/list/{accessProfileId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/ntpservers/list/{accessProfileId}?Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NtpServersApi;

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

public class NtpServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        NtpServersApi apiInstance = new NtpServersApi();
        Integer accessProfileId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[NtpServersListDto] result = apiInstance.ntpserversList(accessProfileId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accessProfileId = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.ntpserversList(accessProfileId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ntpserversList: $e\n');
}

import org.openapitools.client.api.NtpServersApi;

public class NtpServersApiExample {
    public static void main(String[] args) {
        NtpServersApi apiInstance = new NtpServersApi();
        Integer accessProfileId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[NtpServersListDto] result = apiInstance.ntpserversList(accessProfileId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NtpServersApi#ntpserversList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
NtpServersApi *apiInstance = [[NtpServersApi alloc] init];
Integer *accessProfileId = 56; //  (default to null)
String *search = search_example; //  (optional) (default to null)

// List ntp server by access profile id
[apiInstance ntpserversListWith:accessProfileId
    search:search
              completionHandler: ^(array[NtpServersListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.NtpServersApi()
var accessProfileId = 56; // {Integer} 
var opts = {
  'search': search_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ntpserversList(accessProfileId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ntpserversListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new NtpServersApi();
            var accessProfileId = 56;  // Integer |  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // List ntp server by access profile id
                array[NtpServersListDto] result = apiInstance.ntpserversList(accessProfileId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NtpServersApi.ntpserversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NtpServersApi();
$accessProfileId = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->ntpserversList($accessProfileId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling NtpServersApi->ntpserversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::NtpServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NtpServersApi->new();
my $accessProfileId = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->ntpserversList(accessProfileId => $accessProfileId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling NtpServersApi->ntpserversList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.NtpServersApi()
accessProfileId = 56 # Integer |  (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # List ntp server by access profile id
    api_response = api_instance.ntpservers_list(accessProfileId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NtpServersApi->ntpserversList: %s\n" % e)
extern crate NtpServersApi;

pub fn main() {
    let accessProfileId = 56; // Integer
    let search = search_example; // String

    let mut context = NtpServersApi::Context::default();
    let result = client.ntpserversList(accessProfileId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
accessProfileId*
Integer (int32)
Required
Query parameters
Name Description
Search

Responses


OperationCredentials

opscredentialsCreate

Add Operation credentials


/api/v1/opscredentials

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/opscredentials" \
 -d '{
  "organizationId" : 0,
  "name" : "name",
  "prometheusUrl" : "prometheusUrl",
  "prometheusUsername" : "prometheusUsername",
  "prometheusPassword" : "prometheusPassword"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialsCreateCommand operationCredentialsCreateCommand = ; // OperationCredentialsCreateCommand | 

        try {
            ApiResponse result = apiInstance.opscredentialsCreate(operationCredentialsCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OperationCredentialsCreateCommand operationCredentialsCreateCommand = new OperationCredentialsCreateCommand(); // OperationCredentialsCreateCommand | 

try {
    final result = await api_instance.opscredentialsCreate(operationCredentialsCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsCreate: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialsCreateCommand operationCredentialsCreateCommand = ; // OperationCredentialsCreateCommand | 

        try {
            ApiResponse result = apiInstance.opscredentialsCreate(operationCredentialsCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
OperationCredentialsCreateCommand *operationCredentialsCreateCommand = ; //  (optional)

// Add Operation credentials
[apiInstance opscredentialsCreateWith:operationCredentialsCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var opts = {
  'operationCredentialsCreateCommand':  // {OperationCredentialsCreateCommand} 
};

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

namespace Example
{
    public class opscredentialsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var operationCredentialsCreateCommand = new OperationCredentialsCreateCommand(); // OperationCredentialsCreateCommand |  (optional) 

            try {
                // Add Operation credentials
                ApiResponse result = apiInstance.opscredentialsCreate(operationCredentialsCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$operationCredentialsCreateCommand = ; // OperationCredentialsCreateCommand | 

try {
    $result = $api_instance->opscredentialsCreate($operationCredentialsCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $operationCredentialsCreateCommand = WWW::OPenAPIClient::Object::OperationCredentialsCreateCommand->new(); # OperationCredentialsCreateCommand | 

eval {
    my $result = $api_instance->opscredentialsCreate(operationCredentialsCreateCommand => $operationCredentialsCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
operationCredentialsCreateCommand =  # OperationCredentialsCreateCommand |  (optional)

try:
    # Add Operation credentials
    api_response = api_instance.opscredentials_create(operationCredentialsCreateCommand=operationCredentialsCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsCreate: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let operationCredentialsCreateCommand = ; // OperationCredentialsCreateCommand

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsCreate(operationCredentialsCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
operationCredentialsCreateCommand

Responses


opscredentialsDelete

Remove Operation credential by Id


/api/v1/opscredentials/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/opscredentials/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.opscredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.opscredentialsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsDelete: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.opscredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
Integer *id = 56; //  (default to null)

// Remove Operation credential by Id
[apiInstance opscredentialsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class opscredentialsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Remove Operation credential by Id
                Object result = apiInstance.opscredentialsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->opscredentialsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->opscredentialsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
id = 56 # Integer |  (default to null)

try:
    # Remove Operation credential by Id
    api_response = api_instance.opscredentials_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsDelete: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


opscredentialsList

Retrieve all operation credentials


/api/v1/opscredentials/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/opscredentials/list?Limit=56&Offset=56&OrganizationId=56&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56&SortBy=sortBy_example&SortDirection=sortDirection_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional credential id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc

        try {
            OperationCredentials result = apiInstance.opscredentialsList(limit, offset, organizationId, search, searchId, id, domainId, sortBy, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter
final String searchId = new String(); // String | Search by id substring
final Integer id = new Integer(); // Integer | Optional credential id filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc

try {
    final result = await api_instance.opscredentialsList(limit, offset, organizationId, search, searchId, id, domainId, sortBy, sortDirection);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsList: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional credential id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc

        try {
            OperationCredentials result = apiInstance.opscredentialsList(limit, offset, organizationId, search, searchId, id, domainId, sortBy, sortDirection);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *id = 56; // Optional credential id filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)

// Retrieve all operation credentials
[apiInstance opscredentialsListWith:limit
    offset:offset
    organizationId:organizationId
    search:search
    searchId:searchId
    id:id
    domainId:domainId
    sortBy:sortBy
    sortDirection:sortDirection
              completionHandler: ^(OperationCredentials output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example, // {String} Free-text search filter
  'searchId': searchId_example, // {String} Search by id substring
  'id': 56, // {Integer} Optional credential id filter
  'domainId': 56, // {Integer} Optional domain id filter
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example // {String} Sort direction: asc or desc
};

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

namespace Example
{
    public class opscredentialsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var id = 56;  // Integer | Optional credential id filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)

            try {
                // Retrieve all operation credentials
                OperationCredentials result = apiInstance.opscredentialsList(limit, offset, organizationId, search, searchId, id, domainId, sortBy, sortDirection);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter
$searchId = searchId_example; // String | Search by id substring
$id = 56; // Integer | Optional credential id filter
$domainId = 56; // Integer | Optional domain id filter
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc

try {
    $result = $api_instance->opscredentialsList($limit, $offset, $organizationId, $search, $searchId, $id, $domainId, $sortBy, $sortDirection);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter
my $searchId = searchId_example; # String | Search by id substring
my $id = 56; # Integer | Optional credential id filter
my $domainId = 56; # Integer | Optional domain id filter
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc

eval {
    my $result = $api_instance->opscredentialsList(limit => $limit, offset => $offset, organizationId => $organizationId, search => $search, searchId => $searchId, id => $id, domainId => $domainId, sortBy => $sortBy, sortDirection => $sortDirection);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
id = 56 # Integer | Optional credential id filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)

try:
    # Retrieve all operation credentials
    api_response = api_instance.opscredentials_list(limit=limit, offset=offset, organizationId=organizationId, search=search, searchId=searchId, id=id, domainId=domainId, sortBy=sortBy, sortDirection=sortDirection)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsList: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsList(limit, offset, organizationId, search, searchId, id, domainId, sortBy, sortDirection, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
OrganizationId
Integer (int32)
Optional organization id filter
Search
SearchId
String
Search by id substring
Id
Integer (int32)
Optional credential id filter
DomainId
Integer (int32)
Optional domain id filter
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc

Responses


opscredentialsListByOrganizationId

Retrieve operation credentials by organization Id


/api/v1/opscredentials

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/opscredentials?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter

        try {
            array[OperationCredentialsForOrganizationEntity] result = apiInstance.opscredentialsListByOrganizationId(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsListByOrganizationId");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter

try {
    final result = await api_instance.opscredentialsListByOrganizationId(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsListByOrganizationId: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter

        try {
            array[OperationCredentialsForOrganizationEntity] result = apiInstance.opscredentialsListByOrganizationId(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsListByOrganizationId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)

// Retrieve operation credentials by organization Id
[apiInstance opscredentialsListByOrganizationIdWith:organizationId
    search:search
              completionHandler: ^(array[OperationCredentialsForOrganizationEntity] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example // {String} Free-text search filter
};

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

namespace Example
{
    public class opscredentialsListByOrganizationIdExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // Retrieve operation credentials by organization Id
                array[OperationCredentialsForOrganizationEntity] result = apiInstance.opscredentialsListByOrganizationId(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsListByOrganizationId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter

try {
    $result = $api_instance->opscredentialsListByOrganizationId($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsListByOrganizationId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter

eval {
    my $result = $api_instance->opscredentialsListByOrganizationId(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsListByOrganizationId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)

try:
    # Retrieve operation credentials by organization Id
    api_response = api_instance.opscredentials_list_by_organization_id(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsListByOrganizationId: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsListByOrganizationId(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
Search

Responses


opscredentialsLockManager

Lock/Unlock operation credential


/api/v1/opscredentials/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/opscredentials/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialLockManagerCommand operationCredentialLockManagerCommand = ; // OperationCredentialLockManagerCommand | 

        try {
            Object result = apiInstance.opscredentialsLockManager(operationCredentialLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OperationCredentialLockManagerCommand operationCredentialLockManagerCommand = new OperationCredentialLockManagerCommand(); // OperationCredentialLockManagerCommand | 

try {
    final result = await api_instance.opscredentialsLockManager(operationCredentialLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsLockManager: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialLockManagerCommand operationCredentialLockManagerCommand = ; // OperationCredentialLockManagerCommand | 

        try {
            Object result = apiInstance.opscredentialsLockManager(operationCredentialLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
OperationCredentialLockManagerCommand *operationCredentialLockManagerCommand = ; //  (optional)

// Lock/Unlock operation credential
[apiInstance opscredentialsLockManagerWith:operationCredentialLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var opts = {
  'operationCredentialLockManagerCommand':  // {OperationCredentialLockManagerCommand} 
};

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

namespace Example
{
    public class opscredentialsLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var operationCredentialLockManagerCommand = new OperationCredentialLockManagerCommand(); // OperationCredentialLockManagerCommand |  (optional) 

            try {
                // Lock/Unlock operation credential
                Object result = apiInstance.opscredentialsLockManager(operationCredentialLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$operationCredentialLockManagerCommand = ; // OperationCredentialLockManagerCommand | 

try {
    $result = $api_instance->opscredentialsLockManager($operationCredentialLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $operationCredentialLockManagerCommand = WWW::OPenAPIClient::Object::OperationCredentialLockManagerCommand->new(); # OperationCredentialLockManagerCommand | 

eval {
    my $result = $api_instance->opscredentialsLockManager(operationCredentialLockManagerCommand => $operationCredentialLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
operationCredentialLockManagerCommand =  # OperationCredentialLockManagerCommand |  (optional)

try:
    # Lock/Unlock operation credential
    api_response = api_instance.opscredentials_lock_manager(operationCredentialLockManagerCommand=operationCredentialLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsLockManager: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let operationCredentialLockManagerCommand = ; // OperationCredentialLockManagerCommand

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsLockManager(operationCredentialLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
operationCredentialLockManagerCommand

Responses


opscredentialsMakeDefault

Choose default operation credential


/api/v1/opscredentials/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/opscredentials/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialsMakeDefaultCommand operationCredentialsMakeDefaultCommand = ; // OperationCredentialsMakeDefaultCommand | 

        try {
            Object result = apiInstance.opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OperationCredentialsMakeDefaultCommand operationCredentialsMakeDefaultCommand = new OperationCredentialsMakeDefaultCommand(); // OperationCredentialsMakeDefaultCommand | 

try {
    final result = await api_instance.opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsMakeDefault: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        OperationCredentialsMakeDefaultCommand operationCredentialsMakeDefaultCommand = ; // OperationCredentialsMakeDefaultCommand | 

        try {
            Object result = apiInstance.opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
OperationCredentialsMakeDefaultCommand *operationCredentialsMakeDefaultCommand = ; //  (optional)

// Choose default operation credential
[apiInstance opscredentialsMakeDefaultWith:operationCredentialsMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var opts = {
  'operationCredentialsMakeDefaultCommand':  // {OperationCredentialsMakeDefaultCommand} 
};

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

namespace Example
{
    public class opscredentialsMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var operationCredentialsMakeDefaultCommand = new OperationCredentialsMakeDefaultCommand(); // OperationCredentialsMakeDefaultCommand |  (optional) 

            try {
                // Choose default operation credential
                Object result = apiInstance.opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$operationCredentialsMakeDefaultCommand = ; // OperationCredentialsMakeDefaultCommand | 

try {
    $result = $api_instance->opscredentialsMakeDefault($operationCredentialsMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $operationCredentialsMakeDefaultCommand = WWW::OPenAPIClient::Object::OperationCredentialsMakeDefaultCommand->new(); # OperationCredentialsMakeDefaultCommand | 

eval {
    my $result = $api_instance->opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand => $operationCredentialsMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
operationCredentialsMakeDefaultCommand =  # OperationCredentialsMakeDefaultCommand |  (optional)

try:
    # Choose default operation credential
    api_response = api_instance.opscredentials_make_default(operationCredentialsMakeDefaultCommand=operationCredentialsMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsMakeDefault: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let operationCredentialsMakeDefaultCommand = ; // OperationCredentialsMakeDefaultCommand

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsMakeDefault(operationCredentialsMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
operationCredentialsMakeDefaultCommand

Responses


opscredentialsMetricNames

Fetch prometheus metric names


/api/v1/opscredentials/{id}/metric/names

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/opscredentials/{id}/metric/names"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OperationCredentialsApi;

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

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            array['String'] result = apiInstance.opscredentialsMetricNames(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsMetricNames");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.opscredentialsMetricNames(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->opscredentialsMetricNames: $e\n');
}

import org.openapitools.client.api.OperationCredentialsApi;

public class OperationCredentialsApiExample {
    public static void main(String[] args) {
        OperationCredentialsApi apiInstance = new OperationCredentialsApi();
        Integer id = 56; // Integer | 

        try {
            array['String'] result = apiInstance.opscredentialsMetricNames(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OperationCredentialsApi#opscredentialsMetricNames");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OperationCredentialsApi *apiInstance = [[OperationCredentialsApi alloc] init];
Integer *id = 56; //  (default to null)

// Fetch prometheus metric names
[apiInstance opscredentialsMetricNamesWith:id
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OperationCredentialsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class opscredentialsMetricNamesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OperationCredentialsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Fetch prometheus metric names
                array['String'] result = apiInstance.opscredentialsMetricNames(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OperationCredentialsApi.opscredentialsMetricNames: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OperationCredentialsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->opscredentialsMetricNames($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OperationCredentialsApi->opscredentialsMetricNames: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OperationCredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OperationCredentialsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->opscredentialsMetricNames(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OperationCredentialsApi->opscredentialsMetricNames: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OperationCredentialsApi()
id = 56 # Integer |  (default to null)

try:
    # Fetch prometheus metric names
    api_response = api_instance.opscredentials_metric_names(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OperationCredentialsApi->opscredentialsMetricNames: %s\n" % e)
extern crate OperationCredentialsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = OperationCredentialsApi::Context::default();
    let result = client.opscredentialsMetricNames(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


Organizations

organizationsAddPrometheusrules

Add prometheus rule(s) to organization


/api/v1/organizations/{id}/prometheusrules

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/organizations/{id}/prometheusrules" \
 -d '{
  "discountRate" : 6.027456183070403,
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

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

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 
        array[AddPrometheusRulesToOrganizationDto] addPrometheusRulesToOrganizationDto = ; // array[AddPrometheusRulesToOrganizationDto] | 

        try {
            Object result = apiInstance.organizationsAddPrometheusrules(id, addPrometheusRulesToOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsAddPrometheusrules");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[AddPrometheusRulesToOrganizationDto] addPrometheusRulesToOrganizationDto = new array[AddPrometheusRulesToOrganizationDto](); // array[AddPrometheusRulesToOrganizationDto] | 

try {
    final result = await api_instance.organizationsAddPrometheusrules(id, addPrometheusRulesToOrganizationDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsAddPrometheusrules: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 
        array[AddPrometheusRulesToOrganizationDto] addPrometheusRulesToOrganizationDto = ; // array[AddPrometheusRulesToOrganizationDto] | 

        try {
            Object result = apiInstance.organizationsAddPrometheusrules(id, addPrometheusRulesToOrganizationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsAddPrometheusrules");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *id = 56; //  (default to null)
array[AddPrometheusRulesToOrganizationDto] *addPrometheusRulesToOrganizationDto = ; //  (optional)

// Add prometheus rule(s) to organization
[apiInstance organizationsAddPrometheusrulesWith:id
    addPrometheusRulesToOrganizationDto:addPrometheusRulesToOrganizationDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var id = 56; // {Integer} 
var opts = {
  'addPrometheusRulesToOrganizationDto':  // {array[AddPrometheusRulesToOrganizationDto]} 
};

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

namespace Example
{
    public class organizationsAddPrometheusrulesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var id = 56;  // Integer |  (default to null)
            var addPrometheusRulesToOrganizationDto = new array[AddPrometheusRulesToOrganizationDto](); // array[AddPrometheusRulesToOrganizationDto] |  (optional) 

            try {
                // Add prometheus rule(s) to organization
                Object result = apiInstance.organizationsAddPrometheusrules(id, addPrometheusRulesToOrganizationDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsAddPrometheusrules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$id = 56; // Integer | 
$addPrometheusRulesToOrganizationDto = ; // array[AddPrometheusRulesToOrganizationDto] | 

try {
    $result = $api_instance->organizationsAddPrometheusrules($id, $addPrometheusRulesToOrganizationDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsAddPrometheusrules: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $id = 56; # Integer | 
my $addPrometheusRulesToOrganizationDto = [WWW::OPenAPIClient::Object::array[AddPrometheusRulesToOrganizationDto]->new()]; # array[AddPrometheusRulesToOrganizationDto] | 

eval {
    my $result = $api_instance->organizationsAddPrometheusrules(id => $id, addPrometheusRulesToOrganizationDto => $addPrometheusRulesToOrganizationDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsAddPrometheusrules: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
id = 56 # Integer |  (default to null)
addPrometheusRulesToOrganizationDto =  # array[AddPrometheusRulesToOrganizationDto] |  (optional)

try:
    # Add prometheus rule(s) to organization
    api_response = api_instance.organizations_add_prometheusrules(id, addPrometheusRulesToOrganizationDto=addPrometheusRulesToOrganizationDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsAddPrometheusrules: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let id = 56; // Integer
    let addPrometheusRulesToOrganizationDto = ; // array[AddPrometheusRulesToOrganizationDto]

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsAddPrometheusrules(id, addPrometheusRulesToOrganizationDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
addPrometheusRulesToOrganizationDto

Responses


organizationsCreate

Add a new organization. Only available for admins.


/api/v1/organizations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/organizations" \
 -d '{
  "adminCloudCredentialId" : 6,
  "name" : "name",
  "fullName" : "fullName",
  "email" : "email",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

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

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        OrganizationCreateCommand organizationCreateCommand = ; // OrganizationCreateCommand | 

        try {
            ApiResponse result = apiInstance.organizationsCreate(organizationCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final OrganizationCreateCommand organizationCreateCommand = new OrganizationCreateCommand(); // OrganizationCreateCommand | 

try {
    final result = await api_instance.organizationsCreate(organizationCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsCreate: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        OrganizationCreateCommand organizationCreateCommand = ; // OrganizationCreateCommand | 

        try {
            ApiResponse result = apiInstance.organizationsCreate(organizationCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
OrganizationCreateCommand *organizationCreateCommand = ; //  (optional)

// Add a new organization. Only available for admins.
[apiInstance organizationsCreateWith:organizationCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var opts = {
  'organizationCreateCommand':  // {OrganizationCreateCommand} 
};

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

namespace Example
{
    public class organizationsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var organizationCreateCommand = new OrganizationCreateCommand(); // OrganizationCreateCommand |  (optional) 

            try {
                // Add a new organization. Only available for admins.
                ApiResponse result = apiInstance.organizationsCreate(organizationCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$organizationCreateCommand = ; // OrganizationCreateCommand | 

try {
    $result = $api_instance->organizationsCreate($organizationCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $organizationCreateCommand = WWW::OPenAPIClient::Object::OrganizationCreateCommand->new(); # OrganizationCreateCommand | 

eval {
    my $result = $api_instance->organizationsCreate(organizationCreateCommand => $organizationCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
organizationCreateCommand =  # OrganizationCreateCommand |  (optional)

try:
    # Add a new organization. Only available for admins.
    api_response = api_instance.organizations_create(organizationCreateCommand=organizationCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsCreate: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let organizationCreateCommand = ; // OrganizationCreateCommand

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsCreate(organizationCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
organizationCreateCommand

Responses


organizationsDelete

Delete the specified organization. Only available for global roles.

This endpoint allows deleting an organization by its ID. Requires global role permissions.


/api/v1/organizations/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/organizations/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

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

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.organizationsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.organizationsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsDelete: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.organizationsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete the specified organization. Only available for global roles.
[apiInstance organizationsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var id = 56; // {Integer} 

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

namespace Example
{
    public class organizationsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete the specified organization. Only available for global roles.
                Object result = apiInstance.organizationsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->organizationsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->organizationsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
id = 56 # Integer |  (default to null)

try:
    # Delete the specified organization. Only available for global roles.
    api_response = api_instance.organizations_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsDelete: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


organizationsDeletePrometheusrules

Unbind prometheus rule(s) from organization


/api/v1/organizations/{id}/prometheusrules

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/organizations/{id}/prometheusrules" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.organizationsDeletePrometheusrules(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDeletePrometheusrules");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[Integer] integer = new array[Integer](); // array[Integer] | 

try {
    final result = await api_instance.organizationsDeletePrometheusrules(id, integer);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsDeletePrometheusrules: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.organizationsDeletePrometheusrules(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDeletePrometheusrules");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *id = 56; //  (default to null)
array[Integer] *integer = ; //  (optional)

// Unbind prometheus rule(s) from organization
[apiInstance organizationsDeletePrometheusrulesWith:id
    integer:integer
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var id = 56; // {Integer} 
var opts = {
  'integer':  // {array[Integer]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsDeletePrometheusrules(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsDeletePrometheusrulesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var id = 56;  // Integer |  (default to null)
            var integer = new array[Integer](); // array[Integer] |  (optional) 

            try {
                // Unbind prometheus rule(s) from organization
                Object result = apiInstance.organizationsDeletePrometheusrules(id, integer);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsDeletePrometheusrules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$id = 56; // Integer | 
$integer = ; // array[Integer] | 

try {
    $result = $api_instance->organizationsDeletePrometheusrules($id, $integer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsDeletePrometheusrules: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $id = 56; # Integer | 
my $integer = [WWW::OPenAPIClient::Object::array[Integer]->new()]; # array[Integer] | 

eval {
    my $result = $api_instance->organizationsDeletePrometheusrules(id => $id, integer => $integer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsDeletePrometheusrules: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
id = 56 # Integer |  (default to null)
integer =  # array[Integer] |  (optional)

try:
    # Unbind prometheus rule(s) from organization
    api_response = api_instance.organizations_delete_prometheusrules(id, integer=integer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsDeletePrometheusrules: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let id = 56; // Integer
    let integer = ; // array[Integer]

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsDeletePrometheusrules(id, integer, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
integer

Responses


organizationsDetails

Retrieve all data about current organization by Id

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/organizations/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/organizations/details?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer organizationId = 56; // Integer | Organization id to fetch dashboard details for

        try {
            DashboardChart result = apiInstance.organizationsDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Organization id to fetch dashboard details for

try {
    final result = await api_instance.organizationsDetails(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsDetails: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer organizationId = 56; // Integer | Organization id to fetch dashboard details for

        try {
            DashboardChart result = apiInstance.organizationsDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *organizationId = 56; // Organization id to fetch dashboard details for (default to null)

// Retrieve all data about current organization by Id
[apiInstance organizationsDetailsWith:organizationId
              completionHandler: ^(DashboardChart output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var organizationId = 56; // {Integer} Organization id to fetch dashboard details for

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsDetails(organizationId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var organizationId = 56;  // Integer | Organization id to fetch dashboard details for (default to null)

            try {
                // Retrieve all data about current organization by Id
                DashboardChart result = apiInstance.organizationsDetails(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$organizationId = 56; // Integer | Organization id to fetch dashboard details for

try {
    $result = $api_instance->organizationsDetails($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $organizationId = 56; # Integer | Organization id to fetch dashboard details for

eval {
    my $result = $api_instance->organizationsDetails(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
organizationId = 56 # Integer | Organization id to fetch dashboard details for (default to null)

try:
    # Retrieve all data about current organization by Id
    api_response = api_instance.organizations_details(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsDetails: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsDetails(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId*
Integer (int32)
Organization id to fetch dashboard details for
Required

Responses


organizationsExportCsv

Export Csv file


/api/v1/organizations/export

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/organizations/export"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();

        try {
            CsvExporter result = apiInstance.organizationsExportCsv();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsExportCsv");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.organizationsExportCsv();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsExportCsv: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();

        try {
            CsvExporter result = apiInstance.organizationsExportCsv();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsExportCsv");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];

// Export Csv file
[apiInstance organizationsExportCsvWithCompletionHandler: 
              ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsExportCsv(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsExportCsvExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();

            try {
                // Export Csv file
                CsvExporter result = apiInstance.organizationsExportCsv();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsExportCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();

try {
    $result = $api_instance->organizationsExportCsv();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsExportCsv: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();

eval {
    my $result = $api_instance->organizationsExportCsv();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsExportCsv: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()

try:
    # Export Csv file
    api_response = api_instance.organizations_export_csv()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsExportCsv: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsExportCsv(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


organizationsList

Retrieve all organizations


/api/v1/organizations

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/organizations?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional organization id filter

        try {
            OrganizationsList result = apiInstance.organizationsList(limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String searchId = new String(); // String | Search by id substring
final Integer id = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.organizationsList(limit, offset, sortBy, sortDirection, search, searchId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsList: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional organization id filter

        try {
            OrganizationsList result = apiInstance.organizationsList(limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *id = 56; // Optional organization id filter (optional) (default to null)

// Retrieve all organizations
[apiInstance organizationsListWith:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
              completionHandler: ^(OrganizationsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'searchId': searchId_example, // {String} Search by id substring
  'id': 56 // {Integer} Optional organization id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var id = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve all organizations
                OrganizationsList result = apiInstance.organizationsList(limit, offset, sortBy, sortDirection, search, searchId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$searchId = searchId_example; // String | Search by id substring
$id = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->organizationsList($limit, $offset, $sortBy, $sortDirection, $search, $searchId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $searchId = searchId_example; # String | Search by id substring
my $id = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->organizationsList(limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
id = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve all organizations
    api_response = api_instance.organizations_list(limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsList: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsList(limit, offset, sortBy, sortDirection, search, searchId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
SearchId
String
Search by id substring
Id
Integer (int32)
Optional organization id filter

Responses


organizationsOrganizationList

Retrieve organizations


/api/v1/organizations/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/organizations/list?DomainId=56&Search=search_example&IsInfra=true&PrometheusRuleId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer domainId = 56; // Integer | Optional domain id filter
        String search = search_example; // String | Free-text search filter
        Boolean isInfra = true; // Boolean | Optional filter for infra organizations
        Integer prometheusRuleId = 56; // Integer | Optional Prometheus rule id filter

        try {
            array[OrganizationDropdownDto] result = apiInstance.organizationsOrganizationList(domainId, search, isInfra, prometheusRuleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsOrganizationList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Optional domain id filter
final String search = new String(); // String | Free-text search filter
final Boolean isInfra = new Boolean(); // Boolean | Optional filter for infra organizations
final Integer prometheusRuleId = new Integer(); // Integer | Optional Prometheus rule id filter

try {
    final result = await api_instance.organizationsOrganizationList(domainId, search, isInfra, prometheusRuleId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsOrganizationList: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        Integer domainId = 56; // Integer | Optional domain id filter
        String search = search_example; // String | Free-text search filter
        Boolean isInfra = true; // Boolean | Optional filter for infra organizations
        Integer prometheusRuleId = 56; // Integer | Optional Prometheus rule id filter

        try {
            array[OrganizationDropdownDto] result = apiInstance.organizationsOrganizationList(domainId, search, isInfra, prometheusRuleId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsOrganizationList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Boolean *isInfra = true; // Optional filter for infra organizations (optional) (default to null)
Integer *prometheusRuleId = 56; // Optional Prometheus rule id filter (optional) (default to null)

// Retrieve organizations
[apiInstance organizationsOrganizationListWith:domainId
    search:search
    isInfra:isInfra
    prometheusRuleId:prometheusRuleId
              completionHandler: ^(array[OrganizationDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var opts = {
  'domainId': 56, // {Integer} Optional domain id filter
  'search': search_example, // {String} Free-text search filter
  'isInfra': true, // {Boolean} Optional filter for infra organizations
  'prometheusRuleId': 56 // {Integer} Optional Prometheus rule id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsOrganizationList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsOrganizationListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var isInfra = true;  // Boolean | Optional filter for infra organizations (optional)  (default to null)
            var prometheusRuleId = 56;  // Integer | Optional Prometheus rule id filter (optional)  (default to null)

            try {
                // Retrieve organizations
                array[OrganizationDropdownDto] result = apiInstance.organizationsOrganizationList(domainId, search, isInfra, prometheusRuleId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsOrganizationList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$domainId = 56; // Integer | Optional domain id filter
$search = search_example; // String | Free-text search filter
$isInfra = true; // Boolean | Optional filter for infra organizations
$prometheusRuleId = 56; // Integer | Optional Prometheus rule id filter

try {
    $result = $api_instance->organizationsOrganizationList($domainId, $search, $isInfra, $prometheusRuleId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsOrganizationList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $domainId = 56; # Integer | Optional domain id filter
my $search = search_example; # String | Free-text search filter
my $isInfra = true; # Boolean | Optional filter for infra organizations
my $prometheusRuleId = 56; # Integer | Optional Prometheus rule id filter

eval {
    my $result = $api_instance->organizationsOrganizationList(domainId => $domainId, search => $search, isInfra => $isInfra, prometheusRuleId => $prometheusRuleId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsOrganizationList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
isInfra = true # Boolean | Optional filter for infra organizations (optional) (default to null)
prometheusRuleId = 56 # Integer | Optional Prometheus rule id filter (optional) (default to null)

try:
    # Retrieve organizations
    api_response = api_instance.organizations_organization_list(domainId=domainId, search=search, isInfra=isInfra, prometheusRuleId=prometheusRuleId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsOrganizationList: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let domainId = 56; // Integer
    let search = search_example; // String
    let isInfra = true; // Boolean
    let prometheusRuleId = 56; // Integer

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsOrganizationList(domainId, search, isInfra, prometheusRuleId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
DomainId
Integer (int32)
Optional domain id filter
Search
IsInfra
Boolean
Optional filter for infra organizations
PrometheusRuleId
Integer (int32)
Optional Prometheus rule id filter

Responses


organizationsUpdate

Update organization by Id


/api/v1/organizations/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/organizations/update" \
 -d '{
  "name" : "name",
  "fullName" : "fullName",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OrganizationsApi;

import java.io.File;
import java.util.*;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        OrganizationsApi apiInstance = new OrganizationsApi();
        UpdateOrganizationCommand updateOrganizationCommand = ; // UpdateOrganizationCommand | 

        try {
            Object result = apiInstance.organizationsUpdate(updateOrganizationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateOrganizationCommand updateOrganizationCommand = new UpdateOrganizationCommand(); // UpdateOrganizationCommand | 

try {
    final result = await api_instance.organizationsUpdate(updateOrganizationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->organizationsUpdate: $e\n');
}

import org.openapitools.client.api.OrganizationsApi;

public class OrganizationsApiExample {
    public static void main(String[] args) {
        OrganizationsApi apiInstance = new OrganizationsApi();
        UpdateOrganizationCommand updateOrganizationCommand = ; // UpdateOrganizationCommand | 

        try {
            Object result = apiInstance.organizationsUpdate(updateOrganizationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OrganizationsApi#organizationsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
OrganizationsApi *apiInstance = [[OrganizationsApi alloc] init];
UpdateOrganizationCommand *updateOrganizationCommand = ; //  (optional)

// Update organization by Id
[apiInstance organizationsUpdateWith:updateOrganizationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.OrganizationsApi()
var opts = {
  'updateOrganizationCommand':  // {UpdateOrganizationCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.organizationsUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class organizationsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new OrganizationsApi();
            var updateOrganizationCommand = new UpdateOrganizationCommand(); // UpdateOrganizationCommand |  (optional) 

            try {
                // Update organization by Id
                Object result = apiInstance.organizationsUpdate(updateOrganizationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OrganizationsApi.organizationsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\OrganizationsApi();
$updateOrganizationCommand = ; // UpdateOrganizationCommand | 

try {
    $result = $api_instance->organizationsUpdate($updateOrganizationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OrganizationsApi->organizationsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::OrganizationsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::OrganizationsApi->new();
my $updateOrganizationCommand = WWW::OPenAPIClient::Object::UpdateOrganizationCommand->new(); # UpdateOrganizationCommand | 

eval {
    my $result = $api_instance->organizationsUpdate(updateOrganizationCommand => $updateOrganizationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling OrganizationsApi->organizationsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.OrganizationsApi()
updateOrganizationCommand =  # UpdateOrganizationCommand |  (optional)

try:
    # Update organization by Id
    api_response = api_instance.organizations_update(updateOrganizationCommand=updateOrganizationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OrganizationsApi->organizationsUpdate: %s\n" % e)
extern crate OrganizationsApi;

pub fn main() {
    let updateOrganizationCommand = ; // UpdateOrganizationCommand

    let mut context = OrganizationsApi::Context::default();
    let result = client.organizationsUpdate(updateOrganizationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateOrganizationCommand

Responses


Package

packageDetails

Available helm package details


/api/v1/package/{repoName}/{packageName}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/package/{repoName}/{packageName}?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PackageApi;

import java.io.File;
import java.util.*;

public class PackageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PackageApi apiInstance = new PackageApi();
        String repoName = repoName_example; // String | Repository name
        String packageName = packageName_example; // String | Package name
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AvailablePackageDetailsDto result = apiInstance.packageDetails(repoName, packageName, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String repoName = new String(); // String | Repository name
final String packageName = new String(); // String | Package name
final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.packageDetails(repoName, packageName, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->packageDetails: $e\n');
}

import org.openapitools.client.api.PackageApi;

public class PackageApiExample {
    public static void main(String[] args) {
        PackageApi apiInstance = new PackageApi();
        String repoName = repoName_example; // String | Repository name
        String packageName = packageName_example; // String | Package name
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AvailablePackageDetailsDto result = apiInstance.packageDetails(repoName, packageName, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PackageApi *apiInstance = [[PackageApi alloc] init];
String *repoName = repoName_example; // Repository name (default to null)
String *packageName = packageName_example; // Package name (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Available helm package details
[apiInstance packageDetailsWith:repoName
    packageName:packageName
    organizationId:organizationId
              completionHandler: ^(AvailablePackageDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PackageApi()
var repoName = repoName_example; // {String} Repository name
var packageName = packageName_example; // {String} Package name
var opts = {
  'organizationId': 56 // {Integer} Optional organization id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.packageDetails(repoName, packageName, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class packageDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PackageApi();
            var repoName = repoName_example;  // String | Repository name (default to null)
            var packageName = packageName_example;  // String | Package name (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Available helm package details
                AvailablePackageDetailsDto result = apiInstance.packageDetails(repoName, packageName, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PackageApi.packageDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PackageApi();
$repoName = repoName_example; // String | Repository name
$packageName = packageName_example; // String | Package name
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->packageDetails($repoName, $packageName, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PackageApi->packageDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PackageApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PackageApi->new();
my $repoName = repoName_example; # String | Repository name
my $packageName = packageName_example; # String | Package name
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->packageDetails(repoName => $repoName, packageName => $packageName, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PackageApi->packageDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PackageApi()
repoName = repoName_example # String | Repository name (default to null)
packageName = packageName_example # String | Package name (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Available helm package details
    api_response = api_instance.package_details(repoName, packageName, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PackageApi->packageDetails: %s\n" % e)
extern crate PackageApi;

pub fn main() {
    let repoName = repoName_example; // String
    let packageName = packageName_example; // String
    let organizationId = 56; // Integer

    let mut context = PackageApi::Context::default();
    let result = client.packageDetails(repoName, packageName, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
repoName*
String
Repository name
Required
packageName*
String
Package name
Required
Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter

Responses


packageList

Retrieve all available packages


/api/v1/package/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/package/list?Offset=56&Limit=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=id_example&CatalogId=56&IsPrivate=true&FilterBy=filterBy_example&OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PackageApi;

import java.io.File;
import java.util.*;

public class PackageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PackageApi apiInstance = new PackageApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String id = id_example; // String | Search by id substring
        Integer catalogId = 56; // Integer | Optional catalog id filter
        Boolean isPrivate = true; // Boolean | Optional filter for private packages
        String filterBy = filterBy_example; // String | Optional additional filter expression
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AvailablePackagesList result = apiInstance.packageList(offset, limit, sortBy, sortDirection, search, id, catalogId, isPrivate, filterBy, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer limit = new Integer(); // Integer | Page size
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String id = new String(); // String | Search by id substring
final Integer catalogId = new Integer(); // Integer | Optional catalog id filter
final Boolean isPrivate = new Boolean(); // Boolean | Optional filter for private packages
final String filterBy = new String(); // String | Optional additional filter expression
final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.packageList(offset, limit, sortBy, sortDirection, search, id, catalogId, isPrivate, filterBy, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->packageList: $e\n');
}

import org.openapitools.client.api.PackageApi;

public class PackageApiExample {
    public static void main(String[] args) {
        PackageApi apiInstance = new PackageApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String id = id_example; // String | Search by id substring
        Integer catalogId = 56; // Integer | Optional catalog id filter
        Boolean isPrivate = true; // Boolean | Optional filter for private packages
        String filterBy = filterBy_example; // String | Optional additional filter expression
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            AvailablePackagesList result = apiInstance.packageList(offset, limit, sortBy, sortDirection, search, id, catalogId, isPrivate, filterBy, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PackageApi *apiInstance = [[PackageApi alloc] init];
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *id = id_example; // Search by id substring (optional) (default to null)
Integer *catalogId = 56; // Optional catalog id filter (optional) (default to null)
Boolean *isPrivate = true; // Optional filter for private packages (optional) (default to null)
String *filterBy = filterBy_example; // Optional additional filter expression (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Retrieve all available packages
[apiInstance packageListWith:offset
    limit:limit
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
    catalogId:catalogId
    isPrivate:isPrivate
    filterBy:filterBy
    organizationId:organizationId
              completionHandler: ^(AvailablePackagesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PackageApi()
var opts = {
  'offset': 56, // {Integer} Number of items to skip
  'limit': 56, // {Integer} Page size
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'id': id_example, // {String} Search by id substring
  'catalogId': 56, // {Integer} Optional catalog id filter
  'isPrivate': true, // {Boolean} Optional filter for private packages
  'filterBy': filterBy_example, // {String} Optional additional filter expression
  'organizationId': 56 // {Integer} Optional organization id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.packageList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class packageListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PackageApi();
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var id = id_example;  // String | Search by id substring (optional)  (default to null)
            var catalogId = 56;  // Integer | Optional catalog id filter (optional)  (default to null)
            var isPrivate = true;  // Boolean | Optional filter for private packages (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Optional additional filter expression (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve all available packages
                AvailablePackagesList result = apiInstance.packageList(offset, limit, sortBy, sortDirection, search, id, catalogId, isPrivate, filterBy, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PackageApi.packageList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PackageApi();
$offset = 56; // Integer | Number of items to skip
$limit = 56; // Integer | Page size
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$id = id_example; // String | Search by id substring
$catalogId = 56; // Integer | Optional catalog id filter
$isPrivate = true; // Boolean | Optional filter for private packages
$filterBy = filterBy_example; // String | Optional additional filter expression
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->packageList($offset, $limit, $sortBy, $sortDirection, $search, $id, $catalogId, $isPrivate, $filterBy, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PackageApi->packageList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PackageApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PackageApi->new();
my $offset = 56; # Integer | Number of items to skip
my $limit = 56; # Integer | Page size
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $id = id_example; # String | Search by id substring
my $catalogId = 56; # Integer | Optional catalog id filter
my $isPrivate = true; # Boolean | Optional filter for private packages
my $filterBy = filterBy_example; # String | Optional additional filter expression
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->packageList(offset => $offset, limit => $limit, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id, catalogId => $catalogId, isPrivate => $isPrivate, filterBy => $filterBy, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PackageApi->packageList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PackageApi()
offset = 56 # Integer | Number of items to skip (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
id = id_example # String | Search by id substring (optional) (default to null)
catalogId = 56 # Integer | Optional catalog id filter (optional) (default to null)
isPrivate = true # Boolean | Optional filter for private packages (optional) (default to null)
filterBy = filterBy_example # String | Optional additional filter expression (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve all available packages
    api_response = api_instance.package_list(offset=offset, limit=limit, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id, catalogId=catalogId, isPrivate=isPrivate, filterBy=filterBy, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PackageApi->packageList: %s\n" % e)
extern crate PackageApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = id_example; // String
    let catalogId = 56; // Integer
    let isPrivate = true; // Boolean
    let filterBy = filterBy_example; // String
    let organizationId = 56; // Integer

    let mut context = PackageApi::Context::default();
    let result = client.packageList(offset, limit, sortBy, sortDirection, search, id, catalogId, isPrivate, filterBy, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Offset
Integer (int32)
Number of items to skip
Limit
Integer (int32)
Page size
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Id
String
Search by id substring
CatalogId
Integer (int32)
Optional catalog id filter
IsPrivate
Boolean
Optional filter for private packages
FilterBy
String
Optional additional filter expression
OrganizationId
Integer (int32)
Optional organization id filter

Responses


packageValue

Get yaml based value


/api/v1/package/value

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/package/value" \
 -d '{
  "packageId" : "packageId",
  "version" : "version"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PackageApi;

import java.io.File;
import java.util.*;

public class PackageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PackageApi apiInstance = new PackageApi();
        GetCatalogAppValueCommand getCatalogAppValueCommand = ; // GetCatalogAppValueCommand | 

        try {
            'String' result = apiInstance.packageValue(getCatalogAppValueCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageValue");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GetCatalogAppValueCommand getCatalogAppValueCommand = new GetCatalogAppValueCommand(); // GetCatalogAppValueCommand | 

try {
    final result = await api_instance.packageValue(getCatalogAppValueCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->packageValue: $e\n');
}

import org.openapitools.client.api.PackageApi;

public class PackageApiExample {
    public static void main(String[] args) {
        PackageApi apiInstance = new PackageApi();
        GetCatalogAppValueCommand getCatalogAppValueCommand = ; // GetCatalogAppValueCommand | 

        try {
            'String' result = apiInstance.packageValue(getCatalogAppValueCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageValue");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PackageApi *apiInstance = [[PackageApi alloc] init];
GetCatalogAppValueCommand *getCatalogAppValueCommand = ; //  (optional)

// Get yaml based value
[apiInstance packageValueWith:getCatalogAppValueCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PackageApi()
var opts = {
  'getCatalogAppValueCommand':  // {GetCatalogAppValueCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.packageValue(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class packageValueExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PackageApi();
            var getCatalogAppValueCommand = new GetCatalogAppValueCommand(); // GetCatalogAppValueCommand |  (optional) 

            try {
                // Get yaml based value
                'String' result = apiInstance.packageValue(getCatalogAppValueCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PackageApi.packageValue: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PackageApi();
$getCatalogAppValueCommand = ; // GetCatalogAppValueCommand | 

try {
    $result = $api_instance->packageValue($getCatalogAppValueCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PackageApi->packageValue: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PackageApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PackageApi->new();
my $getCatalogAppValueCommand = WWW::OPenAPIClient::Object::GetCatalogAppValueCommand->new(); # GetCatalogAppValueCommand | 

eval {
    my $result = $api_instance->packageValue(getCatalogAppValueCommand => $getCatalogAppValueCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PackageApi->packageValue: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PackageApi()
getCatalogAppValueCommand =  # GetCatalogAppValueCommand |  (optional)

try:
    # Get yaml based value
    api_response = api_instance.package_value(getCatalogAppValueCommand=getCatalogAppValueCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PackageApi->packageValue: %s\n" % e)
extern crate PackageApi;

pub fn main() {
    let getCatalogAppValueCommand = ; // GetCatalogAppValueCommand

    let mut context = PackageApi::Context::default();
    let result = client.packageValue(getCatalogAppValueCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
getCatalogAppValueCommand

Responses


packageValueAutocomplete

Get autocomplete dictionary

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/package/value-autocomplete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/package/value-autocomplete" \
 -d '{
  "packageId" : "packageId",
  "isQuestion" : true,
  "version" : "version",
  "catalogAppId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PackageApi;

import java.io.File;
import java.util.*;

public class PackageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PackageApi apiInstance = new PackageApi();
        GetCatalogAppValueAutocompleteCommand getCatalogAppValueAutocompleteCommand = ; // GetCatalogAppValueAutocompleteCommand | 

        try {
            array[PackageAutocompleteDto] result = apiInstance.packageValueAutocomplete(getCatalogAppValueAutocompleteCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageValueAutocomplete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GetCatalogAppValueAutocompleteCommand getCatalogAppValueAutocompleteCommand = new GetCatalogAppValueAutocompleteCommand(); // GetCatalogAppValueAutocompleteCommand | 

try {
    final result = await api_instance.packageValueAutocomplete(getCatalogAppValueAutocompleteCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->packageValueAutocomplete: $e\n');
}

import org.openapitools.client.api.PackageApi;

public class PackageApiExample {
    public static void main(String[] args) {
        PackageApi apiInstance = new PackageApi();
        GetCatalogAppValueAutocompleteCommand getCatalogAppValueAutocompleteCommand = ; // GetCatalogAppValueAutocompleteCommand | 

        try {
            array[PackageAutocompleteDto] result = apiInstance.packageValueAutocomplete(getCatalogAppValueAutocompleteCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageValueAutocomplete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PackageApi *apiInstance = [[PackageApi alloc] init];
GetCatalogAppValueAutocompleteCommand *getCatalogAppValueAutocompleteCommand = ; //  (optional)

// Get autocomplete dictionary
[apiInstance packageValueAutocompleteWith:getCatalogAppValueAutocompleteCommand
              completionHandler: ^(array[PackageAutocompleteDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PackageApi()
var opts = {
  'getCatalogAppValueAutocompleteCommand':  // {GetCatalogAppValueAutocompleteCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.packageValueAutocomplete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class packageValueAutocompleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PackageApi();
            var getCatalogAppValueAutocompleteCommand = new GetCatalogAppValueAutocompleteCommand(); // GetCatalogAppValueAutocompleteCommand |  (optional) 

            try {
                // Get autocomplete dictionary
                array[PackageAutocompleteDto] result = apiInstance.packageValueAutocomplete(getCatalogAppValueAutocompleteCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PackageApi.packageValueAutocomplete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PackageApi();
$getCatalogAppValueAutocompleteCommand = ; // GetCatalogAppValueAutocompleteCommand | 

try {
    $result = $api_instance->packageValueAutocomplete($getCatalogAppValueAutocompleteCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PackageApi->packageValueAutocomplete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PackageApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PackageApi->new();
my $getCatalogAppValueAutocompleteCommand = WWW::OPenAPIClient::Object::GetCatalogAppValueAutocompleteCommand->new(); # GetCatalogAppValueAutocompleteCommand | 

eval {
    my $result = $api_instance->packageValueAutocomplete(getCatalogAppValueAutocompleteCommand => $getCatalogAppValueAutocompleteCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PackageApi->packageValueAutocomplete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PackageApi()
getCatalogAppValueAutocompleteCommand =  # GetCatalogAppValueAutocompleteCommand |  (optional)

try:
    # Get autocomplete dictionary
    api_response = api_instance.package_value_autocomplete(getCatalogAppValueAutocompleteCommand=getCatalogAppValueAutocompleteCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PackageApi->packageValueAutocomplete: %s\n" % e)
extern crate PackageApi;

pub fn main() {
    let getCatalogAppValueAutocompleteCommand = ; // GetCatalogAppValueAutocompleteCommand

    let mut context = PackageApi::Context::default();
    let result = client.packageValueAutocomplete(getCatalogAppValueAutocompleteCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
getCatalogAppValueAutocompleteCommand

Responses


packageVersions

Get available versions


/api/v1/package/versions

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/package/versions" \
 -d '{
  "repoName" : "repoName",
  "packageName" : "packageName",
  "currentVersion" : "currentVersion"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PackageApi;

import java.io.File;
import java.util.*;

public class PackageApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PackageApi apiInstance = new PackageApi();
        ListCatalogAppAvailableVersionsCommand listCatalogAppAvailableVersionsCommand = ; // ListCatalogAppAvailableVersionsCommand | 

        try {
            array['String'] result = apiInstance.packageVersions(listCatalogAppAvailableVersionsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageVersions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ListCatalogAppAvailableVersionsCommand listCatalogAppAvailableVersionsCommand = new ListCatalogAppAvailableVersionsCommand(); // ListCatalogAppAvailableVersionsCommand | 

try {
    final result = await api_instance.packageVersions(listCatalogAppAvailableVersionsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->packageVersions: $e\n');
}

import org.openapitools.client.api.PackageApi;

public class PackageApiExample {
    public static void main(String[] args) {
        PackageApi apiInstance = new PackageApi();
        ListCatalogAppAvailableVersionsCommand listCatalogAppAvailableVersionsCommand = ; // ListCatalogAppAvailableVersionsCommand | 

        try {
            array['String'] result = apiInstance.packageVersions(listCatalogAppAvailableVersionsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PackageApi#packageVersions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PackageApi *apiInstance = [[PackageApi alloc] init];
ListCatalogAppAvailableVersionsCommand *listCatalogAppAvailableVersionsCommand = ; //  (optional)

// Get available versions
[apiInstance packageVersionsWith:listCatalogAppAvailableVersionsCommand
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PackageApi()
var opts = {
  'listCatalogAppAvailableVersionsCommand':  // {ListCatalogAppAvailableVersionsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.packageVersions(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class packageVersionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PackageApi();
            var listCatalogAppAvailableVersionsCommand = new ListCatalogAppAvailableVersionsCommand(); // ListCatalogAppAvailableVersionsCommand |  (optional) 

            try {
                // Get available versions
                array['String'] result = apiInstance.packageVersions(listCatalogAppAvailableVersionsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PackageApi.packageVersions: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PackageApi();
$listCatalogAppAvailableVersionsCommand = ; // ListCatalogAppAvailableVersionsCommand | 

try {
    $result = $api_instance->packageVersions($listCatalogAppAvailableVersionsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PackageApi->packageVersions: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PackageApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PackageApi->new();
my $listCatalogAppAvailableVersionsCommand = WWW::OPenAPIClient::Object::ListCatalogAppAvailableVersionsCommand->new(); # ListCatalogAppAvailableVersionsCommand | 

eval {
    my $result = $api_instance->packageVersions(listCatalogAppAvailableVersionsCommand => $listCatalogAppAvailableVersionsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PackageApi->packageVersions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PackageApi()
listCatalogAppAvailableVersionsCommand =  # ListCatalogAppAvailableVersionsCommand |  (optional)

try:
    # Get available versions
    api_response = api_instance.package_versions(listCatalogAppAvailableVersionsCommand=listCatalogAppAvailableVersionsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PackageApi->packageVersions: %s\n" % e)
extern crate PackageApi;

pub fn main() {
    let listCatalogAppAvailableVersionsCommand = ; // ListCatalogAppAvailableVersionsCommand

    let mut context = PackageApi::Context::default();
    let result = client.packageVersions(listCatalogAppAvailableVersionsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
listCatalogAppAvailableVersionsCommand

Responses


PreDefinedQueries

predefinedqueriesCreate

Create prometheus dashboard pre defined query


/api/v1/predefinedqueries/prometheus/dashboard/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/predefinedqueries/prometheus/dashboard/create" \
 -d '{
  "expression" : "expression",
  "name" : "name",
  "description" : "description",
  "projectId" : 0,
  "categoryName" : "categoryName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PreDefinedQueriesApi;

import java.io.File;
import java.util.*;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        PrometheusDashboardCreateCommand prometheusDashboardCreateCommand = ; // PrometheusDashboardCreateCommand | 

        try {
            Object result = apiInstance.predefinedqueriesCreate(prometheusDashboardCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PrometheusDashboardCreateCommand prometheusDashboardCreateCommand = new PrometheusDashboardCreateCommand(); // PrometheusDashboardCreateCommand | 

try {
    final result = await api_instance.predefinedqueriesCreate(prometheusDashboardCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predefinedqueriesCreate: $e\n');
}

import org.openapitools.client.api.PreDefinedQueriesApi;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        PrometheusDashboardCreateCommand prometheusDashboardCreateCommand = ; // PrometheusDashboardCreateCommand | 

        try {
            Object result = apiInstance.predefinedqueriesCreate(prometheusDashboardCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PreDefinedQueriesApi *apiInstance = [[PreDefinedQueriesApi alloc] init];
PrometheusDashboardCreateCommand *prometheusDashboardCreateCommand = ; //  (optional)

// Create prometheus dashboard pre defined query
[apiInstance predefinedqueriesCreateWith:prometheusDashboardCreateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PreDefinedQueriesApi()
var opts = {
  'prometheusDashboardCreateCommand':  // {PrometheusDashboardCreateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predefinedqueriesCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class predefinedqueriesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PreDefinedQueriesApi();
            var prometheusDashboardCreateCommand = new PrometheusDashboardCreateCommand(); // PrometheusDashboardCreateCommand |  (optional) 

            try {
                // Create prometheus dashboard pre defined query
                Object result = apiInstance.predefinedqueriesCreate(prometheusDashboardCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PreDefinedQueriesApi.predefinedqueriesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PreDefinedQueriesApi();
$prometheusDashboardCreateCommand = ; // PrometheusDashboardCreateCommand | 

try {
    $result = $api_instance->predefinedqueriesCreate($prometheusDashboardCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PreDefinedQueriesApi->predefinedqueriesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PreDefinedQueriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PreDefinedQueriesApi->new();
my $prometheusDashboardCreateCommand = WWW::OPenAPIClient::Object::PrometheusDashboardCreateCommand->new(); # PrometheusDashboardCreateCommand | 

eval {
    my $result = $api_instance->predefinedqueriesCreate(prometheusDashboardCreateCommand => $prometheusDashboardCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreDefinedQueriesApi->predefinedqueriesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PreDefinedQueriesApi()
prometheusDashboardCreateCommand =  # PrometheusDashboardCreateCommand |  (optional)

try:
    # Create prometheus dashboard pre defined query
    api_response = api_instance.predefinedqueries_create(prometheusDashboardCreateCommand=prometheusDashboardCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreDefinedQueriesApi->predefinedqueriesCreate: %s\n" % e)
extern crate PreDefinedQueriesApi;

pub fn main() {
    let prometheusDashboardCreateCommand = ; // PrometheusDashboardCreateCommand

    let mut context = PreDefinedQueriesApi::Context::default();
    let result = client.predefinedqueriesCreate(prometheusDashboardCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
prometheusDashboardCreateCommand

Responses


predefinedqueriesDelete

Delete prometheus dashboard pre defined query


/api/v1/predefinedqueries/prometheus/dashboard/delete/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/predefinedqueries/prometheus/dashboard/delete/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PreDefinedQueriesApi;

import java.io.File;
import java.util.*;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.predefinedqueriesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.predefinedqueriesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predefinedqueriesDelete: $e\n');
}

import org.openapitools.client.api.PreDefinedQueriesApi;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.predefinedqueriesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PreDefinedQueriesApi *apiInstance = [[PreDefinedQueriesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete prometheus dashboard pre defined query
[apiInstance predefinedqueriesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PreDefinedQueriesApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predefinedqueriesDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class predefinedqueriesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PreDefinedQueriesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete prometheus dashboard pre defined query
                Object result = apiInstance.predefinedqueriesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PreDefinedQueriesApi.predefinedqueriesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PreDefinedQueriesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->predefinedqueriesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PreDefinedQueriesApi->predefinedqueriesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PreDefinedQueriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PreDefinedQueriesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->predefinedqueriesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreDefinedQueriesApi->predefinedqueriesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PreDefinedQueriesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete prometheus dashboard pre defined query
    api_response = api_instance.predefinedqueries_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreDefinedQueriesApi->predefinedqueriesDelete: %s\n" % e)
extern crate PreDefinedQueriesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = PreDefinedQueriesApi::Context::default();
    let result = client.predefinedqueriesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


predefinedqueriesList

Get list of pre defined organization prometheus dashboard elements


/api/v1/predefinedqueries/prometheus/dashboard/list/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/predefinedqueries/prometheus/dashboard/list/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PreDefinedQueriesApi;

import java.io.File;
import java.util.*;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer projectId = 56; // Integer | 

        try {
            array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesList(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.predefinedqueriesList(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predefinedqueriesList: $e\n');
}

import org.openapitools.client.api.PreDefinedQueriesApi;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer projectId = 56; // Integer | 

        try {
            array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesList(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PreDefinedQueriesApi *apiInstance = [[PreDefinedQueriesApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Get list of pre defined organization prometheus dashboard elements
[apiInstance predefinedqueriesListWith:projectId
              completionHandler: ^(array[PrometheusDashboardListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PreDefinedQueriesApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predefinedqueriesList(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class predefinedqueriesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PreDefinedQueriesApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Get list of pre defined organization prometheus dashboard elements
                array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesList(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PreDefinedQueriesApi.predefinedqueriesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PreDefinedQueriesApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->predefinedqueriesList($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PreDefinedQueriesApi->predefinedqueriesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PreDefinedQueriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PreDefinedQueriesApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->predefinedqueriesList(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreDefinedQueriesApi->predefinedqueriesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PreDefinedQueriesApi()
projectId = 56 # Integer |  (default to null)

try:
    # Get list of pre defined organization prometheus dashboard elements
    api_response = api_instance.predefinedqueries_list(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreDefinedQueriesApi->predefinedqueriesList: %s\n" % e)
extern crate PreDefinedQueriesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = PreDefinedQueriesApi::Context::default();
    let result = client.predefinedqueriesList(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


predefinedqueriesPrometheusDashboardCommon

et list of pre defined common prometheus dashboard elements


/api/v1/predefinedqueries/prometheus/dashboard/common/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/predefinedqueries/prometheus/dashboard/common/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PreDefinedQueriesApi;

import java.io.File;
import java.util.*;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer projectId = 56; // Integer | 

        try {
            array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesPrometheusDashboardCommon(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesPrometheusDashboardCommon");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.predefinedqueriesPrometheusDashboardCommon(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predefinedqueriesPrometheusDashboardCommon: $e\n');
}

import org.openapitools.client.api.PreDefinedQueriesApi;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        Integer projectId = 56; // Integer | 

        try {
            array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesPrometheusDashboardCommon(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesPrometheusDashboardCommon");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PreDefinedQueriesApi *apiInstance = [[PreDefinedQueriesApi alloc] init];
Integer *projectId = 56; //  (default to null)

// et list of pre defined common prometheus dashboard elements
[apiInstance predefinedqueriesPrometheusDashboardCommonWith:projectId
              completionHandler: ^(array[PrometheusDashboardListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PreDefinedQueriesApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predefinedqueriesPrometheusDashboardCommon(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class predefinedqueriesPrometheusDashboardCommonExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PreDefinedQueriesApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // et list of pre defined common prometheus dashboard elements
                array[PrometheusDashboardListDto] result = apiInstance.predefinedqueriesPrometheusDashboardCommon(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PreDefinedQueriesApi.predefinedqueriesPrometheusDashboardCommon: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PreDefinedQueriesApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->predefinedqueriesPrometheusDashboardCommon($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PreDefinedQueriesApi->predefinedqueriesPrometheusDashboardCommon: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PreDefinedQueriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PreDefinedQueriesApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->predefinedqueriesPrometheusDashboardCommon(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreDefinedQueriesApi->predefinedqueriesPrometheusDashboardCommon: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PreDefinedQueriesApi()
projectId = 56 # Integer |  (default to null)

try:
    # et list of pre defined common prometheus dashboard elements
    api_response = api_instance.predefinedqueries_prometheus_dashboard_common(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreDefinedQueriesApi->predefinedqueriesPrometheusDashboardCommon: %s\n" % e)
extern crate PreDefinedQueriesApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = PreDefinedQueriesApi::Context::default();
    let result = client.predefinedqueriesPrometheusDashboardCommon(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


predefinedqueriesUpdate

Update prometheus dashboard pre defined query


/api/v1/predefinedqueries/prometheus/dashboard/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/predefinedqueries/prometheus/dashboard/update" \
 -d '{
  "expression" : "expression",
  "name" : "name",
  "description" : "description",
  "id" : 0,
  "categoryName" : "categoryName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PreDefinedQueriesApi;

import java.io.File;
import java.util.*;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        PrometheusDashboardUpdateCommand prometheusDashboardUpdateCommand = ; // PrometheusDashboardUpdateCommand | 

        try {
            Object result = apiInstance.predefinedqueriesUpdate(prometheusDashboardUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PrometheusDashboardUpdateCommand prometheusDashboardUpdateCommand = new PrometheusDashboardUpdateCommand(); // PrometheusDashboardUpdateCommand | 

try {
    final result = await api_instance.predefinedqueriesUpdate(prometheusDashboardUpdateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->predefinedqueriesUpdate: $e\n');
}

import org.openapitools.client.api.PreDefinedQueriesApi;

public class PreDefinedQueriesApiExample {
    public static void main(String[] args) {
        PreDefinedQueriesApi apiInstance = new PreDefinedQueriesApi();
        PrometheusDashboardUpdateCommand prometheusDashboardUpdateCommand = ; // PrometheusDashboardUpdateCommand | 

        try {
            Object result = apiInstance.predefinedqueriesUpdate(prometheusDashboardUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PreDefinedQueriesApi#predefinedqueriesUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PreDefinedQueriesApi *apiInstance = [[PreDefinedQueriesApi alloc] init];
PrometheusDashboardUpdateCommand *prometheusDashboardUpdateCommand = ; //  (optional)

// Update prometheus dashboard pre defined query
[apiInstance predefinedqueriesUpdateWith:prometheusDashboardUpdateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PreDefinedQueriesApi()
var opts = {
  'prometheusDashboardUpdateCommand':  // {PrometheusDashboardUpdateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.predefinedqueriesUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class predefinedqueriesUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PreDefinedQueriesApi();
            var prometheusDashboardUpdateCommand = new PrometheusDashboardUpdateCommand(); // PrometheusDashboardUpdateCommand |  (optional) 

            try {
                // Update prometheus dashboard pre defined query
                Object result = apiInstance.predefinedqueriesUpdate(prometheusDashboardUpdateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PreDefinedQueriesApi.predefinedqueriesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PreDefinedQueriesApi();
$prometheusDashboardUpdateCommand = ; // PrometheusDashboardUpdateCommand | 

try {
    $result = $api_instance->predefinedqueriesUpdate($prometheusDashboardUpdateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PreDefinedQueriesApi->predefinedqueriesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PreDefinedQueriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PreDefinedQueriesApi->new();
my $prometheusDashboardUpdateCommand = WWW::OPenAPIClient::Object::PrometheusDashboardUpdateCommand->new(); # PrometheusDashboardUpdateCommand | 

eval {
    my $result = $api_instance->predefinedqueriesUpdate(prometheusDashboardUpdateCommand => $prometheusDashboardUpdateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PreDefinedQueriesApi->predefinedqueriesUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PreDefinedQueriesApi()
prometheusDashboardUpdateCommand =  # PrometheusDashboardUpdateCommand |  (optional)

try:
    # Update prometheus dashboard pre defined query
    api_response = api_instance.predefinedqueries_update(prometheusDashboardUpdateCommand=prometheusDashboardUpdateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PreDefinedQueriesApi->predefinedqueriesUpdate: %s\n" % e)
extern crate PreDefinedQueriesApi;

pub fn main() {
    let prometheusDashboardUpdateCommand = ; // PrometheusDashboardUpdateCommand

    let mut context = PreDefinedQueriesApi::Context::default();
    let result = client.predefinedqueriesUpdate(prometheusDashboardUpdateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
prometheusDashboardUpdateCommand

Responses


ProjectAppParams

projectappparamEdit

Edit project app params


/api/v1/projectappparam/edit/{projectAppId}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectappparam/edit/{projectAppId}" \
 -d '{
  "value" : "value",
  "key" : "key"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppParamsApi;

import java.io.File;
import java.util.*;

public class ProjectAppParamsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppParamsApi apiInstance = new ProjectAppParamsApi();
        Integer projectAppId = 56; // Integer | 
        array[EditProjectAppParamsDto] editProjectAppParamsDto = ; // array[EditProjectAppParamsDto] | 

        try {
            ApplicationSyncResponse result = apiInstance.projectappparamEdit(projectAppId, editProjectAppParamsDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppParamsApi#projectappparamEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectAppId = new Integer(); // Integer | 
final array[EditProjectAppParamsDto] editProjectAppParamsDto = new array[EditProjectAppParamsDto](); // array[EditProjectAppParamsDto] | 

try {
    final result = await api_instance.projectappparamEdit(projectAppId, editProjectAppParamsDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappparamEdit: $e\n');
}

import org.openapitools.client.api.ProjectAppParamsApi;

public class ProjectAppParamsApiExample {
    public static void main(String[] args) {
        ProjectAppParamsApi apiInstance = new ProjectAppParamsApi();
        Integer projectAppId = 56; // Integer | 
        array[EditProjectAppParamsDto] editProjectAppParamsDto = ; // array[EditProjectAppParamsDto] | 

        try {
            ApplicationSyncResponse result = apiInstance.projectappparamEdit(projectAppId, editProjectAppParamsDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppParamsApi#projectappparamEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppParamsApi *apiInstance = [[ProjectAppParamsApi alloc] init];
Integer *projectAppId = 56; //  (default to null)
array[EditProjectAppParamsDto] *editProjectAppParamsDto = ; //  (optional)

// Edit project app params
[apiInstance projectappparamEditWith:projectAppId
    editProjectAppParamsDto:editProjectAppParamsDto
              completionHandler: ^(ApplicationSyncResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppParamsApi()
var projectAppId = 56; // {Integer} 
var opts = {
  'editProjectAppParamsDto':  // {array[EditProjectAppParamsDto]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappparamEdit(projectAppId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappparamEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppParamsApi();
            var projectAppId = 56;  // Integer |  (default to null)
            var editProjectAppParamsDto = new array[EditProjectAppParamsDto](); // array[EditProjectAppParamsDto] |  (optional) 

            try {
                // Edit project app params
                ApplicationSyncResponse result = apiInstance.projectappparamEdit(projectAppId, editProjectAppParamsDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppParamsApi.projectappparamEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppParamsApi();
$projectAppId = 56; // Integer | 
$editProjectAppParamsDto = ; // array[EditProjectAppParamsDto] | 

try {
    $result = $api_instance->projectappparamEdit($projectAppId, $editProjectAppParamsDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppParamsApi->projectappparamEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppParamsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppParamsApi->new();
my $projectAppId = 56; # Integer | 
my $editProjectAppParamsDto = [WWW::OPenAPIClient::Object::array[EditProjectAppParamsDto]->new()]; # array[EditProjectAppParamsDto] | 

eval {
    my $result = $api_instance->projectappparamEdit(projectAppId => $projectAppId, editProjectAppParamsDto => $editProjectAppParamsDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppParamsApi->projectappparamEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppParamsApi()
projectAppId = 56 # Integer |  (default to null)
editProjectAppParamsDto =  # array[EditProjectAppParamsDto] |  (optional)

try:
    # Edit project app params
    api_response = api_instance.projectappparam_edit(projectAppId, editProjectAppParamsDto=editProjectAppParamsDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppParamsApi->projectappparamEdit: %s\n" % e)
extern crate ProjectAppParamsApi;

pub fn main() {
    let projectAppId = 56; // Integer
    let editProjectAppParamsDto = ; // array[EditProjectAppParamsDto]

    let mut context = ProjectAppParamsApi::Context::default();
    let result = client.projectappparamEdit(projectAppId, editProjectAppParamsDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectAppId*
Integer (int32)
Required
Body parameters
Name Description
editProjectAppParamsDto

Responses


ProjectApps

projectappAutosync

AutoSync management


/api/v1/projectapp/autosync

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/autosync" \
 -d '{
  "mode" : "mode",
  "id" : 0,
  "ttl" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        AutoSyncManagementCommand autoSyncManagementCommand = ; // AutoSyncManagementCommand | 

        try {
            Object result = apiInstance.projectappAutosync(autoSyncManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappAutosync");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AutoSyncManagementCommand autoSyncManagementCommand = new AutoSyncManagementCommand(); // AutoSyncManagementCommand | 

try {
    final result = await api_instance.projectappAutosync(autoSyncManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappAutosync: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        AutoSyncManagementCommand autoSyncManagementCommand = ; // AutoSyncManagementCommand | 

        try {
            Object result = apiInstance.projectappAutosync(autoSyncManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappAutosync");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
AutoSyncManagementCommand *autoSyncManagementCommand = ; //  (optional)

// AutoSync management
[apiInstance projectappAutosyncWith:autoSyncManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'autoSyncManagementCommand':  // {AutoSyncManagementCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappAutosync(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappAutosyncExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var autoSyncManagementCommand = new AutoSyncManagementCommand(); // AutoSyncManagementCommand |  (optional) 

            try {
                // AutoSync management
                Object result = apiInstance.projectappAutosync(autoSyncManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappAutosync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$autoSyncManagementCommand = ; // AutoSyncManagementCommand | 

try {
    $result = $api_instance->projectappAutosync($autoSyncManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappAutosync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $autoSyncManagementCommand = WWW::OPenAPIClient::Object::AutoSyncManagementCommand->new(); # AutoSyncManagementCommand | 

eval {
    my $result = $api_instance->projectappAutosync(autoSyncManagementCommand => $autoSyncManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappAutosync: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
autoSyncManagementCommand =  # AutoSyncManagementCommand |  (optional)

try:
    # AutoSync management
    api_response = api_instance.projectapp_autosync(autoSyncManagementCommand=autoSyncManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappAutosync: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let autoSyncManagementCommand = ; // AutoSyncManagementCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappAutosync(autoSyncManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
autoSyncManagementCommand

Responses


projectappCancel

Cancel an application


/api/v1/projectapp/cancel

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/cancel" \
 -d '{
  "projectAppId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        CancelProjectAppCommand cancelProjectAppCommand = ; // CancelProjectAppCommand | 

        try {
            Object result = apiInstance.projectappCancel(cancelProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappCancel");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CancelProjectAppCommand cancelProjectAppCommand = new CancelProjectAppCommand(); // CancelProjectAppCommand | 

try {
    final result = await api_instance.projectappCancel(cancelProjectAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappCancel: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        CancelProjectAppCommand cancelProjectAppCommand = ; // CancelProjectAppCommand | 

        try {
            Object result = apiInstance.projectappCancel(cancelProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappCancel");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
CancelProjectAppCommand *cancelProjectAppCommand = ; //  (optional)

// Cancel an application
[apiInstance projectappCancelWith:cancelProjectAppCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'cancelProjectAppCommand':  // {CancelProjectAppCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappCancel(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappCancelExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var cancelProjectAppCommand = new CancelProjectAppCommand(); // CancelProjectAppCommand |  (optional) 

            try {
                // Cancel an application
                Object result = apiInstance.projectappCancel(cancelProjectAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappCancel: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$cancelProjectAppCommand = ; // CancelProjectAppCommand | 

try {
    $result = $api_instance->projectappCancel($cancelProjectAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappCancel: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $cancelProjectAppCommand = WWW::OPenAPIClient::Object::CancelProjectAppCommand->new(); # CancelProjectAppCommand | 

eval {
    my $result = $api_instance->projectappCancel(cancelProjectAppCommand => $cancelProjectAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappCancel: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
cancelProjectAppCommand =  # CancelProjectAppCommand |  (optional)

try:
    # Cancel an application
    api_response = api_instance.projectapp_cancel(cancelProjectAppCommand=cancelProjectAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappCancel: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let cancelProjectAppCommand = ; // CancelProjectAppCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappCancel(cancelProjectAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cancelProjectAppCommand

Responses


projectappDelete

Uninstall application


/api/v1/projectapp/uninstall/{projectAppId}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projectapp/uninstall/{projectAppId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer projectAppId = 56; // Integer | 

        try {
            UninstallProjectAppResult result = apiInstance.projectappDelete(projectAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectAppId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectappDelete(projectAppId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappDelete: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer projectAppId = 56; // Integer | 

        try {
            UninstallProjectAppResult result = apiInstance.projectappDelete(projectAppId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
Integer *projectAppId = 56; //  (default to null)

// Uninstall application
[apiInstance projectappDeleteWith:projectAppId
              completionHandler: ^(UninstallProjectAppResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var projectAppId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappDelete(projectAppId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var projectAppId = 56;  // Integer |  (default to null)

            try {
                // Uninstall application
                UninstallProjectAppResult result = apiInstance.projectappDelete(projectAppId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$projectAppId = 56; // Integer | 

try {
    $result = $api_instance->projectappDelete($projectAppId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $projectAppId = 56; # Integer | 

eval {
    my $result = $api_instance->projectappDelete(projectAppId => $projectAppId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
projectAppId = 56 # Integer |  (default to null)

try:
    # Uninstall application
    api_response = api_instance.projectapp_delete(projectAppId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappDelete: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let projectAppId = 56; // Integer

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappDelete(projectAppId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectAppId*
Integer (int32)
Required

Responses


projectappDetails

Retrieve project app's details


/api/v1/projectapp/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projectapp/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer id = 56; // Integer | Project app id, positive integer

        try {
            ProjectAppDetailsDto result = apiInstance.projectappDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Project app id, positive integer

try {
    final result = await api_instance.projectappDetails(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappDetails: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer id = 56; // Integer | Project app id, positive integer

        try {
            ProjectAppDetailsDto result = apiInstance.projectappDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
Integer *id = 56; // Project app id, positive integer (default to null)

// Retrieve project app's details
[apiInstance projectappDetailsWith:id
              completionHandler: ^(ProjectAppDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var id = 56; // {Integer} Project app id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappDetails(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var id = 56;  // Integer | Project app id, positive integer (default to null)

            try {
                // Retrieve project app's details
                ProjectAppDetailsDto result = apiInstance.projectappDetails(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$id = 56; // Integer | Project app id, positive integer

try {
    $result = $api_instance->projectappDetails($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $id = 56; # Integer | Project app id, positive integer

eval {
    my $result = $api_instance->projectappDetails(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
id = 56 # Integer | Project app id, positive integer (default to null)

try:
    # Retrieve project app's details
    api_response = api_instance.projectapp_details(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappDetails: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappDetails(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Project app id, positive integer
Required

Responses


projectappInstall

Install an application


/api/v1/projectapp/install

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/install" \
 -d '{
  "pullSecretName" : "pullSecretName",
  "extraValues" : "extraValues",
  "createPullSecret" : true,
  "name" : "name",
  "namespace" : "namespace",
  "autoSync" : true,
  "projectId" : 0,
  "catalogAppId" : 6,
  "parameters" : [ {
    "value" : "value",
    "key" : "key"
  }, {
    "value" : "value",
    "key" : "key"
  } ],
  "timeout" : 1
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        CreateProjectAppCommand createProjectAppCommand = ; // CreateProjectAppCommand | 

        try {
            ApiResponse result = apiInstance.projectappInstall(createProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappInstall");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateProjectAppCommand createProjectAppCommand = new CreateProjectAppCommand(); // CreateProjectAppCommand | 

try {
    final result = await api_instance.projectappInstall(createProjectAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappInstall: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        CreateProjectAppCommand createProjectAppCommand = ; // CreateProjectAppCommand | 

        try {
            ApiResponse result = apiInstance.projectappInstall(createProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappInstall");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
CreateProjectAppCommand *createProjectAppCommand = ; //  (optional)

// Install an application
[apiInstance projectappInstallWith:createProjectAppCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'createProjectAppCommand':  // {CreateProjectAppCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappInstall(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappInstallExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var createProjectAppCommand = new CreateProjectAppCommand(); // CreateProjectAppCommand |  (optional) 

            try {
                // Install an application
                ApiResponse result = apiInstance.projectappInstall(createProjectAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappInstall: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$createProjectAppCommand = ; // CreateProjectAppCommand | 

try {
    $result = $api_instance->projectappInstall($createProjectAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappInstall: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $createProjectAppCommand = WWW::OPenAPIClient::Object::CreateProjectAppCommand->new(); # CreateProjectAppCommand | 

eval {
    my $result = $api_instance->projectappInstall(createProjectAppCommand => $createProjectAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappInstall: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
createProjectAppCommand =  # CreateProjectAppCommand |  (optional)

try:
    # Install an application
    api_response = api_instance.projectapp_install(createProjectAppCommand=createProjectAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappInstall: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let createProjectAppCommand = ; // CreateProjectAppCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappInstall(createProjectAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createProjectAppCommand

Responses


projectappList

Retrieve all project apps according to current organization


/api/v1/projectapp/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projectapp/list?Offset=56&Limit=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56&ProjectId=56&OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional project app id filter
        Integer projectId = 56; // Integer | Optional project id filter
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            ProjectAppList result = apiInstance.projectappList(offset, limit, sortBy, sortDirection, search, id, projectId, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer limit = new Integer(); // Integer | Page size
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Integer id = new Integer(); // Integer | Optional project app id filter
final Integer projectId = new Integer(); // Integer | Optional project id filter
final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.projectappList(offset, limit, sortBy, sortDirection, search, id, projectId, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappList: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        Integer offset = 56; // Integer | Number of items to skip
        Integer limit = 56; // Integer | Page size
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional project app id filter
        Integer projectId = 56; // Integer | Optional project id filter
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            ProjectAppList result = apiInstance.projectappList(offset, limit, sortBy, sortDirection, search, id, projectId, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Integer *id = 56; // Optional project app id filter (optional) (default to null)
Integer *projectId = 56; // Optional project id filter (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Retrieve all project apps according to current organization
[apiInstance projectappListWith:offset
    limit:limit
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
    projectId:projectId
    organizationId:organizationId
              completionHandler: ^(ProjectAppList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'offset': 56, // {Integer} Number of items to skip
  'limit': 56, // {Integer} Page size
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'id': 56, // {Integer} Optional project app id filter
  'projectId': 56, // {Integer} Optional project id filter
  'organizationId': 56 // {Integer} Optional organization id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var id = 56;  // Integer | Optional project app id filter (optional)  (default to null)
            var projectId = 56;  // Integer | Optional project id filter (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve all project apps according to current organization
                ProjectAppList result = apiInstance.projectappList(offset, limit, sortBy, sortDirection, search, id, projectId, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$offset = 56; // Integer | Number of items to skip
$limit = 56; // Integer | Page size
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$id = 56; // Integer | Optional project app id filter
$projectId = 56; // Integer | Optional project id filter
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->projectappList($offset, $limit, $sortBy, $sortDirection, $search, $id, $projectId, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $offset = 56; # Integer | Number of items to skip
my $limit = 56; # Integer | Page size
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $id = 56; # Integer | Optional project app id filter
my $projectId = 56; # Integer | Optional project id filter
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->projectappList(offset => $offset, limit => $limit, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id, projectId => $projectId, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
offset = 56 # Integer | Number of items to skip (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
id = 56 # Integer | Optional project app id filter (optional) (default to null)
projectId = 56 # Integer | Optional project id filter (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve all project apps according to current organization
    api_response = api_instance.projectapp_list(offset=offset, limit=limit, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id, projectId=projectId, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappList: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let offset = 56; // Integer
    let limit = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer
    let projectId = 56; // Integer
    let organizationId = 56; // Integer

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappList(offset, limit, sortBy, sortDirection, search, id, projectId, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Offset
Integer (int32)
Number of items to skip
Limit
Integer (int32)
Page size
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Id
Integer (int32)
Optional project app id filter
ProjectId
Integer (int32)
Optional project id filter
OrganizationId
Integer (int32)
Optional organization id filter

Responses


projectappLockManager

Lock/Unlock project app


/api/v1/projectapp/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        LockProjectAppCommand lockProjectAppCommand = ; // LockProjectAppCommand | 

        try {
            Object result = apiInstance.projectappLockManager(lockProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final LockProjectAppCommand lockProjectAppCommand = new LockProjectAppCommand(); // LockProjectAppCommand | 

try {
    final result = await api_instance.projectappLockManager(lockProjectAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappLockManager: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        LockProjectAppCommand lockProjectAppCommand = ; // LockProjectAppCommand | 

        try {
            Object result = apiInstance.projectappLockManager(lockProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
LockProjectAppCommand *lockProjectAppCommand = ; //  (optional)

// Lock/Unlock project app
[apiInstance projectappLockManagerWith:lockProjectAppCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'lockProjectAppCommand':  // {LockProjectAppCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappLockManager(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var lockProjectAppCommand = new LockProjectAppCommand(); // LockProjectAppCommand |  (optional) 

            try {
                // Lock/Unlock project app
                Object result = apiInstance.projectappLockManager(lockProjectAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$lockProjectAppCommand = ; // LockProjectAppCommand | 

try {
    $result = $api_instance->projectappLockManager($lockProjectAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $lockProjectAppCommand = WWW::OPenAPIClient::Object::LockProjectAppCommand->new(); # LockProjectAppCommand | 

eval {
    my $result = $api_instance->projectappLockManager(lockProjectAppCommand => $lockProjectAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
lockProjectAppCommand =  # LockProjectAppCommand |  (optional)

try:
    # Lock/Unlock project app
    api_response = api_instance.projectapp_lock_manager(lockProjectAppCommand=lockProjectAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappLockManager: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let lockProjectAppCommand = ; // LockProjectAppCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappLockManager(lockProjectAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
lockProjectAppCommand

Responses


projectappSync

Sync an application


/api/v1/projectapp/sync

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/sync" \
 -d '{
  "projectAppId" : 0,
  "timeout" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        SyncProjectAppCommand syncProjectAppCommand = ; // SyncProjectAppCommand | 

        try {
            Object result = apiInstance.projectappSync(syncProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappSync");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SyncProjectAppCommand syncProjectAppCommand = new SyncProjectAppCommand(); // SyncProjectAppCommand | 

try {
    final result = await api_instance.projectappSync(syncProjectAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappSync: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        SyncProjectAppCommand syncProjectAppCommand = ; // SyncProjectAppCommand | 

        try {
            Object result = apiInstance.projectappSync(syncProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappSync");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
SyncProjectAppCommand *syncProjectAppCommand = ; //  (optional)

// Sync an application
[apiInstance projectappSyncWith:syncProjectAppCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'syncProjectAppCommand':  // {SyncProjectAppCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappSync(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappSyncExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var syncProjectAppCommand = new SyncProjectAppCommand(); // SyncProjectAppCommand |  (optional) 

            try {
                // Sync an application
                Object result = apiInstance.projectappSync(syncProjectAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappSync: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$syncProjectAppCommand = ; // SyncProjectAppCommand | 

try {
    $result = $api_instance->projectappSync($syncProjectAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappSync: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $syncProjectAppCommand = WWW::OPenAPIClient::Object::SyncProjectAppCommand->new(); # SyncProjectAppCommand | 

eval {
    my $result = $api_instance->projectappSync(syncProjectAppCommand => $syncProjectAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappSync: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
syncProjectAppCommand =  # SyncProjectAppCommand |  (optional)

try:
    # Sync an application
    api_response = api_instance.projectapp_sync(syncProjectAppCommand=syncProjectAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappSync: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let syncProjectAppCommand = ; // SyncProjectAppCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappSync(syncProjectAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
syncProjectAppCommand

Responses


projectappUpdate

Update project app


/api/v1/projectapp/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/update" \
 -d '{
  "projectAppId" : 0,
  "status" : "status"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        UpdateProjectAppCommand updateProjectAppCommand = ; // UpdateProjectAppCommand | 

        try {
            Object result = apiInstance.projectappUpdate(updateProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateProjectAppCommand updateProjectAppCommand = new UpdateProjectAppCommand(); // UpdateProjectAppCommand | 

try {
    final result = await api_instance.projectappUpdate(updateProjectAppCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappUpdate: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        UpdateProjectAppCommand updateProjectAppCommand = ; // UpdateProjectAppCommand | 

        try {
            Object result = apiInstance.projectappUpdate(updateProjectAppCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
UpdateProjectAppCommand *updateProjectAppCommand = ; //  (optional)

// Update project app
[apiInstance projectappUpdateWith:updateProjectAppCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'updateProjectAppCommand':  // {UpdateProjectAppCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var updateProjectAppCommand = new UpdateProjectAppCommand(); // UpdateProjectAppCommand |  (optional) 

            try {
                // Update project app
                Object result = apiInstance.projectappUpdate(updateProjectAppCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$updateProjectAppCommand = ; // UpdateProjectAppCommand | 

try {
    $result = $api_instance->projectappUpdate($updateProjectAppCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $updateProjectAppCommand = WWW::OPenAPIClient::Object::UpdateProjectAppCommand->new(); # UpdateProjectAppCommand | 

eval {
    my $result = $api_instance->projectappUpdate(updateProjectAppCommand => $updateProjectAppCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
updateProjectAppCommand =  # UpdateProjectAppCommand |  (optional)

try:
    # Update project app
    api_response = api_instance.projectapp_update(updateProjectAppCommand=updateProjectAppCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappUpdate: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let updateProjectAppCommand = ; // UpdateProjectAppCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappUpdate(updateProjectAppCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateProjectAppCommand

Responses


projectappUpdateExtraValues

Update extra values


/api/v1/projectapp/update-extra-values

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectapp/update-extra-values" \
 -d '{
  "extraValues" : "extraValues",
  "projectAppId" : 0,
  "timeout" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectAppsApi;

import java.io.File;
import java.util.*;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        EditProjectAppExtraValuesCommand editProjectAppExtraValuesCommand = ; // EditProjectAppExtraValuesCommand | 

        try {
            ApplicationSyncResponse result = apiInstance.projectappUpdateExtraValues(editProjectAppExtraValuesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappUpdateExtraValues");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditProjectAppExtraValuesCommand editProjectAppExtraValuesCommand = new EditProjectAppExtraValuesCommand(); // EditProjectAppExtraValuesCommand | 

try {
    final result = await api_instance.projectappUpdateExtraValues(editProjectAppExtraValuesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectappUpdateExtraValues: $e\n');
}

import org.openapitools.client.api.ProjectAppsApi;

public class ProjectAppsApiExample {
    public static void main(String[] args) {
        ProjectAppsApi apiInstance = new ProjectAppsApi();
        EditProjectAppExtraValuesCommand editProjectAppExtraValuesCommand = ; // EditProjectAppExtraValuesCommand | 

        try {
            ApplicationSyncResponse result = apiInstance.projectappUpdateExtraValues(editProjectAppExtraValuesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectAppsApi#projectappUpdateExtraValues");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectAppsApi *apiInstance = [[ProjectAppsApi alloc] init];
EditProjectAppExtraValuesCommand *editProjectAppExtraValuesCommand = ; //  (optional)

// Update extra values
[apiInstance projectappUpdateExtraValuesWith:editProjectAppExtraValuesCommand
              completionHandler: ^(ApplicationSyncResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectAppsApi()
var opts = {
  'editProjectAppExtraValuesCommand':  // {EditProjectAppExtraValuesCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectappUpdateExtraValues(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectappUpdateExtraValuesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectAppsApi();
            var editProjectAppExtraValuesCommand = new EditProjectAppExtraValuesCommand(); // EditProjectAppExtraValuesCommand |  (optional) 

            try {
                // Update extra values
                ApplicationSyncResponse result = apiInstance.projectappUpdateExtraValues(editProjectAppExtraValuesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectAppsApi.projectappUpdateExtraValues: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectAppsApi();
$editProjectAppExtraValuesCommand = ; // EditProjectAppExtraValuesCommand | 

try {
    $result = $api_instance->projectappUpdateExtraValues($editProjectAppExtraValuesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectAppsApi->projectappUpdateExtraValues: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectAppsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectAppsApi->new();
my $editProjectAppExtraValuesCommand = WWW::OPenAPIClient::Object::EditProjectAppExtraValuesCommand->new(); # EditProjectAppExtraValuesCommand | 

eval {
    my $result = $api_instance->projectappUpdateExtraValues(editProjectAppExtraValuesCommand => $editProjectAppExtraValuesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectAppsApi->projectappUpdateExtraValues: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectAppsApi()
editProjectAppExtraValuesCommand =  # EditProjectAppExtraValuesCommand |  (optional)

try:
    # Update extra values
    api_response = api_instance.projectapp_update_extra_values(editProjectAppExtraValuesCommand=editProjectAppExtraValuesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectAppsApi->projectappUpdateExtraValues: %s\n" % e)
extern crate ProjectAppsApi;

pub fn main() {
    let editProjectAppExtraValuesCommand = ; // EditProjectAppExtraValuesCommand

    let mut context = ProjectAppsApi::Context::default();
    let result = client.projectappUpdateExtraValues(editProjectAppExtraValuesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editProjectAppExtraValuesCommand

Responses


ProjectDeployment

projectDeploymentApplyComponents

Apply Kubernetes profile components


/api/v1/project-deployment/apply-components

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/apply-components" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentApplyComponentsCommand deploymentApplyComponentsCommand = ; // DeploymentApplyComponentsCommand | 

        try {
            Object result = apiInstance.projectDeploymentApplyComponents(deploymentApplyComponentsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentApplyComponents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentApplyComponentsCommand deploymentApplyComponentsCommand = new DeploymentApplyComponentsCommand(); // DeploymentApplyComponentsCommand | 

try {
    final result = await api_instance.projectDeploymentApplyComponents(deploymentApplyComponentsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentApplyComponents: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentApplyComponentsCommand deploymentApplyComponentsCommand = ; // DeploymentApplyComponentsCommand | 

        try {
            Object result = apiInstance.projectDeploymentApplyComponents(deploymentApplyComponentsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentApplyComponents");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentApplyComponentsCommand *deploymentApplyComponentsCommand = ; //  (optional)

// Apply Kubernetes profile components
[apiInstance projectDeploymentApplyComponentsWith:deploymentApplyComponentsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentApplyComponentsCommand':  // {DeploymentApplyComponentsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentApplyComponents(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentApplyComponentsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentApplyComponentsCommand = new DeploymentApplyComponentsCommand(); // DeploymentApplyComponentsCommand |  (optional) 

            try {
                // Apply Kubernetes profile components
                Object result = apiInstance.projectDeploymentApplyComponents(deploymentApplyComponentsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentApplyComponents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentApplyComponentsCommand = ; // DeploymentApplyComponentsCommand | 

try {
    $result = $api_instance->projectDeploymentApplyComponents($deploymentApplyComponentsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentApplyComponents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentApplyComponentsCommand = WWW::OPenAPIClient::Object::DeploymentApplyComponentsCommand->new(); # DeploymentApplyComponentsCommand | 

eval {
    my $result = $api_instance->projectDeploymentApplyComponents(deploymentApplyComponentsCommand => $deploymentApplyComponentsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentApplyComponents: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentApplyComponentsCommand =  # DeploymentApplyComponentsCommand |  (optional)

try:
    # Apply Kubernetes profile components
    api_response = api_instance.project_deployment_apply_components(deploymentApplyComponentsCommand=deploymentApplyComponentsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentApplyComponents: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentApplyComponentsCommand = ; // DeploymentApplyComponentsCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentApplyComponents(deploymentApplyComponentsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentApplyComponentsCommand

Responses


projectDeploymentCommit

Commit


/api/v1/project-deployment/commit

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/commit" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentCommitCommand projectDeploymentCommitCommand = ; // ProjectDeploymentCommitCommand | 

        try {
            Object result = apiInstance.projectDeploymentCommit(projectDeploymentCommitCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCommit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectDeploymentCommitCommand projectDeploymentCommitCommand = new ProjectDeploymentCommitCommand(); // ProjectDeploymentCommitCommand | 

try {
    final result = await api_instance.projectDeploymentCommit(projectDeploymentCommitCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentCommit: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentCommitCommand projectDeploymentCommitCommand = ; // ProjectDeploymentCommitCommand | 

        try {
            Object result = apiInstance.projectDeploymentCommit(projectDeploymentCommitCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCommit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
ProjectDeploymentCommitCommand *projectDeploymentCommitCommand = ; //  (optional)

// Commit
[apiInstance projectDeploymentCommitWith:projectDeploymentCommitCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'projectDeploymentCommitCommand':  // {ProjectDeploymentCommitCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentCommit(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentCommitExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectDeploymentCommitCommand = new ProjectDeploymentCommitCommand(); // ProjectDeploymentCommitCommand |  (optional) 

            try {
                // Commit
                Object result = apiInstance.projectDeploymentCommit(projectDeploymentCommitCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentCommit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectDeploymentCommitCommand = ; // ProjectDeploymentCommitCommand | 

try {
    $result = $api_instance->projectDeploymentCommit($projectDeploymentCommitCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentCommit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectDeploymentCommitCommand = WWW::OPenAPIClient::Object::ProjectDeploymentCommitCommand->new(); # ProjectDeploymentCommitCommand | 

eval {
    my $result = $api_instance->projectDeploymentCommit(projectDeploymentCommitCommand => $projectDeploymentCommitCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentCommit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectDeploymentCommitCommand =  # ProjectDeploymentCommitCommand |  (optional)

try:
    # Commit
    api_response = api_instance.project_deployment_commit(projectDeploymentCommitCommand=projectDeploymentCommitCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentCommit: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectDeploymentCommitCommand = ; // ProjectDeploymentCommitCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentCommit(projectDeploymentCommitCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectDeploymentCommitCommand

Responses


projectDeploymentCommitVm

Commit


/api/v1/project-deployment/commit-vm

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/commit-vm" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentCommitVmCommand deploymentCommitVmCommand = ; // DeploymentCommitVmCommand | 

        try {
            Object result = apiInstance.projectDeploymentCommitVm(deploymentCommitVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCommitVm");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentCommitVmCommand deploymentCommitVmCommand = new DeploymentCommitVmCommand(); // DeploymentCommitVmCommand | 

try {
    final result = await api_instance.projectDeploymentCommitVm(deploymentCommitVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentCommitVm: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentCommitVmCommand deploymentCommitVmCommand = ; // DeploymentCommitVmCommand | 

        try {
            Object result = apiInstance.projectDeploymentCommitVm(deploymentCommitVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCommitVm");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentCommitVmCommand *deploymentCommitVmCommand = ; //  (optional)

// Commit
[apiInstance projectDeploymentCommitVmWith:deploymentCommitVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentCommitVmCommand':  // {DeploymentCommitVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentCommitVm(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentCommitVmExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentCommitVmCommand = new DeploymentCommitVmCommand(); // DeploymentCommitVmCommand |  (optional) 

            try {
                // Commit
                Object result = apiInstance.projectDeploymentCommitVm(deploymentCommitVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentCommitVm: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentCommitVmCommand = ; // DeploymentCommitVmCommand | 

try {
    $result = $api_instance->projectDeploymentCommitVm($deploymentCommitVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentCommitVm: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentCommitVmCommand = WWW::OPenAPIClient::Object::DeploymentCommitVmCommand->new(); # DeploymentCommitVmCommand | 

eval {
    my $result = $api_instance->projectDeploymentCommitVm(deploymentCommitVmCommand => $deploymentCommitVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentCommitVm: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentCommitVmCommand =  # DeploymentCommitVmCommand |  (optional)

try:
    # Commit
    api_response = api_instance.project_deployment_commit_vm(deploymentCommitVmCommand=deploymentCommitVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentCommitVm: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentCommitVmCommand = ; // DeploymentCommitVmCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentCommitVm(deploymentCommitVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentCommitVmCommand

Responses


projectDeploymentCompleted

Update project fields


/api/v1/project-deployment/completed

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/completed" \
 -d '{
  "result" : "result",
  "fromCronJob" : false,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentCompletedCommand deploymentCompletedCommand = ; // DeploymentCompletedCommand | 

        try {
            Object result = apiInstance.projectDeploymentCompleted(deploymentCompletedCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCompleted");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentCompletedCommand deploymentCompletedCommand = new DeploymentCompletedCommand(); // DeploymentCompletedCommand | 

try {
    final result = await api_instance.projectDeploymentCompleted(deploymentCompletedCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentCompleted: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentCompletedCommand deploymentCompletedCommand = ; // DeploymentCompletedCommand | 

        try {
            Object result = apiInstance.projectDeploymentCompleted(deploymentCompletedCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentCompleted");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentCompletedCommand *deploymentCompletedCommand = ; //  (optional)

// Update project fields
[apiInstance projectDeploymentCompletedWith:deploymentCompletedCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentCompletedCommand':  // {DeploymentCompletedCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentCompleted(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentCompletedExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentCompletedCommand = new DeploymentCompletedCommand(); // DeploymentCompletedCommand |  (optional) 

            try {
                // Update project fields
                Object result = apiInstance.projectDeploymentCompleted(deploymentCompletedCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentCompleted: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentCompletedCommand = ; // DeploymentCompletedCommand | 

try {
    $result = $api_instance->projectDeploymentCompleted($deploymentCompletedCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentCompleted: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentCompletedCommand = WWW::OPenAPIClient::Object::DeploymentCompletedCommand->new(); # DeploymentCompletedCommand | 

eval {
    my $result = $api_instance->projectDeploymentCompleted(deploymentCompletedCommand => $deploymentCompletedCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentCompleted: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentCompletedCommand =  # DeploymentCompletedCommand |  (optional)

try:
    # Update project fields
    api_response = api_instance.project_deployment_completed(deploymentCompletedCommand=deploymentCompletedCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentCompleted: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentCompletedCommand = ; // DeploymentCompletedCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentCompleted(deploymentCompletedCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentCompletedCommand

Responses


projectDeploymentDelete

Delete


/api/v1/project-deployment/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/delete" \
 -d '{
  "forceDeleteVClusters" : true,
  "deleteAutoscalingServers" : true,
  "projectId" : 0,
  "serverIds" : [ 6, 6 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentDeleteServersCommand projectDeploymentDeleteServersCommand = ; // ProjectDeploymentDeleteServersCommand | 

        try {
            Object result = apiInstance.projectDeploymentDelete(projectDeploymentDeleteServersCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectDeploymentDeleteServersCommand projectDeploymentDeleteServersCommand = new ProjectDeploymentDeleteServersCommand(); // ProjectDeploymentDeleteServersCommand | 

try {
    final result = await api_instance.projectDeploymentDelete(projectDeploymentDeleteServersCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentDelete: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentDeleteServersCommand projectDeploymentDeleteServersCommand = ; // ProjectDeploymentDeleteServersCommand | 

        try {
            Object result = apiInstance.projectDeploymentDelete(projectDeploymentDeleteServersCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
ProjectDeploymentDeleteServersCommand *projectDeploymentDeleteServersCommand = ; //  (optional)

// Delete
[apiInstance projectDeploymentDeleteWith:projectDeploymentDeleteServersCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'projectDeploymentDeleteServersCommand':  // {ProjectDeploymentDeleteServersCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectDeploymentDeleteServersCommand = new ProjectDeploymentDeleteServersCommand(); // ProjectDeploymentDeleteServersCommand |  (optional) 

            try {
                // Delete
                Object result = apiInstance.projectDeploymentDelete(projectDeploymentDeleteServersCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectDeploymentDeleteServersCommand = ; // ProjectDeploymentDeleteServersCommand | 

try {
    $result = $api_instance->projectDeploymentDelete($projectDeploymentDeleteServersCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectDeploymentDeleteServersCommand = WWW::OPenAPIClient::Object::ProjectDeploymentDeleteServersCommand->new(); # ProjectDeploymentDeleteServersCommand | 

eval {
    my $result = $api_instance->projectDeploymentDelete(projectDeploymentDeleteServersCommand => $projectDeploymentDeleteServersCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectDeploymentDeleteServersCommand =  # ProjectDeploymentDeleteServersCommand |  (optional)

try:
    # Delete
    api_response = api_instance.project_deployment_delete(projectDeploymentDeleteServersCommand=projectDeploymentDeleteServersCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentDelete: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectDeploymentDeleteServersCommand = ; // ProjectDeploymentDeleteServersCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentDelete(projectDeploymentDeleteServersCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectDeploymentDeleteServersCommand

Responses


projectDeploymentDeleteVmDisks

Delete vm disks


/api/v1/project-deployment/delete-vm-disks

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/delete-vm-disks" \
 -d '{
  "vmDiskIds" : [ 6, 6 ],
  "standaloneVmId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeleteVmDiskCommand deleteVmDiskCommand = ; // DeleteVmDiskCommand | 

        try {
            Object result = apiInstance.projectDeploymentDeleteVmDisks(deleteVmDiskCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDeleteVmDisks");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteVmDiskCommand deleteVmDiskCommand = new DeleteVmDiskCommand(); // DeleteVmDiskCommand | 

try {
    final result = await api_instance.projectDeploymentDeleteVmDisks(deleteVmDiskCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentDeleteVmDisks: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeleteVmDiskCommand deleteVmDiskCommand = ; // DeleteVmDiskCommand | 

        try {
            Object result = apiInstance.projectDeploymentDeleteVmDisks(deleteVmDiskCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDeleteVmDisks");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeleteVmDiskCommand *deleteVmDiskCommand = ; //  (optional)

// Delete vm disks
[apiInstance projectDeploymentDeleteVmDisksWith:deleteVmDiskCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deleteVmDiskCommand':  // {DeleteVmDiskCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentDeleteVmDisks(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentDeleteVmDisksExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deleteVmDiskCommand = new DeleteVmDiskCommand(); // DeleteVmDiskCommand |  (optional) 

            try {
                // Delete vm disks
                Object result = apiInstance.projectDeploymentDeleteVmDisks(deleteVmDiskCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentDeleteVmDisks: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deleteVmDiskCommand = ; // DeleteVmDiskCommand | 

try {
    $result = $api_instance->projectDeploymentDeleteVmDisks($deleteVmDiskCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVmDisks: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deleteVmDiskCommand = WWW::OPenAPIClient::Object::DeleteVmDiskCommand->new(); # DeleteVmDiskCommand | 

eval {
    my $result = $api_instance->projectDeploymentDeleteVmDisks(deleteVmDiskCommand => $deleteVmDiskCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVmDisks: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deleteVmDiskCommand =  # DeleteVmDiskCommand |  (optional)

try:
    # Delete vm disks
    api_response = api_instance.project_deployment_delete_vm_disks(deleteVmDiskCommand=deleteVmDiskCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVmDisks: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deleteVmDiskCommand = ; // DeleteVmDiskCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentDeleteVmDisks(deleteVmDiskCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteVmDiskCommand

Responses


projectDeploymentDeleteVms

Delete vms


/api/v1/project-deployment/delete-vms

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/delete-vms" \
 -d '{
  "vmIds" : [ 6, 6 ],
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentDeleteVmsCommand projectDeploymentDeleteVmsCommand = ; // ProjectDeploymentDeleteVmsCommand | 

        try {
            Object result = apiInstance.projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDeleteVms");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectDeploymentDeleteVmsCommand projectDeploymentDeleteVmsCommand = new ProjectDeploymentDeleteVmsCommand(); // ProjectDeploymentDeleteVmsCommand | 

try {
    final result = await api_instance.projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentDeleteVms: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentDeleteVmsCommand projectDeploymentDeleteVmsCommand = ; // ProjectDeploymentDeleteVmsCommand | 

        try {
            Object result = apiInstance.projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDeleteVms");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
ProjectDeploymentDeleteVmsCommand *projectDeploymentDeleteVmsCommand = ; //  (optional)

// Delete vms
[apiInstance projectDeploymentDeleteVmsWith:projectDeploymentDeleteVmsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'projectDeploymentDeleteVmsCommand':  // {ProjectDeploymentDeleteVmsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentDeleteVms(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentDeleteVmsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectDeploymentDeleteVmsCommand = new ProjectDeploymentDeleteVmsCommand(); // ProjectDeploymentDeleteVmsCommand |  (optional) 

            try {
                // Delete vms
                Object result = apiInstance.projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentDeleteVms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectDeploymentDeleteVmsCommand = ; // ProjectDeploymentDeleteVmsCommand | 

try {
    $result = $api_instance->projectDeploymentDeleteVms($projectDeploymentDeleteVmsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectDeploymentDeleteVmsCommand = WWW::OPenAPIClient::Object::ProjectDeploymentDeleteVmsCommand->new(); # ProjectDeploymentDeleteVmsCommand | 

eval {
    my $result = $api_instance->projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand => $projectDeploymentDeleteVmsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVms: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectDeploymentDeleteVmsCommand =  # ProjectDeploymentDeleteVmsCommand |  (optional)

try:
    # Delete vms
    api_response = api_instance.project_deployment_delete_vms(projectDeploymentDeleteVmsCommand=projectDeploymentDeleteVmsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentDeleteVms: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectDeploymentDeleteVmsCommand = ; // ProjectDeploymentDeleteVmsCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentDeleteVms(projectDeploymentDeleteVmsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectDeploymentDeleteVmsCommand

Responses


projectDeploymentDisableBackup

Disable backup


/api/v1/project-deployment/disable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/disable-backup" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentDisableBackupCommand deploymentDisableBackupCommand = ; // DeploymentDisableBackupCommand | 

        try {
            Object result = apiInstance.projectDeploymentDisableBackup(deploymentDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDisableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentDisableBackupCommand deploymentDisableBackupCommand = new DeploymentDisableBackupCommand(); // DeploymentDisableBackupCommand | 

try {
    final result = await api_instance.projectDeploymentDisableBackup(deploymentDisableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentDisableBackup: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentDisableBackupCommand deploymentDisableBackupCommand = ; // DeploymentDisableBackupCommand | 

        try {
            Object result = apiInstance.projectDeploymentDisableBackup(deploymentDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDisableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentDisableBackupCommand *deploymentDisableBackupCommand = ; //  (optional)

// Disable backup
[apiInstance projectDeploymentDisableBackupWith:deploymentDisableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentDisableBackupCommand':  // {DeploymentDisableBackupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentDisableBackup(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentDisableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentDisableBackupCommand = new DeploymentDisableBackupCommand(); // DeploymentDisableBackupCommand |  (optional) 

            try {
                // Disable backup
                Object result = apiInstance.projectDeploymentDisableBackup(deploymentDisableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentDisableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentDisableBackupCommand = ; // DeploymentDisableBackupCommand | 

try {
    $result = $api_instance->projectDeploymentDisableBackup($deploymentDisableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentDisableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentDisableBackupCommand = WWW::OPenAPIClient::Object::DeploymentDisableBackupCommand->new(); # DeploymentDisableBackupCommand | 

eval {
    my $result = $api_instance->projectDeploymentDisableBackup(deploymentDisableBackupCommand => $deploymentDisableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentDisableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentDisableBackupCommand =  # DeploymentDisableBackupCommand |  (optional)

try:
    # Disable backup
    api_response = api_instance.project_deployment_disable_backup(deploymentDisableBackupCommand=deploymentDisableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentDisableBackup: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentDisableBackupCommand = ; // DeploymentDisableBackupCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentDisableBackup(deploymentDisableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentDisableBackupCommand

Responses


projectDeploymentDisableMonitoring

Disable monitoring


/api/v1/project-deployment/disable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/disable-monitoring" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentDisableMonitoringCommand deploymentDisableMonitoringCommand = ; // DeploymentDisableMonitoringCommand | 

        try {
            Object result = apiInstance.projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDisableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentDisableMonitoringCommand deploymentDisableMonitoringCommand = new DeploymentDisableMonitoringCommand(); // DeploymentDisableMonitoringCommand | 

try {
    final result = await api_instance.projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentDisableMonitoring: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentDisableMonitoringCommand deploymentDisableMonitoringCommand = ; // DeploymentDisableMonitoringCommand | 

        try {
            Object result = apiInstance.projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentDisableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentDisableMonitoringCommand *deploymentDisableMonitoringCommand = ; //  (optional)

// Disable monitoring
[apiInstance projectDeploymentDisableMonitoringWith:deploymentDisableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentDisableMonitoringCommand':  // {DeploymentDisableMonitoringCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentDisableMonitoring(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentDisableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentDisableMonitoringCommand = new DeploymentDisableMonitoringCommand(); // DeploymentDisableMonitoringCommand |  (optional) 

            try {
                // Disable monitoring
                Object result = apiInstance.projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentDisableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentDisableMonitoringCommand = ; // DeploymentDisableMonitoringCommand | 

try {
    $result = $api_instance->projectDeploymentDisableMonitoring($deploymentDisableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentDisableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentDisableMonitoringCommand = WWW::OPenAPIClient::Object::DeploymentDisableMonitoringCommand->new(); # DeploymentDisableMonitoringCommand | 

eval {
    my $result = $api_instance->projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand => $deploymentDisableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentDisableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentDisableMonitoringCommand =  # DeploymentDisableMonitoringCommand |  (optional)

try:
    # Disable monitoring
    api_response = api_instance.project_deployment_disable_monitoring(deploymentDisableMonitoringCommand=deploymentDisableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentDisableMonitoring: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentDisableMonitoringCommand = ; // DeploymentDisableMonitoringCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentDisableMonitoring(deploymentDisableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentDisableMonitoringCommand

Responses


projectDeploymentEnableBackup

Enable backup


/api/v1/project-deployment/enable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/enable-backup" \
 -d '{
  "s3CredentialId" : 6,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentEnableBackupCommand deploymentEnableBackupCommand = ; // DeploymentEnableBackupCommand | 

        try {
            Object result = apiInstance.projectDeploymentEnableBackup(deploymentEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentEnableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentEnableBackupCommand deploymentEnableBackupCommand = new DeploymentEnableBackupCommand(); // DeploymentEnableBackupCommand | 

try {
    final result = await api_instance.projectDeploymentEnableBackup(deploymentEnableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentEnableBackup: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentEnableBackupCommand deploymentEnableBackupCommand = ; // DeploymentEnableBackupCommand | 

        try {
            Object result = apiInstance.projectDeploymentEnableBackup(deploymentEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentEnableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentEnableBackupCommand *deploymentEnableBackupCommand = ; //  (optional)

// Enable backup
[apiInstance projectDeploymentEnableBackupWith:deploymentEnableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentEnableBackupCommand':  // {DeploymentEnableBackupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentEnableBackup(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentEnableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentEnableBackupCommand = new DeploymentEnableBackupCommand(); // DeploymentEnableBackupCommand |  (optional) 

            try {
                // Enable backup
                Object result = apiInstance.projectDeploymentEnableBackup(deploymentEnableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentEnableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentEnableBackupCommand = ; // DeploymentEnableBackupCommand | 

try {
    $result = $api_instance->projectDeploymentEnableBackup($deploymentEnableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentEnableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentEnableBackupCommand = WWW::OPenAPIClient::Object::DeploymentEnableBackupCommand->new(); # DeploymentEnableBackupCommand | 

eval {
    my $result = $api_instance->projectDeploymentEnableBackup(deploymentEnableBackupCommand => $deploymentEnableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentEnableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentEnableBackupCommand =  # DeploymentEnableBackupCommand |  (optional)

try:
    # Enable backup
    api_response = api_instance.project_deployment_enable_backup(deploymentEnableBackupCommand=deploymentEnableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentEnableBackup: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentEnableBackupCommand = ; // DeploymentEnableBackupCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentEnableBackup(deploymentEnableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentEnableBackupCommand

Responses


projectDeploymentEnableMonitoring

Enable monitoring


/api/v1/project-deployment/enable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/enable-monitoring" \
 -d '{
  "lokiRetentionPeriod" : 1,
  "lokiPersistenceSize" : 6,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentEnableMonitoringCommand deploymentEnableMonitoringCommand = ; // DeploymentEnableMonitoringCommand | 

        try {
            Object result = apiInstance.projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentEnableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeploymentEnableMonitoringCommand deploymentEnableMonitoringCommand = new DeploymentEnableMonitoringCommand(); // DeploymentEnableMonitoringCommand | 

try {
    final result = await api_instance.projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentEnableMonitoring: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        DeploymentEnableMonitoringCommand deploymentEnableMonitoringCommand = ; // DeploymentEnableMonitoringCommand | 

        try {
            Object result = apiInstance.projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentEnableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
DeploymentEnableMonitoringCommand *deploymentEnableMonitoringCommand = ; //  (optional)

// Enable monitoring
[apiInstance projectDeploymentEnableMonitoringWith:deploymentEnableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'deploymentEnableMonitoringCommand':  // {DeploymentEnableMonitoringCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentEnableMonitoring(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentEnableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var deploymentEnableMonitoringCommand = new DeploymentEnableMonitoringCommand(); // DeploymentEnableMonitoringCommand |  (optional) 

            try {
                // Enable monitoring
                Object result = apiInstance.projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentEnableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$deploymentEnableMonitoringCommand = ; // DeploymentEnableMonitoringCommand | 

try {
    $result = $api_instance->projectDeploymentEnableMonitoring($deploymentEnableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentEnableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $deploymentEnableMonitoringCommand = WWW::OPenAPIClient::Object::DeploymentEnableMonitoringCommand->new(); # DeploymentEnableMonitoringCommand | 

eval {
    my $result = $api_instance->projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand => $deploymentEnableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentEnableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
deploymentEnableMonitoringCommand =  # DeploymentEnableMonitoringCommand |  (optional)

try:
    # Enable monitoring
    api_response = api_instance.project_deployment_enable_monitoring(deploymentEnableMonitoringCommand=deploymentEnableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentEnableMonitoring: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let deploymentEnableMonitoringCommand = ; // DeploymentEnableMonitoringCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentEnableMonitoring(deploymentEnableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deploymentEnableMonitoringCommand

Responses


projectDeploymentImportCluster

Import cluster


/api/v1/project-deployment/import-cluster

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/project-deployment/import-cluster"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        String name = name_example; // String | Cluster/project name, 3-30 chars, lowercase specific-name pattern
        File config = ; // File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
        Boolean isTaikunIngressController = true; // Boolean | Use the CCF-managed ingress controller
        Boolean isExistingIngressController = true; // Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required)
        String ingressClass = ingressClass_example; // String | Ingress class, required when using an existing ingress controller
        String ingressHost = ingressHost_example; // String | Ingress host, required (and host-pattern validated) when using an existing ingress controller
        String continent = continent_example; // String | Optional continent hint for placement
        EImportClusterType importType = ; // EImportClusterType | Import source type
        Integer organizationId = 56; // Integer | Optional organization id
        Integer cloudId = 56; // Integer | Optional cloud credential id (when importing a managed cloud cluster)
        String importClusterName = importClusterName_example; // String | Optional source cluster name in the cloud provider
        String resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)
        String region = region_example; // String | Optional region

        try {
            Object result = apiInstance.projectDeploymentImportCluster(name, config, isTaikunIngressController, isExistingIngressController, ingressClass, ingressHost, continent, importType, organizationId, cloudId, importClusterName, resourceGroupName, region);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentImportCluster");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String name = new String(); // String | Cluster/project name, 3-30 chars, lowercase specific-name pattern
final File config = new File(); // File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
final Boolean isTaikunIngressController = new Boolean(); // Boolean | Use the CCF-managed ingress controller
final Boolean isExistingIngressController = new Boolean(); // Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required)
final String ingressClass = new String(); // String | Ingress class, required when using an existing ingress controller
final String ingressHost = new String(); // String | Ingress host, required (and host-pattern validated) when using an existing ingress controller
final String continent = new String(); // String | Optional continent hint for placement
final EImportClusterType importType = new EImportClusterType(); // EImportClusterType | Import source type
final Integer organizationId = new Integer(); // Integer | Optional organization id
final Integer cloudId = new Integer(); // Integer | Optional cloud credential id (when importing a managed cloud cluster)
final String importClusterName = new String(); // String | Optional source cluster name in the cloud provider
final String resourceGroupName = new String(); // String | Optional resource group name (Azure)
final String region = new String(); // String | Optional region

try {
    final result = await api_instance.projectDeploymentImportCluster(name, config, isTaikunIngressController, isExistingIngressController, ingressClass, ingressHost, continent, importType, organizationId, cloudId, importClusterName, resourceGroupName, region);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentImportCluster: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        String name = name_example; // String | Cluster/project name, 3-30 chars, lowercase specific-name pattern
        File config = ; // File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
        Boolean isTaikunIngressController = true; // Boolean | Use the CCF-managed ingress controller
        Boolean isExistingIngressController = true; // Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required)
        String ingressClass = ingressClass_example; // String | Ingress class, required when using an existing ingress controller
        String ingressHost = ingressHost_example; // String | Ingress host, required (and host-pattern validated) when using an existing ingress controller
        String continent = continent_example; // String | Optional continent hint for placement
        EImportClusterType importType = ; // EImportClusterType | Import source type
        Integer organizationId = 56; // Integer | Optional organization id
        Integer cloudId = 56; // Integer | Optional cloud credential id (when importing a managed cloud cluster)
        String importClusterName = importClusterName_example; // String | Optional source cluster name in the cloud provider
        String resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)
        String region = region_example; // String | Optional region

        try {
            Object result = apiInstance.projectDeploymentImportCluster(name, config, isTaikunIngressController, isExistingIngressController, ingressClass, ingressHost, continent, importType, organizationId, cloudId, importClusterName, resourceGroupName, region);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentImportCluster");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
String *name = name_example; // Cluster/project name, 3-30 chars, lowercase specific-name pattern (default to null)
File *config = ; // Kubeconfig YAML file, max 10 MiB, required when cloudId is not set (optional) (default to null)
Boolean *isTaikunIngressController = true; // Use the CCF-managed ingress controller (optional) (default to null)
Boolean *isExistingIngressController = true; // Use an existing ingress controller (then ingressClass/ingressHost are required) (optional) (default to null)
String *ingressClass = ingressClass_example; // Ingress class, required when using an existing ingress controller (optional) (default to null)
String *ingressHost = ingressHost_example; // Ingress host, required (and host-pattern validated) when using an existing ingress controller (optional) (default to null)
String *continent = continent_example; // Optional continent hint for placement (optional) (default to null)
EImportClusterType *importType = ; // Import source type (optional) (default to null)
Integer *organizationId = 56; // Optional organization id (optional) (default to null)
Integer *cloudId = 56; // Optional cloud credential id (when importing a managed cloud cluster) (optional) (default to null)
String *importClusterName = importClusterName_example; // Optional source cluster name in the cloud provider (optional) (default to null)
String *resourceGroupName = resourceGroupName_example; // Optional resource group name (Azure) (optional) (default to null)
String *region = region_example; // Optional region (optional) (default to null)

// Import cluster
[apiInstance projectDeploymentImportClusterWith:name
    config:config
    isTaikunIngressController:isTaikunIngressController
    isExistingIngressController:isExistingIngressController
    ingressClass:ingressClass
    ingressHost:ingressHost
    continent:continent
    importType:importType
    organizationId:organizationId
    cloudId:cloudId
    importClusterName:importClusterName
    resourceGroupName:resourceGroupName
    region:region
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var name = name_example; // {String} Cluster/project name, 3-30 chars, lowercase specific-name pattern
var opts = {
  'config': , // {File} Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
  'isTaikunIngressController': true, // {Boolean} Use the CCF-managed ingress controller
  'isExistingIngressController': true, // {Boolean} Use an existing ingress controller (then ingressClass/ingressHost are required)
  'ingressClass': ingressClass_example, // {String} Ingress class, required when using an existing ingress controller
  'ingressHost': ingressHost_example, // {String} Ingress host, required (and host-pattern validated) when using an existing ingress controller
  'continent': continent_example, // {String} Optional continent hint for placement
  'importType': , // {EImportClusterType} Import source type
  'organizationId': 56, // {Integer} Optional organization id
  'cloudId': 56, // {Integer} Optional cloud credential id (when importing a managed cloud cluster)
  'importClusterName': importClusterName_example, // {String} Optional source cluster name in the cloud provider
  'resourceGroupName': resourceGroupName_example, // {String} Optional resource group name (Azure)
  'region': region_example // {String} Optional region
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentImportCluster(name, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentImportClusterExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var name = name_example;  // String | Cluster/project name, 3-30 chars, lowercase specific-name pattern (default to null)
            var config = new File(); // File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set (optional)  (default to null)
            var isTaikunIngressController = true;  // Boolean | Use the CCF-managed ingress controller (optional)  (default to null)
            var isExistingIngressController = true;  // Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required) (optional)  (default to null)
            var ingressClass = ingressClass_example;  // String | Ingress class, required when using an existing ingress controller (optional)  (default to null)
            var ingressHost = ingressHost_example;  // String | Ingress host, required (and host-pattern validated) when using an existing ingress controller (optional)  (default to null)
            var continent = continent_example;  // String | Optional continent hint for placement (optional)  (default to null)
            var importType = new EImportClusterType(); // EImportClusterType | Import source type (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id (optional)  (default to null)
            var cloudId = 56;  // Integer | Optional cloud credential id (when importing a managed cloud cluster) (optional)  (default to null)
            var importClusterName = importClusterName_example;  // String | Optional source cluster name in the cloud provider (optional)  (default to null)
            var resourceGroupName = resourceGroupName_example;  // String | Optional resource group name (Azure) (optional)  (default to null)
            var region = region_example;  // String | Optional region (optional)  (default to null)

            try {
                // Import cluster
                Object result = apiInstance.projectDeploymentImportCluster(name, config, isTaikunIngressController, isExistingIngressController, ingressClass, ingressHost, continent, importType, organizationId, cloudId, importClusterName, resourceGroupName, region);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentImportCluster: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$name = name_example; // String | Cluster/project name, 3-30 chars, lowercase specific-name pattern
$config = ; // File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
$isTaikunIngressController = true; // Boolean | Use the CCF-managed ingress controller
$isExistingIngressController = true; // Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required)
$ingressClass = ingressClass_example; // String | Ingress class, required when using an existing ingress controller
$ingressHost = ingressHost_example; // String | Ingress host, required (and host-pattern validated) when using an existing ingress controller
$continent = continent_example; // String | Optional continent hint for placement
$importType = ; // EImportClusterType | Import source type
$organizationId = 56; // Integer | Optional organization id
$cloudId = 56; // Integer | Optional cloud credential id (when importing a managed cloud cluster)
$importClusterName = importClusterName_example; // String | Optional source cluster name in the cloud provider
$resourceGroupName = resourceGroupName_example; // String | Optional resource group name (Azure)
$region = region_example; // String | Optional region

try {
    $result = $api_instance->projectDeploymentImportCluster($name, $config, $isTaikunIngressController, $isExistingIngressController, $ingressClass, $ingressHost, $continent, $importType, $organizationId, $cloudId, $importClusterName, $resourceGroupName, $region);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentImportCluster: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $name = name_example; # String | Cluster/project name, 3-30 chars, lowercase specific-name pattern
my $config = ; # File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
my $isTaikunIngressController = true; # Boolean | Use the CCF-managed ingress controller
my $isExistingIngressController = true; # Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required)
my $ingressClass = ingressClass_example; # String | Ingress class, required when using an existing ingress controller
my $ingressHost = ingressHost_example; # String | Ingress host, required (and host-pattern validated) when using an existing ingress controller
my $continent = continent_example; # String | Optional continent hint for placement
my $importType = ; # EImportClusterType | Import source type
my $organizationId = 56; # Integer | Optional organization id
my $cloudId = 56; # Integer | Optional cloud credential id (when importing a managed cloud cluster)
my $importClusterName = importClusterName_example; # String | Optional source cluster name in the cloud provider
my $resourceGroupName = resourceGroupName_example; # String | Optional resource group name (Azure)
my $region = region_example; # String | Optional region

eval {
    my $result = $api_instance->projectDeploymentImportCluster(name => $name, config => $config, isTaikunIngressController => $isTaikunIngressController, isExistingIngressController => $isExistingIngressController, ingressClass => $ingressClass, ingressHost => $ingressHost, continent => $continent, importType => $importType, organizationId => $organizationId, cloudId => $cloudId, importClusterName => $importClusterName, resourceGroupName => $resourceGroupName, region => $region);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentImportCluster: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
name = name_example # String | Cluster/project name, 3-30 chars, lowercase specific-name pattern (default to null)
config =  # File | Kubeconfig YAML file, max 10 MiB, required when cloudId is not set (optional) (default to null)
isTaikunIngressController = true # Boolean | Use the CCF-managed ingress controller (optional) (default to null)
isExistingIngressController = true # Boolean | Use an existing ingress controller (then ingressClass/ingressHost are required) (optional) (default to null)
ingressClass = ingressClass_example # String | Ingress class, required when using an existing ingress controller (optional) (default to null)
ingressHost = ingressHost_example # String | Ingress host, required (and host-pattern validated) when using an existing ingress controller (optional) (default to null)
continent = continent_example # String | Optional continent hint for placement (optional) (default to null)
importType =  # EImportClusterType | Import source type (optional) (default to null)
organizationId = 56 # Integer | Optional organization id (optional) (default to null)
cloudId = 56 # Integer | Optional cloud credential id (when importing a managed cloud cluster) (optional) (default to null)
importClusterName = importClusterName_example # String | Optional source cluster name in the cloud provider (optional) (default to null)
resourceGroupName = resourceGroupName_example # String | Optional resource group name (Azure) (optional) (default to null)
region = region_example # String | Optional region (optional) (default to null)

try:
    # Import cluster
    api_response = api_instance.project_deployment_import_cluster(name, config=config, isTaikunIngressController=isTaikunIngressController, isExistingIngressController=isExistingIngressController, ingressClass=ingressClass, ingressHost=ingressHost, continent=continent, importType=importType, organizationId=organizationId, cloudId=cloudId, importClusterName=importClusterName, resourceGroupName=resourceGroupName, region=region)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentImportCluster: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let name = name_example; // String
    let config = ; // File
    let isTaikunIngressController = true; // Boolean
    let isExistingIngressController = true; // Boolean
    let ingressClass = ingressClass_example; // String
    let ingressHost = ingressHost_example; // String
    let continent = continent_example; // String
    let importType = ; // EImportClusterType
    let organizationId = 56; // Integer
    let cloudId = 56; // Integer
    let importClusterName = importClusterName_example; // String
    let resourceGroupName = resourceGroupName_example; // String
    let region = region_example; // String

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentImportCluster(name, config, isTaikunIngressController, isExistingIngressController, ingressClass, ingressHost, continent, importType, organizationId, cloudId, importClusterName, resourceGroupName, region, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
name*
String
Cluster/project name, 3-30 chars, lowercase specific-name pattern
Required
config
File (binary)
Kubeconfig YAML file, max 10 MiB, required when cloudId is not set
isTaikunIngressController
Boolean
Use the CCF-managed ingress controller
isExistingIngressController
Boolean
Use an existing ingress controller (then ingressClass/ingressHost are required)
ingressClass
String
Ingress class, required when using an existing ingress controller
ingressHost
String
Ingress host, required (and host-pattern validated) when using an existing ingress controller
continent
String
Optional continent hint for placement
importType
EImportClusterType
Import source type
organizationId
Integer (int32)
Optional organization id
cloudId
Integer (int32)
Optional cloud credential id (when importing a managed cloud cluster)
importClusterName
String
Optional source cluster name in the cloud provider
resourceGroupName
String
Optional resource group name (Azure)
region
String
Optional region

Responses


projectDeploymentRepair

Repair


/api/v1/project-deployment/repair

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/repair" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentRepairCommand projectDeploymentRepairCommand = ; // ProjectDeploymentRepairCommand | 

        try {
            Object result = apiInstance.projectDeploymentRepair(projectDeploymentRepairCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentRepair");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectDeploymentRepairCommand projectDeploymentRepairCommand = new ProjectDeploymentRepairCommand(); // ProjectDeploymentRepairCommand | 

try {
    final result = await api_instance.projectDeploymentRepair(projectDeploymentRepairCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentRepair: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentRepairCommand projectDeploymentRepairCommand = ; // ProjectDeploymentRepairCommand | 

        try {
            Object result = apiInstance.projectDeploymentRepair(projectDeploymentRepairCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentRepair");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
ProjectDeploymentRepairCommand *projectDeploymentRepairCommand = ; //  (optional)

// Repair
[apiInstance projectDeploymentRepairWith:projectDeploymentRepairCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'projectDeploymentRepairCommand':  // {ProjectDeploymentRepairCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentRepair(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentRepairExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectDeploymentRepairCommand = new ProjectDeploymentRepairCommand(); // ProjectDeploymentRepairCommand |  (optional) 

            try {
                // Repair
                Object result = apiInstance.projectDeploymentRepair(projectDeploymentRepairCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentRepair: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectDeploymentRepairCommand = ; // ProjectDeploymentRepairCommand | 

try {
    $result = $api_instance->projectDeploymentRepair($projectDeploymentRepairCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentRepair: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectDeploymentRepairCommand = WWW::OPenAPIClient::Object::ProjectDeploymentRepairCommand->new(); # ProjectDeploymentRepairCommand | 

eval {
    my $result = $api_instance->projectDeploymentRepair(projectDeploymentRepairCommand => $projectDeploymentRepairCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentRepair: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectDeploymentRepairCommand =  # ProjectDeploymentRepairCommand |  (optional)

try:
    # Repair
    api_response = api_instance.project_deployment_repair(projectDeploymentRepairCommand=projectDeploymentRepairCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentRepair: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectDeploymentRepairCommand = ; // ProjectDeploymentRepairCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentRepair(projectDeploymentRepairCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectDeploymentRepairCommand

Responses


projectDeploymentRepairVm

Repair Vm


/api/v1/project-deployment/repair-vm

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/repair-vm" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentRepairVmCommand projectDeploymentRepairVmCommand = ; // ProjectDeploymentRepairVmCommand | 

        try {
            Object result = apiInstance.projectDeploymentRepairVm(projectDeploymentRepairVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentRepairVm");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectDeploymentRepairVmCommand projectDeploymentRepairVmCommand = new ProjectDeploymentRepairVmCommand(); // ProjectDeploymentRepairVmCommand | 

try {
    final result = await api_instance.projectDeploymentRepairVm(projectDeploymentRepairVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentRepairVm: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        ProjectDeploymentRepairVmCommand projectDeploymentRepairVmCommand = ; // ProjectDeploymentRepairVmCommand | 

        try {
            Object result = apiInstance.projectDeploymentRepairVm(projectDeploymentRepairVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentRepairVm");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
ProjectDeploymentRepairVmCommand *projectDeploymentRepairVmCommand = ; //  (optional)

// Repair Vm
[apiInstance projectDeploymentRepairVmWith:projectDeploymentRepairVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'projectDeploymentRepairVmCommand':  // {ProjectDeploymentRepairVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentRepairVm(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentRepairVmExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectDeploymentRepairVmCommand = new ProjectDeploymentRepairVmCommand(); // ProjectDeploymentRepairVmCommand |  (optional) 

            try {
                // Repair Vm
                Object result = apiInstance.projectDeploymentRepairVm(projectDeploymentRepairVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentRepairVm: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectDeploymentRepairVmCommand = ; // ProjectDeploymentRepairVmCommand | 

try {
    $result = $api_instance->projectDeploymentRepairVm($projectDeploymentRepairVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentRepairVm: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectDeploymentRepairVmCommand = WWW::OPenAPIClient::Object::ProjectDeploymentRepairVmCommand->new(); # ProjectDeploymentRepairVmCommand | 

eval {
    my $result = $api_instance->projectDeploymentRepairVm(projectDeploymentRepairVmCommand => $projectDeploymentRepairVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentRepairVm: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectDeploymentRepairVmCommand =  # ProjectDeploymentRepairVmCommand |  (optional)

try:
    # Repair Vm
    api_response = api_instance.project_deployment_repair_vm(projectDeploymentRepairVmCommand=projectDeploymentRepairVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentRepairVm: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectDeploymentRepairVmCommand = ; // ProjectDeploymentRepairVmCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentRepairVm(projectDeploymentRepairVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectDeploymentRepairVmCommand

Responses


projectDeploymentUpdate

Update stage of project


/api/v1/project-deployment/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/project-deployment/update" \
 -d '{
  "stage" : "stage",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        UpdateStageCommand updateStageCommand = ; // UpdateStageCommand | 

        try {
            Object result = apiInstance.projectDeploymentUpdate(updateStageCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateStageCommand updateStageCommand = new UpdateStageCommand(); // UpdateStageCommand | 

try {
    final result = await api_instance.projectDeploymentUpdate(updateStageCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentUpdate: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        UpdateStageCommand updateStageCommand = ; // UpdateStageCommand | 

        try {
            Object result = apiInstance.projectDeploymentUpdate(updateStageCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
UpdateStageCommand *updateStageCommand = ; //  (optional)

// Update stage of project
[apiInstance projectDeploymentUpdateWith:updateStageCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var opts = {
  'updateStageCommand':  // {UpdateStageCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var updateStageCommand = new UpdateStageCommand(); // UpdateStageCommand |  (optional) 

            try {
                // Update stage of project
                Object result = apiInstance.projectDeploymentUpdate(updateStageCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$updateStageCommand = ; // UpdateStageCommand | 

try {
    $result = $api_instance->projectDeploymentUpdate($updateStageCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $updateStageCommand = WWW::OPenAPIClient::Object::UpdateStageCommand->new(); # UpdateStageCommand | 

eval {
    my $result = $api_instance->projectDeploymentUpdate(updateStageCommand => $updateStageCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
updateStageCommand =  # UpdateStageCommand |  (optional)

try:
    # Update stage of project
    api_response = api_instance.project_deployment_update(updateStageCommand=updateStageCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentUpdate: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let updateStageCommand = ; // UpdateStageCommand

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentUpdate(updateStageCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateStageCommand

Responses


projectDeploymentUpgrade

Upgrade the project's Kubernetes to the next available version. Project must be READY.


/api/v1/project-deployment/upgrade/{projectId}

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/project-deployment/upgrade/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectDeploymentApi;

import java.io.File;
import java.util.*;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        Integer projectId = 56; // Integer | 

        try {
            Object result = apiInstance.projectDeploymentUpgrade(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentUpgrade");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectDeploymentUpgrade(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectDeploymentUpgrade: $e\n');
}

import org.openapitools.client.api.ProjectDeploymentApi;

public class ProjectDeploymentApiExample {
    public static void main(String[] args) {
        ProjectDeploymentApi apiInstance = new ProjectDeploymentApi();
        Integer projectId = 56; // Integer | 

        try {
            Object result = apiInstance.projectDeploymentUpgrade(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectDeploymentApi#projectDeploymentUpgrade");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectDeploymentApi *apiInstance = [[ProjectDeploymentApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Upgrade the project's Kubernetes to the next available version. Project must be READY.
[apiInstance projectDeploymentUpgradeWith:projectId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectDeploymentApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectDeploymentUpgrade(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectDeploymentUpgradeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectDeploymentApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Upgrade the project's Kubernetes to the next available version. Project must be READY.
                Object result = apiInstance.projectDeploymentUpgrade(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectDeploymentApi.projectDeploymentUpgrade: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectDeploymentApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectDeploymentUpgrade($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectDeploymentApi->projectDeploymentUpgrade: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectDeploymentApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectDeploymentApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectDeploymentUpgrade(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectDeploymentApi->projectDeploymentUpgrade: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectDeploymentApi()
projectId = 56 # Integer |  (default to null)

try:
    # Upgrade the project's Kubernetes to the next available version. Project must be READY.
    api_response = api_instance.project_deployment_upgrade(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectDeploymentApi->projectDeploymentUpgrade: %s\n" % e)
extern crate ProjectDeploymentApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectDeploymentApi::Context::default();
    let result = client.projectDeploymentUpgrade(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


ProjectQuotas

projectquotasList

Retrieve all project quotas


/api/v1/projectquotas

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projectquotas?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&StartRam=1.2&EndRam=1.2&StartDiskSize=789&EndDiskSize=789&StartCpu=56&EndCpu=56&OrganizationId=56&Id=56&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectQuotasApi;

import java.io.File;
import java.util.*;

public class ProjectQuotasApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectQuotasApi apiInstance = new ProjectQuotasApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Double startRam = 1.2; // Double | RAM range filter start
        Double endRam = 1.2; // Double | RAM range filter end
        Long startDiskSize = 789; // Long | Disk-size range filter start
        Long endDiskSize = 789; // Long | Disk-size range filter end
        Integer startCpu = 56; // Integer | CPU range filter start
        Integer endCpu = 56; // Integer | CPU range filter end
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer id = 56; // Integer | Optional quota id filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ProjectQuotaList result = apiInstance.projectquotasList(limit, offset, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectQuotasApi#projectquotasList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Double startRam = new Double(); // Double | RAM range filter start
final Double endRam = new Double(); // Double | RAM range filter end
final Long startDiskSize = new Long(); // Long | Disk-size range filter start
final Long endDiskSize = new Long(); // Long | Disk-size range filter end
final Integer startCpu = new Integer(); // Integer | CPU range filter start
final Integer endCpu = new Integer(); // Integer | CPU range filter end
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Integer id = new Integer(); // Integer | Optional quota id filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter

try {
    final result = await api_instance.projectquotasList(limit, offset, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectquotasList: $e\n');
}

import org.openapitools.client.api.ProjectQuotasApi;

public class ProjectQuotasApiExample {
    public static void main(String[] args) {
        ProjectQuotasApi apiInstance = new ProjectQuotasApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Double startRam = 1.2; // Double | RAM range filter start
        Double endRam = 1.2; // Double | RAM range filter end
        Long startDiskSize = 789; // Long | Disk-size range filter start
        Long endDiskSize = 789; // Long | Disk-size range filter end
        Integer startCpu = 56; // Integer | CPU range filter start
        Integer endCpu = 56; // Integer | CPU range filter end
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer id = 56; // Integer | Optional quota id filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ProjectQuotaList result = apiInstance.projectquotasList(limit, offset, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectQuotasApi#projectquotasList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectQuotasApi *apiInstance = [[ProjectQuotasApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Double *startRam = 1.2; // RAM range filter start (optional) (default to null)
Double *endRam = 1.2; // RAM range filter end (optional) (default to null)
Long *startDiskSize = 789; // Disk-size range filter start (optional) (default to null)
Long *endDiskSize = 789; // Disk-size range filter end (optional) (default to null)
Integer *startCpu = 56; // CPU range filter start (optional) (default to null)
Integer *endCpu = 56; // CPU range filter end (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Integer *id = 56; // Optional quota id filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)

// Retrieve all project quotas
[apiInstance projectquotasListWith:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    startRam:startRam
    endRam:endRam
    startDiskSize:startDiskSize
    endDiskSize:endDiskSize
    startCpu:startCpu
    endCpu:endCpu
    organizationId:organizationId
    id:id
    domainId:domainId
              completionHandler: ^(ProjectQuotaList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectQuotasApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'startRam': 1.2, // {Double} RAM range filter start
  'endRam': 1.2, // {Double} RAM range filter end
  'startDiskSize': 789, // {Long} Disk-size range filter start
  'endDiskSize': 789, // {Long} Disk-size range filter end
  'startCpu': 56, // {Integer} CPU range filter start
  'endCpu': 56, // {Integer} CPU range filter end
  'organizationId': 56, // {Integer} Optional organization id filter
  'id': 56, // {Integer} Optional quota id filter
  'domainId': 56 // {Integer} Optional domain id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectquotasList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectquotasListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectQuotasApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var startRam = 1.2;  // Double | RAM range filter start (optional)  (default to null)
            var endRam = 1.2;  // Double | RAM range filter end (optional)  (default to null)
            var startDiskSize = 789;  // Long | Disk-size range filter start (optional)  (default to null)
            var endDiskSize = 789;  // Long | Disk-size range filter end (optional)  (default to null)
            var startCpu = 56;  // Integer | CPU range filter start (optional)  (default to null)
            var endCpu = 56;  // Integer | CPU range filter end (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var id = 56;  // Integer | Optional quota id filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)

            try {
                // Retrieve all project quotas
                ProjectQuotaList result = apiInstance.projectquotasList(limit, offset, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectQuotasApi.projectquotasList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectQuotasApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$startRam = 1.2; // Double | RAM range filter start
$endRam = 1.2; // Double | RAM range filter end
$startDiskSize = 789; // Long | Disk-size range filter start
$endDiskSize = 789; // Long | Disk-size range filter end
$startCpu = 56; // Integer | CPU range filter start
$endCpu = 56; // Integer | CPU range filter end
$organizationId = 56; // Integer | Optional organization id filter
$id = 56; // Integer | Optional quota id filter
$domainId = 56; // Integer | Optional domain id filter

try {
    $result = $api_instance->projectquotasList($limit, $offset, $sortBy, $sortDirection, $search, $startRam, $endRam, $startDiskSize, $endDiskSize, $startCpu, $endCpu, $organizationId, $id, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectQuotasApi->projectquotasList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectQuotasApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectQuotasApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $startRam = 1.2; # Double | RAM range filter start
my $endRam = 1.2; # Double | RAM range filter end
my $startDiskSize = 789; # Long | Disk-size range filter start
my $endDiskSize = 789; # Long | Disk-size range filter end
my $startCpu = 56; # Integer | CPU range filter start
my $endCpu = 56; # Integer | CPU range filter end
my $organizationId = 56; # Integer | Optional organization id filter
my $id = 56; # Integer | Optional quota id filter
my $domainId = 56; # Integer | Optional domain id filter

eval {
    my $result = $api_instance->projectquotasList(limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, startRam => $startRam, endRam => $endRam, startDiskSize => $startDiskSize, endDiskSize => $endDiskSize, startCpu => $startCpu, endCpu => $endCpu, organizationId => $organizationId, id => $id, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectQuotasApi->projectquotasList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectQuotasApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
startRam = 1.2 # Double | RAM range filter start (optional) (default to null)
endRam = 1.2 # Double | RAM range filter end (optional) (default to null)
startDiskSize = 789 # Long | Disk-size range filter start (optional) (default to null)
endDiskSize = 789 # Long | Disk-size range filter end (optional) (default to null)
startCpu = 56 # Integer | CPU range filter start (optional) (default to null)
endCpu = 56 # Integer | CPU range filter end (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
id = 56 # Integer | Optional quota id filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)

try:
    # Retrieve all project quotas
    api_response = api_instance.projectquotas_list(limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, startRam=startRam, endRam=endRam, startDiskSize=startDiskSize, endDiskSize=endDiskSize, startCpu=startCpu, endCpu=endCpu, organizationId=organizationId, id=id, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectQuotasApi->projectquotasList: %s\n" % e)
extern crate ProjectQuotasApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startDiskSize = 789; // Long
    let endDiskSize = 789; // Long
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let organizationId = 56; // Integer
    let id = 56; // Integer
    let domainId = 56; // Integer

    let mut context = ProjectQuotasApi::Context::default();
    let result = client.projectquotasList(limit, offset, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
StartRam
Double (double)
RAM range filter start
EndRam
Double (double)
RAM range filter end
StartDiskSize
Long (int64)
Disk-size range filter start
EndDiskSize
Long (int64)
Disk-size range filter end
StartCpu
Integer (int32)
CPU range filter start
EndCpu
Integer (int32)
CPU range filter end
OrganizationId
Integer (int32)
Optional organization id filter
Id
Integer (int32)
Optional quota id filter
DomainId
Integer (int32)
Optional domain id filter

Responses


projectquotasUpdate

Edit project quota


/api/v1/projectquotas/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projectquotas/update" \
 -d '{
  "serverRam" : 1.4658129805029452,
  "vmCpu" : 5,
  "serverDiskSize" : 5.962133916683182,
  "vmRam" : 2.3021358869347655,
  "quotaId" : 0,
  "vmVolumeSize" : 7.061401241503109,
  "serverCpu" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectQuotasApi;

import java.io.File;
import java.util.*;

public class ProjectQuotasApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectQuotasApi apiInstance = new ProjectQuotasApi();
        UpdateQuotaCommand updateQuotaCommand = ; // UpdateQuotaCommand | 

        try {
            Object result = apiInstance.projectquotasUpdate(updateQuotaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectQuotasApi#projectquotasUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateQuotaCommand updateQuotaCommand = new UpdateQuotaCommand(); // UpdateQuotaCommand | 

try {
    final result = await api_instance.projectquotasUpdate(updateQuotaCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectquotasUpdate: $e\n');
}

import org.openapitools.client.api.ProjectQuotasApi;

public class ProjectQuotasApiExample {
    public static void main(String[] args) {
        ProjectQuotasApi apiInstance = new ProjectQuotasApi();
        UpdateQuotaCommand updateQuotaCommand = ; // UpdateQuotaCommand | 

        try {
            Object result = apiInstance.projectquotasUpdate(updateQuotaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectQuotasApi#projectquotasUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectQuotasApi *apiInstance = [[ProjectQuotasApi alloc] init];
UpdateQuotaCommand *updateQuotaCommand = ; //  (optional)

// Edit project quota
[apiInstance projectquotasUpdateWith:updateQuotaCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectQuotasApi()
var opts = {
  'updateQuotaCommand':  // {UpdateQuotaCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectquotasUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectquotasUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectQuotasApi();
            var updateQuotaCommand = new UpdateQuotaCommand(); // UpdateQuotaCommand |  (optional) 

            try {
                // Edit project quota
                Object result = apiInstance.projectquotasUpdate(updateQuotaCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectQuotasApi.projectquotasUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectQuotasApi();
$updateQuotaCommand = ; // UpdateQuotaCommand | 

try {
    $result = $api_instance->projectquotasUpdate($updateQuotaCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectQuotasApi->projectquotasUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectQuotasApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectQuotasApi->new();
my $updateQuotaCommand = WWW::OPenAPIClient::Object::UpdateQuotaCommand->new(); # UpdateQuotaCommand | 

eval {
    my $result = $api_instance->projectquotasUpdate(updateQuotaCommand => $updateQuotaCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectQuotasApi->projectquotasUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectQuotasApi()
updateQuotaCommand =  # UpdateQuotaCommand |  (optional)

try:
    # Edit project quota
    api_response = api_instance.projectquotas_update(updateQuotaCommand=updateQuotaCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectQuotasApi->projectquotasUpdate: %s\n" % e)
extern crate ProjectQuotasApi;

pub fn main() {
    let updateQuotaCommand = ; // UpdateQuotaCommand

    let mut context = ProjectQuotasApi::Context::default();
    let result = client.projectquotasUpdate(updateQuotaCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateQuotaCommand

Responses


Projects

projectsAiAnalyzer

Analyze cluster by AI model


/api/v1/projects/ai-analyze/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/ai-analyze/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            AiListDto result = apiInstance.projectsAiAnalyzer(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsAiAnalyzer");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsAiAnalyzer(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsAiAnalyzer: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            AiListDto result = apiInstance.projectsAiAnalyzer(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsAiAnalyzer");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Analyze cluster by AI model
[apiInstance projectsAiAnalyzerWith:projectId
              completionHandler: ^(AiListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsAiAnalyzer(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsAiAnalyzerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Analyze cluster by AI model
                AiListDto result = apiInstance.projectsAiAnalyzer(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsAiAnalyzer: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsAiAnalyzer($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsAiAnalyzer: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsAiAnalyzer(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsAiAnalyzer: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Analyze cluster by AI model
    api_response = api_instance.projects_ai_analyzer(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsAiAnalyzer: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsAiAnalyzer(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsAlerts

Project alerts


/api/v1/projects/alerts

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/alerts" \
 -d '{
  "mode" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectAlertsQuery projectAlertsQuery = ; // ProjectAlertsQuery | 

        try {
            array[ProjectDetailsErrorListDto] result = apiInstance.projectsAlerts(projectAlertsQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsAlerts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectAlertsQuery projectAlertsQuery = new ProjectAlertsQuery(); // ProjectAlertsQuery | 

try {
    final result = await api_instance.projectsAlerts(projectAlertsQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsAlerts: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectAlertsQuery projectAlertsQuery = ; // ProjectAlertsQuery | 

        try {
            array[ProjectDetailsErrorListDto] result = apiInstance.projectsAlerts(projectAlertsQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsAlerts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectAlertsQuery *projectAlertsQuery = ; //  (optional)

// Project alerts
[apiInstance projectsAlertsWith:projectAlertsQuery
              completionHandler: ^(array[ProjectDetailsErrorListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectAlertsQuery':  // {ProjectAlertsQuery} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsAlerts(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsAlertsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectAlertsQuery = new ProjectAlertsQuery(); // ProjectAlertsQuery |  (optional) 

            try {
                // Project alerts
                array[ProjectDetailsErrorListDto] result = apiInstance.projectsAlerts(projectAlertsQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsAlerts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectAlertsQuery = ; // ProjectAlertsQuery | 

try {
    $result = $api_instance->projectsAlerts($projectAlertsQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsAlerts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectAlertsQuery = WWW::OPenAPIClient::Object::ProjectAlertsQuery->new(); # ProjectAlertsQuery | 

eval {
    my $result = $api_instance->projectsAlerts(projectAlertsQuery => $projectAlertsQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsAlerts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectAlertsQuery =  # ProjectAlertsQuery |  (optional)

try:
    # Project alerts
    api_response = api_instance.projects_alerts(projectAlertsQuery=projectAlertsQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsAlerts: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectAlertsQuery = ; // ProjectAlertsQuery

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsAlerts(projectAlertsQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectAlertsQuery

Responses


projectsCanAddVcluster

Visibility of adding vcluster

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/projects/can-add-vcluster/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/can-add-vcluster/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ProjectCanAddVClusterDto result = apiInstance.projectsCanAddVcluster(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCanAddVcluster");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.projectsCanAddVcluster(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsCanAddVcluster: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ProjectCanAddVClusterDto result = apiInstance.projectsCanAddVcluster(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCanAddVcluster");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Visibility of adding vcluster
[apiInstance projectsCanAddVclusterWith:projectId
              completionHandler: ^(ProjectCanAddVClusterDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} Project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsCanAddVcluster(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsCanAddVclusterExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Visibility of adding vcluster
                ProjectCanAddVClusterDto result = apiInstance.projectsCanAddVcluster(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsCanAddVcluster: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->projectsCanAddVcluster($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsCanAddVcluster: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->projectsCanAddVcluster(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsCanAddVcluster: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Visibility of adding vcluster
    api_response = api_instance.projects_can_add_vcluster(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsCanAddVcluster: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsCanAddVcluster(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


projectsCatalogs

Catalogs for project


/api/v1/projects/catalogs/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/catalogs/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array[CatalogsForProjectDto] result = apiInstance.projectsCatalogs(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCatalogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.projectsCatalogs(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsCatalogs: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array[CatalogsForProjectDto] result = apiInstance.projectsCatalogs(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCatalogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Catalogs for project
[apiInstance projectsCatalogsWith:projectId
              completionHandler: ^(array[CatalogsForProjectDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} Project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsCatalogs(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsCatalogsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Catalogs for project
                array[CatalogsForProjectDto] result = apiInstance.projectsCatalogs(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsCatalogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->projectsCatalogs($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsCatalogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->projectsCatalogs(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsCatalogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Catalogs for project
    api_response = api_instance.projects_catalogs(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsCatalogs: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsCatalogs(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


projectsClearAirgapOverride

Remove per-project airgap registry override (reverts to global default)


/api/v1/projects/airgap-override/{projectId}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/airgap-override/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            Object result = apiInstance.projectsClearAirgapOverride(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsClearAirgapOverride");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsClearAirgapOverride(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsClearAirgapOverride: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            Object result = apiInstance.projectsClearAirgapOverride(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsClearAirgapOverride");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Remove per-project airgap registry override (reverts to global default)
[apiInstance projectsClearAirgapOverrideWith:projectId
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsClearAirgapOverride(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsClearAirgapOverrideExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Remove per-project airgap registry override (reverts to global default)
                Object result = apiInstance.projectsClearAirgapOverride(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsClearAirgapOverride: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsClearAirgapOverride($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsClearAirgapOverride: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsClearAirgapOverride(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsClearAirgapOverride: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Remove per-project airgap registry override (reverts to global default)
    api_response = api_instance.projects_clear_airgap_override(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsClearAirgapOverride: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsClearAirgapOverride(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsCreate

Create a new project


/api/v1/projects

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects" \
 -d '{
  "flavors" : [ "flavors", "flavors" ],
  "accessProfileId" : 1,
  "maxSize" : 7,
  "autoscalingEnabled" : true,
  "dnsCredentialId" : 9,
  "isDnsEnabled" : true,
  "isCertTrustEnabled" : true,
  "expiredAt" : "2000-01-23T04:56:07.000+00:00",
  "diskSize" : 1.2315135367772556,
  "kubernetesProfileId" : 5,
  "minSize" : 4,
  "cidr" : "cidr",
  "certificateProfileId" : 3,
  "autoscalingSpotEnabled" : true,
  "kubernetesVersion" : "kubernetesVersion",
  "s3CredentialId" : 6,
  "allowSpotVMs" : true,
  "netMask" : 1,
  "isMonitoringEnabled" : true,
  "allowSpotWorkers" : true,
  "maxSpotPrice" : 2.027123023002322,
  "autoscalingFlavor" : "autoscalingFlavor",
  "alertingProfileId" : 7,
  "deleteOnExpiration" : true,
  "lokiRetentionPeriod" : 2,
  "name" : "name",
  "cloudCredentialId" : 0,
  "isBackupEnabled" : true,
  "lokiPersistenceSize" : 5,
  "allowFullSpotKubernetes" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        CreateProjectCommand createProjectCommand = ; // CreateProjectCommand | 

        try {
            ApiResponse result = apiInstance.projectsCreate(createProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateProjectCommand createProjectCommand = new CreateProjectCommand(); // CreateProjectCommand | 

try {
    final result = await api_instance.projectsCreate(createProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsCreate: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        CreateProjectCommand createProjectCommand = ; // CreateProjectCommand | 

        try {
            ApiResponse result = apiInstance.projectsCreate(createProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
CreateProjectCommand *createProjectCommand = ; //  (optional)

// Create a new project
[apiInstance projectsCreateWith:createProjectCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'createProjectCommand':  // {CreateProjectCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var createProjectCommand = new CreateProjectCommand(); // CreateProjectCommand |  (optional) 

            try {
                // Create a new project
                ApiResponse result = apiInstance.projectsCreate(createProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$createProjectCommand = ; // CreateProjectCommand | 

try {
    $result = $api_instance->projectsCreate($createProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $createProjectCommand = WWW::OPenAPIClient::Object::CreateProjectCommand->new(); # CreateProjectCommand | 

eval {
    my $result = $api_instance->projectsCreate(createProjectCommand => $createProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
createProjectCommand =  # CreateProjectCommand |  (optional)

try:
    # Create a new project
    api_response = api_instance.projects_create(createProjectCommand=createProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsCreate: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let createProjectCommand = ; // CreateProjectCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsCreate(createProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createProjectCommand

Responses


projectsDelete

Delete the project. The project must be empty (no server) and in READY state


/api/v1/projects/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/delete" \
 -d '{
  "isForceDelete" : true,
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        DeleteProjectCommand deleteProjectCommand = ; // DeleteProjectCommand | 

        try {
            Object result = apiInstance.projectsDelete(deleteProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteProjectCommand deleteProjectCommand = new DeleteProjectCommand(); // DeleteProjectCommand | 

try {
    final result = await api_instance.projectsDelete(deleteProjectCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsDelete: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        DeleteProjectCommand deleteProjectCommand = ; // DeleteProjectCommand | 

        try {
            Object result = apiInstance.projectsDelete(deleteProjectCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
DeleteProjectCommand *deleteProjectCommand = ; //  (optional)

// Delete the project. The project must be empty (no server) and in READY state
[apiInstance projectsDeleteWith:deleteProjectCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'deleteProjectCommand':  // {DeleteProjectCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var deleteProjectCommand = new DeleteProjectCommand(); // DeleteProjectCommand |  (optional) 

            try {
                // Delete the project. The project must be empty (no server) and in READY state
                Object result = apiInstance.projectsDelete(deleteProjectCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$deleteProjectCommand = ; // DeleteProjectCommand | 

try {
    $result = $api_instance->projectsDelete($deleteProjectCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $deleteProjectCommand = WWW::OPenAPIClient::Object::DeleteProjectCommand->new(); # DeleteProjectCommand | 

eval {
    my $result = $api_instance->projectsDelete(deleteProjectCommand => $deleteProjectCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
deleteProjectCommand =  # DeleteProjectCommand |  (optional)

try:
    # Delete the project. The project must be empty (no server) and in READY state
    api_response = api_instance.projects_delete(deleteProjectCommand=deleteProjectCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsDelete: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let deleteProjectCommand = ; // DeleteProjectCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsDelete(deleteProjectCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteProjectCommand

Responses


projectsDescribe

Describe project by Id


/api/v1/projects/describe/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/describe/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectDescribeDto result = apiInstance.projectsDescribe(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDescribe");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsDescribe(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsDescribe: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectDescribeDto result = apiInstance.projectsDescribe(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDescribe");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Describe project by Id
[apiInstance projectsDescribeWith:projectId
              completionHandler: ^(ProjectDescribeDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsDescribe(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsDescribeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Describe project by Id
                ProjectDescribeDto result = apiInstance.projectsDescribe(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsDescribe: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsDescribe($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsDescribe: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsDescribe(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsDescribe: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Describe project by Id
    api_response = api_instance.projects_describe(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsDescribe: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsDescribe(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsDropdown

Retrieve list of projects for dropdown

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/projects/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/list?OrganizationId=56&Search=search_example&CatalogId=56&Healthy=true&UserId=userId_example&Ready=true&IsBoundToCatalog=true&IsLocked=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        Integer catalogId = 56; // Integer | Optional catalog id filter
        Boolean healthy = true; // Boolean | Optional health filter
        String userId = userId_example; // String | Optional user id filter
        Boolean ready = true; // Boolean | Optional readiness filter
        Boolean isBoundToCatalog = true; // Boolean | Optional filter: bound to a catalog
        Boolean isLocked = true; // Boolean | Optional lock-state filter

        try {
            array[CommonDropdownIsBoundDtoForProject] result = apiInstance.projectsDropdown(organizationId, search, catalogId, healthy, userId, ready, isBoundToCatalog, isLocked);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter
final Integer catalogId = new Integer(); // Integer | Optional catalog id filter
final Boolean healthy = new Boolean(); // Boolean | Optional health filter
final String userId = new String(); // String | Optional user id filter
final Boolean ready = new Boolean(); // Boolean | Optional readiness filter
final Boolean isBoundToCatalog = new Boolean(); // Boolean | Optional filter: bound to a catalog
final Boolean isLocked = new Boolean(); // Boolean | Optional lock-state filter

try {
    final result = await api_instance.projectsDropdown(organizationId, search, catalogId, healthy, userId, ready, isBoundToCatalog, isLocked);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsDropdown: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter
        Integer catalogId = 56; // Integer | Optional catalog id filter
        Boolean healthy = true; // Boolean | Optional health filter
        String userId = userId_example; // String | Optional user id filter
        Boolean ready = true; // Boolean | Optional readiness filter
        Boolean isBoundToCatalog = true; // Boolean | Optional filter: bound to a catalog
        Boolean isLocked = true; // Boolean | Optional lock-state filter

        try {
            array[CommonDropdownIsBoundDtoForProject] result = apiInstance.projectsDropdown(organizationId, search, catalogId, healthy, userId, ready, isBoundToCatalog, isLocked);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Integer *catalogId = 56; // Optional catalog id filter (optional) (default to null)
Boolean *healthy = true; // Optional health filter (optional) (default to null)
String *userId = userId_example; // Optional user id filter (optional) (default to null)
Boolean *ready = true; // Optional readiness filter (optional) (default to null)
Boolean *isBoundToCatalog = true; // Optional filter: bound to a catalog (optional) (default to null)
Boolean *isLocked = true; // Optional lock-state filter (optional) (default to null)

// Retrieve list of projects for dropdown
[apiInstance projectsDropdownWith:organizationId
    search:search
    catalogId:catalogId
    healthy:healthy
    userId:userId
    ready:ready
    isBoundToCatalog:isBoundToCatalog
    isLocked:isLocked
              completionHandler: ^(array[CommonDropdownIsBoundDtoForProject] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example, // {String} Free-text search filter
  'catalogId': 56, // {Integer} Optional catalog id filter
  'healthy': true, // {Boolean} Optional health filter
  'userId': userId_example, // {String} Optional user id filter
  'ready': true, // {Boolean} Optional readiness filter
  'isBoundToCatalog': true, // {Boolean} Optional filter: bound to a catalog
  'isLocked': true // {Boolean} Optional lock-state filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsDropdown(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var catalogId = 56;  // Integer | Optional catalog id filter (optional)  (default to null)
            var healthy = true;  // Boolean | Optional health filter (optional)  (default to null)
            var userId = userId_example;  // String | Optional user id filter (optional)  (default to null)
            var ready = true;  // Boolean | Optional readiness filter (optional)  (default to null)
            var isBoundToCatalog = true;  // Boolean | Optional filter: bound to a catalog (optional)  (default to null)
            var isLocked = true;  // Boolean | Optional lock-state filter (optional)  (default to null)

            try {
                // Retrieve list of projects for dropdown
                array[CommonDropdownIsBoundDtoForProject] result = apiInstance.projectsDropdown(organizationId, search, catalogId, healthy, userId, ready, isBoundToCatalog, isLocked);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter
$catalogId = 56; // Integer | Optional catalog id filter
$healthy = true; // Boolean | Optional health filter
$userId = userId_example; // String | Optional user id filter
$ready = true; // Boolean | Optional readiness filter
$isBoundToCatalog = true; // Boolean | Optional filter: bound to a catalog
$isLocked = true; // Boolean | Optional lock-state filter

try {
    $result = $api_instance->projectsDropdown($organizationId, $search, $catalogId, $healthy, $userId, $ready, $isBoundToCatalog, $isLocked);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter
my $catalogId = 56; # Integer | Optional catalog id filter
my $healthy = true; # Boolean | Optional health filter
my $userId = userId_example; # String | Optional user id filter
my $ready = true; # Boolean | Optional readiness filter
my $isBoundToCatalog = true; # Boolean | Optional filter: bound to a catalog
my $isLocked = true; # Boolean | Optional lock-state filter

eval {
    my $result = $api_instance->projectsDropdown(organizationId => $organizationId, search => $search, catalogId => $catalogId, healthy => $healthy, userId => $userId, ready => $ready, isBoundToCatalog => $isBoundToCatalog, isLocked => $isLocked);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
catalogId = 56 # Integer | Optional catalog id filter (optional) (default to null)
healthy = true # Boolean | Optional health filter (optional) (default to null)
userId = userId_example # String | Optional user id filter (optional) (default to null)
ready = true # Boolean | Optional readiness filter (optional) (default to null)
isBoundToCatalog = true # Boolean | Optional filter: bound to a catalog (optional) (default to null)
isLocked = true # Boolean | Optional lock-state filter (optional) (default to null)

try:
    # Retrieve list of projects for dropdown
    api_response = api_instance.projects_dropdown(organizationId=organizationId, search=search, catalogId=catalogId, healthy=healthy, userId=userId, ready=ready, isBoundToCatalog=isBoundToCatalog, isLocked=isLocked)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsDropdown: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String
    let catalogId = 56; // Integer
    let healthy = true; // Boolean
    let userId = userId_example; // String
    let ready = true; // Boolean
    let isBoundToCatalog = true; // Boolean
    let isLocked = true; // Boolean

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsDropdown(organizationId, search, catalogId, healthy, userId, ready, isBoundToCatalog, isLocked, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
Search
CatalogId
Integer (int32)
Optional catalog id filter
Healthy
Boolean
Optional health filter
UserId
String
Optional user id filter
Ready
Boolean
Optional readiness filter
IsBoundToCatalog
Boolean
Optional filter: bound to a catalog
IsLocked
Boolean
Optional lock-state filter

Responses


projectsEditHealth

Update health status of the project by Id


/api/v1/projects/edit/health

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/edit/health" \
 -d '{
  "health" : "",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        UpdateHealthStatusCommand updateHealthStatusCommand = ; // UpdateHealthStatusCommand | 

        try {
            Object result = apiInstance.projectsEditHealth(updateHealthStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsEditHealth");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateHealthStatusCommand updateHealthStatusCommand = new UpdateHealthStatusCommand(); // UpdateHealthStatusCommand | 

try {
    final result = await api_instance.projectsEditHealth(updateHealthStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsEditHealth: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        UpdateHealthStatusCommand updateHealthStatusCommand = ; // UpdateHealthStatusCommand | 

        try {
            Object result = apiInstance.projectsEditHealth(updateHealthStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsEditHealth");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
UpdateHealthStatusCommand *updateHealthStatusCommand = ; //  (optional)

// Update health status of the project by Id
[apiInstance projectsEditHealthWith:updateHealthStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'updateHealthStatusCommand':  // {UpdateHealthStatusCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsEditHealth(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsEditHealthExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var updateHealthStatusCommand = new UpdateHealthStatusCommand(); // UpdateHealthStatusCommand |  (optional) 

            try {
                // Update health status of the project by Id
                Object result = apiInstance.projectsEditHealth(updateHealthStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsEditHealth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$updateHealthStatusCommand = ; // UpdateHealthStatusCommand | 

try {
    $result = $api_instance->projectsEditHealth($updateHealthStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsEditHealth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $updateHealthStatusCommand = WWW::OPenAPIClient::Object::UpdateHealthStatusCommand->new(); # UpdateHealthStatusCommand | 

eval {
    my $result = $api_instance->projectsEditHealth(updateHealthStatusCommand => $updateHealthStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsEditHealth: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
updateHealthStatusCommand =  # UpdateHealthStatusCommand |  (optional)

try:
    # Update health status of the project by Id
    api_response = api_instance.projects_edit_health(updateHealthStatusCommand=updateHealthStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsEditHealth: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let updateHealthStatusCommand = ; // UpdateHealthStatusCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsEditHealth(updateHealthStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateHealthStatusCommand

Responses


projectsEditStatus

Change the project status for the given project. Only available for admin.


/api/v1/projects/edit/status

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/edit/status" \
 -d '{
  "projectId" : 0,
  "status" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ResetProjectStatusCommand resetProjectStatusCommand = ; // ResetProjectStatusCommand | 

        try {
            Object result = apiInstance.projectsEditStatus(resetProjectStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsEditStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ResetProjectStatusCommand resetProjectStatusCommand = new ResetProjectStatusCommand(); // ResetProjectStatusCommand | 

try {
    final result = await api_instance.projectsEditStatus(resetProjectStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsEditStatus: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ResetProjectStatusCommand resetProjectStatusCommand = ; // ResetProjectStatusCommand | 

        try {
            Object result = apiInstance.projectsEditStatus(resetProjectStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsEditStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ResetProjectStatusCommand *resetProjectStatusCommand = ; //  (optional)

// Change the project status for the given project. Only available for admin.
[apiInstance projectsEditStatusWith:resetProjectStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'resetProjectStatusCommand':  // {ResetProjectStatusCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsEditStatus(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsEditStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var resetProjectStatusCommand = new ResetProjectStatusCommand(); // ResetProjectStatusCommand |  (optional) 

            try {
                // Change the project status for the given project. Only available for admin.
                Object result = apiInstance.projectsEditStatus(resetProjectStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsEditStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$resetProjectStatusCommand = ; // ResetProjectStatusCommand | 

try {
    $result = $api_instance->projectsEditStatus($resetProjectStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsEditStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $resetProjectStatusCommand = WWW::OPenAPIClient::Object::ResetProjectStatusCommand->new(); # ResetProjectStatusCommand | 

eval {
    my $result = $api_instance->projectsEditStatus(resetProjectStatusCommand => $resetProjectStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsEditStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
resetProjectStatusCommand =  # ResetProjectStatusCommand |  (optional)

try:
    # Change the project status for the given project. Only available for admin.
    api_response = api_instance.projects_edit_status(resetProjectStatusCommand=resetProjectStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsEditStatus: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let resetProjectStatusCommand = ; // ResetProjectStatusCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsEditStatus(resetProjectStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
resetProjectStatusCommand

Responses


projectsExportLokiLogs

Export loki logs


/api/v1/projects/loki-logs/export

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/loki-logs/export" \
 -d '{
  "query" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ExportLokiLogsCommand exportLokiLogsCommand = ; // ExportLokiLogsCommand | 

        try {
            CsvExporter result = apiInstance.projectsExportLokiLogs(exportLokiLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsExportLokiLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ExportLokiLogsCommand exportLokiLogsCommand = new ExportLokiLogsCommand(); // ExportLokiLogsCommand | 

try {
    final result = await api_instance.projectsExportLokiLogs(exportLokiLogsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsExportLokiLogs: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ExportLokiLogsCommand exportLokiLogsCommand = ; // ExportLokiLogsCommand | 

        try {
            CsvExporter result = apiInstance.projectsExportLokiLogs(exportLokiLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsExportLokiLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ExportLokiLogsCommand *exportLokiLogsCommand = ; //  (optional)

// Export loki logs
[apiInstance projectsExportLokiLogsWith:exportLokiLogsCommand
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'exportLokiLogsCommand':  // {ExportLokiLogsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsExportLokiLogs(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsExportLokiLogsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var exportLokiLogsCommand = new ExportLokiLogsCommand(); // ExportLokiLogsCommand |  (optional) 

            try {
                // Export loki logs
                CsvExporter result = apiInstance.projectsExportLokiLogs(exportLokiLogsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsExportLokiLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$exportLokiLogsCommand = ; // ExportLokiLogsCommand | 

try {
    $result = $api_instance->projectsExportLokiLogs($exportLokiLogsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsExportLokiLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $exportLokiLogsCommand = WWW::OPenAPIClient::Object::ExportLokiLogsCommand->new(); # ExportLokiLogsCommand | 

eval {
    my $result = $api_instance->projectsExportLokiLogs(exportLokiLogsCommand => $exportLokiLogsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsExportLokiLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
exportLokiLogsCommand =  # ExportLokiLogsCommand |  (optional)

try:
    # Export loki logs
    api_response = api_instance.projects_export_loki_logs(exportLokiLogsCommand=exportLokiLogsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsExportLokiLogs: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let exportLokiLogsCommand = ; // ExportLokiLogsCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsExportLokiLogs(exportLokiLogsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
exportLokiLogsCommand

Responses


projectsExtendLifetime

Extend life time of project


/api/v1/projects/extend/lifetime

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/extend/lifetime" \
 -d '{
  "deleteOnExpiration" : true,
  "expireAt" : "2000-01-23T04:56:07.000+00:00",
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectExtendLifeTimeCommand projectExtendLifeTimeCommand = ; // ProjectExtendLifeTimeCommand | 

        try {
            Object result = apiInstance.projectsExtendLifetime(projectExtendLifeTimeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsExtendLifetime");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectExtendLifeTimeCommand projectExtendLifeTimeCommand = new ProjectExtendLifeTimeCommand(); // ProjectExtendLifeTimeCommand | 

try {
    final result = await api_instance.projectsExtendLifetime(projectExtendLifeTimeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsExtendLifetime: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectExtendLifeTimeCommand projectExtendLifeTimeCommand = ; // ProjectExtendLifeTimeCommand | 

        try {
            Object result = apiInstance.projectsExtendLifetime(projectExtendLifeTimeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsExtendLifetime");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectExtendLifeTimeCommand *projectExtendLifeTimeCommand = ; //  (optional)

// Extend life time of project
[apiInstance projectsExtendLifetimeWith:projectExtendLifeTimeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectExtendLifeTimeCommand':  // {ProjectExtendLifeTimeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsExtendLifetime(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsExtendLifetimeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectExtendLifeTimeCommand = new ProjectExtendLifeTimeCommand(); // ProjectExtendLifeTimeCommand |  (optional) 

            try {
                // Extend life time of project
                Object result = apiInstance.projectsExtendLifetime(projectExtendLifeTimeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsExtendLifetime: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectExtendLifeTimeCommand = ; // ProjectExtendLifeTimeCommand | 

try {
    $result = $api_instance->projectsExtendLifetime($projectExtendLifeTimeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsExtendLifetime: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectExtendLifeTimeCommand = WWW::OPenAPIClient::Object::ProjectExtendLifeTimeCommand->new(); # ProjectExtendLifeTimeCommand | 

eval {
    my $result = $api_instance->projectsExtendLifetime(projectExtendLifeTimeCommand => $projectExtendLifeTimeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsExtendLifetime: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectExtendLifeTimeCommand =  # ProjectExtendLifeTimeCommand |  (optional)

try:
    # Extend life time of project
    api_response = api_instance.projects_extend_lifetime(projectExtendLifeTimeCommand=projectExtendLifeTimeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsExtendLifetime: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectExtendLifeTimeCommand = ; // ProjectExtendLifeTimeCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsExtendLifetime(projectExtendLifeTimeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectExtendLifeTimeCommand

Responses


projectsForBilling

Retrieve a list of projects for billing


/api/v1/projects/forbilling

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/forbilling"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();

        try {
            array[ProjectsForBillingDto] result = apiInstance.projectsForBilling();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsForBilling");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.projectsForBilling();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsForBilling: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();

        try {
            array[ProjectsForBillingDto] result = apiInstance.projectsForBilling();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsForBilling");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];

// Retrieve a list of projects for billing
[apiInstance projectsForBillingWithCompletionHandler: 
              ^(array[ProjectsForBillingDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsForBilling(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsForBillingExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();

            try {
                // Retrieve a list of projects for billing
                array[ProjectsForBillingDto] result = apiInstance.projectsForBilling();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsForBilling: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();

try {
    $result = $api_instance->projectsForBilling();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsForBilling: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();

eval {
    my $result = $api_instance->projectsForBilling();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsForBilling: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()

try:
    # Retrieve a list of projects for billing
    api_response = api_instance.projects_for_billing()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsForBilling: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsForBilling(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


projectsGetAccessibleUsers

Get accessible users for project


/api/v1/projects/get-accessible-users

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/get-accessible-users?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.projectsGetAccessibleUsers(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsGetAccessibleUsers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.projectsGetAccessibleUsers(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsGetAccessibleUsers: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            array[CommonStringBasedDropdownDto] result = apiInstance.projectsGetAccessibleUsers(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsGetAccessibleUsers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Get accessible users for project
[apiInstance projectsGetAccessibleUsersWith:projectId
              completionHandler: ^(array[CommonStringBasedDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} Project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsGetAccessibleUsers(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsGetAccessibleUsersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Get accessible users for project
                array[CommonStringBasedDropdownDto] result = apiInstance.projectsGetAccessibleUsers(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsGetAccessibleUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->projectsGetAccessibleUsers($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsGetAccessibleUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->projectsGetAccessibleUsers(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsGetAccessibleUsers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Get accessible users for project
    api_response = api_instance.projects_get_accessible_users(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsGetAccessibleUsers: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsGetAccessibleUsers(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
ProjectId*
Integer (int32)
Project id, positive integer
Required

Responses


projectsGetAirgapOverride

Get per-project airgap registry override


/api/v1/projects/airgap-override/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/airgap-override/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectAirgapOverrideDto result = apiInstance.projectsGetAirgapOverride(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsGetAirgapOverride");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsGetAirgapOverride(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsGetAirgapOverride: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectAirgapOverrideDto result = apiInstance.projectsGetAirgapOverride(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsGetAirgapOverride");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Get per-project airgap registry override
[apiInstance projectsGetAirgapOverrideWith:projectId
              completionHandler: ^(ProjectAirgapOverrideDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsGetAirgapOverride(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsGetAirgapOverrideExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Get per-project airgap registry override
                ProjectAirgapOverrideDto result = apiInstance.projectsGetAirgapOverride(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsGetAirgapOverride: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsGetAirgapOverride($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsGetAirgapOverride: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsGetAirgapOverride(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsGetAirgapOverride: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Get per-project airgap registry override
    api_response = api_instance.projects_get_airgap_override(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsGetAirgapOverride: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsGetAirgapOverride(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsImportedClusterDetails

Imported cluster details


/api/v1/projects/imported/details/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/imported/details/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ImportedClusterDetailsDto result = apiInstance.projectsImportedClusterDetails(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsImportedClusterDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsImportedClusterDetails(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsImportedClusterDetails: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ImportedClusterDetailsDto result = apiInstance.projectsImportedClusterDetails(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsImportedClusterDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Imported cluster details
[apiInstance projectsImportedClusterDetailsWith:projectId
              completionHandler: ^(ImportedClusterDetailsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsImportedClusterDetails(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsImportedClusterDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Imported cluster details
                ImportedClusterDetailsDto result = apiInstance.projectsImportedClusterDetails(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsImportedClusterDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsImportedClusterDetails($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsImportedClusterDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsImportedClusterDetails(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsImportedClusterDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Imported cluster details
    api_response = api_instance.projects_imported_cluster_details(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsImportedClusterDetails: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsImportedClusterDetails(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsList

Retrieve all projects


/api/v1/projects

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects?Limit=56&Offset=56&OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&UpdatedAt=2013-10-20T19:20:30+01:00&SearchId=searchId_example&Id=56&BackupCredentialId=56&Healthy=true&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer organizationId = 56; // Integer | Optional organization id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Date updatedAt = 2013-10-20T19:20:30+01:00; // Date | Optional updated-at filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional project id filter
        Integer backupCredentialId = 56; // Integer | Optional backup credential id filter
        Boolean healthy = true; // Boolean | Optional health filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ProjectsList result = apiInstance.projectsList(limit, offset, organizationId, sortBy, sortDirection, search, updatedAt, searchId, id, backupCredentialId, healthy, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Date updatedAt = new Date(); // Date | Optional updated-at filter
final String searchId = new String(); // String | Search by id substring
final Integer id = new Integer(); // Integer | Optional project id filter
final Integer backupCredentialId = new Integer(); // Integer | Optional backup credential id filter
final Boolean healthy = new Boolean(); // Boolean | Optional health filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter

try {
    final result = await api_instance.projectsList(limit, offset, organizationId, sortBy, sortDirection, search, updatedAt, searchId, id, backupCredentialId, healthy, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsList: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer organizationId = 56; // Integer | Optional organization id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Date updatedAt = 2013-10-20T19:20:30+01:00; // Date | Optional updated-at filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional project id filter
        Integer backupCredentialId = 56; // Integer | Optional backup credential id filter
        Boolean healthy = true; // Boolean | Optional health filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ProjectsList result = apiInstance.projectsList(limit, offset, organizationId, sortBy, sortDirection, search, updatedAt, searchId, id, backupCredentialId, healthy, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Date *updatedAt = 2013-10-20T19:20:30+01:00; // Optional updated-at filter (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *id = 56; // Optional project id filter (optional) (default to null)
Integer *backupCredentialId = 56; // Optional backup credential id filter (optional) (default to null)
Boolean *healthy = true; // Optional health filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)

// Retrieve all projects
[apiInstance projectsListWith:limit
    offset:offset
    organizationId:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    updatedAt:updatedAt
    searchId:searchId
    id:id
    backupCredentialId:backupCredentialId
    healthy:healthy
    domainId:domainId
              completionHandler: ^(ProjectsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'organizationId': 56, // {Integer} Optional organization id filter
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'updatedAt': 2013-10-20T19:20:30+01:00, // {Date} Optional updated-at filter
  'searchId': searchId_example, // {String} Search by id substring
  'id': 56, // {Integer} Optional project id filter
  'backupCredentialId': 56, // {Integer} Optional backup credential id filter
  'healthy': true, // {Boolean} Optional health filter
  'domainId': 56 // {Integer} Optional domain id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var updatedAt = 2013-10-20T19:20:30+01:00;  // Date | Optional updated-at filter (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var id = 56;  // Integer | Optional project id filter (optional)  (default to null)
            var backupCredentialId = 56;  // Integer | Optional backup credential id filter (optional)  (default to null)
            var healthy = true;  // Boolean | Optional health filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)

            try {
                // Retrieve all projects
                ProjectsList result = apiInstance.projectsList(limit, offset, organizationId, sortBy, sortDirection, search, updatedAt, searchId, id, backupCredentialId, healthy, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$organizationId = 56; // Integer | Optional organization id filter
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$updatedAt = 2013-10-20T19:20:30+01:00; // Date | Optional updated-at filter
$searchId = searchId_example; // String | Search by id substring
$id = 56; // Integer | Optional project id filter
$backupCredentialId = 56; // Integer | Optional backup credential id filter
$healthy = true; // Boolean | Optional health filter
$domainId = 56; // Integer | Optional domain id filter

try {
    $result = $api_instance->projectsList($limit, $offset, $organizationId, $sortBy, $sortDirection, $search, $updatedAt, $searchId, $id, $backupCredentialId, $healthy, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $organizationId = 56; # Integer | Optional organization id filter
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $updatedAt = 2013-10-20T19:20:30+01:00; # Date | Optional updated-at filter
my $searchId = searchId_example; # String | Search by id substring
my $id = 56; # Integer | Optional project id filter
my $backupCredentialId = 56; # Integer | Optional backup credential id filter
my $healthy = true; # Boolean | Optional health filter
my $domainId = 56; # Integer | Optional domain id filter

eval {
    my $result = $api_instance->projectsList(limit => $limit, offset => $offset, organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, updatedAt => $updatedAt, searchId => $searchId, id => $id, backupCredentialId => $backupCredentialId, healthy => $healthy, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
updatedAt = 2013-10-20T19:20:30+01:00 # Date | Optional updated-at filter (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
id = 56 # Integer | Optional project id filter (optional) (default to null)
backupCredentialId = 56 # Integer | Optional backup credential id filter (optional) (default to null)
healthy = true # Boolean | Optional health filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)

try:
    # Retrieve all projects
    api_response = api_instance.projects_list(limit=limit, offset=offset, organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, updatedAt=updatedAt, searchId=searchId, id=id, backupCredentialId=backupCredentialId, healthy=healthy, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsList: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let updatedAt = 2013-10-20T19:20:30+01:00; // Date
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let backupCredentialId = 56; // Integer
    let healthy = true; // Boolean
    let domainId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsList(limit, offset, organizationId, sortBy, sortDirection, search, updatedAt, searchId, id, backupCredentialId, healthy, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
OrganizationId
Integer (int32)
Optional organization id filter
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
UpdatedAt
Date (date-time)
Optional updated-at filter
SearchId
String
Search by id substring
Id
Integer (int32)
Optional project id filter
BackupCredentialId
Integer (int32)
Optional backup credential id filter
Healthy
Boolean
Optional health filter
DomainId
Integer (int32)
Optional domain id filter

Responses


projectsLockManager

Lock/Unlock project


/api/v1/projects/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectLockManagerCommand projectLockManagerCommand = ; // ProjectLockManagerCommand | 

        try {
            Object result = apiInstance.projectsLockManager(projectLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsLockManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectLockManagerCommand projectLockManagerCommand = new ProjectLockManagerCommand(); // ProjectLockManagerCommand | 

try {
    final result = await api_instance.projectsLockManager(projectLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsLockManager: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectLockManagerCommand projectLockManagerCommand = ; // ProjectLockManagerCommand | 

        try {
            Object result = apiInstance.projectsLockManager(projectLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsLockManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectLockManagerCommand *projectLockManagerCommand = ; //  (optional)

// Lock/Unlock project
[apiInstance projectsLockManagerWith:projectLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectLockManagerCommand':  // {ProjectLockManagerCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsLockManager(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsLockManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectLockManagerCommand = new ProjectLockManagerCommand(); // ProjectLockManagerCommand |  (optional) 

            try {
                // Lock/Unlock project
                Object result = apiInstance.projectsLockManager(projectLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsLockManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectLockManagerCommand = ; // ProjectLockManagerCommand | 

try {
    $result = $api_instance->projectsLockManager($projectLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsLockManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectLockManagerCommand = WWW::OPenAPIClient::Object::ProjectLockManagerCommand->new(); # ProjectLockManagerCommand | 

eval {
    my $result = $api_instance->projectsLockManager(projectLockManagerCommand => $projectLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsLockManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectLockManagerCommand =  # ProjectLockManagerCommand |  (optional)

try:
    # Lock/Unlock project
    api_response = api_instance.projects_lock_manager(projectLockManagerCommand=projectLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsLockManager: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectLockManagerCommand = ; // ProjectLockManagerCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsLockManager(projectLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectLockManagerCommand

Responses


projectsLokiLogs

Retrieve loki logs


/api/v1/projects/loki-logs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/loki-logs" \
 -d '{
  "query" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectsLogsCommand projectsLogsCommand = ; // ProjectsLogsCommand | 

        try {
            array[LokiResult] result = apiInstance.projectsLokiLogs(projectsLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsLokiLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectsLogsCommand projectsLogsCommand = new ProjectsLogsCommand(); // ProjectsLogsCommand | 

try {
    final result = await api_instance.projectsLokiLogs(projectsLogsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsLokiLogs: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectsLogsCommand projectsLogsCommand = ; // ProjectsLogsCommand | 

        try {
            array[LokiResult] result = apiInstance.projectsLokiLogs(projectsLogsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsLokiLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectsLogsCommand *projectsLogsCommand = ; //  (optional)

// Retrieve loki logs
[apiInstance projectsLokiLogsWith:projectsLogsCommand
              completionHandler: ^(array[LokiResult] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectsLogsCommand':  // {ProjectsLogsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsLokiLogs(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsLokiLogsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectsLogsCommand = new ProjectsLogsCommand(); // ProjectsLogsCommand |  (optional) 

            try {
                // Retrieve loki logs
                array[LokiResult] result = apiInstance.projectsLokiLogs(projectsLogsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsLokiLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectsLogsCommand = ; // ProjectsLogsCommand | 

try {
    $result = $api_instance->projectsLokiLogs($projectsLogsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsLokiLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectsLogsCommand = WWW::OPenAPIClient::Object::ProjectsLogsCommand->new(); # ProjectsLogsCommand | 

eval {
    my $result = $api_instance->projectsLokiLogs(projectsLogsCommand => $projectsLogsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsLokiLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectsLogsCommand =  # ProjectsLogsCommand |  (optional)

try:
    # Retrieve loki logs
    api_response = api_instance.projects_loki_logs(projectsLogsCommand=projectsLogsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsLokiLogs: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectsLogsCommand = ; // ProjectsLogsCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsLokiLogs(projectsLogsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectsLogsCommand

Responses


projectsMaintenanceManager

Enable/disable project's maintenance mode


/api/v1/projects/maintenance-manager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/maintenance-manager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectMaintenanceModeCommand projectMaintenanceModeCommand = ; // ProjectMaintenanceModeCommand | 

        try {
            Object result = apiInstance.projectsMaintenanceManager(projectMaintenanceModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsMaintenanceManager");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectMaintenanceModeCommand projectMaintenanceModeCommand = new ProjectMaintenanceModeCommand(); // ProjectMaintenanceModeCommand | 

try {
    final result = await api_instance.projectsMaintenanceManager(projectMaintenanceModeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsMaintenanceManager: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectMaintenanceModeCommand projectMaintenanceModeCommand = ; // ProjectMaintenanceModeCommand | 

        try {
            Object result = apiInstance.projectsMaintenanceManager(projectMaintenanceModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsMaintenanceManager");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectMaintenanceModeCommand *projectMaintenanceModeCommand = ; //  (optional)

// Enable/disable project's maintenance mode
[apiInstance projectsMaintenanceManagerWith:projectMaintenanceModeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectMaintenanceModeCommand':  // {ProjectMaintenanceModeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsMaintenanceManager(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsMaintenanceManagerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectMaintenanceModeCommand = new ProjectMaintenanceModeCommand(); // ProjectMaintenanceModeCommand |  (optional) 

            try {
                // Enable/disable project's maintenance mode
                Object result = apiInstance.projectsMaintenanceManager(projectMaintenanceModeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsMaintenanceManager: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectMaintenanceModeCommand = ; // ProjectMaintenanceModeCommand | 

try {
    $result = $api_instance->projectsMaintenanceManager($projectMaintenanceModeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsMaintenanceManager: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectMaintenanceModeCommand = WWW::OPenAPIClient::Object::ProjectMaintenanceModeCommand->new(); # ProjectMaintenanceModeCommand | 

eval {
    my $result = $api_instance->projectsMaintenanceManager(projectMaintenanceModeCommand => $projectMaintenanceModeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsMaintenanceManager: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectMaintenanceModeCommand =  # ProjectMaintenanceModeCommand |  (optional)

try:
    # Enable/disable project's maintenance mode
    api_response = api_instance.projects_maintenance_manager(projectMaintenanceModeCommand=projectMaintenanceModeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsMaintenanceManager: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectMaintenanceModeCommand = ; // ProjectMaintenanceModeCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsMaintenanceManager(projectMaintenanceModeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectMaintenanceModeCommand

Responses


projectsMonitoringAlerts

Monitoring alerts for project


/api/v1/projects/monitoringalerts

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/monitoringalerts" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectsMonitoringAlertsCommand projectsMonitoringAlertsCommand = ; // ProjectsMonitoringAlertsCommand | 

        try {
            ProjectMonitoringAlertsDto result = apiInstance.projectsMonitoringAlerts(projectsMonitoringAlertsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsMonitoringAlerts");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ProjectsMonitoringAlertsCommand projectsMonitoringAlertsCommand = new ProjectsMonitoringAlertsCommand(); // ProjectsMonitoringAlertsCommand | 

try {
    final result = await api_instance.projectsMonitoringAlerts(projectsMonitoringAlertsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsMonitoringAlerts: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        ProjectsMonitoringAlertsCommand projectsMonitoringAlertsCommand = ; // ProjectsMonitoringAlertsCommand | 

        try {
            ProjectMonitoringAlertsDto result = apiInstance.projectsMonitoringAlerts(projectsMonitoringAlertsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsMonitoringAlerts");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
ProjectsMonitoringAlertsCommand *projectsMonitoringAlertsCommand = ; //  (optional)

// Monitoring alerts for project
[apiInstance projectsMonitoringAlertsWith:projectsMonitoringAlertsCommand
              completionHandler: ^(ProjectMonitoringAlertsDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'projectsMonitoringAlertsCommand':  // {ProjectsMonitoringAlertsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsMonitoringAlerts(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsMonitoringAlertsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectsMonitoringAlertsCommand = new ProjectsMonitoringAlertsCommand(); // ProjectsMonitoringAlertsCommand |  (optional) 

            try {
                // Monitoring alerts for project
                ProjectMonitoringAlertsDto result = apiInstance.projectsMonitoringAlerts(projectsMonitoringAlertsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsMonitoringAlerts: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectsMonitoringAlertsCommand = ; // ProjectsMonitoringAlertsCommand | 

try {
    $result = $api_instance->projectsMonitoringAlerts($projectsMonitoringAlertsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsMonitoringAlerts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectsMonitoringAlertsCommand = WWW::OPenAPIClient::Object::ProjectsMonitoringAlertsCommand->new(); # ProjectsMonitoringAlertsCommand | 

eval {
    my $result = $api_instance->projectsMonitoringAlerts(projectsMonitoringAlertsCommand => $projectsMonitoringAlertsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsMonitoringAlerts: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectsMonitoringAlertsCommand =  # ProjectsMonitoringAlertsCommand |  (optional)

try:
    # Monitoring alerts for project
    api_response = api_instance.projects_monitoring_alerts(projectsMonitoringAlertsCommand=projectsMonitoringAlertsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsMonitoringAlerts: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectsMonitoringAlertsCommand = ; // ProjectsMonitoringAlertsCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsMonitoringAlerts(projectsMonitoringAlertsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
projectsMonitoringAlertsCommand

Responses


projectsPipelineFailure

Get the real Tekton pipeline failure reason for a project


/api/v1/projects/pipeline-failure/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/pipeline-failure/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectPipelineFailureDto result = apiInstance.projectsPipelineFailure(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPipelineFailure");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsPipelineFailure(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsPipelineFailure: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectPipelineFailureDto result = apiInstance.projectsPipelineFailure(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPipelineFailure");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Get the real Tekton pipeline failure reason for a project
[apiInstance projectsPipelineFailureWith:projectId
              completionHandler: ^(ProjectPipelineFailureDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsPipelineFailure(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsPipelineFailureExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Get the real Tekton pipeline failure reason for a project
                ProjectPipelineFailureDto result = apiInstance.projectsPipelineFailure(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsPipelineFailure: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsPipelineFailure($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsPipelineFailure: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsPipelineFailure(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsPipelineFailure: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Get the real Tekton pipeline failure reason for a project
    api_response = api_instance.projects_pipeline_failure(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsPipelineFailure: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsPipelineFailure(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsPipelineStages

Get the stage-by-stage progress of a project's latest deployment pipeline


/api/v1/projects/pipeline-stages/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/pipeline-stages/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectPipelineStagesDto result = apiInstance.projectsPipelineStages(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPipelineStages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.projectsPipelineStages(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsPipelineStages: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | 

        try {
            ProjectPipelineStagesDto result = apiInstance.projectsPipelineStages(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPipelineStages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Get the stage-by-stage progress of a project's latest deployment pipeline
[apiInstance projectsPipelineStagesWith:projectId
              completionHandler: ^(ProjectPipelineStagesDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsPipelineStages(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsPipelineStagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Get the stage-by-stage progress of a project's latest deployment pipeline
                ProjectPipelineStagesDto result = apiInstance.projectsPipelineStages(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsPipelineStages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->projectsPipelineStages($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsPipelineStages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->projectsPipelineStages(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsPipelineStages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer |  (default to null)

try:
    # Get the stage-by-stage progress of a project's latest deployment pipeline
    api_response = api_instance.projects_pipeline_stages(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsPipelineStages: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsPipelineStages(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


projectsPrometheusMetrics

Prometheus metrics data project


/api/v1/projects/prometheusmetrics

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/prometheusmetrics" \
 -d '{
  "start" : "2000-01-23T04:56:07.000+00:00",
  "end" : "2000-01-23T04:56:07.000+00:00",
  "step" : "step",
  "time" : "2000-01-23T04:56:07.000+00:00",
  "isGraphEnabled" : true,
  "projectId" : 0,
  "parameters" : "parameters"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        PrometheusMetricsCommand prometheusMetricsCommand = ; // PrometheusMetricsCommand | 

        try {
            PrometheusMetricListDto result = apiInstance.projectsPrometheusMetrics(prometheusMetricsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPrometheusMetrics");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PrometheusMetricsCommand prometheusMetricsCommand = new PrometheusMetricsCommand(); // PrometheusMetricsCommand | 

try {
    final result = await api_instance.projectsPrometheusMetrics(prometheusMetricsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsPrometheusMetrics: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        PrometheusMetricsCommand prometheusMetricsCommand = ; // PrometheusMetricsCommand | 

        try {
            PrometheusMetricListDto result = apiInstance.projectsPrometheusMetrics(prometheusMetricsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPrometheusMetrics");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
PrometheusMetricsCommand *prometheusMetricsCommand = ; //  (optional)

// Prometheus metrics data project
[apiInstance projectsPrometheusMetricsWith:prometheusMetricsCommand
              completionHandler: ^(PrometheusMetricListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'prometheusMetricsCommand':  // {PrometheusMetricsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsPrometheusMetrics(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsPrometheusMetricsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var prometheusMetricsCommand = new PrometheusMetricsCommand(); // PrometheusMetricsCommand |  (optional) 

            try {
                // Prometheus metrics data project
                PrometheusMetricListDto result = apiInstance.projectsPrometheusMetrics(prometheusMetricsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsPrometheusMetrics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$prometheusMetricsCommand = ; // PrometheusMetricsCommand | 

try {
    $result = $api_instance->projectsPrometheusMetrics($prometheusMetricsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsPrometheusMetrics: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $prometheusMetricsCommand = WWW::OPenAPIClient::Object::PrometheusMetricsCommand->new(); # PrometheusMetricsCommand | 

eval {
    my $result = $api_instance->projectsPrometheusMetrics(prometheusMetricsCommand => $prometheusMetricsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsPrometheusMetrics: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
prometheusMetricsCommand =  # PrometheusMetricsCommand |  (optional)

try:
    # Prometheus metrics data project
    api_response = api_instance.projects_prometheus_metrics(prometheusMetricsCommand=prometheusMetricsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsPrometheusMetrics: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let prometheusMetricsCommand = ; // PrometheusMetricsCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsPrometheusMetrics(prometheusMetricsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
prometheusMetricsCommand

Responses


projectsPrometheusMetricsAutocomplete

Prometheus metrics autocomplete values

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/projects/prometheusmetrics/autocomplete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/prometheusmetrics/autocomplete" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        PrometheusMetricsAutocompleteCommand prometheusMetricsAutocompleteCommand = ; // PrometheusMetricsAutocompleteCommand | 

        try {
            array['String'] result = apiInstance.projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPrometheusMetricsAutocomplete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PrometheusMetricsAutocompleteCommand prometheusMetricsAutocompleteCommand = new PrometheusMetricsAutocompleteCommand(); // PrometheusMetricsAutocompleteCommand | 

try {
    final result = await api_instance.projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsPrometheusMetricsAutocomplete: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        PrometheusMetricsAutocompleteCommand prometheusMetricsAutocompleteCommand = ; // PrometheusMetricsAutocompleteCommand | 

        try {
            array['String'] result = apiInstance.projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsPrometheusMetricsAutocomplete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
PrometheusMetricsAutocompleteCommand *prometheusMetricsAutocompleteCommand = ; //  (optional)

// Prometheus metrics autocomplete values
[apiInstance projectsPrometheusMetricsAutocompleteWith:prometheusMetricsAutocompleteCommand
              completionHandler: ^(array['String'] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'prometheusMetricsAutocompleteCommand':  // {PrometheusMetricsAutocompleteCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsPrometheusMetricsAutocomplete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsPrometheusMetricsAutocompleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var prometheusMetricsAutocompleteCommand = new PrometheusMetricsAutocompleteCommand(); // PrometheusMetricsAutocompleteCommand |  (optional) 

            try {
                // Prometheus metrics autocomplete values
                array['String'] result = apiInstance.projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsPrometheusMetricsAutocomplete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$prometheusMetricsAutocompleteCommand = ; // PrometheusMetricsAutocompleteCommand | 

try {
    $result = $api_instance->projectsPrometheusMetricsAutocomplete($prometheusMetricsAutocompleteCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsPrometheusMetricsAutocomplete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $prometheusMetricsAutocompleteCommand = WWW::OPenAPIClient::Object::PrometheusMetricsAutocompleteCommand->new(); # PrometheusMetricsAutocompleteCommand | 

eval {
    my $result = $api_instance->projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand => $prometheusMetricsAutocompleteCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsPrometheusMetricsAutocomplete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
prometheusMetricsAutocompleteCommand =  # PrometheusMetricsAutocompleteCommand |  (optional)

try:
    # Prometheus metrics autocomplete values
    api_response = api_instance.projects_prometheus_metrics_autocomplete(prometheusMetricsAutocompleteCommand=prometheusMetricsAutocompleteCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsPrometheusMetricsAutocomplete: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let prometheusMetricsAutocompleteCommand = ; // PrometheusMetricsAutocompleteCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsPrometheusMetricsAutocomplete(prometheusMetricsAutocompleteCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
prometheusMetricsAutocompleteCommand

Responses


projectsSetAirgapOverride

Set per-project airgap registry override


/api/v1/projects/airgap-override/set

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/airgap-override/set" \
 -d '{
  "ociRegistryHost" : "ociRegistryHost",
  "projectId" : 0,
  "ociPlainHttp" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        SetProjectAirgapOverrideCommand setProjectAirgapOverrideCommand = ; // SetProjectAirgapOverrideCommand | 

        try {
            Object result = apiInstance.projectsSetAirgapOverride(setProjectAirgapOverrideCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsSetAirgapOverride");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SetProjectAirgapOverrideCommand setProjectAirgapOverrideCommand = new SetProjectAirgapOverrideCommand(); // SetProjectAirgapOverrideCommand | 

try {
    final result = await api_instance.projectsSetAirgapOverride(setProjectAirgapOverrideCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsSetAirgapOverride: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        SetProjectAirgapOverrideCommand setProjectAirgapOverrideCommand = ; // SetProjectAirgapOverrideCommand | 

        try {
            Object result = apiInstance.projectsSetAirgapOverride(setProjectAirgapOverrideCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsSetAirgapOverride");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
SetProjectAirgapOverrideCommand *setProjectAirgapOverrideCommand = ; //  (optional)

// Set per-project airgap registry override
[apiInstance projectsSetAirgapOverrideWith:setProjectAirgapOverrideCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'setProjectAirgapOverrideCommand':  // {SetProjectAirgapOverrideCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsSetAirgapOverride(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsSetAirgapOverrideExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var setProjectAirgapOverrideCommand = new SetProjectAirgapOverrideCommand(); // SetProjectAirgapOverrideCommand |  (optional) 

            try {
                // Set per-project airgap registry override
                Object result = apiInstance.projectsSetAirgapOverride(setProjectAirgapOverrideCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsSetAirgapOverride: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$setProjectAirgapOverrideCommand = ; // SetProjectAirgapOverrideCommand | 

try {
    $result = $api_instance->projectsSetAirgapOverride($setProjectAirgapOverrideCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsSetAirgapOverride: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $setProjectAirgapOverrideCommand = WWW::OPenAPIClient::Object::SetProjectAirgapOverrideCommand->new(); # SetProjectAirgapOverrideCommand | 

eval {
    my $result = $api_instance->projectsSetAirgapOverride(setProjectAirgapOverrideCommand => $setProjectAirgapOverrideCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsSetAirgapOverride: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
setProjectAirgapOverrideCommand =  # SetProjectAirgapOverrideCommand |  (optional)

try:
    # Set per-project airgap registry override
    api_response = api_instance.projects_set_airgap_override(setProjectAirgapOverrideCommand=setProjectAirgapOverrideCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsSetAirgapOverride: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let setProjectAirgapOverrideCommand = ; // SetProjectAirgapOverrideCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsSetAirgapOverride(setProjectAirgapOverrideCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
setProjectAirgapOverrideCommand

Responses


projectsToggleFullSpot

Full spot operations enable/disable


/api/v1/projects/toggle-full-spot

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/toggle-full-spot" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        FullSpotOperationCommand fullSpotOperationCommand = ; // FullSpotOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleFullSpot(fullSpotOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleFullSpot");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final FullSpotOperationCommand fullSpotOperationCommand = new FullSpotOperationCommand(); // FullSpotOperationCommand | 

try {
    final result = await api_instance.projectsToggleFullSpot(fullSpotOperationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsToggleFullSpot: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        FullSpotOperationCommand fullSpotOperationCommand = ; // FullSpotOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleFullSpot(fullSpotOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleFullSpot");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
FullSpotOperationCommand *fullSpotOperationCommand = ; //  (optional)

// Full spot operations enable/disable
[apiInstance projectsToggleFullSpotWith:fullSpotOperationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'fullSpotOperationCommand':  // {FullSpotOperationCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsToggleFullSpot(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsToggleFullSpotExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var fullSpotOperationCommand = new FullSpotOperationCommand(); // FullSpotOperationCommand |  (optional) 

            try {
                // Full spot operations enable/disable
                Object result = apiInstance.projectsToggleFullSpot(fullSpotOperationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsToggleFullSpot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$fullSpotOperationCommand = ; // FullSpotOperationCommand | 

try {
    $result = $api_instance->projectsToggleFullSpot($fullSpotOperationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsToggleFullSpot: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $fullSpotOperationCommand = WWW::OPenAPIClient::Object::FullSpotOperationCommand->new(); # FullSpotOperationCommand | 

eval {
    my $result = $api_instance->projectsToggleFullSpot(fullSpotOperationCommand => $fullSpotOperationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsToggleFullSpot: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
fullSpotOperationCommand =  # FullSpotOperationCommand |  (optional)

try:
    # Full spot operations enable/disable
    api_response = api_instance.projects_toggle_full_spot(fullSpotOperationCommand=fullSpotOperationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsToggleFullSpot: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let fullSpotOperationCommand = ; // FullSpotOperationCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsToggleFullSpot(fullSpotOperationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
fullSpotOperationCommand

Responses


projectsToggleSpotVms

Spot vm(s) operations enable/disable


/api/v1/projects/toggle-spot-vms

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/toggle-spot-vms" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        SpotVmOperationCommand spotVmOperationCommand = ; // SpotVmOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleSpotVms(spotVmOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleSpotVms");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpotVmOperationCommand spotVmOperationCommand = new SpotVmOperationCommand(); // SpotVmOperationCommand | 

try {
    final result = await api_instance.projectsToggleSpotVms(spotVmOperationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsToggleSpotVms: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        SpotVmOperationCommand spotVmOperationCommand = ; // SpotVmOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleSpotVms(spotVmOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleSpotVms");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
SpotVmOperationCommand *spotVmOperationCommand = ; //  (optional)

// Spot vm(s) operations enable/disable
[apiInstance projectsToggleSpotVmsWith:spotVmOperationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'spotVmOperationCommand':  // {SpotVmOperationCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsToggleSpotVms(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsToggleSpotVmsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var spotVmOperationCommand = new SpotVmOperationCommand(); // SpotVmOperationCommand |  (optional) 

            try {
                // Spot vm(s) operations enable/disable
                Object result = apiInstance.projectsToggleSpotVms(spotVmOperationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsToggleSpotVms: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$spotVmOperationCommand = ; // SpotVmOperationCommand | 

try {
    $result = $api_instance->projectsToggleSpotVms($spotVmOperationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsToggleSpotVms: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $spotVmOperationCommand = WWW::OPenAPIClient::Object::SpotVmOperationCommand->new(); # SpotVmOperationCommand | 

eval {
    my $result = $api_instance->projectsToggleSpotVms(spotVmOperationCommand => $spotVmOperationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsToggleSpotVms: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
spotVmOperationCommand =  # SpotVmOperationCommand |  (optional)

try:
    # Spot vm(s) operations enable/disable
    api_response = api_instance.projects_toggle_spot_vms(spotVmOperationCommand=spotVmOperationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsToggleSpotVms: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let spotVmOperationCommand = ; // SpotVmOperationCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsToggleSpotVms(spotVmOperationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spotVmOperationCommand

Responses


projectsToggleSpotWorkers

Spot worker(s) operations enable/disable


/api/v1/projects/toggle-spot-workers

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/projects/toggle-spot-workers" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        SpotWorkerOperationCommand spotWorkerOperationCommand = ; // SpotWorkerOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleSpotWorkers(spotWorkerOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleSpotWorkers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SpotWorkerOperationCommand spotWorkerOperationCommand = new SpotWorkerOperationCommand(); // SpotWorkerOperationCommand | 

try {
    final result = await api_instance.projectsToggleSpotWorkers(spotWorkerOperationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsToggleSpotWorkers: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        SpotWorkerOperationCommand spotWorkerOperationCommand = ; // SpotWorkerOperationCommand | 

        try {
            Object result = apiInstance.projectsToggleSpotWorkers(spotWorkerOperationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsToggleSpotWorkers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
SpotWorkerOperationCommand *spotWorkerOperationCommand = ; //  (optional)

// Spot worker(s) operations enable/disable
[apiInstance projectsToggleSpotWorkersWith:spotWorkerOperationCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var opts = {
  'spotWorkerOperationCommand':  // {SpotWorkerOperationCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsToggleSpotWorkers(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsToggleSpotWorkersExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var spotWorkerOperationCommand = new SpotWorkerOperationCommand(); // SpotWorkerOperationCommand |  (optional) 

            try {
                // Spot worker(s) operations enable/disable
                Object result = apiInstance.projectsToggleSpotWorkers(spotWorkerOperationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsToggleSpotWorkers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$spotWorkerOperationCommand = ; // SpotWorkerOperationCommand | 

try {
    $result = $api_instance->projectsToggleSpotWorkers($spotWorkerOperationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsToggleSpotWorkers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $spotWorkerOperationCommand = WWW::OPenAPIClient::Object::SpotWorkerOperationCommand->new(); # SpotWorkerOperationCommand | 

eval {
    my $result = $api_instance->projectsToggleSpotWorkers(spotWorkerOperationCommand => $spotWorkerOperationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsToggleSpotWorkers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
spotWorkerOperationCommand =  # SpotWorkerOperationCommand |  (optional)

try:
    # Spot worker(s) operations enable/disable
    api_response = api_instance.projects_toggle_spot_workers(spotWorkerOperationCommand=spotWorkerOperationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsToggleSpotWorkers: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let spotWorkerOperationCommand = ; // SpotWorkerOperationCommand

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsToggleSpotWorkers(spotWorkerOperationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
spotWorkerOperationCommand

Responses


projectsVisibility

Visibility of project actions

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/projects/visibility/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/projects/visibility/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ProjectsApi;

import java.io.File;
import java.util.*;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ProjectActionVisibilityDto result = apiInstance.projectsVisibility(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsVisibility");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer

try {
    final result = await api_instance.projectsVisibility(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->projectsVisibility: $e\n');
}

import org.openapitools.client.api.ProjectsApi;

public class ProjectsApiExample {
    public static void main(String[] args) {
        ProjectsApi apiInstance = new ProjectsApi();
        Integer projectId = 56; // Integer | Project id, positive integer

        try {
            ProjectActionVisibilityDto result = apiInstance.projectsVisibility(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ProjectsApi#projectsVisibility");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ProjectsApi *apiInstance = [[ProjectsApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)

// Visibility of project actions
[apiInstance projectsVisibilityWith:projectId
              completionHandler: ^(ProjectActionVisibilityDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ProjectsApi()
var projectId = 56; // {Integer} Project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.projectsVisibility(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class projectsVisibilityExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ProjectsApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)

            try {
                // Visibility of project actions
                ProjectActionVisibilityDto result = apiInstance.projectsVisibility(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ProjectsApi.projectsVisibility: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ProjectsApi();
$projectId = 56; // Integer | Project id, positive integer

try {
    $result = $api_instance->projectsVisibility($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ProjectsApi->projectsVisibility: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ProjectsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ProjectsApi->new();
my $projectId = 56; # Integer | Project id, positive integer

eval {
    my $result = $api_instance->projectsVisibility(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ProjectsApi->projectsVisibility: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ProjectsApi()
projectId = 56 # Integer | Project id, positive integer (default to null)

try:
    # Visibility of project actions
    api_response = api_instance.projects_visibility(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ProjectsApi->projectsVisibility: %s\n" % e)
extern crate ProjectsApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = ProjectsApi::Context::default();
    let result = client.projectsVisibility(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required

Responses


PrometheusBillings

prometheusbillingsCreate

Add prometheus billing


/api/v1/prometheusbillings

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusbillings" \
 -d '{
  "organizationId" : 0,
  "price" : 1.4658129805029452,
  "startDate" : "2000-01-23T04:56:07.000+00:00",
  "prometheusRuleId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusBillingsApi;

import java.io.File;
import java.util.*;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        PrometheusBillingCreateCommand prometheusBillingCreateCommand = ; // PrometheusBillingCreateCommand | 

        try {
            Object result = apiInstance.prometheusbillingsCreate(prometheusBillingCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PrometheusBillingCreateCommand prometheusBillingCreateCommand = new PrometheusBillingCreateCommand(); // PrometheusBillingCreateCommand | 

try {
    final result = await api_instance.prometheusbillingsCreate(prometheusBillingCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusbillingsCreate: $e\n');
}

import org.openapitools.client.api.PrometheusBillingsApi;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        PrometheusBillingCreateCommand prometheusBillingCreateCommand = ; // PrometheusBillingCreateCommand | 

        try {
            Object result = apiInstance.prometheusbillingsCreate(prometheusBillingCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusBillingsApi *apiInstance = [[PrometheusBillingsApi alloc] init];
PrometheusBillingCreateCommand *prometheusBillingCreateCommand = ; //  (optional)

// Add prometheus billing
[apiInstance prometheusbillingsCreateWith:prometheusBillingCreateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusBillingsApi()
var opts = {
  'prometheusBillingCreateCommand':  // {PrometheusBillingCreateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusbillingsCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusbillingsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusBillingsApi();
            var prometheusBillingCreateCommand = new PrometheusBillingCreateCommand(); // PrometheusBillingCreateCommand |  (optional) 

            try {
                // Add prometheus billing
                Object result = apiInstance.prometheusbillingsCreate(prometheusBillingCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusBillingsApi.prometheusbillingsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusBillingsApi();
$prometheusBillingCreateCommand = ; // PrometheusBillingCreateCommand | 

try {
    $result = $api_instance->prometheusbillingsCreate($prometheusBillingCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusBillingsApi->prometheusbillingsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusBillingsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusBillingsApi->new();
my $prometheusBillingCreateCommand = WWW::OPenAPIClient::Object::PrometheusBillingCreateCommand->new(); # PrometheusBillingCreateCommand | 

eval {
    my $result = $api_instance->prometheusbillingsCreate(prometheusBillingCreateCommand => $prometheusBillingCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusBillingsApi->prometheusbillingsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusBillingsApi()
prometheusBillingCreateCommand =  # PrometheusBillingCreateCommand |  (optional)

try:
    # Add prometheus billing
    api_response = api_instance.prometheusbillings_create(prometheusBillingCreateCommand=prometheusBillingCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusBillingsApi->prometheusbillingsCreate: %s\n" % e)
extern crate PrometheusBillingsApi;

pub fn main() {
    let prometheusBillingCreateCommand = ; // PrometheusBillingCreateCommand

    let mut context = PrometheusBillingsApi::Context::default();
    let result = client.prometheusbillingsCreate(prometheusBillingCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
prometheusBillingCreateCommand

Responses


prometheusbillingsExportCsv

Export Csv


/api/v1/prometheusbillings/export

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/prometheusbillings/export?OrganizationId=56&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&IsEmailEnabled=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusBillingsApi;

import java.io.File;
import java.util.*;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        Boolean isEmailEnabled = true; // Boolean | When true, email the exported CSV instead of returning it
        Integer organizationId = 56; // Integer | Optional organization id filter
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter

        try {
            CsvExporter result = apiInstance.prometheusbillingsExportCsv(isEmailEnabled, organizationId, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsExportCsv");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean isEmailEnabled = new Boolean(); // Boolean | When true, email the exported CSV instead of returning it
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Date startDate = new Date(); // Date | Optional billing start date filter
final Date endDate = new Date(); // Date | Optional billing end date filter

try {
    final result = await api_instance.prometheusbillingsExportCsv(isEmailEnabled, organizationId, startDate, endDate);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusbillingsExportCsv: $e\n');
}

import org.openapitools.client.api.PrometheusBillingsApi;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        Boolean isEmailEnabled = true; // Boolean | When true, email the exported CSV instead of returning it
        Integer organizationId = 56; // Integer | Optional organization id filter
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter

        try {
            CsvExporter result = apiInstance.prometheusbillingsExportCsv(isEmailEnabled, organizationId, startDate, endDate);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsExportCsv");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusBillingsApi *apiInstance = [[PrometheusBillingsApi alloc] init];
Boolean *isEmailEnabled = true; // When true, email the exported CSV instead of returning it (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // Optional billing start date filter (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // Optional billing end date filter (optional) (default to null)

// Export Csv
[apiInstance prometheusbillingsExportCsvWith:isEmailEnabled
    organizationId:organizationId
    startDate:startDate
    endDate:endDate
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusBillingsApi()
var isEmailEnabled = true; // {Boolean} When true, email the exported CSV instead of returning it
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Optional billing start date filter
  'endDate': 2013-10-20T19:20:30+01:00 // {Date} Optional billing end date filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusbillingsExportCsv(isEmailEnabled, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusbillingsExportCsvExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusBillingsApi();
            var isEmailEnabled = true;  // Boolean | When true, email the exported CSV instead of returning it (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Optional billing start date filter (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | Optional billing end date filter (optional)  (default to null)

            try {
                // Export Csv
                CsvExporter result = apiInstance.prometheusbillingsExportCsv(isEmailEnabled, organizationId, startDate, endDate);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusBillingsApi.prometheusbillingsExportCsv: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusBillingsApi();
$isEmailEnabled = true; // Boolean | When true, email the exported CSV instead of returning it
$organizationId = 56; // Integer | Optional organization id filter
$startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
$endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter

try {
    $result = $api_instance->prometheusbillingsExportCsv($isEmailEnabled, $organizationId, $startDate, $endDate);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusBillingsApi->prometheusbillingsExportCsv: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusBillingsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusBillingsApi->new();
my $isEmailEnabled = true; # Boolean | When true, email the exported CSV instead of returning it
my $organizationId = 56; # Integer | Optional organization id filter
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Optional billing start date filter
my $endDate = 2013-10-20T19:20:30+01:00; # Date | Optional billing end date filter

eval {
    my $result = $api_instance->prometheusbillingsExportCsv(isEmailEnabled => $isEmailEnabled, organizationId => $organizationId, startDate => $startDate, endDate => $endDate);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusBillingsApi->prometheusbillingsExportCsv: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusBillingsApi()
isEmailEnabled = true # Boolean | When true, email the exported CSV instead of returning it (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | Optional billing start date filter (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | Optional billing end date filter (optional) (default to null)

try:
    # Export Csv
    api_response = api_instance.prometheusbillings_export_csv(isEmailEnabled, organizationId=organizationId, startDate=startDate, endDate=endDate)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusBillingsApi->prometheusbillingsExportCsv: %s\n" % e)
extern crate PrometheusBillingsApi;

pub fn main() {
    let isEmailEnabled = true; // Boolean
    let organizationId = 56; // Integer
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date

    let mut context = PrometheusBillingsApi::Context::default();
    let result = client.prometheusbillingsExportCsv(isEmailEnabled, organizationId, startDate, endDate, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
StartDate
Date (date-time)
Optional billing start date filter
EndDate
Date (date-time)
Optional billing end date filter
IsEmailEnabled*
Boolean
When true, email the exported CSV instead of returning it
Required

Responses


prometheusbillingsGroupedList

Retrieve a list of grouped prometheus billing

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/prometheusbillings/grouped

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusbillings/grouped" \
 -d '{
  "organizationId" : 0,
  "periodDuration" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusBillingsApi;

import java.io.File;
import java.util.*;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        GroupedPrometheusBillingListQuery groupedPrometheusBillingListQuery = ; // GroupedPrometheusBillingListQuery | 

        try {
            Object result = apiInstance.prometheusbillingsGroupedList(groupedPrometheusBillingListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsGroupedList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final GroupedPrometheusBillingListQuery groupedPrometheusBillingListQuery = new GroupedPrometheusBillingListQuery(); // GroupedPrometheusBillingListQuery | 

try {
    final result = await api_instance.prometheusbillingsGroupedList(groupedPrometheusBillingListQuery);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusbillingsGroupedList: $e\n');
}

import org.openapitools.client.api.PrometheusBillingsApi;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        GroupedPrometheusBillingListQuery groupedPrometheusBillingListQuery = ; // GroupedPrometheusBillingListQuery | 

        try {
            Object result = apiInstance.prometheusbillingsGroupedList(groupedPrometheusBillingListQuery);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsGroupedList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusBillingsApi *apiInstance = [[PrometheusBillingsApi alloc] init];
GroupedPrometheusBillingListQuery *groupedPrometheusBillingListQuery = ; //  (optional)

// Retrieve a list of grouped prometheus billing
[apiInstance prometheusbillingsGroupedListWith:groupedPrometheusBillingListQuery
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusBillingsApi()
var opts = {
  'groupedPrometheusBillingListQuery':  // {GroupedPrometheusBillingListQuery} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusbillingsGroupedList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusbillingsGroupedListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusBillingsApi();
            var groupedPrometheusBillingListQuery = new GroupedPrometheusBillingListQuery(); // GroupedPrometheusBillingListQuery |  (optional) 

            try {
                // Retrieve a list of grouped prometheus billing
                Object result = apiInstance.prometheusbillingsGroupedList(groupedPrometheusBillingListQuery);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusBillingsApi.prometheusbillingsGroupedList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusBillingsApi();
$groupedPrometheusBillingListQuery = ; // GroupedPrometheusBillingListQuery | 

try {
    $result = $api_instance->prometheusbillingsGroupedList($groupedPrometheusBillingListQuery);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusBillingsApi->prometheusbillingsGroupedList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusBillingsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusBillingsApi->new();
my $groupedPrometheusBillingListQuery = WWW::OPenAPIClient::Object::GroupedPrometheusBillingListQuery->new(); # GroupedPrometheusBillingListQuery | 

eval {
    my $result = $api_instance->prometheusbillingsGroupedList(groupedPrometheusBillingListQuery => $groupedPrometheusBillingListQuery);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusBillingsApi->prometheusbillingsGroupedList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusBillingsApi()
groupedPrometheusBillingListQuery =  # GroupedPrometheusBillingListQuery |  (optional)

try:
    # Retrieve a list of grouped prometheus billing
    api_response = api_instance.prometheusbillings_grouped_list(groupedPrometheusBillingListQuery=groupedPrometheusBillingListQuery)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusBillingsApi->prometheusbillingsGroupedList: %s\n" % e)
extern crate PrometheusBillingsApi;

pub fn main() {
    let groupedPrometheusBillingListQuery = ; // GroupedPrometheusBillingListQuery

    let mut context = PrometheusBillingsApi::Context::default();
    let result = client.prometheusbillingsGroupedList(groupedPrometheusBillingListQuery, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
groupedPrometheusBillingListQuery

Responses


prometheusbillingsList

Retrieve all prometheus billing


/api/v1/prometheusbillings

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/prometheusbillings?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&StartDate=2013-10-20T19:20:30+01:00&EndDate=2013-10-20T19:20:30+01:00&OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusBillingsApi;

import java.io.File;
import java.util.*;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            PrometheusBillingInfo result = apiInstance.prometheusbillingsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final Date startDate = new Date(); // Date | Optional billing start date filter
final Date endDate = new Date(); // Date | Optional billing end date filter
final Integer organizationId = new Integer(); // Integer | Optional organization id filter

try {
    final result = await api_instance.prometheusbillingsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusbillingsList: $e\n');
}

import org.openapitools.client.api.PrometheusBillingsApi;

public class PrometheusBillingsApiExample {
    public static void main(String[] args) {
        PrometheusBillingsApi apiInstance = new PrometheusBillingsApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        Date startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
        Date endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter
        Integer organizationId = 56; // Integer | Optional organization id filter

        try {
            PrometheusBillingInfo result = apiInstance.prometheusbillingsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusBillingsApi#prometheusbillingsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusBillingsApi *apiInstance = [[PrometheusBillingsApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
Date *startDate = 2013-10-20T19:20:30+01:00; // Optional billing start date filter (optional) (default to null)
Date *endDate = 2013-10-20T19:20:30+01:00; // Optional billing end date filter (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)

// Retrieve all prometheus billing
[apiInstance prometheusbillingsListWith:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    startDate:startDate
    endDate:endDate
    organizationId:organizationId
              completionHandler: ^(PrometheusBillingInfo output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusBillingsApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'startDate': 2013-10-20T19:20:30+01:00, // {Date} Optional billing start date filter
  'endDate': 2013-10-20T19:20:30+01:00, // {Date} Optional billing end date filter
  'organizationId': 56 // {Integer} Optional organization id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusbillingsList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusbillingsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusBillingsApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var startDate = 2013-10-20T19:20:30+01:00;  // Date | Optional billing start date filter (optional)  (default to null)
            var endDate = 2013-10-20T19:20:30+01:00;  // Date | Optional billing end date filter (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)

            try {
                // Retrieve all prometheus billing
                PrometheusBillingInfo result = apiInstance.prometheusbillingsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusBillingsApi.prometheusbillingsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusBillingsApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$startDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing start date filter
$endDate = 2013-10-20T19:20:30+01:00; // Date | Optional billing end date filter
$organizationId = 56; // Integer | Optional organization id filter

try {
    $result = $api_instance->prometheusbillingsList($limit, $offset, $sortBy, $sortDirection, $startDate, $endDate, $organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusBillingsApi->prometheusbillingsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusBillingsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusBillingsApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $startDate = 2013-10-20T19:20:30+01:00; # Date | Optional billing start date filter
my $endDate = 2013-10-20T19:20:30+01:00; # Date | Optional billing end date filter
my $organizationId = 56; # Integer | Optional organization id filter

eval {
    my $result = $api_instance->prometheusbillingsList(limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, startDate => $startDate, endDate => $endDate, organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusBillingsApi->prometheusbillingsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusBillingsApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
startDate = 2013-10-20T19:20:30+01:00 # Date | Optional billing start date filter (optional) (default to null)
endDate = 2013-10-20T19:20:30+01:00 # Date | Optional billing end date filter (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)

try:
    # Retrieve all prometheus billing
    api_response = api_instance.prometheusbillings_list(limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, startDate=startDate, endDate=endDate, organizationId=organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusBillingsApi->prometheusbillingsList: %s\n" % e)
extern crate PrometheusBillingsApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let startDate = 2013-10-20T19:20:30+01:00; // Date
    let endDate = 2013-10-20T19:20:30+01:00; // Date
    let organizationId = 56; // Integer

    let mut context = PrometheusBillingsApi::Context::default();
    let result = client.prometheusbillingsList(limit, offset, sortBy, sortDirection, startDate, endDate, organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
StartDate
Date (date-time)
Optional billing start date filter
EndDate
Date (date-time)
Optional billing end date filter
OrganizationId
Integer (int32)
Optional organization id filter

Responses


PrometheusRules

prometheusrulesAddOrganizations

Add organizations to prometheus rule


/api/v1/prometheusrules/{id}/organizations

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusrules/{id}/organizations" \
 -d '{
  "organizationId" : 0,
  "ruleDiscountRate" : 6.027456183070403
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        array[AddOrganizationsToRuleDto] addOrganizationsToRuleDto = ; // array[AddOrganizationsToRuleDto] | 

        try {
            Object result = apiInstance.prometheusrulesAddOrganizations(id, addOrganizationsToRuleDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesAddOrganizations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[AddOrganizationsToRuleDto] addOrganizationsToRuleDto = new array[AddOrganizationsToRuleDto](); // array[AddOrganizationsToRuleDto] | 

try {
    final result = await api_instance.prometheusrulesAddOrganizations(id, addOrganizationsToRuleDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesAddOrganizations: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        array[AddOrganizationsToRuleDto] addOrganizationsToRuleDto = ; // array[AddOrganizationsToRuleDto] | 

        try {
            Object result = apiInstance.prometheusrulesAddOrganizations(id, addOrganizationsToRuleDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesAddOrganizations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *id = 56; //  (default to null)
array[AddOrganizationsToRuleDto] *addOrganizationsToRuleDto = ; //  (optional)

// Add organizations to prometheus rule
[apiInstance prometheusrulesAddOrganizationsWith:id
    addOrganizationsToRuleDto:addOrganizationsToRuleDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var id = 56; // {Integer} 
var opts = {
  'addOrganizationsToRuleDto':  // {array[AddOrganizationsToRuleDto]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesAddOrganizations(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesAddOrganizationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var id = 56;  // Integer |  (default to null)
            var addOrganizationsToRuleDto = new array[AddOrganizationsToRuleDto](); // array[AddOrganizationsToRuleDto] |  (optional) 

            try {
                // Add organizations to prometheus rule
                Object result = apiInstance.prometheusrulesAddOrganizations(id, addOrganizationsToRuleDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesAddOrganizations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$id = 56; // Integer | 
$addOrganizationsToRuleDto = ; // array[AddOrganizationsToRuleDto] | 

try {
    $result = $api_instance->prometheusrulesAddOrganizations($id, $addOrganizationsToRuleDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesAddOrganizations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $id = 56; # Integer | 
my $addOrganizationsToRuleDto = [WWW::OPenAPIClient::Object::array[AddOrganizationsToRuleDto]->new()]; # array[AddOrganizationsToRuleDto] | 

eval {
    my $result = $api_instance->prometheusrulesAddOrganizations(id => $id, addOrganizationsToRuleDto => $addOrganizationsToRuleDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesAddOrganizations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
id = 56 # Integer |  (default to null)
addOrganizationsToRuleDto =  # array[AddOrganizationsToRuleDto] |  (optional)

try:
    # Add organizations to prometheus rule
    api_response = api_instance.prometheusrules_add_organizations(id, addOrganizationsToRuleDto=addOrganizationsToRuleDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesAddOrganizations: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let id = 56; // Integer
    let addOrganizationsToRuleDto = ; // array[AddOrganizationsToRuleDto]

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesAddOrganizations(id, addOrganizationsToRuleDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
addOrganizationsToRuleDto

Responses


prometheusrulesCreate

Add prometheus rule


/api/v1/prometheusrules

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusrules" \
 -d '{
  "organizationId" : [ 5, 5 ],
  "metricName" : "metricName",
  "price" : 0.8008281904610115,
  "ruleDiscountRate" : 5,
  "name" : "name",
  "operationCredentialId" : 1,
  "type" : "",
  "domainId" : 6,
  "labels" : [ {
    "label" : "label",
    "value" : "value"
  }, {
    "label" : "label",
    "value" : "value"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        RuleCreateCommand ruleCreateCommand = ; // RuleCreateCommand | 

        try {
            ApiResponse result = apiInstance.prometheusrulesCreate(ruleCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RuleCreateCommand ruleCreateCommand = new RuleCreateCommand(); // RuleCreateCommand | 

try {
    final result = await api_instance.prometheusrulesCreate(ruleCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesCreate: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        RuleCreateCommand ruleCreateCommand = ; // RuleCreateCommand | 

        try {
            ApiResponse result = apiInstance.prometheusrulesCreate(ruleCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
RuleCreateCommand *ruleCreateCommand = ; //  (optional)

// Add prometheus rule
[apiInstance prometheusrulesCreateWith:ruleCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var opts = {
  'ruleCreateCommand':  // {RuleCreateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var ruleCreateCommand = new RuleCreateCommand(); // RuleCreateCommand |  (optional) 

            try {
                // Add prometheus rule
                ApiResponse result = apiInstance.prometheusrulesCreate(ruleCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$ruleCreateCommand = ; // RuleCreateCommand | 

try {
    $result = $api_instance->prometheusrulesCreate($ruleCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $ruleCreateCommand = WWW::OPenAPIClient::Object::RuleCreateCommand->new(); # RuleCreateCommand | 

eval {
    my $result = $api_instance->prometheusrulesCreate(ruleCreateCommand => $ruleCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
ruleCreateCommand =  # RuleCreateCommand |  (optional)

try:
    # Add prometheus rule
    api_response = api_instance.prometheusrules_create(ruleCreateCommand=ruleCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesCreate: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let ruleCreateCommand = ; // RuleCreateCommand

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesCreate(ruleCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
ruleCreateCommand

Responses


prometheusrulesDelete

Remove prometheus rule


/api/v1/prometheusrules/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/prometheusrules/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.prometheusrulesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.prometheusrulesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesDelete: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.prometheusrulesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *id = 56; //  (default to null)

// Remove prometheus rule
[apiInstance prometheusrulesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Remove prometheus rule
                Object result = apiInstance.prometheusrulesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->prometheusrulesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->prometheusrulesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
id = 56 # Integer |  (default to null)

try:
    # Remove prometheus rule
    api_response = api_instance.prometheusrules_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesDelete: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


prometheusrulesDeleteOrganizations

Unbind organizations from prometheus rule


/api/v1/prometheusrules/{id}/organizations

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusrules/{id}/organizations" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.prometheusrulesDeleteOrganizations(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDeleteOrganizations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final array[Integer] integer = new array[Integer](); // array[Integer] | 

try {
    final result = await api_instance.prometheusrulesDeleteOrganizations(id, integer);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesDeleteOrganizations: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        array[Integer] integer = ; // array[Integer] | 

        try {
            Object result = apiInstance.prometheusrulesDeleteOrganizations(id, integer);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDeleteOrganizations");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *id = 56; //  (default to null)
array[Integer] *integer = ; //  (optional)

// Unbind organizations from prometheus rule
[apiInstance prometheusrulesDeleteOrganizationsWith:id
    integer:integer
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var id = 56; // {Integer} 
var opts = {
  'integer':  // {array[Integer]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesDeleteOrganizations(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesDeleteOrganizationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var id = 56;  // Integer |  (default to null)
            var integer = new array[Integer](); // array[Integer] |  (optional) 

            try {
                // Unbind organizations from prometheus rule
                Object result = apiInstance.prometheusrulesDeleteOrganizations(id, integer);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesDeleteOrganizations: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$id = 56; // Integer | 
$integer = ; // array[Integer] | 

try {
    $result = $api_instance->prometheusrulesDeleteOrganizations($id, $integer);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesDeleteOrganizations: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $id = 56; # Integer | 
my $integer = [WWW::OPenAPIClient::Object::array[Integer]->new()]; # array[Integer] | 

eval {
    my $result = $api_instance->prometheusrulesDeleteOrganizations(id => $id, integer => $integer);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesDeleteOrganizations: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
id = 56 # Integer |  (default to null)
integer =  # array[Integer] |  (optional)

try:
    # Unbind organizations from prometheus rule
    api_response = api_instance.prometheusrules_delete_organizations(id, integer=integer)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesDeleteOrganizations: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let id = 56; // Integer
    let integer = ; // array[Integer]

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesDeleteOrganizations(id, integer, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
integer

Responses


prometheusrulesDetails

Retrieve all prometheus rules with detailed info


/api/v1/prometheusrules/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/prometheusrules/details?OrganizationId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            array[CommonDropdownIsBoundDto] result = apiInstance.prometheusrulesDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Organization id, positive integer

try {
    final result = await api_instance.prometheusrulesDetails(organizationId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesDetails: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer

        try {
            array[CommonDropdownIsBoundDto] result = apiInstance.prometheusrulesDetails(organizationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *organizationId = 56; // Organization id, positive integer (default to null)

// Retrieve all prometheus rules with detailed info
[apiInstance prometheusrulesDetailsWith:organizationId
              completionHandler: ^(array[CommonDropdownIsBoundDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var organizationId = 56; // {Integer} Organization id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesDetails(organizationId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var organizationId = 56;  // Integer | Organization id, positive integer (default to null)

            try {
                // Retrieve all prometheus rules with detailed info
                array[CommonDropdownIsBoundDto] result = apiInstance.prometheusrulesDetails(organizationId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$organizationId = 56; // Integer | Organization id, positive integer

try {
    $result = $api_instance->prometheusrulesDetails($organizationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $organizationId = 56; # Integer | Organization id, positive integer

eval {
    my $result = $api_instance->prometheusrulesDetails(organizationId => $organizationId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
organizationId = 56 # Integer | Organization id, positive integer (default to null)

try:
    # Retrieve all prometheus rules with detailed info
    api_response = api_instance.prometheusrules_details(organizationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesDetails: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let organizationId = 56; // Integer

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesDetails(organizationId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId*
Integer (int32)
Organization id, positive integer
Required

Responses


prometheusrulesList

Retrieve a list of prometheus rules


/api/v1/prometheusrules

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/prometheusrules?Limit=56&Offset=56&DomainId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer domainId = 56; // Integer | Optional domain id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional rule id filter

        try {
            PrometheusRulesList result = apiInstance.prometheusrulesList(limit, offset, domainId, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer domainId = new Integer(); // Integer | Optional domain id filter
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final String searchId = new String(); // String | Search by id substring
final Integer id = new Integer(); // Integer | Optional rule id filter

try {
    final result = await api_instance.prometheusrulesList(limit, offset, domainId, sortBy, sortDirection, search, searchId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesList: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer domainId = 56; // Integer | Optional domain id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        String searchId = searchId_example; // String | Search by id substring
        Integer id = 56; // Integer | Optional rule id filter

        try {
            PrometheusRulesList result = apiInstance.prometheusrulesList(limit, offset, domainId, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *id = 56; // Optional rule id filter (optional) (default to null)

// Retrieve a list of prometheus rules
[apiInstance prometheusrulesListWith:limit
    offset:offset
    domainId:domainId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
              completionHandler: ^(PrometheusRulesList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'domainId': 56, // {Integer} Optional domain id filter
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'searchId': searchId_example, // {String} Search by id substring
  'id': 56 // {Integer} Optional rule id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var id = 56;  // Integer | Optional rule id filter (optional)  (default to null)

            try {
                // Retrieve a list of prometheus rules
                PrometheusRulesList result = apiInstance.prometheusrulesList(limit, offset, domainId, sortBy, sortDirection, search, searchId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$domainId = 56; // Integer | Optional domain id filter
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$searchId = searchId_example; // String | Search by id substring
$id = 56; // Integer | Optional rule id filter

try {
    $result = $api_instance->prometheusrulesList($limit, $offset, $domainId, $sortBy, $sortDirection, $search, $searchId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $domainId = 56; # Integer | Optional domain id filter
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $searchId = searchId_example; # String | Search by id substring
my $id = 56; # Integer | Optional rule id filter

eval {
    my $result = $api_instance->prometheusrulesList(limit => $limit, offset => $offset, domainId => $domainId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
id = 56 # Integer | Optional rule id filter (optional) (default to null)

try:
    # Retrieve a list of prometheus rules
    api_response = api_instance.prometheusrules_list(limit=limit, offset=offset, domainId=domainId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesList: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let domainId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesList(limit, offset, domainId, sortBy, sortDirection, search, searchId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
DomainId
Integer (int32)
Optional domain id filter
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
SearchId
String
Search by id substring
Id
Integer (int32)
Optional rule id filter

Responses


prometheusrulesUpdate

Edit prometheus rule


/api/v1/prometheusrules/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/prometheusrules/edit/{id}" \
 -d '{
  "metricName" : "metricName",
  "price" : 0.8008281904610115,
  "name" : "name",
  "operationCredentialId" : 6,
  "type" : "",
  "labels" : [ {
    "label" : "label",
    "value" : "value"
  }, {
    "label" : "label",
    "value" : "value"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.PrometheusRulesApi;

import java.io.File;
import java.util.*;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        RuleForUpdateDto ruleForUpdateDto = ; // RuleForUpdateDto | 

        try {
            Object result = apiInstance.prometheusrulesUpdate(id, ruleForUpdateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final RuleForUpdateDto ruleForUpdateDto = new RuleForUpdateDto(); // RuleForUpdateDto | 

try {
    final result = await api_instance.prometheusrulesUpdate(id, ruleForUpdateDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->prometheusrulesUpdate: $e\n');
}

import org.openapitools.client.api.PrometheusRulesApi;

public class PrometheusRulesApiExample {
    public static void main(String[] args) {
        PrometheusRulesApi apiInstance = new PrometheusRulesApi();
        Integer id = 56; // Integer | 
        RuleForUpdateDto ruleForUpdateDto = ; // RuleForUpdateDto | 

        try {
            Object result = apiInstance.prometheusrulesUpdate(id, ruleForUpdateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PrometheusRulesApi#prometheusrulesUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
PrometheusRulesApi *apiInstance = [[PrometheusRulesApi alloc] init];
Integer *id = 56; //  (default to null)
RuleForUpdateDto *ruleForUpdateDto = ; //  (optional)

// Edit prometheus rule
[apiInstance prometheusrulesUpdateWith:id
    ruleForUpdateDto:ruleForUpdateDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.PrometheusRulesApi()
var id = 56; // {Integer} 
var opts = {
  'ruleForUpdateDto':  // {RuleForUpdateDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.prometheusrulesUpdate(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class prometheusrulesUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new PrometheusRulesApi();
            var id = 56;  // Integer |  (default to null)
            var ruleForUpdateDto = new RuleForUpdateDto(); // RuleForUpdateDto |  (optional) 

            try {
                // Edit prometheus rule
                Object result = apiInstance.prometheusrulesUpdate(id, ruleForUpdateDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling PrometheusRulesApi.prometheusrulesUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\PrometheusRulesApi();
$id = 56; // Integer | 
$ruleForUpdateDto = ; // RuleForUpdateDto | 

try {
    $result = $api_instance->prometheusrulesUpdate($id, $ruleForUpdateDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PrometheusRulesApi->prometheusrulesUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::PrometheusRulesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::PrometheusRulesApi->new();
my $id = 56; # Integer | 
my $ruleForUpdateDto = WWW::OPenAPIClient::Object::RuleForUpdateDto->new(); # RuleForUpdateDto | 

eval {
    my $result = $api_instance->prometheusrulesUpdate(id => $id, ruleForUpdateDto => $ruleForUpdateDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PrometheusRulesApi->prometheusrulesUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.PrometheusRulesApi()
id = 56 # Integer |  (default to null)
ruleForUpdateDto =  # RuleForUpdateDto |  (optional)

try:
    # Edit prometheus rule
    api_response = api_instance.prometheusrules_update(id, ruleForUpdateDto=ruleForUpdateDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PrometheusRulesApi->prometheusrulesUpdate: %s\n" % e)
extern crate PrometheusRulesApi;

pub fn main() {
    let id = 56; // Integer
    let ruleForUpdateDto = ; // RuleForUpdateDto

    let mut context = PrometheusRulesApi::Context::default();
    let result = client.prometheusrulesUpdate(id, ruleForUpdateDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
ruleForUpdateDto

Responses


QATesting

qaEndSession

End an active QA session without seeded tenant


/api/v1/qa/sessions/end

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/qa/sessions/end"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QATestingApi;

import java.io.File;
import java.util.*;

public class QATestingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        QATestingApi apiInstance = new QATestingApi();

        try {
            Object result = apiInstance.qaEndSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaEndSession");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.qaEndSession();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->qaEndSession: $e\n');
}

import org.openapitools.client.api.QATestingApi;

public class QATestingApiExample {
    public static void main(String[] args) {
        QATestingApi apiInstance = new QATestingApi();

        try {
            Object result = apiInstance.qaEndSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaEndSession");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
QATestingApi *apiInstance = [[QATestingApi alloc] init];

// End an active QA session without seeded tenant
[apiInstance qaEndSessionWithCompletionHandler: 
              ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.QATestingApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.qaEndSession(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class qaEndSessionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new QATestingApi();

            try {
                // End an active QA session without seeded tenant
                Object result = apiInstance.qaEndSession();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QATestingApi.qaEndSession: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QATestingApi();

try {
    $result = $api_instance->qaEndSession();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QATestingApi->qaEndSession: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::QATestingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QATestingApi->new();

eval {
    my $result = $api_instance->qaEndSession();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QATestingApi->qaEndSession: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.QATestingApi()

try:
    # End an active QA session without seeded tenant
    api_response = api_instance.qa_end_session()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QATestingApi->qaEndSession: %s\n" % e)
extern crate QATestingApi;

pub fn main() {

    let mut context = QATestingApi::Context::default();
    let result = client.qaEndSession(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


qaSeed

Seed domain, organization, and domain-admin or robot user for QA


/api/v1/qa/seed

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/qa/seed" \
 -d '{
  "template" : "domain-admin"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QATestingApi;

import java.io.File;
import java.util.*;

public class QATestingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        QATestingApi apiInstance = new QATestingApi();
        SeedQaTenantCommand seedQaTenantCommand = ; // SeedQaTenantCommand | 

        try {
            SeedQaTenantResult result = apiInstance.qaSeed(seedQaTenantCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaSeed");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final SeedQaTenantCommand seedQaTenantCommand = new SeedQaTenantCommand(); // SeedQaTenantCommand | 

try {
    final result = await api_instance.qaSeed(seedQaTenantCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->qaSeed: $e\n');
}

import org.openapitools.client.api.QATestingApi;

public class QATestingApiExample {
    public static void main(String[] args) {
        QATestingApi apiInstance = new QATestingApi();
        SeedQaTenantCommand seedQaTenantCommand = ; // SeedQaTenantCommand | 

        try {
            SeedQaTenantResult result = apiInstance.qaSeed(seedQaTenantCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaSeed");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
QATestingApi *apiInstance = [[QATestingApi alloc] init];
SeedQaTenantCommand *seedQaTenantCommand = ; //  (optional)

// Seed domain, organization, and domain-admin or robot user for QA
[apiInstance qaSeedWith:seedQaTenantCommand
              completionHandler: ^(SeedQaTenantResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.QATestingApi()
var opts = {
  'seedQaTenantCommand':  // {SeedQaTenantCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.qaSeed(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class qaSeedExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new QATestingApi();
            var seedQaTenantCommand = new SeedQaTenantCommand(); // SeedQaTenantCommand |  (optional) 

            try {
                // Seed domain, organization, and domain-admin or robot user for QA
                SeedQaTenantResult result = apiInstance.qaSeed(seedQaTenantCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QATestingApi.qaSeed: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QATestingApi();
$seedQaTenantCommand = ; // SeedQaTenantCommand | 

try {
    $result = $api_instance->qaSeed($seedQaTenantCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QATestingApi->qaSeed: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::QATestingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QATestingApi->new();
my $seedQaTenantCommand = WWW::OPenAPIClient::Object::SeedQaTenantCommand->new(); # SeedQaTenantCommand | 

eval {
    my $result = $api_instance->qaSeed(seedQaTenantCommand => $seedQaTenantCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QATestingApi->qaSeed: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.QATestingApi()
seedQaTenantCommand =  # SeedQaTenantCommand |  (optional)

try:
    # Seed domain, organization, and domain-admin or robot user for QA
    api_response = api_instance.qa_seed(seedQaTenantCommand=seedQaTenantCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QATestingApi->qaSeed: %s\n" % e)
extern crate QATestingApi;

pub fn main() {
    let seedQaTenantCommand = ; // SeedQaTenantCommand

    let mut context = QATestingApi::Context::default();
    let result = client.qaSeed(seedQaTenantCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
seedQaTenantCommand

Responses


qaStartSession

Start an ephemeral QA session and receive a short-lived session token


/api/v1/qa/sessions/start

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/qa/sessions/start"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QATestingApi;

import java.io.File;
import java.util.*;

public class QATestingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        QATestingApi apiInstance = new QATestingApi();

        try {
            StartQaSessionResult result = apiInstance.qaStartSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaStartSession");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.qaStartSession();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->qaStartSession: $e\n');
}

import org.openapitools.client.api.QATestingApi;

public class QATestingApiExample {
    public static void main(String[] args) {
        QATestingApi apiInstance = new QATestingApi();

        try {
            StartQaSessionResult result = apiInstance.qaStartSession();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaStartSession");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
QATestingApi *apiInstance = [[QATestingApi alloc] init];

// Start an ephemeral QA session and receive a short-lived session token
[apiInstance qaStartSessionWithCompletionHandler: 
              ^(StartQaSessionResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.QATestingApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.qaStartSession(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class qaStartSessionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new QATestingApi();

            try {
                // Start an ephemeral QA session and receive a short-lived session token
                StartQaSessionResult result = apiInstance.qaStartSession();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QATestingApi.qaStartSession: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QATestingApi();

try {
    $result = $api_instance->qaStartSession();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QATestingApi->qaStartSession: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::QATestingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QATestingApi->new();

eval {
    my $result = $api_instance->qaStartSession();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QATestingApi->qaStartSession: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.QATestingApi()

try:
    # Start an ephemeral QA session and receive a short-lived session token
    api_response = api_instance.qa_start_session()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QATestingApi->qaStartSession: %s\n" % e)
extern crate QATestingApi;

pub fn main() {

    let mut context = QATestingApi::Context::default();
    let result = client.qaStartSession(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


qaTeardown

Teardown seeded QA tenant for the current session


/api/v1/qa/teardown

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/qa/teardown" \
 -d '{
  "cleanupToken" : "cleanupToken"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.QATestingApi;

import java.io.File;
import java.util.*;

public class QATestingApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        QATestingApi apiInstance = new QATestingApi();
        TeardownQaTenantCommand teardownQaTenantCommand = ; // TeardownQaTenantCommand | 

        try {
            Object result = apiInstance.qaTeardown(teardownQaTenantCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaTeardown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final TeardownQaTenantCommand teardownQaTenantCommand = new TeardownQaTenantCommand(); // TeardownQaTenantCommand | 

try {
    final result = await api_instance.qaTeardown(teardownQaTenantCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->qaTeardown: $e\n');
}

import org.openapitools.client.api.QATestingApi;

public class QATestingApiExample {
    public static void main(String[] args) {
        QATestingApi apiInstance = new QATestingApi();
        TeardownQaTenantCommand teardownQaTenantCommand = ; // TeardownQaTenantCommand | 

        try {
            Object result = apiInstance.qaTeardown(teardownQaTenantCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling QATestingApi#qaTeardown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
QATestingApi *apiInstance = [[QATestingApi alloc] init];
TeardownQaTenantCommand *teardownQaTenantCommand = ; //  (optional)

// Teardown seeded QA tenant for the current session
[apiInstance qaTeardownWith:teardownQaTenantCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.QATestingApi()
var opts = {
  'teardownQaTenantCommand':  // {TeardownQaTenantCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.qaTeardown(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class qaTeardownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new QATestingApi();
            var teardownQaTenantCommand = new TeardownQaTenantCommand(); // TeardownQaTenantCommand |  (optional) 

            try {
                // Teardown seeded QA tenant for the current session
                Object result = apiInstance.qaTeardown(teardownQaTenantCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling QATestingApi.qaTeardown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\QATestingApi();
$teardownQaTenantCommand = ; // TeardownQaTenantCommand | 

try {
    $result = $api_instance->qaTeardown($teardownQaTenantCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QATestingApi->qaTeardown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::QATestingApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::QATestingApi->new();
my $teardownQaTenantCommand = WWW::OPenAPIClient::Object::TeardownQaTenantCommand->new(); # TeardownQaTenantCommand | 

eval {
    my $result = $api_instance->qaTeardown(teardownQaTenantCommand => $teardownQaTenantCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling QATestingApi->qaTeardown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.QATestingApi()
teardownQaTenantCommand =  # TeardownQaTenantCommand |  (optional)

try:
    # Teardown seeded QA tenant for the current session
    api_response = api_instance.qa_teardown(teardownQaTenantCommand=teardownQaTenantCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling QATestingApi->qaTeardown: %s\n" % e)
extern crate QATestingApi;

pub fn main() {
    let teardownQaTenantCommand = ; // TeardownQaTenantCommand

    let mut context = QATestingApi::Context::default();
    let result = client.qaTeardown(teardownQaTenantCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
teardownQaTenantCommand

Responses


RegistryCredential

registryCredentialsAssign

Assign a registry credential to a project with target namespaces


/api/v1/registry-credentials/assignment

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/assignment" \
 -d '{
  "registryCredentialId" : 0,
  "projectId" : 6,
  "targetNamespaces" : [ "targetNamespaces", "targetNamespaces" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        AssignRegistryCredentialCommand assignRegistryCredentialCommand = ; // AssignRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsAssign(assignRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsAssign");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final AssignRegistryCredentialCommand assignRegistryCredentialCommand = new AssignRegistryCredentialCommand(); // AssignRegistryCredentialCommand | 

try {
    final result = await api_instance.registryCredentialsAssign(assignRegistryCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsAssign: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        AssignRegistryCredentialCommand assignRegistryCredentialCommand = ; // AssignRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsAssign(assignRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsAssign");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
AssignRegistryCredentialCommand *assignRegistryCredentialCommand = ; //  (optional)

// Assign a registry credential to a project with target namespaces
[apiInstance registryCredentialsAssignWith:assignRegistryCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'assignRegistryCredentialCommand':  // {AssignRegistryCredentialCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsAssign(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsAssignExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var assignRegistryCredentialCommand = new AssignRegistryCredentialCommand(); // AssignRegistryCredentialCommand |  (optional) 

            try {
                // Assign a registry credential to a project with target namespaces
                Object result = apiInstance.registryCredentialsAssign(assignRegistryCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsAssign: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$assignRegistryCredentialCommand = ; // AssignRegistryCredentialCommand | 

try {
    $result = $api_instance->registryCredentialsAssign($assignRegistryCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsAssign: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $assignRegistryCredentialCommand = WWW::OPenAPIClient::Object::AssignRegistryCredentialCommand->new(); # AssignRegistryCredentialCommand | 

eval {
    my $result = $api_instance->registryCredentialsAssign(assignRegistryCredentialCommand => $assignRegistryCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsAssign: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
assignRegistryCredentialCommand =  # AssignRegistryCredentialCommand |  (optional)

try:
    # Assign a registry credential to a project with target namespaces
    api_response = api_instance.registry_credentials_assign(assignRegistryCredentialCommand=assignRegistryCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsAssign: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let assignRegistryCredentialCommand = ; // AssignRegistryCredentialCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsAssign(assignRegistryCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
assignRegistryCredentialCommand

Responses


registryCredentialsCreate

Create an OCI registry credential


/api/v1/registry-credentials/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/create" \
 -d '{
  "organizationId" : 0,
  "password" : "password",
  "registryHost" : "registryHost",
  "name" : "name",
  "caPem" : "caPem",
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        CreateRegistryCredentialCommand createRegistryCredentialCommand = ; // CreateRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsCreate(createRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateRegistryCredentialCommand createRegistryCredentialCommand = new CreateRegistryCredentialCommand(); // CreateRegistryCredentialCommand | 

try {
    final result = await api_instance.registryCredentialsCreate(createRegistryCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsCreate: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        CreateRegistryCredentialCommand createRegistryCredentialCommand = ; // CreateRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsCreate(createRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
CreateRegistryCredentialCommand *createRegistryCredentialCommand = ; //  (optional)

// Create an OCI registry credential
[apiInstance registryCredentialsCreateWith:createRegistryCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'createRegistryCredentialCommand':  // {CreateRegistryCredentialCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var createRegistryCredentialCommand = new CreateRegistryCredentialCommand(); // CreateRegistryCredentialCommand |  (optional) 

            try {
                // Create an OCI registry credential
                Object result = apiInstance.registryCredentialsCreate(createRegistryCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$createRegistryCredentialCommand = ; // CreateRegistryCredentialCommand | 

try {
    $result = $api_instance->registryCredentialsCreate($createRegistryCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $createRegistryCredentialCommand = WWW::OPenAPIClient::Object::CreateRegistryCredentialCommand->new(); # CreateRegistryCredentialCommand | 

eval {
    my $result = $api_instance->registryCredentialsCreate(createRegistryCredentialCommand => $createRegistryCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
createRegistryCredentialCommand =  # CreateRegistryCredentialCommand |  (optional)

try:
    # Create an OCI registry credential
    api_response = api_instance.registry_credentials_create(createRegistryCredentialCommand=createRegistryCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsCreate: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let createRegistryCredentialCommand = ; // CreateRegistryCredentialCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsCreate(createRegistryCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createRegistryCredentialCommand

Responses


registryCredentialsDelete

Delete an OCI registry credential


/api/v1/registry-credentials/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/registry-credentials/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.registryCredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.registryCredentialsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsDelete: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.registryCredentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete an OCI registry credential
[apiInstance registryCredentialsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete an OCI registry credential
                Object result = apiInstance.registryCredentialsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->registryCredentialsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->registryCredentialsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
id = 56 # Integer |  (default to null)

try:
    # Delete an OCI registry credential
    api_response = api_instance.registry_credentials_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsDelete: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


registryCredentialsList

List OCI registry credentials


/api/v1/registry-credentials/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/registry-credentials/list?Limit=56&Offset=56&Search=search_example&OrganizationId=56&DomainId=56&IsActive=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String search = search_example; // String | 
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Boolean isActive = true; // Boolean | 

        try {
            RegistryCredentialList result = apiInstance.registryCredentialsList(limit, offset, search, organizationId, domainId, isActive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final String search = new String(); // String | 
final Integer organizationId = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final Boolean isActive = new Boolean(); // Boolean | 

try {
    final result = await api_instance.registryCredentialsList(limit, offset, search, organizationId, domainId, isActive);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsList: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String search = search_example; // String | 
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        Boolean isActive = true; // Boolean | 

        try {
            RegistryCredentialList result = apiInstance.registryCredentialsList(limit, offset, search, organizationId, domainId, isActive);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
Integer *limit = 56; //  (optional) (default to 100)
Integer *offset = 56; //  (optional) (default to 0)
String *search = search_example; //  (optional) (default to null)
Integer *organizationId = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
Boolean *isActive = true; //  (optional) (default to null)

// List OCI registry credentials
[apiInstance registryCredentialsListWith:limit
    offset:offset
    search:search
    organizationId:organizationId
    domainId:domainId
    isActive:isActive
              completionHandler: ^(RegistryCredentialList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'search': search_example, // {String} 
  'organizationId': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'isActive': true // {Boolean} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var limit = 56;  // Integer |  (optional)  (default to 100)
            var offset = 56;  // Integer |  (optional)  (default to 0)
            var search = search_example;  // String |  (optional)  (default to null)
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var isActive = true;  // Boolean |  (optional)  (default to null)

            try {
                // List OCI registry credentials
                RegistryCredentialList result = apiInstance.registryCredentialsList(limit, offset, search, organizationId, domainId, isActive);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$search = search_example; // String | 
$organizationId = 56; // Integer | 
$domainId = 56; // Integer | 
$isActive = true; // Boolean | 

try {
    $result = $api_instance->registryCredentialsList($limit, $offset, $search, $organizationId, $domainId, $isActive);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $search = search_example; # String | 
my $organizationId = 56; # Integer | 
my $domainId = 56; # Integer | 
my $isActive = true; # Boolean | 

eval {
    my $result = $api_instance->registryCredentialsList(limit => $limit, offset => $offset, search => $search, organizationId => $organizationId, domainId => $domainId, isActive => $isActive);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
limit = 56 # Integer |  (optional) (default to 100)
offset = 56 # Integer |  (optional) (default to 0)
search = search_example # String |  (optional) (default to null)
organizationId = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
isActive = true # Boolean |  (optional) (default to null)

try:
    # List OCI registry credentials
    api_response = api_instance.registry_credentials_list(limit=limit, offset=offset, search=search, organizationId=organizationId, domainId=domainId, isActive=isActive)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsList: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let isActive = true; // Boolean

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsList(limit, offset, search, organizationId, domainId, isActive, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Offset
Integer (int32)
Search
OrganizationId
Integer (int32)
DomainId
Integer (int32)
IsActive
Boolean

Responses


registryCredentialsListProject

List registry credentials assigned to a project


/api/v1/registry-credentials/assignment/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/registry-credentials/assignment/list?ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer projectId = 56; // Integer | 

        try {
            array[ProjectRegistryCredentialDto] result = apiInstance.registryCredentialsListProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsListProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.registryCredentialsListProject(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsListProject: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer projectId = 56; // Integer | 

        try {
            array[ProjectRegistryCredentialDto] result = apiInstance.registryCredentialsListProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsListProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
Integer *projectId = 56; //  (default to null)

// List registry credentials assigned to a project
[apiInstance registryCredentialsListProjectWith:projectId
              completionHandler: ^(array[ProjectRegistryCredentialDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsListProject(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsListProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // List registry credentials assigned to a project
                array[ProjectRegistryCredentialDto] result = apiInstance.registryCredentialsListProject(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsListProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->registryCredentialsListProject($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsListProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->registryCredentialsListProject(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsListProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
projectId = 56 # Integer |  (default to null)

try:
    # List registry credentials assigned to a project
    api_response = api_instance.registry_credentials_list_project(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsListProject: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsListProject(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
ProjectId*
Integer (int32)
Required

Responses


registryCredentialsPackages

List available Helm packages in a registry credential's repository


/api/v1/registry-credentials/{id}/packages

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/registry-credentials/{id}/packages?chartName=chartName_example&packageName=packageName_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer id = 56; // Integer | 
        String chartName = chartName_example; // String | 
        String packageName = packageName_example; // String | 

        try {
            array[RegistryPackageDto] result = apiInstance.registryCredentialsPackages(id, chartName, packageName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsPackages");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final String chartName = new String(); // String | 
final String packageName = new String(); // String | 

try {
    final result = await api_instance.registryCredentialsPackages(id, chartName, packageName);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsPackages: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        Integer id = 56; // Integer | 
        String chartName = chartName_example; // String | 
        String packageName = packageName_example; // String | 

        try {
            array[RegistryPackageDto] result = apiInstance.registryCredentialsPackages(id, chartName, packageName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsPackages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
Integer *id = 56; //  (default to null)
String *chartName = chartName_example; //  (optional) (default to null)
String *packageName = packageName_example; //  (optional) (default to null)

// List available Helm packages in a registry credential's repository
[apiInstance registryCredentialsPackagesWith:id
    chartName:chartName
    packageName:packageName
              completionHandler: ^(array[RegistryPackageDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var id = 56; // {Integer} 
var opts = {
  'chartName': chartName_example, // {String} 
  'packageName': packageName_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsPackages(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsPackagesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var id = 56;  // Integer |  (default to null)
            var chartName = chartName_example;  // String |  (optional)  (default to null)
            var packageName = packageName_example;  // String |  (optional)  (default to null)

            try {
                // List available Helm packages in a registry credential's repository
                array[RegistryPackageDto] result = apiInstance.registryCredentialsPackages(id, chartName, packageName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsPackages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$id = 56; // Integer | 
$chartName = chartName_example; // String | 
$packageName = packageName_example; // String | 

try {
    $result = $api_instance->registryCredentialsPackages($id, $chartName, $packageName);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsPackages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $id = 56; # Integer | 
my $chartName = chartName_example; # String | 
my $packageName = packageName_example; # String | 

eval {
    my $result = $api_instance->registryCredentialsPackages(id => $id, chartName => $chartName, packageName => $packageName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsPackages: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
id = 56 # Integer |  (default to null)
chartName = chartName_example # String |  (optional) (default to null)
packageName = packageName_example # String |  (optional) (default to null)

try:
    # List available Helm packages in a registry credential's repository
    api_response = api_instance.registry_credentials_packages(id, chartName=chartName, packageName=packageName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsPackages: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let id = 56; // Integer
    let chartName = chartName_example; // String
    let packageName = packageName_example; // String

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsPackages(id, chartName, packageName, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
chartName
String
packageName
String

Responses


registryCredentialsStatus

Enable or disable an OCI registry credential


/api/v1/registry-credentials/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/status" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        RegistryCredentialStatusManagementCommand registryCredentialStatusManagementCommand = ; // RegistryCredentialStatusManagementCommand | 

        try {
            Object result = apiInstance.registryCredentialsStatus(registryCredentialStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RegistryCredentialStatusManagementCommand registryCredentialStatusManagementCommand = new RegistryCredentialStatusManagementCommand(); // RegistryCredentialStatusManagementCommand | 

try {
    final result = await api_instance.registryCredentialsStatus(registryCredentialStatusManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsStatus: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        RegistryCredentialStatusManagementCommand registryCredentialStatusManagementCommand = ; // RegistryCredentialStatusManagementCommand | 

        try {
            Object result = apiInstance.registryCredentialsStatus(registryCredentialStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
RegistryCredentialStatusManagementCommand *registryCredentialStatusManagementCommand = ; //  (optional)

// Enable or disable an OCI registry credential
[apiInstance registryCredentialsStatusWith:registryCredentialStatusManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'registryCredentialStatusManagementCommand':  // {RegistryCredentialStatusManagementCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsStatus(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var registryCredentialStatusManagementCommand = new RegistryCredentialStatusManagementCommand(); // RegistryCredentialStatusManagementCommand |  (optional) 

            try {
                // Enable or disable an OCI registry credential
                Object result = apiInstance.registryCredentialsStatus(registryCredentialStatusManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$registryCredentialStatusManagementCommand = ; // RegistryCredentialStatusManagementCommand | 

try {
    $result = $api_instance->registryCredentialsStatus($registryCredentialStatusManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $registryCredentialStatusManagementCommand = WWW::OPenAPIClient::Object::RegistryCredentialStatusManagementCommand->new(); # RegistryCredentialStatusManagementCommand | 

eval {
    my $result = $api_instance->registryCredentialsStatus(registryCredentialStatusManagementCommand => $registryCredentialStatusManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
registryCredentialStatusManagementCommand =  # RegistryCredentialStatusManagementCommand |  (optional)

try:
    # Enable or disable an OCI registry credential
    api_response = api_instance.registry_credentials_status(registryCredentialStatusManagementCommand=registryCredentialStatusManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsStatus: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let registryCredentialStatusManagementCommand = ; // RegistryCredentialStatusManagementCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsStatus(registryCredentialStatusManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
registryCredentialStatusManagementCommand

Responses


registryCredentialsUnassign

Remove a registry credential assignment from a project


/api/v1/registry-credentials/assignment/unassign

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/assignment/unassign" \
 -d '{
  "registryCredentialId" : 0,
  "projectId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UnassignRegistryCredentialCommand unassignRegistryCredentialCommand = ; // UnassignRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsUnassign(unassignRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUnassign");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UnassignRegistryCredentialCommand unassignRegistryCredentialCommand = new UnassignRegistryCredentialCommand(); // UnassignRegistryCredentialCommand | 

try {
    final result = await api_instance.registryCredentialsUnassign(unassignRegistryCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsUnassign: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UnassignRegistryCredentialCommand unassignRegistryCredentialCommand = ; // UnassignRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsUnassign(unassignRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUnassign");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
UnassignRegistryCredentialCommand *unassignRegistryCredentialCommand = ; //  (optional)

// Remove a registry credential assignment from a project
[apiInstance registryCredentialsUnassignWith:unassignRegistryCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'unassignRegistryCredentialCommand':  // {UnassignRegistryCredentialCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsUnassign(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsUnassignExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var unassignRegistryCredentialCommand = new UnassignRegistryCredentialCommand(); // UnassignRegistryCredentialCommand |  (optional) 

            try {
                // Remove a registry credential assignment from a project
                Object result = apiInstance.registryCredentialsUnassign(unassignRegistryCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsUnassign: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$unassignRegistryCredentialCommand = ; // UnassignRegistryCredentialCommand | 

try {
    $result = $api_instance->registryCredentialsUnassign($unassignRegistryCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsUnassign: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $unassignRegistryCredentialCommand = WWW::OPenAPIClient::Object::UnassignRegistryCredentialCommand->new(); # UnassignRegistryCredentialCommand | 

eval {
    my $result = $api_instance->registryCredentialsUnassign(unassignRegistryCredentialCommand => $unassignRegistryCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsUnassign: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
unassignRegistryCredentialCommand =  # UnassignRegistryCredentialCommand |  (optional)

try:
    # Remove a registry credential assignment from a project
    api_response = api_instance.registry_credentials_unassign(unassignRegistryCredentialCommand=unassignRegistryCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsUnassign: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let unassignRegistryCredentialCommand = ; // UnassignRegistryCredentialCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsUnassign(unassignRegistryCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unassignRegistryCredentialCommand

Responses


registryCredentialsUpdate

Update an OCI registry credential (supply a password only to rotate it)


/api/v1/registry-credentials/update

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/update" \
 -d '{
  "password" : "password",
  "registryHost" : "registryHost",
  "name" : "name",
  "caPem" : "caPem",
  "id" : 0,
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UpdateRegistryCredentialCommand updateRegistryCredentialCommand = ; // UpdateRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsUpdate(updateRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateRegistryCredentialCommand updateRegistryCredentialCommand = new UpdateRegistryCredentialCommand(); // UpdateRegistryCredentialCommand | 

try {
    final result = await api_instance.registryCredentialsUpdate(updateRegistryCredentialCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsUpdate: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UpdateRegistryCredentialCommand updateRegistryCredentialCommand = ; // UpdateRegistryCredentialCommand | 

        try {
            Object result = apiInstance.registryCredentialsUpdate(updateRegistryCredentialCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
UpdateRegistryCredentialCommand *updateRegistryCredentialCommand = ; //  (optional)

// Update an OCI registry credential (supply a password only to rotate it)
[apiInstance registryCredentialsUpdateWith:updateRegistryCredentialCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'updateRegistryCredentialCommand':  // {UpdateRegistryCredentialCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var updateRegistryCredentialCommand = new UpdateRegistryCredentialCommand(); // UpdateRegistryCredentialCommand |  (optional) 

            try {
                // Update an OCI registry credential (supply a password only to rotate it)
                Object result = apiInstance.registryCredentialsUpdate(updateRegistryCredentialCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$updateRegistryCredentialCommand = ; // UpdateRegistryCredentialCommand | 

try {
    $result = $api_instance->registryCredentialsUpdate($updateRegistryCredentialCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $updateRegistryCredentialCommand = WWW::OPenAPIClient::Object::UpdateRegistryCredentialCommand->new(); # UpdateRegistryCredentialCommand | 

eval {
    my $result = $api_instance->registryCredentialsUpdate(updateRegistryCredentialCommand => $updateRegistryCredentialCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
updateRegistryCredentialCommand =  # UpdateRegistryCredentialCommand |  (optional)

try:
    # Update an OCI registry credential (supply a password only to rotate it)
    api_response = api_instance.registry_credentials_update(updateRegistryCredentialCommand=updateRegistryCredentialCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsUpdate: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let updateRegistryCredentialCommand = ; // UpdateRegistryCredentialCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsUpdate(updateRegistryCredentialCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateRegistryCredentialCommand

Responses


registryCredentialsUpdateNamespaces

Replace the target namespaces of a registry credential assignment


/api/v1/registry-credentials/assignment/namespaces

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/registry-credentials/assignment/namespaces" \
 -d '{
  "registryCredentialId" : 0,
  "projectId" : 6,
  "targetNamespaces" : [ "targetNamespaces", "targetNamespaces" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RegistryCredentialApi;

import java.io.File;
import java.util.*;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UpdateRegistryCredentialNamespacesCommand updateRegistryCredentialNamespacesCommand = ; // UpdateRegistryCredentialNamespacesCommand | 

        try {
            Object result = apiInstance.registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUpdateNamespaces");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateRegistryCredentialNamespacesCommand updateRegistryCredentialNamespacesCommand = new UpdateRegistryCredentialNamespacesCommand(); // UpdateRegistryCredentialNamespacesCommand | 

try {
    final result = await api_instance.registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->registryCredentialsUpdateNamespaces: $e\n');
}

import org.openapitools.client.api.RegistryCredentialApi;

public class RegistryCredentialApiExample {
    public static void main(String[] args) {
        RegistryCredentialApi apiInstance = new RegistryCredentialApi();
        UpdateRegistryCredentialNamespacesCommand updateRegistryCredentialNamespacesCommand = ; // UpdateRegistryCredentialNamespacesCommand | 

        try {
            Object result = apiInstance.registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RegistryCredentialApi#registryCredentialsUpdateNamespaces");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RegistryCredentialApi *apiInstance = [[RegistryCredentialApi alloc] init];
UpdateRegistryCredentialNamespacesCommand *updateRegistryCredentialNamespacesCommand = ; //  (optional)

// Replace the target namespaces of a registry credential assignment
[apiInstance registryCredentialsUpdateNamespacesWith:updateRegistryCredentialNamespacesCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RegistryCredentialApi()
var opts = {
  'updateRegistryCredentialNamespacesCommand':  // {UpdateRegistryCredentialNamespacesCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.registryCredentialsUpdateNamespaces(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class registryCredentialsUpdateNamespacesExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RegistryCredentialApi();
            var updateRegistryCredentialNamespacesCommand = new UpdateRegistryCredentialNamespacesCommand(); // UpdateRegistryCredentialNamespacesCommand |  (optional) 

            try {
                // Replace the target namespaces of a registry credential assignment
                Object result = apiInstance.registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RegistryCredentialApi.registryCredentialsUpdateNamespaces: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RegistryCredentialApi();
$updateRegistryCredentialNamespacesCommand = ; // UpdateRegistryCredentialNamespacesCommand | 

try {
    $result = $api_instance->registryCredentialsUpdateNamespaces($updateRegistryCredentialNamespacesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RegistryCredentialApi->registryCredentialsUpdateNamespaces: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RegistryCredentialApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RegistryCredentialApi->new();
my $updateRegistryCredentialNamespacesCommand = WWW::OPenAPIClient::Object::UpdateRegistryCredentialNamespacesCommand->new(); # UpdateRegistryCredentialNamespacesCommand | 

eval {
    my $result = $api_instance->registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand => $updateRegistryCredentialNamespacesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RegistryCredentialApi->registryCredentialsUpdateNamespaces: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RegistryCredentialApi()
updateRegistryCredentialNamespacesCommand =  # UpdateRegistryCredentialNamespacesCommand |  (optional)

try:
    # Replace the target namespaces of a registry credential assignment
    api_response = api_instance.registry_credentials_update_namespaces(updateRegistryCredentialNamespacesCommand=updateRegistryCredentialNamespacesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RegistryCredentialApi->registryCredentialsUpdateNamespaces: %s\n" % e)
extern crate RegistryCredentialApi;

pub fn main() {
    let updateRegistryCredentialNamespacesCommand = ; // UpdateRegistryCredentialNamespacesCommand

    let mut context = RegistryCredentialApi::Context::default();
    let result = client.registryCredentialsUpdateNamespaces(updateRegistryCredentialNamespacesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateRegistryCredentialNamespacesCommand

Responses


Robot

robotChecker

Dry run robot user create


/api/v1/robot/checker

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/checker" \
 -d '{
  "organizationId" : 6,
  "name" : "name",
  "description" : "description",
  "domainId" : 0,
  "expiresAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        CheckerRobotCommand checkerRobotCommand = ; // CheckerRobotCommand | 

        try {
            Object result = apiInstance.robotChecker(checkerRobotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotChecker");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckerRobotCommand checkerRobotCommand = new CheckerRobotCommand(); // CheckerRobotCommand | 

try {
    final result = await api_instance.robotChecker(checkerRobotCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotChecker: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        CheckerRobotCommand checkerRobotCommand = ; // CheckerRobotCommand | 

        try {
            Object result = apiInstance.robotChecker(checkerRobotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotChecker");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
CheckerRobotCommand *checkerRobotCommand = ; //  (optional)

// Dry run robot user create
[apiInstance robotCheckerWith:checkerRobotCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'checkerRobotCommand':  // {CheckerRobotCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotChecker(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotCheckerExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var checkerRobotCommand = new CheckerRobotCommand(); // CheckerRobotCommand |  (optional) 

            try {
                // Dry run robot user create
                Object result = apiInstance.robotChecker(checkerRobotCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotChecker: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$checkerRobotCommand = ; // CheckerRobotCommand | 

try {
    $result = $api_instance->robotChecker($checkerRobotCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotChecker: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $checkerRobotCommand = WWW::OPenAPIClient::Object::CheckerRobotCommand->new(); # CheckerRobotCommand | 

eval {
    my $result = $api_instance->robotChecker(checkerRobotCommand => $checkerRobotCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotChecker: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
checkerRobotCommand =  # CheckerRobotCommand |  (optional)

try:
    # Dry run robot user create
    api_response = api_instance.robot_checker(checkerRobotCommand=checkerRobotCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotChecker: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let checkerRobotCommand = ; // CheckerRobotCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotChecker(checkerRobotCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkerRobotCommand

Responses


robotCreate

Add new robot user


/api/v1/robot/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/create" \
 -d '{
  "organizationId" : 6,
  "name" : "name",
  "description" : "description",
  "scopes" : [ "scopes", "scopes" ],
  "ips" : [ "ips", "ips" ],
  "domainId" : 0,
  "expiresAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        CreateRobotUserCommand createRobotUserCommand = ; // CreateRobotUserCommand | 

        try {
            CreateRobotUserResponse result = apiInstance.robotCreate(createRobotUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateRobotUserCommand createRobotUserCommand = new CreateRobotUserCommand(); // CreateRobotUserCommand | 

try {
    final result = await api_instance.robotCreate(createRobotUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotCreate: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        CreateRobotUserCommand createRobotUserCommand = ; // CreateRobotUserCommand | 

        try {
            CreateRobotUserResponse result = apiInstance.robotCreate(createRobotUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
CreateRobotUserCommand *createRobotUserCommand = ; //  (optional)

// Add new robot user
[apiInstance robotCreateWith:createRobotUserCommand
              completionHandler: ^(CreateRobotUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'createRobotUserCommand':  // {CreateRobotUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var createRobotUserCommand = new CreateRobotUserCommand(); // CreateRobotUserCommand |  (optional) 

            try {
                // Add new robot user
                CreateRobotUserResponse result = apiInstance.robotCreate(createRobotUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$createRobotUserCommand = ; // CreateRobotUserCommand | 

try {
    $result = $api_instance->robotCreate($createRobotUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $createRobotUserCommand = WWW::OPenAPIClient::Object::CreateRobotUserCommand->new(); # CreateRobotUserCommand | 

eval {
    my $result = $api_instance->robotCreate(createRobotUserCommand => $createRobotUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
createRobotUserCommand =  # CreateRobotUserCommand |  (optional)

try:
    # Add new robot user
    api_response = api_instance.robot_create(createRobotUserCommand=createRobotUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotCreate: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let createRobotUserCommand = ; // CreateRobotUserCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotCreate(createRobotUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createRobotUserCommand

Responses


robotDelete

Delete robot user


/api/v1/robot/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/robot/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        String id = id_example; // String | 

        try {
            Object result = apiInstance.robotDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | 

try {
    final result = await api_instance.robotDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotDelete: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        String id = id_example; // String | 

        try {
            Object result = apiInstance.robotDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
String *id = id_example; //  (default to null)

// Delete robot user
[apiInstance robotDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var id = id_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var id = id_example;  // String |  (default to null)

            try {
                // Delete robot user
                Object result = apiInstance.robotDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$id = id_example; // String | 

try {
    $result = $api_instance->robotDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $id = id_example; # String | 

eval {
    my $result = $api_instance->robotDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
id = id_example # String |  (default to null)

try:
    # Delete robot user
    api_response = api_instance.robot_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotDelete: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let id = id_example; // String

    let mut context = RobotApi::Context::default();
    let result = client.robotDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
String
Required

Responses


robotDetails

Retrieve robot user info


/api/v1/robot/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/robot/details"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();

        try {
            RobotUsersListDto result = apiInstance.robotDetails();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.robotDetails();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotDetails: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();

        try {
            RobotUsersListDto result = apiInstance.robotDetails();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];

// Retrieve robot user info
[apiInstance robotDetailsWithCompletionHandler: 
              ^(RobotUsersListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotDetails(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();

            try {
                // Retrieve robot user info
                RobotUsersListDto result = apiInstance.robotDetails();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();

try {
    $result = $api_instance->robotDetails();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();

eval {
    my $result = $api_instance->robotDetails();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()

try:
    # Retrieve robot user info
    api_response = api_instance.robot_details()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotDetails: %s\n" % e)
extern crate RobotApi;

pub fn main() {

    let mut context = RobotApi::Context::default();
    let result = client.robotDetails(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


robotGetDetails

Retrieve robot user details by ID


/api/v1/robot/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/robot/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        String id = id_example; // String | 

        try {
            RobotUsersListDto result = apiInstance.robotGetDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotGetDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | 

try {
    final result = await api_instance.robotGetDetails(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotGetDetails: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        String id = id_example; // String | 

        try {
            RobotUsersListDto result = apiInstance.robotGetDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotGetDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
String *id = id_example; //  (default to null)

// Retrieve robot user details by ID
[apiInstance robotGetDetailsWith:id
              completionHandler: ^(RobotUsersListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var id = id_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotGetDetails(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotGetDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var id = id_example;  // String |  (default to null)

            try {
                // Retrieve robot user details by ID
                RobotUsersListDto result = apiInstance.robotGetDetails(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotGetDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$id = id_example; // String | 

try {
    $result = $api_instance->robotGetDetails($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotGetDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $id = id_example; # String | 

eval {
    my $result = $api_instance->robotGetDetails(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotGetDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
id = id_example # String |  (default to null)

try:
    # Retrieve robot user details by ID
    api_response = api_instance.robot_get_details(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotGetDetails: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let id = id_example; // String

    let mut context = RobotApi::Context::default();
    let result = client.robotGetDetails(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
String
Required

Responses


robotList

Retrieve robot users


/api/v1/robot/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/robot/list?DomainId=56&OrganizationId=56&Search=search_example&SearchId=searchId_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter, 1-100 chars when provided
        String searchId = searchId_example; // String | Search by id substring
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Number of items to skip; defaults to 0

        try {
            RobotUsersList result = apiInstance.robotList(domainId, organizationId, search, searchId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | Optional domain id filter
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter, 1-100 chars when provided
final String searchId = new String(); // String | Search by id substring
final Integer limit = new Integer(); // Integer | Page size; defaults to 50
final Integer offset = new Integer(); // Integer | Number of items to skip; defaults to 0

try {
    final result = await api_instance.robotList(domainId, organizationId, search, searchId, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotList: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter, 1-100 chars when provided
        String searchId = searchId_example; // String | Search by id substring
        Integer limit = 56; // Integer | Page size; defaults to 50
        Integer offset = 56; // Integer | Number of items to skip; defaults to 0

        try {
            RobotUsersList result = apiInstance.robotList(domainId, organizationId, search, searchId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter, 1-100 chars when provided (optional) (default to null)
String *searchId = searchId_example; // Search by id substring (optional) (default to null)
Integer *limit = 56; // Page size; defaults to 50 (optional) (default to 50)
Integer *offset = 56; // Number of items to skip; defaults to 0 (optional) (default to 0)

// Retrieve robot users
[apiInstance robotListWith:domainId
    organizationId:organizationId
    search:search
    searchId:searchId
    limit:limit
    offset:offset
              completionHandler: ^(RobotUsersList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'domainId': 56, // {Integer} Optional domain id filter
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example, // {String} Free-text search filter, 1-100 chars when provided
  'searchId': searchId_example, // {String} Search by id substring
  'limit': 56, // {Integer} Page size; defaults to 50
  'offset': 56 // {Integer} Number of items to skip; defaults to 0
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter, 1-100 chars when provided (optional)  (default to null)
            var searchId = searchId_example;  // String | Search by id substring (optional)  (default to null)
            var limit = 56;  // Integer | Page size; defaults to 50 (optional)  (default to 50)
            var offset = 56;  // Integer | Number of items to skip; defaults to 0 (optional)  (default to 0)

            try {
                // Retrieve robot users
                RobotUsersList result = apiInstance.robotList(domainId, organizationId, search, searchId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$domainId = 56; // Integer | Optional domain id filter
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter, 1-100 chars when provided
$searchId = searchId_example; // String | Search by id substring
$limit = 56; // Integer | Page size; defaults to 50
$offset = 56; // Integer | Number of items to skip; defaults to 0

try {
    $result = $api_instance->robotList($domainId, $organizationId, $search, $searchId, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $domainId = 56; # Integer | Optional domain id filter
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter, 1-100 chars when provided
my $searchId = searchId_example; # String | Search by id substring
my $limit = 56; # Integer | Page size; defaults to 50
my $offset = 56; # Integer | Number of items to skip; defaults to 0

eval {
    my $result = $api_instance->robotList(domainId => $domainId, organizationId => $organizationId, search => $search, searchId => $searchId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter, 1-100 chars when provided (optional) (default to null)
searchId = searchId_example # String | Search by id substring (optional) (default to null)
limit = 56 # Integer | Page size; defaults to 50 (optional) (default to 50)
offset = 56 # Integer | Number of items to skip; defaults to 0 (optional) (default to 0)

try:
    # Retrieve robot users
    api_response = api_instance.robot_list(domainId=domainId, organizationId=organizationId, search=search, searchId=searchId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotList: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let domainId = 56; // Integer
    let organizationId = 56; // Integer
    let search = search_example; // String
    let searchId = searchId_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = RobotApi::Context::default();
    let result = client.robotList(domainId, organizationId, search, searchId, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
DomainId
Integer (int32)
Optional domain id filter
OrganizationId
Integer (int32)
Optional organization id filter
Search
SearchId
String
Search by id substring
Limit
Integer (int32)
Page size; defaults to 50
Offset
Integer (int32)
Number of items to skip; defaults to 0

Responses


robotRegenerate

Regenerate new token credentials for robot user


/api/v1/robot/regenerate

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/regenerate" \
 -d '{
  "id" : "id",
  "expiresAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        RegenerateRobotTokenCommand regenerateRobotTokenCommand = ; // RegenerateRobotTokenCommand | 

        try {
            CreateRobotUserResponse result = apiInstance.robotRegenerate(regenerateRobotTokenCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotRegenerate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RegenerateRobotTokenCommand regenerateRobotTokenCommand = new RegenerateRobotTokenCommand(); // RegenerateRobotTokenCommand | 

try {
    final result = await api_instance.robotRegenerate(regenerateRobotTokenCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotRegenerate: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        RegenerateRobotTokenCommand regenerateRobotTokenCommand = ; // RegenerateRobotTokenCommand | 

        try {
            CreateRobotUserResponse result = apiInstance.robotRegenerate(regenerateRobotTokenCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotRegenerate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
RegenerateRobotTokenCommand *regenerateRobotTokenCommand = ; //  (optional)

// Regenerate new token credentials for robot user
[apiInstance robotRegenerateWith:regenerateRobotTokenCommand
              completionHandler: ^(CreateRobotUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'regenerateRobotTokenCommand':  // {RegenerateRobotTokenCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotRegenerate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotRegenerateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var regenerateRobotTokenCommand = new RegenerateRobotTokenCommand(); // RegenerateRobotTokenCommand |  (optional) 

            try {
                // Regenerate new token credentials for robot user
                CreateRobotUserResponse result = apiInstance.robotRegenerate(regenerateRobotTokenCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotRegenerate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$regenerateRobotTokenCommand = ; // RegenerateRobotTokenCommand | 

try {
    $result = $api_instance->robotRegenerate($regenerateRobotTokenCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotRegenerate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $regenerateRobotTokenCommand = WWW::OPenAPIClient::Object::RegenerateRobotTokenCommand->new(); # RegenerateRobotTokenCommand | 

eval {
    my $result = $api_instance->robotRegenerate(regenerateRobotTokenCommand => $regenerateRobotTokenCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotRegenerate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
regenerateRobotTokenCommand =  # RegenerateRobotTokenCommand |  (optional)

try:
    # Regenerate new token credentials for robot user
    api_response = api_instance.robot_regenerate(regenerateRobotTokenCommand=regenerateRobotTokenCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotRegenerate: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let regenerateRobotTokenCommand = ; // RegenerateRobotTokenCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotRegenerate(regenerateRobotTokenCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
regenerateRobotTokenCommand

Responses


robotScopeList

Retrieve available scope list flavors


/api/v1/robot/scope-list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/robot/scope-list?GlobalRobot=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        Boolean globalRobot = true; // Boolean | When true, list global-robot scopes; defaults to false

        try {
            array[RobotUserScopeData] result = apiInstance.robotScopeList(globalRobot);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotScopeList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Boolean globalRobot = new Boolean(); // Boolean | When true, list global-robot scopes; defaults to false

try {
    final result = await api_instance.robotScopeList(globalRobot);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotScopeList: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        Boolean globalRobot = true; // Boolean | When true, list global-robot scopes; defaults to false

        try {
            array[RobotUserScopeData] result = apiInstance.robotScopeList(globalRobot);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotScopeList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
Boolean *globalRobot = true; // When true, list global-robot scopes; defaults to false (optional) (default to false)

// Retrieve available scope list flavors
[apiInstance robotScopeListWith:globalRobot
              completionHandler: ^(array[RobotUserScopeData] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'globalRobot': true // {Boolean} When true, list global-robot scopes; defaults to false
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotScopeList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotScopeListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var globalRobot = true;  // Boolean | When true, list global-robot scopes; defaults to false (optional)  (default to false)

            try {
                // Retrieve available scope list flavors
                array[RobotUserScopeData] result = apiInstance.robotScopeList(globalRobot);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotScopeList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$globalRobot = true; // Boolean | When true, list global-robot scopes; defaults to false

try {
    $result = $api_instance->robotScopeList($globalRobot);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotScopeList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $globalRobot = true; # Boolean | When true, list global-robot scopes; defaults to false

eval {
    my $result = $api_instance->robotScopeList(globalRobot => $globalRobot);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotScopeList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
globalRobot = true # Boolean | When true, list global-robot scopes; defaults to false (optional) (default to false)

try:
    # Retrieve available scope list flavors
    api_response = api_instance.robot_scope_list(globalRobot=globalRobot)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotScopeList: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let globalRobot = true; // Boolean

    let mut context = RobotApi::Context::default();
    let result = client.robotScopeList(globalRobot, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
GlobalRobot
Boolean
When true, list global-robot scopes; defaults to false

Responses


robotStatus

Activate/Deactivate robot user


/api/v1/robot/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/status" \
 -d '{
  "mode" : "mode",
  "id" : "id"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        RobotUserStatusManagementCommand robotUserStatusManagementCommand = ; // RobotUserStatusManagementCommand | 

        try {
            Object result = apiInstance.robotStatus(robotUserStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RobotUserStatusManagementCommand robotUserStatusManagementCommand = new RobotUserStatusManagementCommand(); // RobotUserStatusManagementCommand | 

try {
    final result = await api_instance.robotStatus(robotUserStatusManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotStatus: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        RobotUserStatusManagementCommand robotUserStatusManagementCommand = ; // RobotUserStatusManagementCommand | 

        try {
            Object result = apiInstance.robotStatus(robotUserStatusManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
RobotUserStatusManagementCommand *robotUserStatusManagementCommand = ; //  (optional)

// Activate/Deactivate robot user
[apiInstance robotStatusWith:robotUserStatusManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'robotUserStatusManagementCommand':  // {RobotUserStatusManagementCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotStatus(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var robotUserStatusManagementCommand = new RobotUserStatusManagementCommand(); // RobotUserStatusManagementCommand |  (optional) 

            try {
                // Activate/Deactivate robot user
                Object result = apiInstance.robotStatus(robotUserStatusManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$robotUserStatusManagementCommand = ; // RobotUserStatusManagementCommand | 

try {
    $result = $api_instance->robotStatus($robotUserStatusManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $robotUserStatusManagementCommand = WWW::OPenAPIClient::Object::RobotUserStatusManagementCommand->new(); # RobotUserStatusManagementCommand | 

eval {
    my $result = $api_instance->robotStatus(robotUserStatusManagementCommand => $robotUserStatusManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
robotUserStatusManagementCommand =  # RobotUserStatusManagementCommand |  (optional)

try:
    # Activate/Deactivate robot user
    api_response = api_instance.robot_status(robotUserStatusManagementCommand=robotUserStatusManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotStatus: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let robotUserStatusManagementCommand = ; // RobotUserStatusManagementCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotStatus(robotUserStatusManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
robotUserStatusManagementCommand

Responses


robotUpdate

Update robot user's details


/api/v1/robot/update

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/update" \
 -d '{
  "organizationId" : 6,
  "name" : "name",
  "description" : "description",
  "id" : "id",
  "ips" : [ "ips", "ips" ],
  "domainId" : 0,
  "expiresAt" : "2000-01-23T04:56:07.000+00:00"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        EditRobotUserCommand editRobotUserCommand = ; // EditRobotUserCommand | 

        try {
            Object result = apiInstance.robotUpdate(editRobotUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditRobotUserCommand editRobotUserCommand = new EditRobotUserCommand(); // EditRobotUserCommand | 

try {
    final result = await api_instance.robotUpdate(editRobotUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotUpdate: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        EditRobotUserCommand editRobotUserCommand = ; // EditRobotUserCommand | 

        try {
            Object result = apiInstance.robotUpdate(editRobotUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
EditRobotUserCommand *editRobotUserCommand = ; //  (optional)

// Update robot user's details
[apiInstance robotUpdateWith:editRobotUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'editRobotUserCommand':  // {EditRobotUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var editRobotUserCommand = new EditRobotUserCommand(); // EditRobotUserCommand |  (optional) 

            try {
                // Update robot user's details
                Object result = apiInstance.robotUpdate(editRobotUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$editRobotUserCommand = ; // EditRobotUserCommand | 

try {
    $result = $api_instance->robotUpdate($editRobotUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $editRobotUserCommand = WWW::OPenAPIClient::Object::EditRobotUserCommand->new(); # EditRobotUserCommand | 

eval {
    my $result = $api_instance->robotUpdate(editRobotUserCommand => $editRobotUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
editRobotUserCommand =  # EditRobotUserCommand |  (optional)

try:
    # Update robot user's details
    api_response = api_instance.robot_update(editRobotUserCommand=editRobotUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotUpdate: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let editRobotUserCommand = ; // EditRobotUserCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotUpdate(editRobotUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editRobotUserCommand

Responses


robotUpdateScope

Update robot user's scope


/api/v1/robot/update-scope

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/robot/update-scope" \
 -d '{
  "id" : "id",
  "scopes" : [ "scopes", "scopes" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RobotApi;

import java.io.File;
import java.util.*;

public class RobotApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        RobotApi apiInstance = new RobotApi();
        UpdateRobotScopeCommand updateRobotScopeCommand = ; // UpdateRobotScopeCommand | 

        try {
            Object result = apiInstance.robotUpdateScope(updateRobotScopeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotUpdateScope");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateRobotScopeCommand updateRobotScopeCommand = new UpdateRobotScopeCommand(); // UpdateRobotScopeCommand | 

try {
    final result = await api_instance.robotUpdateScope(updateRobotScopeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->robotUpdateScope: $e\n');
}

import org.openapitools.client.api.RobotApi;

public class RobotApiExample {
    public static void main(String[] args) {
        RobotApi apiInstance = new RobotApi();
        UpdateRobotScopeCommand updateRobotScopeCommand = ; // UpdateRobotScopeCommand | 

        try {
            Object result = apiInstance.robotUpdateScope(updateRobotScopeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RobotApi#robotUpdateScope");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
RobotApi *apiInstance = [[RobotApi alloc] init];
UpdateRobotScopeCommand *updateRobotScopeCommand = ; //  (optional)

// Update robot user's scope
[apiInstance robotUpdateScopeWith:updateRobotScopeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.RobotApi()
var opts = {
  'updateRobotScopeCommand':  // {UpdateRobotScopeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.robotUpdateScope(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class robotUpdateScopeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new RobotApi();
            var updateRobotScopeCommand = new UpdateRobotScopeCommand(); // UpdateRobotScopeCommand |  (optional) 

            try {
                // Update robot user's scope
                Object result = apiInstance.robotUpdateScope(updateRobotScopeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RobotApi.robotUpdateScope: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RobotApi();
$updateRobotScopeCommand = ; // UpdateRobotScopeCommand | 

try {
    $result = $api_instance->robotUpdateScope($updateRobotScopeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling RobotApi->robotUpdateScope: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::RobotApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::RobotApi->new();
my $updateRobotScopeCommand = WWW::OPenAPIClient::Object::UpdateRobotScopeCommand->new(); # UpdateRobotScopeCommand | 

eval {
    my $result = $api_instance->robotUpdateScope(updateRobotScopeCommand => $updateRobotScopeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling RobotApi->robotUpdateScope: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.RobotApi()
updateRobotScopeCommand =  # UpdateRobotScopeCommand |  (optional)

try:
    # Update robot user's scope
    api_response = api_instance.robot_update_scope(updateRobotScopeCommand=updateRobotScopeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RobotApi->robotUpdateScope: %s\n" % e)
extern crate RobotApi;

pub fn main() {
    let updateRobotScopeCommand = ; // UpdateRobotScopeCommand

    let mut context = RobotApi::Context::default();
    let result = client.robotUpdateScope(updateRobotScopeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateRobotScopeCommand

Responses


S3Credentials

s3credentialsCreate

Add s3 credential


/api/v1/s3credentials

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/s3credentials" \
 -d '{
  "organizationId" : 0,
  "s3SecretKey" : "s3SecretKey",
  "s3Endpoint" : "s3Endpoint",
  "s3AccessKeyId" : "s3AccessKeyId",
  "s3Region" : "s3Region",
  "s3Name" : "s3Name"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupCredentialsCreateCommand backupCredentialsCreateCommand = ; // BackupCredentialsCreateCommand | 

        try {
            ApiResponse result = apiInstance.s3credentialsCreate(backupCredentialsCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BackupCredentialsCreateCommand backupCredentialsCreateCommand = new BackupCredentialsCreateCommand(); // BackupCredentialsCreateCommand | 

try {
    final result = await api_instance.s3credentialsCreate(backupCredentialsCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsCreate: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupCredentialsCreateCommand backupCredentialsCreateCommand = ; // BackupCredentialsCreateCommand | 

        try {
            ApiResponse result = apiInstance.s3credentialsCreate(backupCredentialsCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
BackupCredentialsCreateCommand *backupCredentialsCreateCommand = ; //  (optional)

// Add s3 credential
[apiInstance s3credentialsCreateWith:backupCredentialsCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'backupCredentialsCreateCommand':  // {BackupCredentialsCreateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var backupCredentialsCreateCommand = new BackupCredentialsCreateCommand(); // BackupCredentialsCreateCommand |  (optional) 

            try {
                // Add s3 credential
                ApiResponse result = apiInstance.s3credentialsCreate(backupCredentialsCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$backupCredentialsCreateCommand = ; // BackupCredentialsCreateCommand | 

try {
    $result = $api_instance->s3credentialsCreate($backupCredentialsCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $backupCredentialsCreateCommand = WWW::OPenAPIClient::Object::BackupCredentialsCreateCommand->new(); # BackupCredentialsCreateCommand | 

eval {
    my $result = $api_instance->s3credentialsCreate(backupCredentialsCreateCommand => $backupCredentialsCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
backupCredentialsCreateCommand =  # BackupCredentialsCreateCommand |  (optional)

try:
    # Add s3 credential
    api_response = api_instance.s3credentials_create(backupCredentialsCreateCommand=backupCredentialsCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsCreate: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let backupCredentialsCreateCommand = ; // BackupCredentialsCreateCommand

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsCreate(backupCredentialsCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
backupCredentialsCreateCommand

Responses


s3credentialsDelete

Delete s3 credential


/api/v1/s3credentials/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/s3credentials/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.s3credentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.s3credentialsDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsDelete: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.s3credentialsDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete s3 credential
[apiInstance s3credentialsDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete s3 credential
                Object result = apiInstance.s3credentialsDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->s3credentialsDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->s3credentialsDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
id = 56 # Integer |  (default to null)

try:
    # Delete s3 credential
    api_response = api_instance.s3credentials_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsDelete: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


s3credentialsDropdown

Retrieve all S3 credentials for organization


/api/v1/s3credentials

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/s3credentials?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[BackupCredentialsForOrganizationEntity] result = apiInstance.s3credentialsDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.s3credentialsDropdown(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsDropdown: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer organizationId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[BackupCredentialsForOrganizationEntity] result = apiInstance.s3credentialsDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)

// Retrieve all S3 credentials for organization
[apiInstance s3credentialsDropdownWith:organizationId
    search:search
              completionHandler: ^(array[BackupCredentialsForOrganizationEntity] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'search': search_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsDropdown(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // Retrieve all S3 credentials for organization
                array[BackupCredentialsForOrganizationEntity] result = apiInstance.s3credentialsDropdown(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$organizationId = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->s3credentialsDropdown($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $organizationId = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->s3credentialsDropdown(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
organizationId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # Retrieve all S3 credentials for organization
    api_response = api_instance.s3credentials_dropdown(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsDropdown: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsDropdown(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Search

Responses


s3credentialsList

Retrieve all S3 credentials


/api/v1/s3credentials/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/s3credentials/list?OrganizationId=56&DomainId=56&Search=search_example&SearchId=searchId_example&Id=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Limit=56&Offset=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            BackupCredentials result = apiInstance.s3credentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer domainId = new Integer(); // Integer | 
final String search = new String(); // String | 
final String searchId = new String(); // String | 
final Integer id = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 

try {
    final result = await api_instance.s3credentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsList: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        Integer organizationId = 56; // Integer | 
        Integer domainId = 56; // Integer | 
        String search = search_example; // String | 
        String searchId = searchId_example; // String | 
        Integer id = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 

        try {
            BackupCredentials result = apiInstance.s3credentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *domainId = 56; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
String *searchId = searchId_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to 50)
Integer *offset = 56; //  (optional) (default to 0)

// Retrieve all S3 credentials
[apiInstance s3credentialsListWith:organizationId
    domainId:domainId
    search:search
    searchId:searchId
    id:id
    sortBy:sortBy
    sortDirection:sortDirection
    limit:limit
    offset:offset
              completionHandler: ^(BackupCredentials output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'domainId': 56, // {Integer} 
  'search': search_example, // {String} 
  'searchId': searchId_example, // {String} 
  'id': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'limit': 56, // {Integer} 
  'offset': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var searchId = searchId_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to 50)
            var offset = 56;  // Integer |  (optional)  (default to 0)

            try {
                // Retrieve all S3 credentials
                BackupCredentials result = apiInstance.s3credentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$organizationId = 56; // Integer | 
$domainId = 56; // Integer | 
$search = search_example; // String | 
$searchId = searchId_example; // String | 
$id = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 

try {
    $result = $api_instance->s3credentialsList($organizationId, $domainId, $search, $searchId, $id, $sortBy, $sortDirection, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $organizationId = 56; # Integer | 
my $domainId = 56; # Integer | 
my $search = search_example; # String | 
my $searchId = searchId_example; # String | 
my $id = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 

eval {
    my $result = $api_instance->s3credentialsList(organizationId => $organizationId, domainId => $domainId, search => $search, searchId => $searchId, id => $id, sortBy => $sortBy, sortDirection => $sortDirection, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
organizationId = 56 # Integer |  (optional) (default to null)
domainId = 56 # Integer |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
searchId = searchId_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to 50)
offset = 56 # Integer |  (optional) (default to 0)

try:
    # Retrieve all S3 credentials
    api_response = api_instance.s3credentials_list(organizationId=organizationId, domainId=domainId, search=search, searchId=searchId, id=id, sortBy=sortBy, sortDirection=sortDirection, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsList: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let limit = 56; // Integer
    let offset = 56; // Integer

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsList(organizationId, domainId, search, searchId, id, sortBy, sortDirection, limit, offset, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
DomainId
Integer (int32)
Search
SearchId
String
Id
Integer (int32)
SortBy
String
SortDirection
String
Limit
Integer (int32)
Offset
Integer (int32)

Responses


s3credentialsLockManagement

Lock/unlock s3 credential


/api/v1/s3credentials/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/s3credentials/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupLockManagerCommand backupLockManagerCommand = ; // BackupLockManagerCommand | 

        try {
            Object result = apiInstance.s3credentialsLockManagement(backupLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsLockManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BackupLockManagerCommand backupLockManagerCommand = new BackupLockManagerCommand(); // BackupLockManagerCommand | 

try {
    final result = await api_instance.s3credentialsLockManagement(backupLockManagerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsLockManagement: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupLockManagerCommand backupLockManagerCommand = ; // BackupLockManagerCommand | 

        try {
            Object result = apiInstance.s3credentialsLockManagement(backupLockManagerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsLockManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
BackupLockManagerCommand *backupLockManagerCommand = ; //  (optional)

// Lock/unlock s3 credential
[apiInstance s3credentialsLockManagementWith:backupLockManagerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'backupLockManagerCommand':  // {BackupLockManagerCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsLockManagement(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsLockManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var backupLockManagerCommand = new BackupLockManagerCommand(); // BackupLockManagerCommand |  (optional) 

            try {
                // Lock/unlock s3 credential
                Object result = apiInstance.s3credentialsLockManagement(backupLockManagerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsLockManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$backupLockManagerCommand = ; // BackupLockManagerCommand | 

try {
    $result = $api_instance->s3credentialsLockManagement($backupLockManagerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsLockManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $backupLockManagerCommand = WWW::OPenAPIClient::Object::BackupLockManagerCommand->new(); # BackupLockManagerCommand | 

eval {
    my $result = $api_instance->s3credentialsLockManagement(backupLockManagerCommand => $backupLockManagerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsLockManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
backupLockManagerCommand =  # BackupLockManagerCommand |  (optional)

try:
    # Lock/unlock s3 credential
    api_response = api_instance.s3credentials_lock_management(backupLockManagerCommand=backupLockManagerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsLockManagement: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let backupLockManagerCommand = ; // BackupLockManagerCommand

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsLockManagement(backupLockManagerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
backupLockManagerCommand

Responses


s3credentialsMakeDefault

Make default s3 credential


/api/v1/s3credentials/makedefault

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/s3credentials/makedefault" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupMakeDefaultCommand backupMakeDefaultCommand = ; // BackupMakeDefaultCommand | 

        try {
            Object result = apiInstance.s3credentialsMakeDefault(backupMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BackupMakeDefaultCommand backupMakeDefaultCommand = new BackupMakeDefaultCommand(); // BackupMakeDefaultCommand | 

try {
    final result = await api_instance.s3credentialsMakeDefault(backupMakeDefaultCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsMakeDefault: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupMakeDefaultCommand backupMakeDefaultCommand = ; // BackupMakeDefaultCommand | 

        try {
            Object result = apiInstance.s3credentialsMakeDefault(backupMakeDefaultCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsMakeDefault");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
BackupMakeDefaultCommand *backupMakeDefaultCommand = ; //  (optional)

// Make default s3 credential
[apiInstance s3credentialsMakeDefaultWith:backupMakeDefaultCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'backupMakeDefaultCommand':  // {BackupMakeDefaultCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsMakeDefault(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsMakeDefaultExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var backupMakeDefaultCommand = new BackupMakeDefaultCommand(); // BackupMakeDefaultCommand |  (optional) 

            try {
                // Make default s3 credential
                Object result = apiInstance.s3credentialsMakeDefault(backupMakeDefaultCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsMakeDefault: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$backupMakeDefaultCommand = ; // BackupMakeDefaultCommand | 

try {
    $result = $api_instance->s3credentialsMakeDefault($backupMakeDefaultCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsMakeDefault: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $backupMakeDefaultCommand = WWW::OPenAPIClient::Object::BackupMakeDefaultCommand->new(); # BackupMakeDefaultCommand | 

eval {
    my $result = $api_instance->s3credentialsMakeDefault(backupMakeDefaultCommand => $backupMakeDefaultCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsMakeDefault: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
backupMakeDefaultCommand =  # BackupMakeDefaultCommand |  (optional)

try:
    # Make default s3 credential
    api_response = api_instance.s3credentials_make_default(backupMakeDefaultCommand=backupMakeDefaultCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsMakeDefault: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let backupMakeDefaultCommand = ; // BackupMakeDefaultCommand

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsMakeDefault(backupMakeDefaultCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
backupMakeDefaultCommand

Responses


s3credentialsUpdate

Update s3 credential


/api/v1/s3credentials

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/s3credentials" \
 -d '{
  "s3SecretKey" : "s3SecretKey",
  "s3AccessKeyId" : "s3AccessKeyId",
  "id" : 0,
  "s3Name" : "s3Name"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.S3CredentialsApi;

import java.io.File;
import java.util.*;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupCredentialsUpdateCommand backupCredentialsUpdateCommand = ; // BackupCredentialsUpdateCommand | 

        try {
            Object result = apiInstance.s3credentialsUpdate(backupCredentialsUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final BackupCredentialsUpdateCommand backupCredentialsUpdateCommand = new BackupCredentialsUpdateCommand(); // BackupCredentialsUpdateCommand | 

try {
    final result = await api_instance.s3credentialsUpdate(backupCredentialsUpdateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->s3credentialsUpdate: $e\n');
}

import org.openapitools.client.api.S3CredentialsApi;

public class S3CredentialsApiExample {
    public static void main(String[] args) {
        S3CredentialsApi apiInstance = new S3CredentialsApi();
        BackupCredentialsUpdateCommand backupCredentialsUpdateCommand = ; // BackupCredentialsUpdateCommand | 

        try {
            Object result = apiInstance.s3credentialsUpdate(backupCredentialsUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling S3CredentialsApi#s3credentialsUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
S3CredentialsApi *apiInstance = [[S3CredentialsApi alloc] init];
BackupCredentialsUpdateCommand *backupCredentialsUpdateCommand = ; //  (optional)

// Update s3 credential
[apiInstance s3credentialsUpdateWith:backupCredentialsUpdateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.S3CredentialsApi()
var opts = {
  'backupCredentialsUpdateCommand':  // {BackupCredentialsUpdateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.s3credentialsUpdate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class s3credentialsUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new S3CredentialsApi();
            var backupCredentialsUpdateCommand = new BackupCredentialsUpdateCommand(); // BackupCredentialsUpdateCommand |  (optional) 

            try {
                // Update s3 credential
                Object result = apiInstance.s3credentialsUpdate(backupCredentialsUpdateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling S3CredentialsApi.s3credentialsUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\S3CredentialsApi();
$backupCredentialsUpdateCommand = ; // BackupCredentialsUpdateCommand | 

try {
    $result = $api_instance->s3credentialsUpdate($backupCredentialsUpdateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling S3CredentialsApi->s3credentialsUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::S3CredentialsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::S3CredentialsApi->new();
my $backupCredentialsUpdateCommand = WWW::OPenAPIClient::Object::BackupCredentialsUpdateCommand->new(); # BackupCredentialsUpdateCommand | 

eval {
    my $result = $api_instance->s3credentialsUpdate(backupCredentialsUpdateCommand => $backupCredentialsUpdateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling S3CredentialsApi->s3credentialsUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.S3CredentialsApi()
backupCredentialsUpdateCommand =  # BackupCredentialsUpdateCommand |  (optional)

try:
    # Update s3 credential
    api_response = api_instance.s3credentials_update(backupCredentialsUpdateCommand=backupCredentialsUpdateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling S3CredentialsApi->s3credentialsUpdate: %s\n" % e)
extern crate S3CredentialsApi;

pub fn main() {
    let backupCredentialsUpdateCommand = ; // BackupCredentialsUpdateCommand

    let mut context = S3CredentialsApi::Context::default();
    let result = client.s3credentialsUpdate(backupCredentialsUpdateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
backupCredentialsUpdateCommand

Responses


SecurityGroup

securitygroupCreate

Create standalone profile security group


/api/v1/securitygroup/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/securitygroup/create" \
 -d '{
  "protocol" : "",
  "name" : "name",
  "standAloneProfileId" : 1,
  "portMinRange" : 0,
  "portMaxRange" : 6,
  "remoteIpPrefix" : "remoteIpPrefix"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SecurityGroupApi;

import java.io.File;
import java.util.*;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        CreateSecurityGroupCommand createSecurityGroupCommand = ; // CreateSecurityGroupCommand | 

        try {
            ApiResponse result = apiInstance.securitygroupCreate(createSecurityGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateSecurityGroupCommand createSecurityGroupCommand = new CreateSecurityGroupCommand(); // CreateSecurityGroupCommand | 

try {
    final result = await api_instance.securitygroupCreate(createSecurityGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->securitygroupCreate: $e\n');
}

import org.openapitools.client.api.SecurityGroupApi;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        CreateSecurityGroupCommand createSecurityGroupCommand = ; // CreateSecurityGroupCommand | 

        try {
            ApiResponse result = apiInstance.securitygroupCreate(createSecurityGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SecurityGroupApi *apiInstance = [[SecurityGroupApi alloc] init];
CreateSecurityGroupCommand *createSecurityGroupCommand = ; //  (optional)

// Create standalone profile security group
[apiInstance securitygroupCreateWith:createSecurityGroupCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SecurityGroupApi()
var opts = {
  'createSecurityGroupCommand':  // {CreateSecurityGroupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.securitygroupCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class securitygroupCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SecurityGroupApi();
            var createSecurityGroupCommand = new CreateSecurityGroupCommand(); // CreateSecurityGroupCommand |  (optional) 

            try {
                // Create standalone profile security group
                ApiResponse result = apiInstance.securitygroupCreate(createSecurityGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SecurityGroupApi.securitygroupCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SecurityGroupApi();
$createSecurityGroupCommand = ; // CreateSecurityGroupCommand | 

try {
    $result = $api_instance->securitygroupCreate($createSecurityGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityGroupApi->securitygroupCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SecurityGroupApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SecurityGroupApi->new();
my $createSecurityGroupCommand = WWW::OPenAPIClient::Object::CreateSecurityGroupCommand->new(); # CreateSecurityGroupCommand | 

eval {
    my $result = $api_instance->securitygroupCreate(createSecurityGroupCommand => $createSecurityGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityGroupApi->securitygroupCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SecurityGroupApi()
createSecurityGroupCommand =  # CreateSecurityGroupCommand |  (optional)

try:
    # Create standalone profile security group
    api_response = api_instance.securitygroup_create(createSecurityGroupCommand=createSecurityGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityGroupApi->securitygroupCreate: %s\n" % e)
extern crate SecurityGroupApi;

pub fn main() {
    let createSecurityGroupCommand = ; // CreateSecurityGroupCommand

    let mut context = SecurityGroupApi::Context::default();
    let result = client.securitygroupCreate(createSecurityGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createSecurityGroupCommand

Responses


securitygroupDelete

Delete standalone profile security group


/api/v1/securitygroup/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/securitygroup/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SecurityGroupApi;

import java.io.File;
import java.util.*;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.securitygroupDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.securitygroupDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->securitygroupDelete: $e\n');
}

import org.openapitools.client.api.SecurityGroupApi;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.securitygroupDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SecurityGroupApi *apiInstance = [[SecurityGroupApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete standalone profile security group
[apiInstance securitygroupDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SecurityGroupApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.securitygroupDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class securitygroupDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SecurityGroupApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete standalone profile security group
                Object result = apiInstance.securitygroupDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SecurityGroupApi.securitygroupDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SecurityGroupApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->securitygroupDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityGroupApi->securitygroupDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SecurityGroupApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SecurityGroupApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->securitygroupDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityGroupApi->securitygroupDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SecurityGroupApi()
id = 56 # Integer |  (default to null)

try:
    # Delete standalone profile security group
    api_response = api_instance.securitygroup_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityGroupApi->securitygroupDelete: %s\n" % e)
extern crate SecurityGroupApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = SecurityGroupApi::Context::default();
    let result = client.securitygroupDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


securitygroupEdit

Edit standalone profile security group


/api/v1/securitygroup/edit

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/securitygroup/edit" \
 -d '{
  "protocol" : "protocol",
  "name" : "name",
  "id" : 0,
  "portMinRange" : 6,
  "portMaxRange" : 1,
  "remoteIpPrefix" : "remoteIpPrefix"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SecurityGroupApi;

import java.io.File;
import java.util.*;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        EditSecurityGroupCommand editSecurityGroupCommand = ; // EditSecurityGroupCommand | 

        try {
            Object result = apiInstance.securitygroupEdit(editSecurityGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditSecurityGroupCommand editSecurityGroupCommand = new EditSecurityGroupCommand(); // EditSecurityGroupCommand | 

try {
    final result = await api_instance.securitygroupEdit(editSecurityGroupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->securitygroupEdit: $e\n');
}

import org.openapitools.client.api.SecurityGroupApi;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        EditSecurityGroupCommand editSecurityGroupCommand = ; // EditSecurityGroupCommand | 

        try {
            Object result = apiInstance.securitygroupEdit(editSecurityGroupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SecurityGroupApi *apiInstance = [[SecurityGroupApi alloc] init];
EditSecurityGroupCommand *editSecurityGroupCommand = ; //  (optional)

// Edit standalone profile security group
[apiInstance securitygroupEditWith:editSecurityGroupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SecurityGroupApi()
var opts = {
  'editSecurityGroupCommand':  // {EditSecurityGroupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.securitygroupEdit(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class securitygroupEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SecurityGroupApi();
            var editSecurityGroupCommand = new EditSecurityGroupCommand(); // EditSecurityGroupCommand |  (optional) 

            try {
                // Edit standalone profile security group
                Object result = apiInstance.securitygroupEdit(editSecurityGroupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SecurityGroupApi.securitygroupEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SecurityGroupApi();
$editSecurityGroupCommand = ; // EditSecurityGroupCommand | 

try {
    $result = $api_instance->securitygroupEdit($editSecurityGroupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityGroupApi->securitygroupEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SecurityGroupApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SecurityGroupApi->new();
my $editSecurityGroupCommand = WWW::OPenAPIClient::Object::EditSecurityGroupCommand->new(); # EditSecurityGroupCommand | 

eval {
    my $result = $api_instance->securitygroupEdit(editSecurityGroupCommand => $editSecurityGroupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityGroupApi->securitygroupEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SecurityGroupApi()
editSecurityGroupCommand =  # EditSecurityGroupCommand |  (optional)

try:
    # Edit standalone profile security group
    api_response = api_instance.securitygroup_edit(editSecurityGroupCommand=editSecurityGroupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityGroupApi->securitygroupEdit: %s\n" % e)
extern crate SecurityGroupApi;

pub fn main() {
    let editSecurityGroupCommand = ; // EditSecurityGroupCommand

    let mut context = SecurityGroupApi::Context::default();
    let result = client.securitygroupEdit(editSecurityGroupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editSecurityGroupCommand

Responses


securitygroupList

List stand alone security group by profile id


/api/v1/securitygroup/list/{standAloneProfileId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/securitygroup/list/{standAloneProfileId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SecurityGroupApi;

import java.io.File;
import java.util.*;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        Integer standAloneProfileId = 56; // Integer | Standalone profile id whose security groups to list

        try {
            array[SecurityGroupListDto] result = apiInstance.securitygroupList(standAloneProfileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer standAloneProfileId = new Integer(); // Integer | Standalone profile id whose security groups to list

try {
    final result = await api_instance.securitygroupList(standAloneProfileId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->securitygroupList: $e\n');
}

import org.openapitools.client.api.SecurityGroupApi;

public class SecurityGroupApiExample {
    public static void main(String[] args) {
        SecurityGroupApi apiInstance = new SecurityGroupApi();
        Integer standAloneProfileId = 56; // Integer | Standalone profile id whose security groups to list

        try {
            array[SecurityGroupListDto] result = apiInstance.securitygroupList(standAloneProfileId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SecurityGroupApi#securitygroupList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SecurityGroupApi *apiInstance = [[SecurityGroupApi alloc] init];
Integer *standAloneProfileId = 56; // Standalone profile id whose security groups to list (default to null)

// List stand alone security group by profile id
[apiInstance securitygroupListWith:standAloneProfileId
              completionHandler: ^(array[SecurityGroupListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SecurityGroupApi()
var standAloneProfileId = 56; // {Integer} Standalone profile id whose security groups to list

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.securitygroupList(standAloneProfileId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class securitygroupListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SecurityGroupApi();
            var standAloneProfileId = 56;  // Integer | Standalone profile id whose security groups to list (default to null)

            try {
                // List stand alone security group by profile id
                array[SecurityGroupListDto] result = apiInstance.securitygroupList(standAloneProfileId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SecurityGroupApi.securitygroupList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SecurityGroupApi();
$standAloneProfileId = 56; // Integer | Standalone profile id whose security groups to list

try {
    $result = $api_instance->securitygroupList($standAloneProfileId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SecurityGroupApi->securitygroupList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SecurityGroupApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SecurityGroupApi->new();
my $standAloneProfileId = 56; # Integer | Standalone profile id whose security groups to list

eval {
    my $result = $api_instance->securitygroupList(standAloneProfileId => $standAloneProfileId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SecurityGroupApi->securitygroupList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SecurityGroupApi()
standAloneProfileId = 56 # Integer | Standalone profile id whose security groups to list (default to null)

try:
    # List stand alone security group by profile id
    api_response = api_instance.securitygroup_list(standAloneProfileId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SecurityGroupApi->securitygroupList: %s\n" % e)
extern crate SecurityGroupApi;

pub fn main() {
    let standAloneProfileId = 56; // Integer

    let mut context = SecurityGroupApi::Context::default();
    let result = client.securitygroupList(standAloneProfileId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
standAloneProfileId*
Integer (int32)
Standalone profile id whose security groups to list
Required

Responses


Servers

serversConsole

Console screenshot or terminal access for server

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/servers/console

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/console" \
 -d '{
  "serverId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        ConsoleScreenshotCommand consoleScreenshotCommand = ; // ConsoleScreenshotCommand | 

        try {
            'String' result = apiInstance.serversConsole(consoleScreenshotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversConsole");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConsoleScreenshotCommand consoleScreenshotCommand = new ConsoleScreenshotCommand(); // ConsoleScreenshotCommand | 

try {
    final result = await api_instance.serversConsole(consoleScreenshotCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversConsole: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        ConsoleScreenshotCommand consoleScreenshotCommand = ; // ConsoleScreenshotCommand | 

        try {
            'String' result = apiInstance.serversConsole(consoleScreenshotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversConsole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
ConsoleScreenshotCommand *consoleScreenshotCommand = ; //  (optional)

// Console screenshot or terminal access for server
[apiInstance serversConsoleWith:consoleScreenshotCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'consoleScreenshotCommand':  // {ConsoleScreenshotCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversConsole(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversConsoleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var consoleScreenshotCommand = new ConsoleScreenshotCommand(); // ConsoleScreenshotCommand |  (optional) 

            try {
                // Console screenshot or terminal access for server
                'String' result = apiInstance.serversConsole(consoleScreenshotCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversConsole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$consoleScreenshotCommand = ; // ConsoleScreenshotCommand | 

try {
    $result = $api_instance->serversConsole($consoleScreenshotCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversConsole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $consoleScreenshotCommand = WWW::OPenAPIClient::Object::ConsoleScreenshotCommand->new(); # ConsoleScreenshotCommand | 

eval {
    my $result = $api_instance->serversConsole(consoleScreenshotCommand => $consoleScreenshotCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversConsole: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
consoleScreenshotCommand =  # ConsoleScreenshotCommand |  (optional)

try:
    # Console screenshot or terminal access for server
    api_response = api_instance.servers_console(consoleScreenshotCommand=consoleScreenshotCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversConsole: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let consoleScreenshotCommand = ; // ConsoleScreenshotCommand

    let mut context = ServersApi::Context::default();
    let result = client.serversConsole(consoleScreenshotCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
consoleScreenshotCommand

Responses


serversCreate

Create a new server in the given project.


/api/v1/servers/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/create" \
 -d '{
  "subnetId" : "subnetId",
  "role" : "",
  "spotPrice" : 5.962133916683182,
  "count" : 1,
  "availabilityZone" : "availabilityZone",
  "cskVersion" : "cskVersion",
  "flavor" : "flavor",
  "spotInstance" : true,
  "autoscalingGroup" : "autoscalingGroup",
  "diskSize" : 6,
  "replicaCount" : 5,
  "name" : "name",
  "useLocalDisk" : true,
  "kubernetesNodeLabels" : [ {
    "value" : "value",
    "key" : "key"
  }, {
    "value" : "value",
    "key" : "key"
  } ],
  "kubernetesNodeTaints" : [ {
    "effect" : "",
    "value" : "value",
    "key" : "key"
  }, {
    "effect" : "",
    "value" : "value",
    "key" : "key"
  } ],
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        ServerForCreateDto serverForCreateDto = ; // ServerForCreateDto | 

        try {
            ApiResponse result = apiInstance.serversCreate(serverForCreateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServerForCreateDto serverForCreateDto = new ServerForCreateDto(); // ServerForCreateDto | 

try {
    final result = await api_instance.serversCreate(serverForCreateDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversCreate: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        ServerForCreateDto serverForCreateDto = ; // ServerForCreateDto | 

        try {
            ApiResponse result = apiInstance.serversCreate(serverForCreateDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
ServerForCreateDto *serverForCreateDto = ; //  (optional)

// Create a new server in the given project.
[apiInstance serversCreateWith:serverForCreateDto
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'serverForCreateDto':  // {ServerForCreateDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var serverForCreateDto = new ServerForCreateDto(); // ServerForCreateDto |  (optional) 

            try {
                // Create a new server in the given project.
                ApiResponse result = apiInstance.serversCreate(serverForCreateDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$serverForCreateDto = ; // ServerForCreateDto | 

try {
    $result = $api_instance->serversCreate($serverForCreateDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $serverForCreateDto = WWW::OPenAPIClient::Object::ServerForCreateDto->new(); # ServerForCreateDto | 

eval {
    my $result = $api_instance->serversCreate(serverForCreateDto => $serverForCreateDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
serverForCreateDto =  # ServerForCreateDto |  (optional)

try:
    # Create a new server in the given project.
    api_response = api_instance.servers_create(serverForCreateDto=serverForCreateDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversCreate: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let serverForCreateDto = ; // ServerForCreateDto

    let mut context = ServersApi::Context::default();
    let result = client.serversCreate(serverForCreateDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
serverForCreateDto

Responses


serversDetails

Retrieve all servers by given project


/api/v1/servers/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/servers/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&WithAutoscalingGroup=withAutoscalingGroup_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String withAutoscalingGroup = withAutoscalingGroup_example; // String | Optional autoscaling group filter

        try {
            ServersListForDetails result = apiInstance.serversDetails(projectId, sortBy, sortDirection, withAutoscalingGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String withAutoscalingGroup = new String(); // String | Optional autoscaling group filter

try {
    final result = await api_instance.serversDetails(projectId, sortBy, sortDirection, withAutoscalingGroup);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversDetails: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String withAutoscalingGroup = withAutoscalingGroup_example; // String | Optional autoscaling group filter

        try {
            ServersListForDetails result = apiInstance.serversDetails(projectId, sortBy, sortDirection, withAutoscalingGroup);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *withAutoscalingGroup = withAutoscalingGroup_example; // Optional autoscaling group filter (optional) (default to null)

// Retrieve all servers by given project
[apiInstance serversDetailsWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    withAutoscalingGroup:withAutoscalingGroup
              completionHandler: ^(ServersListForDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'withAutoscalingGroup': withAutoscalingGroup_example // {String} Optional autoscaling group filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversDetails(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var withAutoscalingGroup = withAutoscalingGroup_example;  // String | Optional autoscaling group filter (optional)  (default to null)

            try {
                // Retrieve all servers by given project
                ServersListForDetails result = apiInstance.serversDetails(projectId, sortBy, sortDirection, withAutoscalingGroup);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$projectId = 56; // Integer | Project id, positive integer
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$withAutoscalingGroup = withAutoscalingGroup_example; // String | Optional autoscaling group filter

try {
    $result = $api_instance->serversDetails($projectId, $sortBy, $sortDirection, $withAutoscalingGroup);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $withAutoscalingGroup = withAutoscalingGroup_example; # String | Optional autoscaling group filter

eval {
    my $result = $api_instance->serversDetails(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, withAutoscalingGroup => $withAutoscalingGroup);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
withAutoscalingGroup = withAutoscalingGroup_example # String | Optional autoscaling group filter (optional) (default to null)

try:
    # Retrieve all servers by given project
    api_response = api_instance.servers_details(projectId, sortBy=sortBy, sortDirection=sortDirection, withAutoscalingGroup=withAutoscalingGroup)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversDetails: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let withAutoscalingGroup = withAutoscalingGroup_example; // String

    let mut context = ServersApi::Context::default();
    let result = client.serversDetails(projectId, sortBy, sortDirection, withAutoscalingGroup, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
WithAutoscalingGroup
String
Optional autoscaling group filter

Responses


serversGetCskClusterConfig

Get csk cluster config


/api/v1/servers/get-csk-cluster-config

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/servers/get-csk-cluster-config?ServerId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        Integer serverId = 56; // Integer | Server id, positive integer

        try {
            'String' result = apiInstance.serversGetCskClusterConfig(serverId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversGetCskClusterConfig");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serverId = new Integer(); // Integer | Server id, positive integer

try {
    final result = await api_instance.serversGetCskClusterConfig(serverId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversGetCskClusterConfig: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        Integer serverId = 56; // Integer | Server id, positive integer

        try {
            'String' result = apiInstance.serversGetCskClusterConfig(serverId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversGetCskClusterConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
Integer *serverId = 56; // Server id, positive integer (default to null)

// Get csk cluster config
[apiInstance serversGetCskClusterConfigWith:serverId
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var serverId = 56; // {Integer} Server id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversGetCskClusterConfig(serverId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversGetCskClusterConfigExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var serverId = 56;  // Integer | Server id, positive integer (default to null)

            try {
                // Get csk cluster config
                'String' result = apiInstance.serversGetCskClusterConfig(serverId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversGetCskClusterConfig: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$serverId = 56; // Integer | Server id, positive integer

try {
    $result = $api_instance->serversGetCskClusterConfig($serverId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversGetCskClusterConfig: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $serverId = 56; # Integer | Server id, positive integer

eval {
    my $result = $api_instance->serversGetCskClusterConfig(serverId => $serverId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversGetCskClusterConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
serverId = 56 # Integer | Server id, positive integer (default to null)

try:
    # Get csk cluster config
    api_response = api_instance.servers_get_csk_cluster_config(serverId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversGetCskClusterConfig: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let serverId = 56; // Integer

    let mut context = ServersApi::Context::default();
    let result = client.serversGetCskClusterConfig(serverId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
ServerId*
Integer (int32)
Server id, positive integer
Required

Responses


serversList

Retrieve all servers


/api/v1/servers

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/servers?Limit=56&Offset=56&ProjectId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&StartRam=1.2&EndRam=1.2&StartDiskSize=789&EndDiskSize=789&StartCpu=56&EndCpu=56&OrganizationId=56&Id=56&FilterBy=filterBy_example&AutoscalingGroup=autoscalingGroup_example&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer projectId = 56; // Integer | Optional project id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Double startRam = 1.2; // Double | Optional minimum RAM filter
        Double endRam = 1.2; // Double | Optional maximum RAM filter
        Long startDiskSize = 789; // Long | Optional minimum disk size filter
        Long endDiskSize = 789; // Long | Optional maximum disk size filter
        Integer startCpu = 56; // Integer | Optional minimum CPU filter
        Integer endCpu = 56; // Integer | Optional maximum CPU filter
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer id = 56; // Integer | Optional server id filter
        String filterBy = filterBy_example; // String | Optional field to filter by
        String autoscalingGroup = autoscalingGroup_example; // String | Optional autoscaling group filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ServersList result = apiInstance.serversList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, filterBy, autoscalingGroup, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final Integer projectId = new Integer(); // Integer | Optional project id filter
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Double startRam = new Double(); // Double | Optional minimum RAM filter
final Double endRam = new Double(); // Double | Optional maximum RAM filter
final Long startDiskSize = new Long(); // Long | Optional minimum disk size filter
final Long endDiskSize = new Long(); // Long | Optional maximum disk size filter
final Integer startCpu = new Integer(); // Integer | Optional minimum CPU filter
final Integer endCpu = new Integer(); // Integer | Optional maximum CPU filter
final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Integer id = new Integer(); // Integer | Optional server id filter
final String filterBy = new String(); // String | Optional field to filter by
final String autoscalingGroup = new String(); // String | Optional autoscaling group filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter

try {
    final result = await api_instance.serversList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, filterBy, autoscalingGroup, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversList: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        Integer projectId = 56; // Integer | Optional project id filter
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Double startRam = 1.2; // Double | Optional minimum RAM filter
        Double endRam = 1.2; // Double | Optional maximum RAM filter
        Long startDiskSize = 789; // Long | Optional minimum disk size filter
        Long endDiskSize = 789; // Long | Optional maximum disk size filter
        Integer startCpu = 56; // Integer | Optional minimum CPU filter
        Integer endCpu = 56; // Integer | Optional maximum CPU filter
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer id = 56; // Integer | Optional server id filter
        String filterBy = filterBy_example; // String | Optional field to filter by
        String autoscalingGroup = autoscalingGroup_example; // String | Optional autoscaling group filter
        Integer domainId = 56; // Integer | Optional domain id filter

        try {
            ServersList result = apiInstance.serversList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, filterBy, autoscalingGroup, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
Integer *projectId = 56; // Optional project id filter (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Double *startRam = 1.2; // Optional minimum RAM filter (optional) (default to null)
Double *endRam = 1.2; // Optional maximum RAM filter (optional) (default to null)
Long *startDiskSize = 789; // Optional minimum disk size filter (optional) (default to null)
Long *endDiskSize = 789; // Optional maximum disk size filter (optional) (default to null)
Integer *startCpu = 56; // Optional minimum CPU filter (optional) (default to null)
Integer *endCpu = 56; // Optional maximum CPU filter (optional) (default to null)
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Integer *id = 56; // Optional server id filter (optional) (default to null)
String *filterBy = filterBy_example; // Optional field to filter by (optional) (default to null)
String *autoscalingGroup = autoscalingGroup_example; // Optional autoscaling group filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)

// Retrieve all servers
[apiInstance serversListWith:limit
    offset:offset
    projectId:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    startRam:startRam
    endRam:endRam
    startDiskSize:startDiskSize
    endDiskSize:endDiskSize
    startCpu:startCpu
    endCpu:endCpu
    organizationId:organizationId
    id:id
    filterBy:filterBy
    autoscalingGroup:autoscalingGroup
    domainId:domainId
              completionHandler: ^(ServersList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'projectId': 56, // {Integer} Optional project id filter
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'startRam': 1.2, // {Double} Optional minimum RAM filter
  'endRam': 1.2, // {Double} Optional maximum RAM filter
  'startDiskSize': 789, // {Long} Optional minimum disk size filter
  'endDiskSize': 789, // {Long} Optional maximum disk size filter
  'startCpu': 56, // {Integer} Optional minimum CPU filter
  'endCpu': 56, // {Integer} Optional maximum CPU filter
  'organizationId': 56, // {Integer} Optional organization id filter
  'id': 56, // {Integer} Optional server id filter
  'filterBy': filterBy_example, // {String} Optional field to filter by
  'autoscalingGroup': autoscalingGroup_example, // {String} Optional autoscaling group filter
  'domainId': 56 // {Integer} Optional domain id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var projectId = 56;  // Integer | Optional project id filter (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var startRam = 1.2;  // Double | Optional minimum RAM filter (optional)  (default to null)
            var endRam = 1.2;  // Double | Optional maximum RAM filter (optional)  (default to null)
            var startDiskSize = 789;  // Long | Optional minimum disk size filter (optional)  (default to null)
            var endDiskSize = 789;  // Long | Optional maximum disk size filter (optional)  (default to null)
            var startCpu = 56;  // Integer | Optional minimum CPU filter (optional)  (default to null)
            var endCpu = 56;  // Integer | Optional maximum CPU filter (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var id = 56;  // Integer | Optional server id filter (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Optional field to filter by (optional)  (default to null)
            var autoscalingGroup = autoscalingGroup_example;  // String | Optional autoscaling group filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)

            try {
                // Retrieve all servers
                ServersList result = apiInstance.serversList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, filterBy, autoscalingGroup, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$projectId = 56; // Integer | Optional project id filter
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$startRam = 1.2; // Double | Optional minimum RAM filter
$endRam = 1.2; // Double | Optional maximum RAM filter
$startDiskSize = 789; // Long | Optional minimum disk size filter
$endDiskSize = 789; // Long | Optional maximum disk size filter
$startCpu = 56; // Integer | Optional minimum CPU filter
$endCpu = 56; // Integer | Optional maximum CPU filter
$organizationId = 56; // Integer | Optional organization id filter
$id = 56; // Integer | Optional server id filter
$filterBy = filterBy_example; // String | Optional field to filter by
$autoscalingGroup = autoscalingGroup_example; // String | Optional autoscaling group filter
$domainId = 56; // Integer | Optional domain id filter

try {
    $result = $api_instance->serversList($limit, $offset, $projectId, $sortBy, $sortDirection, $search, $startRam, $endRam, $startDiskSize, $endDiskSize, $startCpu, $endCpu, $organizationId, $id, $filterBy, $autoscalingGroup, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $projectId = 56; # Integer | Optional project id filter
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $startRam = 1.2; # Double | Optional minimum RAM filter
my $endRam = 1.2; # Double | Optional maximum RAM filter
my $startDiskSize = 789; # Long | Optional minimum disk size filter
my $endDiskSize = 789; # Long | Optional maximum disk size filter
my $startCpu = 56; # Integer | Optional minimum CPU filter
my $endCpu = 56; # Integer | Optional maximum CPU filter
my $organizationId = 56; # Integer | Optional organization id filter
my $id = 56; # Integer | Optional server id filter
my $filterBy = filterBy_example; # String | Optional field to filter by
my $autoscalingGroup = autoscalingGroup_example; # String | Optional autoscaling group filter
my $domainId = 56; # Integer | Optional domain id filter

eval {
    my $result = $api_instance->serversList(limit => $limit, offset => $offset, projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, startRam => $startRam, endRam => $endRam, startDiskSize => $startDiskSize, endDiskSize => $endDiskSize, startCpu => $startCpu, endCpu => $endCpu, organizationId => $organizationId, id => $id, filterBy => $filterBy, autoscalingGroup => $autoscalingGroup, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
projectId = 56 # Integer | Optional project id filter (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
startRam = 1.2 # Double | Optional minimum RAM filter (optional) (default to null)
endRam = 1.2 # Double | Optional maximum RAM filter (optional) (default to null)
startDiskSize = 789 # Long | Optional minimum disk size filter (optional) (default to null)
endDiskSize = 789 # Long | Optional maximum disk size filter (optional) (default to null)
startCpu = 56 # Integer | Optional minimum CPU filter (optional) (default to null)
endCpu = 56 # Integer | Optional maximum CPU filter (optional) (default to null)
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
id = 56 # Integer | Optional server id filter (optional) (default to null)
filterBy = filterBy_example # String | Optional field to filter by (optional) (default to null)
autoscalingGroup = autoscalingGroup_example # String | Optional autoscaling group filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)

try:
    # Retrieve all servers
    api_response = api_instance.servers_list(limit=limit, offset=offset, projectId=projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, startRam=startRam, endRam=endRam, startDiskSize=startDiskSize, endDiskSize=endDiskSize, startCpu=startCpu, endCpu=endCpu, organizationId=organizationId, id=id, filterBy=filterBy, autoscalingGroup=autoscalingGroup, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversList: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startDiskSize = 789; // Long
    let endDiskSize = 789; // Long
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let organizationId = 56; // Integer
    let id = 56; // Integer
    let filterBy = filterBy_example; // String
    let autoscalingGroup = autoscalingGroup_example; // String
    let domainId = 56; // Integer

    let mut context = ServersApi::Context::default();
    let result = client.serversList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startDiskSize, endDiskSize, startCpu, endCpu, organizationId, id, filterBy, autoscalingGroup, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
ProjectId
Integer (int32)
Optional project id filter
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
StartRam
Double (double)
Optional minimum RAM filter
EndRam
Double (double)
Optional maximum RAM filter
StartDiskSize
Long (int64)
Optional minimum disk size filter
EndDiskSize
Long (int64)
Optional maximum disk size filter
StartCpu
Integer (int32)
Optional minimum CPU filter
EndCpu
Integer (int32)
Optional maximum CPU filter
OrganizationId
Integer (int32)
Optional organization id filter
Id
Integer (int32)
Optional server id filter
FilterBy
String
Optional field to filter by
AutoscalingGroup
String
Optional autoscaling group filter
DomainId
Integer (int32)
Optional domain id filter

Responses


serversReboot

Reboot server


/api/v1/servers/reboot

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/reboot" \
 -d '{
  "type" : "type",
  "serverId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        RebootServerCommand rebootServerCommand = ; // RebootServerCommand | 

        try {
            Object result = apiInstance.serversReboot(rebootServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversReboot");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RebootServerCommand rebootServerCommand = new RebootServerCommand(); // RebootServerCommand | 

try {
    final result = await api_instance.serversReboot(rebootServerCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversReboot: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        RebootServerCommand rebootServerCommand = ; // RebootServerCommand | 

        try {
            Object result = apiInstance.serversReboot(rebootServerCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversReboot");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
RebootServerCommand *rebootServerCommand = ; //  (optional)

// Reboot server
[apiInstance serversRebootWith:rebootServerCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'rebootServerCommand':  // {RebootServerCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversReboot(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversRebootExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var rebootServerCommand = new RebootServerCommand(); // RebootServerCommand |  (optional) 

            try {
                // Reboot server
                Object result = apiInstance.serversReboot(rebootServerCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversReboot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$rebootServerCommand = ; // RebootServerCommand | 

try {
    $result = $api_instance->serversReboot($rebootServerCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversReboot: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $rebootServerCommand = WWW::OPenAPIClient::Object::RebootServerCommand->new(); # RebootServerCommand | 

eval {
    my $result = $api_instance->serversReboot(rebootServerCommand => $rebootServerCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversReboot: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
rebootServerCommand =  # RebootServerCommand |  (optional)

try:
    # Reboot server
    api_response = api_instance.servers_reboot(rebootServerCommand=rebootServerCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversReboot: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let rebootServerCommand = ; // RebootServerCommand

    let mut context = ServersApi::Context::default();
    let result = client.serversReboot(rebootServerCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
rebootServerCommand

Responses


serversRegisterNode

Register csk node


/api/v1/servers/register-node

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/register-node" \
 -d '{
  "serverId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        CskRegisterNodeCommand cskRegisterNodeCommand = ; // CskRegisterNodeCommand | 

        try {
            Object result = apiInstance.serversRegisterNode(cskRegisterNodeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversRegisterNode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CskRegisterNodeCommand cskRegisterNodeCommand = new CskRegisterNodeCommand(); // CskRegisterNodeCommand | 

try {
    final result = await api_instance.serversRegisterNode(cskRegisterNodeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversRegisterNode: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        CskRegisterNodeCommand cskRegisterNodeCommand = ; // CskRegisterNodeCommand | 

        try {
            Object result = apiInstance.serversRegisterNode(cskRegisterNodeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversRegisterNode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
CskRegisterNodeCommand *cskRegisterNodeCommand = ; //  (optional)

// Register csk node
[apiInstance serversRegisterNodeWith:cskRegisterNodeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'cskRegisterNodeCommand':  // {CskRegisterNodeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversRegisterNode(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversRegisterNodeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var cskRegisterNodeCommand = new CskRegisterNodeCommand(); // CskRegisterNodeCommand |  (optional) 

            try {
                // Register csk node
                Object result = apiInstance.serversRegisterNode(cskRegisterNodeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversRegisterNode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$cskRegisterNodeCommand = ; // CskRegisterNodeCommand | 

try {
    $result = $api_instance->serversRegisterNode($cskRegisterNodeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversRegisterNode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $cskRegisterNodeCommand = WWW::OPenAPIClient::Object::CskRegisterNodeCommand->new(); # CskRegisterNodeCommand | 

eval {
    my $result = $api_instance->serversRegisterNode(cskRegisterNodeCommand => $cskRegisterNodeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversRegisterNode: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
cskRegisterNodeCommand =  # CskRegisterNodeCommand |  (optional)

try:
    # Register csk node
    api_response = api_instance.servers_register_node(cskRegisterNodeCommand=cskRegisterNodeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversRegisterNode: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let cskRegisterNodeCommand = ; // CskRegisterNodeCommand

    let mut context = ServersApi::Context::default();
    let result = client.serversRegisterNode(cskRegisterNodeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
cskRegisterNodeCommand

Responses


serversReset

Update server(s) status(es)


/api/v1/servers/reset

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/reset" \
 -d '{
  "projectId" : 0,
  "serverIds" : [ 6, 6 ],
  "status" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        ResetServerStatusCommand resetServerStatusCommand = ; // ResetServerStatusCommand | 

        try {
            Object result = apiInstance.serversReset(resetServerStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversReset");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ResetServerStatusCommand resetServerStatusCommand = new ResetServerStatusCommand(); // ResetServerStatusCommand | 

try {
    final result = await api_instance.serversReset(resetServerStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversReset: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        ResetServerStatusCommand resetServerStatusCommand = ; // ResetServerStatusCommand | 

        try {
            Object result = apiInstance.serversReset(resetServerStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversReset");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
ResetServerStatusCommand *resetServerStatusCommand = ; //  (optional)

// Update server(s) status(es)
[apiInstance serversResetWith:resetServerStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var opts = {
  'resetServerStatusCommand':  // {ResetServerStatusCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversReset(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversResetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var resetServerStatusCommand = new ResetServerStatusCommand(); // ResetServerStatusCommand |  (optional) 

            try {
                // Update server(s) status(es)
                Object result = apiInstance.serversReset(resetServerStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversReset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$resetServerStatusCommand = ; // ResetServerStatusCommand | 

try {
    $result = $api_instance->serversReset($resetServerStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversReset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $resetServerStatusCommand = WWW::OPenAPIClient::Object::ResetServerStatusCommand->new(); # ResetServerStatusCommand | 

eval {
    my $result = $api_instance->serversReset(resetServerStatusCommand => $resetServerStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversReset: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
resetServerStatusCommand =  # ResetServerStatusCommand |  (optional)

try:
    # Update server(s) status(es)
    api_response = api_instance.servers_reset(resetServerStatusCommand=resetServerStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversReset: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let resetServerStatusCommand = ; // ResetServerStatusCommand

    let mut context = ServersApi::Context::default();
    let result = client.serversReset(resetServerStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
resetServerStatusCommand

Responses


serversStatus

Show server status


/api/v1/servers/status/{serverId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/servers/status/{serverId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        Integer serverId = 56; // Integer | Server id, positive integer

        try {
            'String' result = apiInstance.serversStatus(serverId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer serverId = new Integer(); // Integer | Server id, positive integer

try {
    final result = await api_instance.serversStatus(serverId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversStatus: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        Integer serverId = 56; // Integer | Server id, positive integer

        try {
            'String' result = apiInstance.serversStatus(serverId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
Integer *serverId = 56; // Server id, positive integer (default to null)

// Show server status
[apiInstance serversStatusWith:serverId
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var serverId = 56; // {Integer} Server id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversStatus(serverId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var serverId = 56;  // Integer | Server id, positive integer (default to null)

            try {
                // Show server status
                'String' result = apiInstance.serversStatus(serverId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$serverId = 56; // Integer | Server id, positive integer

try {
    $result = $api_instance->serversStatus($serverId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $serverId = 56; # Integer | Server id, positive integer

eval {
    my $result = $api_instance->serversStatus(serverId => $serverId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
serverId = 56 # Integer | Server id, positive integer (default to null)

try:
    # Show server status
    api_response = api_instance.servers_status(serverId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversStatus: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let serverId = 56; // Integer

    let mut context = ServersApi::Context::default();
    let result = client.serversStatus(serverId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
serverId*
Integer (int32)
Server id, positive integer
Required

Responses


serversUpdateByProjectId

Update server by projectId


/api/v1/servers/update/{projectId}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/servers/update/{projectId}" \
 -d '{
  "serverHealth" : "serverHealth",
  "ipAddress" : "ipAddress"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServersApi;

import java.io.File;
import java.util.*;

public class ServersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        ServersApi apiInstance = new ServersApi();
        Integer projectId = 56; // Integer | 
        array[UpdateServerHealthDto] updateServerHealthDto = ; // array[UpdateServerHealthDto] | 

        try {
            Object result = apiInstance.serversUpdateByProjectId(projectId, updateServerHealthDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversUpdateByProjectId");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 
final array[UpdateServerHealthDto] updateServerHealthDto = new array[UpdateServerHealthDto](); // array[UpdateServerHealthDto] | 

try {
    final result = await api_instance.serversUpdateByProjectId(projectId, updateServerHealthDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->serversUpdateByProjectId: $e\n');
}

import org.openapitools.client.api.ServersApi;

public class ServersApiExample {
    public static void main(String[] args) {
        ServersApi apiInstance = new ServersApi();
        Integer projectId = 56; // Integer | 
        array[UpdateServerHealthDto] updateServerHealthDto = ; // array[UpdateServerHealthDto] | 

        try {
            Object result = apiInstance.serversUpdateByProjectId(projectId, updateServerHealthDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServersApi#serversUpdateByProjectId");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServersApi *apiInstance = [[ServersApi alloc] init];
Integer *projectId = 56; //  (default to null)
array[UpdateServerHealthDto] *updateServerHealthDto = ; //  (optional)

// Update server by projectId
[apiInstance serversUpdateByProjectIdWith:projectId
    updateServerHealthDto:updateServerHealthDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.ServersApi()
var projectId = 56; // {Integer} 
var opts = {
  'updateServerHealthDto':  // {array[UpdateServerHealthDto]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.serversUpdateByProjectId(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class serversUpdateByProjectIdExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServersApi();
            var projectId = 56;  // Integer |  (default to null)
            var updateServerHealthDto = new array[UpdateServerHealthDto](); // array[UpdateServerHealthDto] |  (optional) 

            try {
                // Update server by projectId
                Object result = apiInstance.serversUpdateByProjectId(projectId, updateServerHealthDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServersApi.serversUpdateByProjectId: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServersApi();
$projectId = 56; // Integer | 
$updateServerHealthDto = ; // array[UpdateServerHealthDto] | 

try {
    $result = $api_instance->serversUpdateByProjectId($projectId, $updateServerHealthDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServersApi->serversUpdateByProjectId: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServersApi->new();
my $projectId = 56; # Integer | 
my $updateServerHealthDto = [WWW::OPenAPIClient::Object::array[UpdateServerHealthDto]->new()]; # array[UpdateServerHealthDto] | 

eval {
    my $result = $api_instance->serversUpdateByProjectId(projectId => $projectId, updateServerHealthDto => $updateServerHealthDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServersApi->serversUpdateByProjectId: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.ServersApi()
projectId = 56 # Integer |  (default to null)
updateServerHealthDto =  # array[UpdateServerHealthDto] |  (optional)

try:
    # Update server by projectId
    api_response = api_instance.servers_update_by_project_id(projectId, updateServerHealthDto=updateServerHealthDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServersApi->serversUpdateByProjectId: %s\n" % e)
extern crate ServersApi;

pub fn main() {
    let projectId = 56; // Integer
    let updateServerHealthDto = ; // array[UpdateServerHealthDto]

    let mut context = ServersApi::Context::default();
    let result = client.serversUpdateByProjectId(projectId, updateServerHealthDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required
Body parameters
Name Description
updateServerHealthDto

Responses


Slack

slackCreate

Create slack configuration


/api/v1/slack/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/slack/create" \
 -d '{
  "organizationId" : 0,
  "name" : "name",
  "channel" : "channel",
  "url" : "url",
  "slackType" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        CreateSlackConfigurationCommand createSlackConfigurationCommand = ; // CreateSlackConfigurationCommand | 

        try {
            ApiResponse result = apiInstance.slackCreate(createSlackConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateSlackConfigurationCommand createSlackConfigurationCommand = new CreateSlackConfigurationCommand(); // CreateSlackConfigurationCommand | 

try {
    final result = await api_instance.slackCreate(createSlackConfigurationCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackCreate: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        CreateSlackConfigurationCommand createSlackConfigurationCommand = ; // CreateSlackConfigurationCommand | 

        try {
            ApiResponse result = apiInstance.slackCreate(createSlackConfigurationCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
CreateSlackConfigurationCommand *createSlackConfigurationCommand = ; //  (optional)

// Create slack configuration
[apiInstance slackCreateWith:createSlackConfigurationCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var opts = {
  'createSlackConfigurationCommand':  // {CreateSlackConfigurationCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var createSlackConfigurationCommand = new CreateSlackConfigurationCommand(); // CreateSlackConfigurationCommand |  (optional) 

            try {
                // Create slack configuration
                ApiResponse result = apiInstance.slackCreate(createSlackConfigurationCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$createSlackConfigurationCommand = ; // CreateSlackConfigurationCommand | 

try {
    $result = $api_instance->slackCreate($createSlackConfigurationCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $createSlackConfigurationCommand = WWW::OPenAPIClient::Object::CreateSlackConfigurationCommand->new(); # CreateSlackConfigurationCommand | 

eval {
    my $result = $api_instance->slackCreate(createSlackConfigurationCommand => $createSlackConfigurationCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
createSlackConfigurationCommand =  # CreateSlackConfigurationCommand |  (optional)

try:
    # Create slack configuration
    api_response = api_instance.slack_create(createSlackConfigurationCommand=createSlackConfigurationCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackCreate: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let createSlackConfigurationCommand = ; // CreateSlackConfigurationCommand

    let mut context = SlackApi::Context::default();
    let result = client.slackCreate(createSlackConfigurationCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createSlackConfigurationCommand

Responses


slackDeleteMultiple

Delete slack configuration(s)


/api/v1/slack/delete-multiple

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/slack/delete-multiple" \
 -d '{
  "ids" : [ 0, 0 ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        DeleteSlackConfigCommand deleteSlackConfigCommand = ; // DeleteSlackConfigCommand | 

        try {
            Object result = apiInstance.slackDeleteMultiple(deleteSlackConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackDeleteMultiple");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteSlackConfigCommand deleteSlackConfigCommand = new DeleteSlackConfigCommand(); // DeleteSlackConfigCommand | 

try {
    final result = await api_instance.slackDeleteMultiple(deleteSlackConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackDeleteMultiple: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        DeleteSlackConfigCommand deleteSlackConfigCommand = ; // DeleteSlackConfigCommand | 

        try {
            Object result = apiInstance.slackDeleteMultiple(deleteSlackConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackDeleteMultiple");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
DeleteSlackConfigCommand *deleteSlackConfigCommand = ; //  (optional)

// Delete slack configuration(s)
[apiInstance slackDeleteMultipleWith:deleteSlackConfigCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var opts = {
  'deleteSlackConfigCommand':  // {DeleteSlackConfigCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackDeleteMultiple(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackDeleteMultipleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var deleteSlackConfigCommand = new DeleteSlackConfigCommand(); // DeleteSlackConfigCommand |  (optional) 

            try {
                // Delete slack configuration(s)
                Object result = apiInstance.slackDeleteMultiple(deleteSlackConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackDeleteMultiple: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$deleteSlackConfigCommand = ; // DeleteSlackConfigCommand | 

try {
    $result = $api_instance->slackDeleteMultiple($deleteSlackConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackDeleteMultiple: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $deleteSlackConfigCommand = WWW::OPenAPIClient::Object::DeleteSlackConfigCommand->new(); # DeleteSlackConfigCommand | 

eval {
    my $result = $api_instance->slackDeleteMultiple(deleteSlackConfigCommand => $deleteSlackConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackDeleteMultiple: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
deleteSlackConfigCommand =  # DeleteSlackConfigCommand |  (optional)

try:
    # Delete slack configuration(s)
    api_response = api_instance.slack_delete_multiple(deleteSlackConfigCommand=deleteSlackConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackDeleteMultiple: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let deleteSlackConfigCommand = ; // DeleteSlackConfigCommand

    let mut context = SlackApi::Context::default();
    let result = client.slackDeleteMultiple(deleteSlackConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteSlackConfigCommand

Responses


slackDropdown

Retrieve all slack configs for organization


/api/v1/slack/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/slack/list?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter

        try {
            array[CommonDropdownDto] result = apiInstance.slackDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final String search = new String(); // String | Free-text search filter

try {
    final result = await api_instance.slackDropdown(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackDropdown: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        String search = search_example; // String | Free-text search filter

        try {
            array[CommonDropdownDto] result = apiInstance.slackDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)

// Retrieve all slack configs for organization
[apiInstance slackDropdownWith:organizationId
    search:search
              completionHandler: ^(array[CommonDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'search': search_example // {String} Free-text search filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackDropdown(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)

            try {
                // Retrieve all slack configs for organization
                array[CommonDropdownDto] result = apiInstance.slackDropdown(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$organizationId = 56; // Integer | Optional organization id filter
$search = search_example; // String | Free-text search filter

try {
    $result = $api_instance->slackDropdown($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $search = search_example; # String | Free-text search filter

eval {
    my $result = $api_instance->slackDropdown(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)

try:
    # Retrieve all slack configs for organization
    api_response = api_instance.slack_dropdown(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackDropdown: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = SlackApi::Context::default();
    let result = client.slackDropdown(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
Search

Responses


slackList

Retrieve all slack configs


/api/v1/slack

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/slack?OrganizationId=56&DomainId=56&Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional slack configuration id filter

        try {
            SlackConfigurationList result = apiInstance.slackList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id filter
final Integer domainId = new Integer(); // Integer | Optional domain id filter
final Integer limit = new Integer(); // Integer | Page size
final Integer offset = new Integer(); // Integer | Number of items to skip
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: asc or desc
final String search = new String(); // String | Free-text search filter
final Integer id = new Integer(); // Integer | Optional slack configuration id filter

try {
    final result = await api_instance.slackList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackList: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        Integer organizationId = 56; // Integer | Optional organization id filter
        Integer domainId = 56; // Integer | Optional domain id filter
        Integer limit = 56; // Integer | Page size
        Integer offset = 56; // Integer | Number of items to skip
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: asc or desc
        String search = search_example; // String | Free-text search filter
        Integer id = 56; // Integer | Optional slack configuration id filter

        try {
            SlackConfigurationList result = apiInstance.slackList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
Integer *organizationId = 56; // Optional organization id filter (optional) (default to null)
Integer *domainId = 56; // Optional domain id filter (optional) (default to null)
Integer *limit = 56; // Page size (optional) (default to null)
Integer *offset = 56; // Number of items to skip (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: asc or desc (optional) (default to null)
String *search = search_example; // Free-text search filter (optional) (default to null)
Integer *id = 56; // Optional slack configuration id filter (optional) (default to null)

// Retrieve all slack configs
[apiInstance slackListWith:organizationId
    domainId:domainId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
              completionHandler: ^(SlackConfigurationList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id filter
  'domainId': 56, // {Integer} Optional domain id filter
  'limit': 56, // {Integer} Page size
  'offset': 56, // {Integer} Number of items to skip
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: asc or desc
  'search': search_example, // {String} Free-text search filter
  'id': 56 // {Integer} Optional slack configuration id filter
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var organizationId = 56;  // Integer | Optional organization id filter (optional)  (default to null)
            var domainId = 56;  // Integer | Optional domain id filter (optional)  (default to null)
            var limit = 56;  // Integer | Page size (optional)  (default to null)
            var offset = 56;  // Integer | Number of items to skip (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: asc or desc (optional)  (default to null)
            var search = search_example;  // String | Free-text search filter (optional)  (default to null)
            var id = 56;  // Integer | Optional slack configuration id filter (optional)  (default to null)

            try {
                // Retrieve all slack configs
                SlackConfigurationList result = apiInstance.slackList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$organizationId = 56; // Integer | Optional organization id filter
$domainId = 56; // Integer | Optional domain id filter
$limit = 56; // Integer | Page size
$offset = 56; // Integer | Number of items to skip
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: asc or desc
$search = search_example; // String | Free-text search filter
$id = 56; // Integer | Optional slack configuration id filter

try {
    $result = $api_instance->slackList($organizationId, $domainId, $limit, $offset, $sortBy, $sortDirection, $search, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $organizationId = 56; # Integer | Optional organization id filter
my $domainId = 56; # Integer | Optional domain id filter
my $limit = 56; # Integer | Page size
my $offset = 56; # Integer | Number of items to skip
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: asc or desc
my $search = search_example; # String | Free-text search filter
my $id = 56; # Integer | Optional slack configuration id filter

eval {
    my $result = $api_instance->slackList(organizationId => $organizationId, domainId => $domainId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
organizationId = 56 # Integer | Optional organization id filter (optional) (default to null)
domainId = 56 # Integer | Optional domain id filter (optional) (default to null)
limit = 56 # Integer | Page size (optional) (default to null)
offset = 56 # Integer | Number of items to skip (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: asc or desc (optional) (default to null)
search = search_example # String | Free-text search filter (optional) (default to null)
id = 56 # Integer | Optional slack configuration id filter (optional) (default to null)

try:
    # Retrieve all slack configs
    api_response = api_instance.slack_list(organizationId=organizationId, domainId=domainId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackList: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let organizationId = 56; // Integer
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer

    let mut context = SlackApi::Context::default();
    let result = client.slackList(organizationId, domainId, limit, offset, sortBy, sortDirection, search, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id filter
DomainId
Integer (int32)
Optional domain id filter
Limit
Integer (int32)
Page size
Offset
Integer (int32)
Number of items to skip
SortBy
String
Field to sort by
SortDirection
String
Sort direction: asc or desc
Search
Id
Integer (int32)
Optional slack configuration id filter

Responses


slackUpdate

Update slack configuration


/api/v1/slack/update/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/slack/update/{id}" \
 -d '{
  "organizationId" : 0,
  "name" : "name",
  "channel" : "channel",
  "url" : "url",
  "slackType" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        Integer id = 56; // Integer | 
        UpdateSlackConfigurationDto updateSlackConfigurationDto = ; // UpdateSlackConfigurationDto | 

        try {
            Object result = apiInstance.slackUpdate(id, updateSlackConfigurationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final UpdateSlackConfigurationDto updateSlackConfigurationDto = new UpdateSlackConfigurationDto(); // UpdateSlackConfigurationDto | 

try {
    final result = await api_instance.slackUpdate(id, updateSlackConfigurationDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackUpdate: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        Integer id = 56; // Integer | 
        UpdateSlackConfigurationDto updateSlackConfigurationDto = ; // UpdateSlackConfigurationDto | 

        try {
            Object result = apiInstance.slackUpdate(id, updateSlackConfigurationDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
Integer *id = 56; //  (default to null)
UpdateSlackConfigurationDto *updateSlackConfigurationDto = ; //  (optional)

// Update slack configuration
[apiInstance slackUpdateWith:id
    updateSlackConfigurationDto:updateSlackConfigurationDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var id = 56; // {Integer} 
var opts = {
  'updateSlackConfigurationDto':  // {UpdateSlackConfigurationDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackUpdate(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var id = 56;  // Integer |  (default to null)
            var updateSlackConfigurationDto = new UpdateSlackConfigurationDto(); // UpdateSlackConfigurationDto |  (optional) 

            try {
                // Update slack configuration
                Object result = apiInstance.slackUpdate(id, updateSlackConfigurationDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$id = 56; // Integer | 
$updateSlackConfigurationDto = ; // UpdateSlackConfigurationDto | 

try {
    $result = $api_instance->slackUpdate($id, $updateSlackConfigurationDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $id = 56; # Integer | 
my $updateSlackConfigurationDto = WWW::OPenAPIClient::Object::UpdateSlackConfigurationDto->new(); # UpdateSlackConfigurationDto | 

eval {
    my $result = $api_instance->slackUpdate(id => $id, updateSlackConfigurationDto => $updateSlackConfigurationDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
id = 56 # Integer |  (default to null)
updateSlackConfigurationDto =  # UpdateSlackConfigurationDto |  (optional)

try:
    # Update slack configuration
    api_response = api_instance.slack_update(id, updateSlackConfigurationDto=updateSlackConfigurationDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackUpdate: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let id = 56; // Integer
    let updateSlackConfigurationDto = ; // UpdateSlackConfigurationDto

    let mut context = SlackApi::Context::default();
    let result = client.slackUpdate(id, updateSlackConfigurationDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
updateSlackConfigurationDto

Responses


slackVerify

Verify slack configuration


/api/v1/slack/verify

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/slack/verify" \
 -d '{
  "name" : "name",
  "channel" : "channel",
  "url" : "url"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SlackApi;

import java.io.File;
import java.util.*;

public class SlackApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SlackApi apiInstance = new SlackApi();
        VerifySlackCredentialsCommand verifySlackCredentialsCommand = ; // VerifySlackCredentialsCommand | 

        try {
            Object result = apiInstance.slackVerify(verifySlackCredentialsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackVerify");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VerifySlackCredentialsCommand verifySlackCredentialsCommand = new VerifySlackCredentialsCommand(); // VerifySlackCredentialsCommand | 

try {
    final result = await api_instance.slackVerify(verifySlackCredentialsCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->slackVerify: $e\n');
}

import org.openapitools.client.api.SlackApi;

public class SlackApiExample {
    public static void main(String[] args) {
        SlackApi apiInstance = new SlackApi();
        VerifySlackCredentialsCommand verifySlackCredentialsCommand = ; // VerifySlackCredentialsCommand | 

        try {
            Object result = apiInstance.slackVerify(verifySlackCredentialsCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SlackApi#slackVerify");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SlackApi *apiInstance = [[SlackApi alloc] init];
VerifySlackCredentialsCommand *verifySlackCredentialsCommand = ; //  (optional)

// Verify slack configuration
[apiInstance slackVerifyWith:verifySlackCredentialsCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SlackApi()
var opts = {
  'verifySlackCredentialsCommand':  // {VerifySlackCredentialsCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.slackVerify(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class slackVerifyExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SlackApi();
            var verifySlackCredentialsCommand = new VerifySlackCredentialsCommand(); // VerifySlackCredentialsCommand |  (optional) 

            try {
                // Verify slack configuration
                Object result = apiInstance.slackVerify(verifySlackCredentialsCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SlackApi.slackVerify: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SlackApi();
$verifySlackCredentialsCommand = ; // VerifySlackCredentialsCommand | 

try {
    $result = $api_instance->slackVerify($verifySlackCredentialsCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SlackApi->slackVerify: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SlackApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SlackApi->new();
my $verifySlackCredentialsCommand = WWW::OPenAPIClient::Object::VerifySlackCredentialsCommand->new(); # VerifySlackCredentialsCommand | 

eval {
    my $result = $api_instance->slackVerify(verifySlackCredentialsCommand => $verifySlackCredentialsCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SlackApi->slackVerify: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SlackApi()
verifySlackCredentialsCommand =  # VerifySlackCredentialsCommand |  (optional)

try:
    # Verify slack configuration
    api_response = api_instance.slack_verify(verifySlackCredentialsCommand=verifySlackCredentialsCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SlackApi->slackVerify: %s\n" % e)
extern crate SlackApi;

pub fn main() {
    let verifySlackCredentialsCommand = ; // VerifySlackCredentialsCommand

    let mut context = SlackApi::Context::default();
    let result = client.slackVerify(verifySlackCredentialsCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
verifySlackCredentialsCommand

Responses


Sse

sseCcfResourceTagsTree

Subscribe to the live custom cloud resource tags tree

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations. Server-sent events. `connected` on open; `snapshot` with the full tree (same shape as `GET /ccfresourcetags/tree`) once the first poll completes and again whenever the tree visible to this stream changes; `error` when reading the tree fails (the stream stays open and a fresh `snapshot` follows recovery); `revoked` when the caller lost access (the stream then ends; do not reconnect). Optional filters `organizationId`, `cloudCredentialId`, `projectId` work as on `GET /tree`.


/api/v1/sse/ccf-resource-tags/tree

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/event-stream,application/json" \
 "http://localhost/api/v1/sse/ccf-resource-tags/tree?organizationId=56&cloudCredentialId=56&projectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();
        Integer organizationId = 56; // Integer | 
        Integer cloudCredentialId = 56; // Integer | 
        Integer projectId = 56; // Integer | 

        try {
            CcfResourceTagsSseEvent result = apiInstance.sseCcfResourceTagsTree(organizationId, cloudCredentialId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourceTagsTree");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final Integer cloudCredentialId = new Integer(); // Integer | 
final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.sseCcfResourceTagsTree(organizationId, cloudCredentialId, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseCcfResourceTagsTree: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();
        Integer organizationId = 56; // Integer | 
        Integer cloudCredentialId = 56; // Integer | 
        Integer projectId = 56; // Integer | 

        try {
            CcfResourceTagsSseEvent result = apiInstance.sseCcfResourceTagsTree(organizationId, cloudCredentialId, projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourceTagsTree");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];
Integer *organizationId = 56; //  (optional) (default to null)
Integer *cloudCredentialId = 56; //  (optional) (default to null)
Integer *projectId = 56; //  (optional) (default to null)

// Subscribe to the live custom cloud resource tags tree
[apiInstance sseCcfResourceTagsTreeWith:organizationId
    cloudCredentialId:cloudCredentialId
    projectId:projectId
              completionHandler: ^(CcfResourceTagsSseEvent output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var opts = {
  'organizationId': 56, // {Integer} 
  'cloudCredentialId': 56, // {Integer} 
  'projectId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sseCcfResourceTagsTree(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseCcfResourceTagsTreeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();
            var organizationId = 56;  // Integer |  (optional)  (default to null)
            var cloudCredentialId = 56;  // Integer |  (optional)  (default to null)
            var projectId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Subscribe to the live custom cloud resource tags tree
                CcfResourceTagsSseEvent result = apiInstance.sseCcfResourceTagsTree(organizationId, cloudCredentialId, projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseCcfResourceTagsTree: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();
$organizationId = 56; // Integer | 
$cloudCredentialId = 56; // Integer | 
$projectId = 56; // Integer | 

try {
    $result = $api_instance->sseCcfResourceTagsTree($organizationId, $cloudCredentialId, $projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseCcfResourceTagsTree: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();
my $organizationId = 56; # Integer | 
my $cloudCredentialId = 56; # Integer | 
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->sseCcfResourceTagsTree(organizationId => $organizationId, cloudCredentialId => $cloudCredentialId, projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SseApi->sseCcfResourceTagsTree: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()
organizationId = 56 # Integer |  (optional) (default to null)
cloudCredentialId = 56 # Integer |  (optional) (default to null)
projectId = 56 # Integer |  (optional) (default to null)

try:
    # Subscribe to the live custom cloud resource tags tree
    api_response = api_instance.sse_ccf_resource_tags_tree(organizationId=organizationId, cloudCredentialId=cloudCredentialId, projectId=projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SseApi->sseCcfResourceTagsTree: %s\n" % e)
extern crate SseApi;

pub fn main() {
    let organizationId = 56; // Integer
    let cloudCredentialId = 56; // Integer
    let projectId = 56; // Integer

    let mut context = SseApi::Context::default();
    let result = client.sseCcfResourceTagsTree(organizationId, cloudCredentialId, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
organizationId
Integer (int32)
cloudCredentialId
Integer (int32)
projectId
Integer (int32)

Responses


sseCcfResourcesCloudCredential

Subscribe to live CCF-owned cloud resources of a cloud credential, grouped by project

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations. Server-sent events. `connected` on open; `snapshot` with every visible project group once the first poll completes; `changed` with one group whenever its resources change; `error` when a poll fails (the stream stays open and a fresh `snapshot` follows recovery); `unsupported` when the cloud type has no resource listing (the stream then ends). A group is `{ projectId, projectName, projectDeleted, provider, cloudCredentialId, lastPolledAt, warnings[], resources[] }`; `resources` holds the provider-specific CCF resource DTOs, and `projectId` is null for the Unassigned group.


/api/v1/sse/ccf-resources/cloud-credential/{cloudCredentialId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/event-stream,application/json" \
 "http://localhost/api/v1/sse/ccf-resources/cloud-credential/{cloudCredentialId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();
        Integer cloudCredentialId = 56; // Integer | 

        try {
            CcfResourcesSseEvent result = apiInstance.sseCcfResourcesCloudCredential(cloudCredentialId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourcesCloudCredential");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudCredentialId = new Integer(); // Integer | 

try {
    final result = await api_instance.sseCcfResourcesCloudCredential(cloudCredentialId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseCcfResourcesCloudCredential: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();
        Integer cloudCredentialId = 56; // Integer | 

        try {
            CcfResourcesSseEvent result = apiInstance.sseCcfResourcesCloudCredential(cloudCredentialId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourcesCloudCredential");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];
Integer *cloudCredentialId = 56; //  (default to null)

// Subscribe to live CCF-owned cloud resources of a cloud credential, grouped by project
[apiInstance sseCcfResourcesCloudCredentialWith:cloudCredentialId
              completionHandler: ^(CcfResourcesSseEvent output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var cloudCredentialId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sseCcfResourcesCloudCredential(cloudCredentialId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseCcfResourcesCloudCredentialExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();
            var cloudCredentialId = 56;  // Integer |  (default to null)

            try {
                // Subscribe to live CCF-owned cloud resources of a cloud credential, grouped by project
                CcfResourcesSseEvent result = apiInstance.sseCcfResourcesCloudCredential(cloudCredentialId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseCcfResourcesCloudCredential: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();
$cloudCredentialId = 56; // Integer | 

try {
    $result = $api_instance->sseCcfResourcesCloudCredential($cloudCredentialId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseCcfResourcesCloudCredential: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();
my $cloudCredentialId = 56; # Integer | 

eval {
    my $result = $api_instance->sseCcfResourcesCloudCredential(cloudCredentialId => $cloudCredentialId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SseApi->sseCcfResourcesCloudCredential: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()
cloudCredentialId = 56 # Integer |  (default to null)

try:
    # Subscribe to live CCF-owned cloud resources of a cloud credential, grouped by project
    api_response = api_instance.sse_ccf_resources_cloud_credential(cloudCredentialId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SseApi->sseCcfResourcesCloudCredential: %s\n" % e)
extern crate SseApi;

pub fn main() {
    let cloudCredentialId = 56; // Integer

    let mut context = SseApi::Context::default();
    let result = client.sseCcfResourcesCloudCredential(cloudCredentialId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
cloudCredentialId*
Integer (int32)
Required

Responses


sseCcfResourcesProject

Subscribe to live CCF-owned cloud resources of a project

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations. Server-sent events. `connected` on open; `snapshot` with every visible project group once the first poll completes; `changed` with one group whenever its resources change; `error` when a poll fails (the stream stays open and a fresh `snapshot` follows recovery); `unsupported` when the cloud type has no resource listing (the stream then ends). A group is `{ projectId, projectName, projectDeleted, provider, cloudCredentialId, lastPolledAt, warnings[], resources[] }`; `resources` holds the provider-specific CCF resource DTOs, and `projectId` is null for the Unassigned group.


/api/v1/sse/ccf-resources/project/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/event-stream,application/json" \
 "http://localhost/api/v1/sse/ccf-resources/project/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();
        Integer projectId = 56; // Integer | 

        try {
            CcfResourcesSseEvent result = apiInstance.sseCcfResourcesProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourcesProject");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.sseCcfResourcesProject(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseCcfResourcesProject: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();
        Integer projectId = 56; // Integer | 

        try {
            CcfResourcesSseEvent result = apiInstance.sseCcfResourcesProject(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseCcfResourcesProject");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];
Integer *projectId = 56; //  (default to null)

// Subscribe to live CCF-owned cloud resources of a project
[apiInstance sseCcfResourcesProjectWith:projectId
              completionHandler: ^(CcfResourcesSseEvent output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var projectId = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sseCcfResourcesProject(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseCcfResourcesProjectExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();
            var projectId = 56;  // Integer |  (default to null)

            try {
                // Subscribe to live CCF-owned cloud resources of a project
                CcfResourcesSseEvent result = apiInstance.sseCcfResourcesProject(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseCcfResourcesProject: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();
$projectId = 56; // Integer | 

try {
    $result = $api_instance->sseCcfResourcesProject($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseCcfResourcesProject: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();
my $projectId = 56; # Integer | 

eval {
    my $result = $api_instance->sseCcfResourcesProject(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SseApi->sseCcfResourcesProject: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()
projectId = 56 # Integer |  (default to null)

try:
    # Subscribe to live CCF-owned cloud resources of a project
    api_response = api_instance.sse_ccf_resources_project(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SseApi->sseCcfResourcesProject: %s\n" % e)
extern crate SseApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = SseApi::Context::default();
    let result = client.sseCcfResourcesProject(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Required

Responses


sseHealth

Subscribe to real-time infrastructure health state changes

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/sse/health

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sse/health"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseHealth();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseHealth");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.sseHealth();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseHealth: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseHealth();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseHealth");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];

// Subscribe to real-time infrastructure health state changes
[apiInstance sseHealthWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sseHealth(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseHealthExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();

            try {
                // Subscribe to real-time infrastructure health state changes
                apiInstance.sseHealth();
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseHealth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();

try {
    $api_instance->sseHealth();
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseHealth: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();

eval {
    $api_instance->sseHealth();
};
if ($@) {
    warn "Exception when calling SseApi->sseHealth: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()

try:
    # Subscribe to real-time infrastructure health state changes
    api_instance.sse_health()
except ApiException as e:
    print("Exception when calling SseApi->sseHealth: %s\n" % e)
extern crate SseApi;

pub fn main() {

    let mut context = SseApi::Context::default();
    let result = client.sseHealth(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


sseNotifications

Subscribe to real-time notification messages for the current user


/api/v1/sse/notifications

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sse/notifications"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseNotifications();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseNotifications");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.sseNotifications();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseNotifications: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseNotifications();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseNotifications");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];

// Subscribe to real-time notification messages for the current user
[apiInstance sseNotificationsWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sseNotifications(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseNotificationsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();

            try {
                // Subscribe to real-time notification messages for the current user
                apiInstance.sseNotifications();
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseNotifications: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();

try {
    $api_instance->sseNotifications();
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseNotifications: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();

eval {
    $api_instance->sseNotifications();
};
if ($@) {
    warn "Exception when calling SseApi->sseNotifications: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()

try:
    # Subscribe to real-time notification messages for the current user
    api_instance.sse_notifications()
except ApiException as e:
    print("Exception when calling SseApi->sseNotifications: %s\n" % e)
extern crate SseApi;

pub fn main() {

    let mut context = SseApi::Context::default();
    let result = client.sseNotifications(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


sseRecentEvents

Subscribe to real-time audit log events

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/sse/recent-events/{organizationId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sse/recent-events/{organizationId}?Status=&Category=&ProjectId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();
        Integer organizationId = 56; // Integer | 
        ActionStatus status = ; // ActionStatus | 
        ActionType category = ; // ActionType | 
        Integer projectId = 56; // Integer | 

        try {
            apiInstance.sseRecentEvents(organizationId, status, category, projectId);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseRecentEvents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | 
final ActionStatus status = new ActionStatus(); // ActionStatus | 
final ActionType category = new ActionType(); // ActionType | 
final Integer projectId = new Integer(); // Integer | 

try {
    final result = await api_instance.sseRecentEvents(organizationId, status, category, projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseRecentEvents: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();
        Integer organizationId = 56; // Integer | 
        ActionStatus status = ; // ActionStatus | 
        ActionType category = ; // ActionType | 
        Integer projectId = 56; // Integer | 

        try {
            apiInstance.sseRecentEvents(organizationId, status, category, projectId);
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseRecentEvents");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];
Integer *organizationId = 56; //  (default to null)
ActionStatus *status = ; //  (optional) (default to null)
ActionType *category = ; //  (optional) (default to null)
Integer *projectId = 56; //  (optional) (default to null)

// Subscribe to real-time audit log events
[apiInstance sseRecentEventsWith:organizationId
    status:status
    category:category
    projectId:projectId
              completionHandler: ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var organizationId = 56; // {Integer} 
var opts = {
  'status': , // {ActionStatus} 
  'category': , // {ActionType} 
  'projectId': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sseRecentEvents(organizationId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseRecentEventsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();
            var organizationId = 56;  // Integer |  (default to null)
            var status = new ActionStatus(); // ActionStatus |  (optional)  (default to null)
            var category = new ActionType(); // ActionType |  (optional)  (default to null)
            var projectId = 56;  // Integer |  (optional)  (default to null)

            try {
                // Subscribe to real-time audit log events
                apiInstance.sseRecentEvents(organizationId, status, category, projectId);
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseRecentEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();
$organizationId = 56; // Integer | 
$status = ; // ActionStatus | 
$category = ; // ActionType | 
$projectId = 56; // Integer | 

try {
    $api_instance->sseRecentEvents($organizationId, $status, $category, $projectId);
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseRecentEvents: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();
my $organizationId = 56; # Integer | 
my $status = ; # ActionStatus | 
my $category = ; # ActionType | 
my $projectId = 56; # Integer | 

eval {
    $api_instance->sseRecentEvents(organizationId => $organizationId, status => $status, category => $category, projectId => $projectId);
};
if ($@) {
    warn "Exception when calling SseApi->sseRecentEvents: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()
organizationId = 56 # Integer |  (default to null)
status =  # ActionStatus |  (optional) (default to null)
category =  # ActionType |  (optional) (default to null)
projectId = 56 # Integer |  (optional) (default to null)

try:
    # Subscribe to real-time audit log events
    api_instance.sse_recent_events(organizationId, status=status, category=category, projectId=projectId)
except ApiException as e:
    print("Exception when calling SseApi->sseRecentEvents: %s\n" % e)
extern crate SseApi;

pub fn main() {
    let organizationId = 56; // Integer
    let status = ; // ActionStatus
    let category = ; // ActionType
    let projectId = 56; // Integer

    let mut context = SseApi::Context::default();
    let result = client.sseRecentEvents(organizationId, status, category, projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
organizationId*
Integer (int32)
Required
Query parameters
Name Description
Status
ActionStatus
Category
ActionType
ProjectId
Integer (int32)

Responses


sseUpdateUserPermission

Subscribe to real-time cache invalidation events for the current user

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/sse/update-user-permission

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sse/update-user-permission"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SseApi;

import java.io.File;
import java.util.*;

public class SseApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseUpdateUserPermission();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseUpdateUserPermission");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.sseUpdateUserPermission();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sseUpdateUserPermission: $e\n');
}

import org.openapitools.client.api.SseApi;

public class SseApiExample {
    public static void main(String[] args) {
        SseApi apiInstance = new SseApi();

        try {
            apiInstance.sseUpdateUserPermission();
        } catch (ApiException e) {
            System.err.println("Exception when calling SseApi#sseUpdateUserPermission");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SseApi *apiInstance = [[SseApi alloc] init];

// Subscribe to real-time cache invalidation events for the current user
[apiInstance sseUpdateUserPermissionWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SseApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.sseUpdateUserPermission(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sseUpdateUserPermissionExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SseApi();

            try {
                // Subscribe to real-time cache invalidation events for the current user
                apiInstance.sseUpdateUserPermission();
            } catch (Exception e) {
                Debug.Print("Exception when calling SseApi.sseUpdateUserPermission: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SseApi();

try {
    $api_instance->sseUpdateUserPermission();
} catch (Exception $e) {
    echo 'Exception when calling SseApi->sseUpdateUserPermission: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SseApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SseApi->new();

eval {
    $api_instance->sseUpdateUserPermission();
};
if ($@) {
    warn "Exception when calling SseApi->sseUpdateUserPermission: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SseApi()

try:
    # Subscribe to real-time cache invalidation events for the current user
    api_instance.sse_update_user_permission()
except ApiException as e:
    print("Exception when calling SseApi->sseUpdateUserPermission: %s\n" % e)
extern crate SseApi;

pub fn main() {

    let mut context = SseApi::Context::default();
    let result = client.sseUpdateUserPermission(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


SshUsers

sshusersCreate

Create access profile ssh user


/api/v1/sshusers/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sshusers/create" \
 -d '{
  "sshPublicKey" : "sshPublicKey",
  "name" : "name",
  "accessProfileId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SshUsersApi;

import java.io.File;
import java.util.*;

public class SshUsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SshUsersApi apiInstance = new SshUsersApi();
        CreateSshUserCommand createSshUserCommand = ; // CreateSshUserCommand | 

        try {
            ApiResponse result = apiInstance.sshusersCreate(createSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateSshUserCommand createSshUserCommand = new CreateSshUserCommand(); // CreateSshUserCommand | 

try {
    final result = await api_instance.sshusersCreate(createSshUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sshusersCreate: $e\n');
}

import org.openapitools.client.api.SshUsersApi;

public class SshUsersApiExample {
    public static void main(String[] args) {
        SshUsersApi apiInstance = new SshUsersApi();
        CreateSshUserCommand createSshUserCommand = ; // CreateSshUserCommand | 

        try {
            ApiResponse result = apiInstance.sshusersCreate(createSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SshUsersApi *apiInstance = [[SshUsersApi alloc] init];
CreateSshUserCommand *createSshUserCommand = ; //  (optional)

// Create access profile ssh user
[apiInstance sshusersCreateWith:createSshUserCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SshUsersApi()
var opts = {
  'createSshUserCommand':  // {CreateSshUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sshusersCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sshusersCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SshUsersApi();
            var createSshUserCommand = new CreateSshUserCommand(); // CreateSshUserCommand |  (optional) 

            try {
                // Create access profile ssh user
                ApiResponse result = apiInstance.sshusersCreate(createSshUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SshUsersApi.sshusersCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SshUsersApi();
$createSshUserCommand = ; // CreateSshUserCommand | 

try {
    $result = $api_instance->sshusersCreate($createSshUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SshUsersApi->sshusersCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SshUsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SshUsersApi->new();
my $createSshUserCommand = WWW::OPenAPIClient::Object::CreateSshUserCommand->new(); # CreateSshUserCommand | 

eval {
    my $result = $api_instance->sshusersCreate(createSshUserCommand => $createSshUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SshUsersApi->sshusersCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SshUsersApi()
createSshUserCommand =  # CreateSshUserCommand |  (optional)

try:
    # Create access profile ssh user
    api_response = api_instance.sshusers_create(createSshUserCommand=createSshUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SshUsersApi->sshusersCreate: %s\n" % e)
extern crate SshUsersApi;

pub fn main() {
    let createSshUserCommand = ; // CreateSshUserCommand

    let mut context = SshUsersApi::Context::default();
    let result = client.sshusersCreate(createSshUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createSshUserCommand

Responses


sshusersDelete

Delete access profile ssh user


/api/v1/sshusers/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sshusers/delete" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SshUsersApi;

import java.io.File;
import java.util.*;

public class SshUsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SshUsersApi apiInstance = new SshUsersApi();
        DeleteSshUserCommand deleteSshUserCommand = ; // DeleteSshUserCommand | 

        try {
            Object result = apiInstance.sshusersDelete(deleteSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteSshUserCommand deleteSshUserCommand = new DeleteSshUserCommand(); // DeleteSshUserCommand | 

try {
    final result = await api_instance.sshusersDelete(deleteSshUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sshusersDelete: $e\n');
}

import org.openapitools.client.api.SshUsersApi;

public class SshUsersApiExample {
    public static void main(String[] args) {
        SshUsersApi apiInstance = new SshUsersApi();
        DeleteSshUserCommand deleteSshUserCommand = ; // DeleteSshUserCommand | 

        try {
            Object result = apiInstance.sshusersDelete(deleteSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SshUsersApi *apiInstance = [[SshUsersApi alloc] init];
DeleteSshUserCommand *deleteSshUserCommand = ; //  (optional)

// Delete access profile ssh user
[apiInstance sshusersDeleteWith:deleteSshUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SshUsersApi()
var opts = {
  'deleteSshUserCommand':  // {DeleteSshUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sshusersDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sshusersDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SshUsersApi();
            var deleteSshUserCommand = new DeleteSshUserCommand(); // DeleteSshUserCommand |  (optional) 

            try {
                // Delete access profile ssh user
                Object result = apiInstance.sshusersDelete(deleteSshUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SshUsersApi.sshusersDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SshUsersApi();
$deleteSshUserCommand = ; // DeleteSshUserCommand | 

try {
    $result = $api_instance->sshusersDelete($deleteSshUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SshUsersApi->sshusersDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SshUsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SshUsersApi->new();
my $deleteSshUserCommand = WWW::OPenAPIClient::Object::DeleteSshUserCommand->new(); # DeleteSshUserCommand | 

eval {
    my $result = $api_instance->sshusersDelete(deleteSshUserCommand => $deleteSshUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SshUsersApi->sshusersDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SshUsersApi()
deleteSshUserCommand =  # DeleteSshUserCommand |  (optional)

try:
    # Delete access profile ssh user
    api_response = api_instance.sshusers_delete(deleteSshUserCommand=deleteSshUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SshUsersApi->sshusersDelete: %s\n" % e)
extern crate SshUsersApi;

pub fn main() {
    let deleteSshUserCommand = ; // DeleteSshUserCommand

    let mut context = SshUsersApi::Context::default();
    let result = client.sshusersDelete(deleteSshUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteSshUserCommand

Responses


sshusersEdit

Edit access profile ssh user


/api/v1/sshusers/edit

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sshusers/edit" \
 -d '{
  "sshPublicKey" : "sshPublicKey",
  "name" : "name",
  "accessProfileId" : 6,
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SshUsersApi;

import java.io.File;
import java.util.*;

public class SshUsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SshUsersApi apiInstance = new SshUsersApi();
        EditSshUserCommand editSshUserCommand = ; // EditSshUserCommand | 

        try {
            Object result = apiInstance.sshusersEdit(editSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditSshUserCommand editSshUserCommand = new EditSshUserCommand(); // EditSshUserCommand | 

try {
    final result = await api_instance.sshusersEdit(editSshUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sshusersEdit: $e\n');
}

import org.openapitools.client.api.SshUsersApi;

public class SshUsersApiExample {
    public static void main(String[] args) {
        SshUsersApi apiInstance = new SshUsersApi();
        EditSshUserCommand editSshUserCommand = ; // EditSshUserCommand | 

        try {
            Object result = apiInstance.sshusersEdit(editSshUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SshUsersApi *apiInstance = [[SshUsersApi alloc] init];
EditSshUserCommand *editSshUserCommand = ; //  (optional)

// Edit access profile ssh user
[apiInstance sshusersEditWith:editSshUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SshUsersApi()
var opts = {
  'editSshUserCommand':  // {EditSshUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sshusersEdit(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sshusersEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SshUsersApi();
            var editSshUserCommand = new EditSshUserCommand(); // EditSshUserCommand |  (optional) 

            try {
                // Edit access profile ssh user
                Object result = apiInstance.sshusersEdit(editSshUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SshUsersApi.sshusersEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SshUsersApi();
$editSshUserCommand = ; // EditSshUserCommand | 

try {
    $result = $api_instance->sshusersEdit($editSshUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SshUsersApi->sshusersEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SshUsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SshUsersApi->new();
my $editSshUserCommand = WWW::OPenAPIClient::Object::EditSshUserCommand->new(); # EditSshUserCommand | 

eval {
    my $result = $api_instance->sshusersEdit(editSshUserCommand => $editSshUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SshUsersApi->sshusersEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SshUsersApi()
editSshUserCommand =  # EditSshUserCommand |  (optional)

try:
    # Edit access profile ssh user
    api_response = api_instance.sshusers_edit(editSshUserCommand=editSshUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SshUsersApi->sshusersEdit: %s\n" % e)
extern crate SshUsersApi;

pub fn main() {
    let editSshUserCommand = ; // EditSshUserCommand

    let mut context = SshUsersApi::Context::default();
    let result = client.sshusersEdit(editSshUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editSshUserCommand

Responses


sshusersList

List ssh user by access profile id


/api/v1/sshusers/list/{accessProfileId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sshusers/list/{accessProfileId}?Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SshUsersApi;

import java.io.File;
import java.util.*;

public class SshUsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SshUsersApi apiInstance = new SshUsersApi();
        Integer accessProfileId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[SshUsersListDto] result = apiInstance.sshusersList(accessProfileId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer accessProfileId = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.sshusersList(accessProfileId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->sshusersList: $e\n');
}

import org.openapitools.client.api.SshUsersApi;

public class SshUsersApiExample {
    public static void main(String[] args) {
        SshUsersApi apiInstance = new SshUsersApi();
        Integer accessProfileId = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[SshUsersListDto] result = apiInstance.sshusersList(accessProfileId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SshUsersApi#sshusersList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SshUsersApi *apiInstance = [[SshUsersApi alloc] init];
Integer *accessProfileId = 56; //  (default to null)
String *search = search_example; //  (optional) (default to null)

// List ssh user by access profile id
[apiInstance sshusersListWith:accessProfileId
    search:search
              completionHandler: ^(array[SshUsersListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SshUsersApi()
var accessProfileId = 56; // {Integer} 
var opts = {
  'search': search_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.sshusersList(accessProfileId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class sshusersListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SshUsersApi();
            var accessProfileId = 56;  // Integer |  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // List ssh user by access profile id
                array[SshUsersListDto] result = apiInstance.sshusersList(accessProfileId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SshUsersApi.sshusersList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SshUsersApi();
$accessProfileId = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->sshusersList($accessProfileId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SshUsersApi->sshusersList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SshUsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SshUsersApi->new();
my $accessProfileId = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->sshusersList(accessProfileId => $accessProfileId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SshUsersApi->sshusersList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SshUsersApi()
accessProfileId = 56 # Integer |  (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # List ssh user by access profile id
    api_response = api_instance.sshusers_list(accessProfileId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SshUsersApi->sshusersList: %s\n" % e)
extern crate SshUsersApi;

pub fn main() {
    let accessProfileId = 56; // Integer
    let search = search_example; // String

    let mut context = SshUsersApi::Context::default();
    let result = client.sshusersList(accessProfileId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
accessProfileId*
Integer (int32)
Required
Query parameters
Name Description
Search

Responses


SsoConfig

ssoConfigCheck

Verify that an SSO configuration's issuer URL is reachable and returns a valid OIDC discovery document


/api/v1/sso-config/check

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sso-config/check" \
 -d '{
  "clientId" : "clientId",
  "issuerUrl" : "issuerUrl",
  "clientSecret" : "clientSecret"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        CheckDomainSsoConfigCommand checkDomainSsoConfigCommand = ; // CheckDomainSsoConfigCommand | 

        try {
            Object result = apiInstance.ssoConfigCheck(checkDomainSsoConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigCheck");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CheckDomainSsoConfigCommand checkDomainSsoConfigCommand = new CheckDomainSsoConfigCommand(); // CheckDomainSsoConfigCommand | 

try {
    final result = await api_instance.ssoConfigCheck(checkDomainSsoConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigCheck: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        CheckDomainSsoConfigCommand checkDomainSsoConfigCommand = ; // CheckDomainSsoConfigCommand | 

        try {
            Object result = apiInstance.ssoConfigCheck(checkDomainSsoConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigCheck");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
CheckDomainSsoConfigCommand *checkDomainSsoConfigCommand = ; //  (optional)

// Verify that an SSO configuration's issuer URL is reachable and returns a valid OIDC discovery document
[apiInstance ssoConfigCheckWith:checkDomainSsoConfigCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var opts = {
  'checkDomainSsoConfigCommand':  // {CheckDomainSsoConfigCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigCheck(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigCheckExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var checkDomainSsoConfigCommand = new CheckDomainSsoConfigCommand(); // CheckDomainSsoConfigCommand |  (optional) 

            try {
                // Verify that an SSO configuration's issuer URL is reachable and returns a valid OIDC discovery document
                Object result = apiInstance.ssoConfigCheck(checkDomainSsoConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigCheck: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$checkDomainSsoConfigCommand = ; // CheckDomainSsoConfigCommand | 

try {
    $result = $api_instance->ssoConfigCheck($checkDomainSsoConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigCheck: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $checkDomainSsoConfigCommand = WWW::OPenAPIClient::Object::CheckDomainSsoConfigCommand->new(); # CheckDomainSsoConfigCommand | 

eval {
    my $result = $api_instance->ssoConfigCheck(checkDomainSsoConfigCommand => $checkDomainSsoConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigCheck: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
checkDomainSsoConfigCommand =  # CheckDomainSsoConfigCommand |  (optional)

try:
    # Verify that an SSO configuration's issuer URL is reachable and returns a valid OIDC discovery document
    api_response = api_instance.sso_config_check(checkDomainSsoConfigCommand=checkDomainSsoConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigCheck: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let checkDomainSsoConfigCommand = ; // CheckDomainSsoConfigCommand

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigCheck(checkDomainSsoConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
checkDomainSsoConfigCommand

Responses


ssoConfigCreate

Create SSO configuration


/api/v1/sso-config/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sso-config/create" \
 -d '{
  "groupClaimName" : "groupClaimName",
  "clientId" : "clientId",
  "groupFromIdp" : true,
  "issuerUrl" : "issuerUrl",
  "isEnabled" : true,
  "name" : "name",
  "clientSecret" : "clientSecret",
  "groupScopeName" : "groupScopeName",
  "domainId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        CreateDomainSsoConfigCommand createDomainSsoConfigCommand = ; // CreateDomainSsoConfigCommand | 

        try {
            'Integer' result = apiInstance.ssoConfigCreate(createDomainSsoConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateDomainSsoConfigCommand createDomainSsoConfigCommand = new CreateDomainSsoConfigCommand(); // CreateDomainSsoConfigCommand | 

try {
    final result = await api_instance.ssoConfigCreate(createDomainSsoConfigCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigCreate: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        CreateDomainSsoConfigCommand createDomainSsoConfigCommand = ; // CreateDomainSsoConfigCommand | 

        try {
            'Integer' result = apiInstance.ssoConfigCreate(createDomainSsoConfigCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
CreateDomainSsoConfigCommand *createDomainSsoConfigCommand = ; //  (optional)

// Create SSO configuration
[apiInstance ssoConfigCreateWith:createDomainSsoConfigCommand
              completionHandler: ^('Integer' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var opts = {
  'createDomainSsoConfigCommand':  // {CreateDomainSsoConfigCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var createDomainSsoConfigCommand = new CreateDomainSsoConfigCommand(); // CreateDomainSsoConfigCommand |  (optional) 

            try {
                // Create SSO configuration
                'Integer' result = apiInstance.ssoConfigCreate(createDomainSsoConfigCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$createDomainSsoConfigCommand = ; // CreateDomainSsoConfigCommand | 

try {
    $result = $api_instance->ssoConfigCreate($createDomainSsoConfigCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $createDomainSsoConfigCommand = WWW::OPenAPIClient::Object::CreateDomainSsoConfigCommand->new(); # CreateDomainSsoConfigCommand | 

eval {
    my $result = $api_instance->ssoConfigCreate(createDomainSsoConfigCommand => $createDomainSsoConfigCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
createDomainSsoConfigCommand =  # CreateDomainSsoConfigCommand |  (optional)

try:
    # Create SSO configuration
    api_response = api_instance.sso_config_create(createDomainSsoConfigCommand=createDomainSsoConfigCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigCreate: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let createDomainSsoConfigCommand = ; // CreateDomainSsoConfigCommand

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigCreate(createDomainSsoConfigCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createDomainSsoConfigCommand

Responses


ssoConfigDelete

Delete SSO configuration


/api/v1/sso-config/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sso-config/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.ssoConfigDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.ssoConfigDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigDelete: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.ssoConfigDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete SSO configuration
[apiInstance ssoConfigDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete SSO configuration
                Object result = apiInstance.ssoConfigDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->ssoConfigDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->ssoConfigDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
id = 56 # Integer |  (default to null)

try:
    # Delete SSO configuration
    api_response = api_instance.sso_config_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigDelete: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


ssoConfigDetails

Retrieve a single SSO configuration by id


/api/v1/sso-config/details

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sso-config/details?Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 

        try {
            DomainSsoConfigDto result = apiInstance.ssoConfigDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.ssoConfigDetails(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigDetails: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 

        try {
            DomainSsoConfigDto result = apiInstance.ssoConfigDetails(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
Integer *id = 56; //  (default to null)

// Retrieve a single SSO configuration by id
[apiInstance ssoConfigDetailsWith:id
              completionHandler: ^(DomainSsoConfigDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigDetails(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Retrieve a single SSO configuration by id
                DomainSsoConfigDto result = apiInstance.ssoConfigDetails(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->ssoConfigDetails($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->ssoConfigDetails(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
id = 56 # Integer |  (default to null)

try:
    # Retrieve a single SSO configuration by id
    api_response = api_instance.sso_config_details(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigDetails: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigDetails(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Id*
Integer (int32)
Required

Responses


ssoConfigList

Retrieve all SSO configurations for an domain


/api/v1/sso-config

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/sso-config?DomainId=56&Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 

        try {
            DomainSsoConfigList result = apiInstance.ssoConfigList(domainId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer domainId = new Integer(); // Integer | 
final Integer limit = new Integer(); // Integer | 
final Integer offset = new Integer(); // Integer | 
final String sortBy = new String(); // String | 
final String sortDirection = new String(); // String | 
final String search = new String(); // String | 
final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.ssoConfigList(domainId, limit, offset, sortBy, sortDirection, search, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigList: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer domainId = 56; // Integer | 
        Integer limit = 56; // Integer | 
        Integer offset = 56; // Integer | 
        String sortBy = sortBy_example; // String | 
        String sortDirection = sortDirection_example; // String | 
        String search = search_example; // String | 
        Integer id = 56; // Integer | 

        try {
            DomainSsoConfigList result = apiInstance.ssoConfigList(domainId, limit, offset, sortBy, sortDirection, search, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
Integer *domainId = 56; //  (optional) (default to null)
Integer *limit = 56; //  (optional) (default to null)
Integer *offset = 56; //  (optional) (default to null)
String *sortBy = sortBy_example; //  (optional) (default to null)
String *sortDirection = sortDirection_example; //  (optional) (default to null)
String *search = search_example; //  (optional) (default to null)
Integer *id = 56; //  (optional) (default to null)

// Retrieve all SSO configurations for an domain
[apiInstance ssoConfigListWith:domainId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    id:id
              completionHandler: ^(DomainSsoConfigList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var opts = {
  'domainId': 56, // {Integer} 
  'limit': 56, // {Integer} 
  'offset': 56, // {Integer} 
  'sortBy': sortBy_example, // {String} 
  'sortDirection': sortDirection_example, // {String} 
  'search': search_example, // {String} 
  'id': 56 // {Integer} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var domainId = 56;  // Integer |  (optional)  (default to null)
            var limit = 56;  // Integer |  (optional)  (default to null)
            var offset = 56;  // Integer |  (optional)  (default to null)
            var sortBy = sortBy_example;  // String |  (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String |  (optional)  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)
            var id = 56;  // Integer |  (optional)  (default to null)

            try {
                // Retrieve all SSO configurations for an domain
                DomainSsoConfigList result = apiInstance.ssoConfigList(domainId, limit, offset, sortBy, sortDirection, search, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$domainId = 56; // Integer | 
$limit = 56; // Integer | 
$offset = 56; // Integer | 
$sortBy = sortBy_example; // String | 
$sortDirection = sortDirection_example; // String | 
$search = search_example; // String | 
$id = 56; // Integer | 

try {
    $result = $api_instance->ssoConfigList($domainId, $limit, $offset, $sortBy, $sortDirection, $search, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $domainId = 56; # Integer | 
my $limit = 56; # Integer | 
my $offset = 56; # Integer | 
my $sortBy = sortBy_example; # String | 
my $sortDirection = sortDirection_example; # String | 
my $search = search_example; # String | 
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->ssoConfigList(domainId => $domainId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
domainId = 56 # Integer |  (optional) (default to null)
limit = 56 # Integer |  (optional) (default to null)
offset = 56 # Integer |  (optional) (default to null)
sortBy = sortBy_example # String |  (optional) (default to null)
sortDirection = sortDirection_example # String |  (optional) (default to null)
search = search_example # String |  (optional) (default to null)
id = 56 # Integer |  (optional) (default to null)

try:
    # Retrieve all SSO configurations for an domain
    api_response = api_instance.sso_config_list(domainId=domainId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigList: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let domainId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let id = 56; // Integer

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigList(domainId, limit, offset, sortBy, sortDirection, search, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
DomainId
Integer (int32)
Limit
Integer (int32)
Offset
Integer (int32)
SortBy
String
SortDirection
String
Search
Id
Integer (int32)

Responses


ssoConfigUpdate

Update SSO configuration


/api/v1/sso-config/update/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/sso-config/update/{id}" \
 -d '{
  "groupClaimName" : "groupClaimName",
  "clientId" : "clientId",
  "groupFromIdp" : true,
  "issuerUrl" : "issuerUrl",
  "isEnabled" : true,
  "name" : "name",
  "clientSecret" : "clientSecret",
  "groupScopeName" : "groupScopeName"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.SsoConfigApi;

import java.io.File;
import java.util.*;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 
        UpdateDomainSsoConfigDto updateDomainSsoConfigDto = ; // UpdateDomainSsoConfigDto | 

        try {
            Object result = apiInstance.ssoConfigUpdate(id, updateDomainSsoConfigDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigUpdate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final UpdateDomainSsoConfigDto updateDomainSsoConfigDto = new UpdateDomainSsoConfigDto(); // UpdateDomainSsoConfigDto | 

try {
    final result = await api_instance.ssoConfigUpdate(id, updateDomainSsoConfigDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->ssoConfigUpdate: $e\n');
}

import org.openapitools.client.api.SsoConfigApi;

public class SsoConfigApiExample {
    public static void main(String[] args) {
        SsoConfigApi apiInstance = new SsoConfigApi();
        Integer id = 56; // Integer | 
        UpdateDomainSsoConfigDto updateDomainSsoConfigDto = ; // UpdateDomainSsoConfigDto | 

        try {
            Object result = apiInstance.ssoConfigUpdate(id, updateDomainSsoConfigDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling SsoConfigApi#ssoConfigUpdate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
SsoConfigApi *apiInstance = [[SsoConfigApi alloc] init];
Integer *id = 56; //  (default to null)
UpdateDomainSsoConfigDto *updateDomainSsoConfigDto = ; //  (optional)

// Update SSO configuration
[apiInstance ssoConfigUpdateWith:id
    updateDomainSsoConfigDto:updateDomainSsoConfigDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.SsoConfigApi()
var id = 56; // {Integer} 
var opts = {
  'updateDomainSsoConfigDto':  // {UpdateDomainSsoConfigDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.ssoConfigUpdate(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class ssoConfigUpdateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new SsoConfigApi();
            var id = 56;  // Integer |  (default to null)
            var updateDomainSsoConfigDto = new UpdateDomainSsoConfigDto(); // UpdateDomainSsoConfigDto |  (optional) 

            try {
                // Update SSO configuration
                Object result = apiInstance.ssoConfigUpdate(id, updateDomainSsoConfigDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling SsoConfigApi.ssoConfigUpdate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\SsoConfigApi();
$id = 56; // Integer | 
$updateDomainSsoConfigDto = ; // UpdateDomainSsoConfigDto | 

try {
    $result = $api_instance->ssoConfigUpdate($id, $updateDomainSsoConfigDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SsoConfigApi->ssoConfigUpdate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::SsoConfigApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::SsoConfigApi->new();
my $id = 56; # Integer | 
my $updateDomainSsoConfigDto = WWW::OPenAPIClient::Object::UpdateDomainSsoConfigDto->new(); # UpdateDomainSsoConfigDto | 

eval {
    my $result = $api_instance->ssoConfigUpdate(id => $id, updateDomainSsoConfigDto => $updateDomainSsoConfigDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling SsoConfigApi->ssoConfigUpdate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.SsoConfigApi()
id = 56 # Integer |  (default to null)
updateDomainSsoConfigDto =  # UpdateDomainSsoConfigDto |  (optional)

try:
    # Update SSO configuration
    api_response = api_instance.sso_config_update(id, updateDomainSsoConfigDto=updateDomainSsoConfigDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling SsoConfigApi->ssoConfigUpdate: %s\n" % e)
extern crate SsoConfigApi;

pub fn main() {
    let id = 56; // Integer
    let updateDomainSsoConfigDto = ; // UpdateDomainSsoConfigDto

    let mut context = SsoConfigApi::Context::default();
    let result = client.ssoConfigUpdate(id, updateDomainSsoConfigDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
updateDomainSsoConfigDto

Responses


Standalone

standaloneCreate

Create a new vm in the given project.


/api/v1/standalone/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalone/create" \
 -d '{
  "standAloneVmDisks" : [ {
    "volumeType" : "volumeType",
    "size" : 2,
    "name" : "name",
    "lunId" : 7,
    "deviceName" : "deviceName"
  }, {
    "volumeType" : "volumeType",
    "size" : 2,
    "name" : "name",
    "lunId" : 7,
    "deviceName" : "deviceName"
  } ],
  "flavorName" : "flavorName",
  "volumeType" : "volumeType",
  "image" : "image",
  "spotPrice" : 5.637376656633329,
  "publicIpEnabled" : true,
  "count" : 5,
  "availabilityZone" : "availabilityZone",
  "volumeSize" : 0,
  "standAloneMetaDatas" : [ {
    "value" : "value",
    "key" : "key"
  }, {
    "value" : "value",
    "key" : "key"
  } ],
  "cloudInit" : "cloudInit",
  "spotInstance" : true,
  "password" : "password",
  "hypervisor" : "hypervisor",
  "name" : "name",
  "standAloneProfileId" : 6,
  "useLocalDisk" : true,
  "projectId" : 1,
  "username" : "username"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        CreateStandAloneVmCommand createStandAloneVmCommand = ; // CreateStandAloneVmCommand | 

        try {
            ApiResponse result = apiInstance.standaloneCreate(createStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateStandAloneVmCommand createStandAloneVmCommand = new CreateStandAloneVmCommand(); // CreateStandAloneVmCommand | 

try {
    final result = await api_instance.standaloneCreate(createStandAloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneCreate: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        CreateStandAloneVmCommand createStandAloneVmCommand = ; // CreateStandAloneVmCommand | 

        try {
            ApiResponse result = apiInstance.standaloneCreate(createStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
CreateStandAloneVmCommand *createStandAloneVmCommand = ; //  (optional)

// Create a new vm in the given project.
[apiInstance standaloneCreateWith:createStandAloneVmCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var opts = {
  'createStandAloneVmCommand':  // {CreateStandAloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var createStandAloneVmCommand = new CreateStandAloneVmCommand(); // CreateStandAloneVmCommand |  (optional) 

            try {
                // Create a new vm in the given project.
                ApiResponse result = apiInstance.standaloneCreate(createStandAloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$createStandAloneVmCommand = ; // CreateStandAloneVmCommand | 

try {
    $result = $api_instance->standaloneCreate($createStandAloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $createStandAloneVmCommand = WWW::OPenAPIClient::Object::CreateStandAloneVmCommand->new(); # CreateStandAloneVmCommand | 

eval {
    my $result = $api_instance->standaloneCreate(createStandAloneVmCommand => $createStandAloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
createStandAloneVmCommand =  # CreateStandAloneVmCommand |  (optional)

try:
    # Create a new vm in the given project.
    api_response = api_instance.standalone_create(createStandAloneVmCommand=createStandAloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneCreate: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let createStandAloneVmCommand = ; // CreateStandAloneVmCommand

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneCreate(createStandAloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createStandAloneVmCommand

Responses


standaloneDetails

Retrieve a list of standalone vm with detailed info

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/standalone/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/standalone/{projectId}?SortBy=sortBy_example&SortDirection=sortDirection_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        Integer id = 56; // Integer | Optional filter by VM id

        try {
            StandAloneVmListForDetails result = apiInstance.standaloneDetails(projectId, sortBy, sortDirection, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneDetails");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Project id, positive integer
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: 'asc' or 'desc'
final Integer id = new Integer(); // Integer | Optional filter by VM id

try {
    final result = await api_instance.standaloneDetails(projectId, sortBy, sortDirection, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneDetails: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        Integer projectId = 56; // Integer | Project id, positive integer
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        Integer id = 56; // Integer | Optional filter by VM id

        try {
            StandAloneVmListForDetails result = apiInstance.standaloneDetails(projectId, sortBy, sortDirection, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneDetails");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
Integer *projectId = 56; // Project id, positive integer (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: 'asc' or 'desc' (optional) (default to null)
Integer *id = 56; // Optional filter by VM id (optional) (default to null)

// Retrieve a list of standalone vm with detailed info
[apiInstance standaloneDetailsWith:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    id:id
              completionHandler: ^(StandAloneVmListForDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var projectId = 56; // {Integer} Project id, positive integer
var opts = {
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: 'asc' or 'desc'
  'id': 56 // {Integer} Optional filter by VM id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneDetails(projectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneDetailsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var projectId = 56;  // Integer | Project id, positive integer (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: 'asc' or 'desc' (optional)  (default to null)
            var id = 56;  // Integer | Optional filter by VM id (optional)  (default to null)

            try {
                // Retrieve a list of standalone vm with detailed info
                StandAloneVmListForDetails result = apiInstance.standaloneDetails(projectId, sortBy, sortDirection, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneDetails: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$projectId = 56; // Integer | Project id, positive integer
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
$id = 56; // Integer | Optional filter by VM id

try {
    $result = $api_instance->standaloneDetails($projectId, $sortBy, $sortDirection, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneDetails: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $projectId = 56; # Integer | Project id, positive integer
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: 'asc' or 'desc'
my $id = 56; # Integer | Optional filter by VM id

eval {
    my $result = $api_instance->standaloneDetails(projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneDetails: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
projectId = 56 # Integer | Project id, positive integer (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: 'asc' or 'desc' (optional) (default to null)
id = 56 # Integer | Optional filter by VM id (optional) (default to null)

try:
    # Retrieve a list of standalone vm with detailed info
    api_response = api_instance.standalone_details(projectId, sortBy=sortBy, sortDirection=sortDirection, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneDetails: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let id = 56; // Integer

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneDetails(projectId, sortBy, sortDirection, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Project id, positive integer
Required
Query parameters
Name Description
SortBy
String
Field to sort by
SortDirection
String
Sort direction: 'asc' or 'desc'
Id
Integer (int32)
Optional filter by VM id

Responses


standaloneIpManagement

Enable/Disable stand alone public ip


/api/v1/standalone/ip/management

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalone/ip/management" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        StandAloneVmIpManagementCommand standAloneVmIpManagementCommand = ; // StandAloneVmIpManagementCommand | 

        try {
            Object result = apiInstance.standaloneIpManagement(standAloneVmIpManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneIpManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StandAloneVmIpManagementCommand standAloneVmIpManagementCommand = new StandAloneVmIpManagementCommand(); // StandAloneVmIpManagementCommand | 

try {
    final result = await api_instance.standaloneIpManagement(standAloneVmIpManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneIpManagement: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        StandAloneVmIpManagementCommand standAloneVmIpManagementCommand = ; // StandAloneVmIpManagementCommand | 

        try {
            Object result = apiInstance.standaloneIpManagement(standAloneVmIpManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneIpManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
StandAloneVmIpManagementCommand *standAloneVmIpManagementCommand = ; //  (optional)

// Enable/Disable stand alone public ip
[apiInstance standaloneIpManagementWith:standAloneVmIpManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var opts = {
  'standAloneVmIpManagementCommand':  // {StandAloneVmIpManagementCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneIpManagement(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneIpManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var standAloneVmIpManagementCommand = new StandAloneVmIpManagementCommand(); // StandAloneVmIpManagementCommand |  (optional) 

            try {
                // Enable/Disable stand alone public ip
                Object result = apiInstance.standaloneIpManagement(standAloneVmIpManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneIpManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$standAloneVmIpManagementCommand = ; // StandAloneVmIpManagementCommand | 

try {
    $result = $api_instance->standaloneIpManagement($standAloneVmIpManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneIpManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $standAloneVmIpManagementCommand = WWW::OPenAPIClient::Object::StandAloneVmIpManagementCommand->new(); # StandAloneVmIpManagementCommand | 

eval {
    my $result = $api_instance->standaloneIpManagement(standAloneVmIpManagementCommand => $standAloneVmIpManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneIpManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
standAloneVmIpManagementCommand =  # StandAloneVmIpManagementCommand |  (optional)

try:
    # Enable/Disable stand alone public ip
    api_response = api_instance.standalone_ip_management(standAloneVmIpManagementCommand=standAloneVmIpManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneIpManagement: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let standAloneVmIpManagementCommand = ; // StandAloneVmIpManagementCommand

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneIpManagement(standAloneVmIpManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
standAloneVmIpManagementCommand

Responses


standaloneList

Retrieve all vms


/api/v1/standalone

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/standalone?Limit=56&Offset=56&ProjectId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&StartRam=1.2&EndRam=1.2&StartVolumeSize=789&EndVolumeSize=789&StartCpu=56&EndCpu=56&OrganizationId=56&Id=56&SearchId=searchId_example&FilterBy=filterBy_example&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        Integer projectId = 56; // Integer | Optional project id to filter by
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on VM name
        Double startRam = 1.2; // Double | Optional minimum RAM filter
        Double endRam = 1.2; // Double | Optional maximum RAM filter
        Long startVolumeSize = 789; // Long | Optional minimum volume size filter
        Long endVolumeSize = 789; // Long | Optional maximum volume size filter
        Integer startCpu = 56; // Integer | Optional minimum CPU filter
        Integer endCpu = 56; // Integer | Optional maximum CPU filter
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        Integer id = 56; // Integer | Optional filter by VM id
        String searchId = searchId_example; // String | Optional search by id
        String filterBy = filterBy_example; // String | Optional field to filter by
        Integer domainId = 56; // Integer | Optional filter by domain id

        try {
            StandaloneVmsList result = apiInstance.standaloneList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startVolumeSize, endVolumeSize, startCpu, endCpu, organizationId, id, searchId, filterBy, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Optional page size
final Integer offset = new Integer(); // Integer | Optional page offset
final Integer projectId = new Integer(); // Integer | Optional project id to filter by
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: 'asc' or 'desc'
final String search = new String(); // String | Optional free-text search on VM name
final Double startRam = new Double(); // Double | Optional minimum RAM filter
final Double endRam = new Double(); // Double | Optional maximum RAM filter
final Long startVolumeSize = new Long(); // Long | Optional minimum volume size filter
final Long endVolumeSize = new Long(); // Long | Optional maximum volume size filter
final Integer startCpu = new Integer(); // Integer | Optional minimum CPU filter
final Integer endCpu = new Integer(); // Integer | Optional maximum CPU filter
final Integer organizationId = new Integer(); // Integer | Optional organization id to filter by
final Integer id = new Integer(); // Integer | Optional filter by VM id
final String searchId = new String(); // String | Optional search by id
final String filterBy = new String(); // String | Optional field to filter by
final Integer domainId = new Integer(); // Integer | Optional filter by domain id

try {
    final result = await api_instance.standaloneList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startVolumeSize, endVolumeSize, startCpu, endCpu, organizationId, id, searchId, filterBy, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneList: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        Integer projectId = 56; // Integer | Optional project id to filter by
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on VM name
        Double startRam = 1.2; // Double | Optional minimum RAM filter
        Double endRam = 1.2; // Double | Optional maximum RAM filter
        Long startVolumeSize = 789; // Long | Optional minimum volume size filter
        Long endVolumeSize = 789; // Long | Optional maximum volume size filter
        Integer startCpu = 56; // Integer | Optional minimum CPU filter
        Integer endCpu = 56; // Integer | Optional maximum CPU filter
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        Integer id = 56; // Integer | Optional filter by VM id
        String searchId = searchId_example; // String | Optional search by id
        String filterBy = filterBy_example; // String | Optional field to filter by
        Integer domainId = 56; // Integer | Optional filter by domain id

        try {
            StandaloneVmsList result = apiInstance.standaloneList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startVolumeSize, endVolumeSize, startCpu, endCpu, organizationId, id, searchId, filterBy, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
Integer *limit = 56; // Optional page size (optional) (default to null)
Integer *offset = 56; // Optional page offset (optional) (default to null)
Integer *projectId = 56; // Optional project id to filter by (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: 'asc' or 'desc' (optional) (default to null)
String *search = search_example; // Optional free-text search on VM name (optional) (default to null)
Double *startRam = 1.2; // Optional minimum RAM filter (optional) (default to null)
Double *endRam = 1.2; // Optional maximum RAM filter (optional) (default to null)
Long *startVolumeSize = 789; // Optional minimum volume size filter (optional) (default to null)
Long *endVolumeSize = 789; // Optional maximum volume size filter (optional) (default to null)
Integer *startCpu = 56; // Optional minimum CPU filter (optional) (default to null)
Integer *endCpu = 56; // Optional maximum CPU filter (optional) (default to null)
Integer *organizationId = 56; // Optional organization id to filter by (optional) (default to null)
Integer *id = 56; // Optional filter by VM id (optional) (default to null)
String *searchId = searchId_example; // Optional search by id (optional) (default to null)
String *filterBy = filterBy_example; // Optional field to filter by (optional) (default to null)
Integer *domainId = 56; // Optional filter by domain id (optional) (default to null)

// Retrieve all vms
[apiInstance standaloneListWith:limit
    offset:offset
    projectId:projectId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    startRam:startRam
    endRam:endRam
    startVolumeSize:startVolumeSize
    endVolumeSize:endVolumeSize
    startCpu:startCpu
    endCpu:endCpu
    organizationId:organizationId
    id:id
    searchId:searchId
    filterBy:filterBy
    domainId:domainId
              completionHandler: ^(StandaloneVmsList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var opts = {
  'limit': 56, // {Integer} Optional page size
  'offset': 56, // {Integer} Optional page offset
  'projectId': 56, // {Integer} Optional project id to filter by
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: 'asc' or 'desc'
  'search': search_example, // {String} Optional free-text search on VM name
  'startRam': 1.2, // {Double} Optional minimum RAM filter
  'endRam': 1.2, // {Double} Optional maximum RAM filter
  'startVolumeSize': 789, // {Long} Optional minimum volume size filter
  'endVolumeSize': 789, // {Long} Optional maximum volume size filter
  'startCpu': 56, // {Integer} Optional minimum CPU filter
  'endCpu': 56, // {Integer} Optional maximum CPU filter
  'organizationId': 56, // {Integer} Optional organization id to filter by
  'id': 56, // {Integer} Optional filter by VM id
  'searchId': searchId_example, // {String} Optional search by id
  'filterBy': filterBy_example, // {String} Optional field to filter by
  'domainId': 56 // {Integer} Optional filter by domain id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var limit = 56;  // Integer | Optional page size (optional)  (default to null)
            var offset = 56;  // Integer | Optional page offset (optional)  (default to null)
            var projectId = 56;  // Integer | Optional project id to filter by (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: 'asc' or 'desc' (optional)  (default to null)
            var search = search_example;  // String | Optional free-text search on VM name (optional)  (default to null)
            var startRam = 1.2;  // Double | Optional minimum RAM filter (optional)  (default to null)
            var endRam = 1.2;  // Double | Optional maximum RAM filter (optional)  (default to null)
            var startVolumeSize = 789;  // Long | Optional minimum volume size filter (optional)  (default to null)
            var endVolumeSize = 789;  // Long | Optional maximum volume size filter (optional)  (default to null)
            var startCpu = 56;  // Integer | Optional minimum CPU filter (optional)  (default to null)
            var endCpu = 56;  // Integer | Optional maximum CPU filter (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id to filter by (optional)  (default to null)
            var id = 56;  // Integer | Optional filter by VM id (optional)  (default to null)
            var searchId = searchId_example;  // String | Optional search by id (optional)  (default to null)
            var filterBy = filterBy_example;  // String | Optional field to filter by (optional)  (default to null)
            var domainId = 56;  // Integer | Optional filter by domain id (optional)  (default to null)

            try {
                // Retrieve all vms
                StandaloneVmsList result = apiInstance.standaloneList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startVolumeSize, endVolumeSize, startCpu, endCpu, organizationId, id, searchId, filterBy, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$limit = 56; // Integer | Optional page size
$offset = 56; // Integer | Optional page offset
$projectId = 56; // Integer | Optional project id to filter by
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
$search = search_example; // String | Optional free-text search on VM name
$startRam = 1.2; // Double | Optional minimum RAM filter
$endRam = 1.2; // Double | Optional maximum RAM filter
$startVolumeSize = 789; // Long | Optional minimum volume size filter
$endVolumeSize = 789; // Long | Optional maximum volume size filter
$startCpu = 56; // Integer | Optional minimum CPU filter
$endCpu = 56; // Integer | Optional maximum CPU filter
$organizationId = 56; // Integer | Optional organization id to filter by
$id = 56; // Integer | Optional filter by VM id
$searchId = searchId_example; // String | Optional search by id
$filterBy = filterBy_example; // String | Optional field to filter by
$domainId = 56; // Integer | Optional filter by domain id

try {
    $result = $api_instance->standaloneList($limit, $offset, $projectId, $sortBy, $sortDirection, $search, $startRam, $endRam, $startVolumeSize, $endVolumeSize, $startCpu, $endCpu, $organizationId, $id, $searchId, $filterBy, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $limit = 56; # Integer | Optional page size
my $offset = 56; # Integer | Optional page offset
my $projectId = 56; # Integer | Optional project id to filter by
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: 'asc' or 'desc'
my $search = search_example; # String | Optional free-text search on VM name
my $startRam = 1.2; # Double | Optional minimum RAM filter
my $endRam = 1.2; # Double | Optional maximum RAM filter
my $startVolumeSize = 789; # Long | Optional minimum volume size filter
my $endVolumeSize = 789; # Long | Optional maximum volume size filter
my $startCpu = 56; # Integer | Optional minimum CPU filter
my $endCpu = 56; # Integer | Optional maximum CPU filter
my $organizationId = 56; # Integer | Optional organization id to filter by
my $id = 56; # Integer | Optional filter by VM id
my $searchId = searchId_example; # String | Optional search by id
my $filterBy = filterBy_example; # String | Optional field to filter by
my $domainId = 56; # Integer | Optional filter by domain id

eval {
    my $result = $api_instance->standaloneList(limit => $limit, offset => $offset, projectId => $projectId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, startRam => $startRam, endRam => $endRam, startVolumeSize => $startVolumeSize, endVolumeSize => $endVolumeSize, startCpu => $startCpu, endCpu => $endCpu, organizationId => $organizationId, id => $id, searchId => $searchId, filterBy => $filterBy, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
limit = 56 # Integer | Optional page size (optional) (default to null)
offset = 56 # Integer | Optional page offset (optional) (default to null)
projectId = 56 # Integer | Optional project id to filter by (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: 'asc' or 'desc' (optional) (default to null)
search = search_example # String | Optional free-text search on VM name (optional) (default to null)
startRam = 1.2 # Double | Optional minimum RAM filter (optional) (default to null)
endRam = 1.2 # Double | Optional maximum RAM filter (optional) (default to null)
startVolumeSize = 789 # Long | Optional minimum volume size filter (optional) (default to null)
endVolumeSize = 789 # Long | Optional maximum volume size filter (optional) (default to null)
startCpu = 56 # Integer | Optional minimum CPU filter (optional) (default to null)
endCpu = 56 # Integer | Optional maximum CPU filter (optional) (default to null)
organizationId = 56 # Integer | Optional organization id to filter by (optional) (default to null)
id = 56 # Integer | Optional filter by VM id (optional) (default to null)
searchId = searchId_example # String | Optional search by id (optional) (default to null)
filterBy = filterBy_example # String | Optional field to filter by (optional) (default to null)
domainId = 56 # Integer | Optional filter by domain id (optional) (default to null)

try:
    # Retrieve all vms
    api_response = api_instance.standalone_list(limit=limit, offset=offset, projectId=projectId, sortBy=sortBy, sortDirection=sortDirection, search=search, startRam=startRam, endRam=endRam, startVolumeSize=startVolumeSize, endVolumeSize=endVolumeSize, startCpu=startCpu, endCpu=endCpu, organizationId=organizationId, id=id, searchId=searchId, filterBy=filterBy, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneList: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let projectId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let startRam = 1.2; // Double
    let endRam = 1.2; // Double
    let startVolumeSize = 789; // Long
    let endVolumeSize = 789; // Long
    let startCpu = 56; // Integer
    let endCpu = 56; // Integer
    let organizationId = 56; // Integer
    let id = 56; // Integer
    let searchId = searchId_example; // String
    let filterBy = filterBy_example; // String
    let domainId = 56; // Integer

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneList(limit, offset, projectId, sortBy, sortDirection, search, startRam, endRam, startVolumeSize, endVolumeSize, startCpu, endCpu, organizationId, id, searchId, filterBy, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Optional page size
Offset
Integer (int32)
Optional page offset
ProjectId
Integer (int32)
Optional project id to filter by
SortBy
String
Field to sort by
SortDirection
String
Sort direction: 'asc' or 'desc'
Search
StartRam
Double (double)
Optional minimum RAM filter
EndRam
Double (double)
Optional maximum RAM filter
StartVolumeSize
Long (int64)
Optional minimum volume size filter
EndVolumeSize
Long (int64)
Optional maximum volume size filter
StartCpu
Integer (int32)
Optional minimum CPU filter
EndCpu
Integer (int32)
Optional maximum CPU filter
OrganizationId
Integer (int32)
Optional organization id to filter by
Id
Integer (int32)
Optional filter by VM id
SearchId
String
Optional search by id
FilterBy
String
Optional field to filter by
DomainId
Integer (int32)
Optional filter by domain id

Responses


standaloneReset

Reset vm status


/api/v1/standalone/reset

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalone/reset" \
 -d '{
  "vmIds" : [ 6, 6 ],
  "projectId" : 0,
  "status" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        ResetStandAloneVmStatusCommand resetStandAloneVmStatusCommand = ; // ResetStandAloneVmStatusCommand | 

        try {
            Object result = apiInstance.standaloneReset(resetStandAloneVmStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneReset");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ResetStandAloneVmStatusCommand resetStandAloneVmStatusCommand = new ResetStandAloneVmStatusCommand(); // ResetStandAloneVmStatusCommand | 

try {
    final result = await api_instance.standaloneReset(resetStandAloneVmStatusCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneReset: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        ResetStandAloneVmStatusCommand resetStandAloneVmStatusCommand = ; // ResetStandAloneVmStatusCommand | 

        try {
            Object result = apiInstance.standaloneReset(resetStandAloneVmStatusCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneReset");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
ResetStandAloneVmStatusCommand *resetStandAloneVmStatusCommand = ; //  (optional)

// Reset vm status
[apiInstance standaloneResetWith:resetStandAloneVmStatusCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var opts = {
  'resetStandAloneVmStatusCommand':  // {ResetStandAloneVmStatusCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneReset(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneResetExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var resetStandAloneVmStatusCommand = new ResetStandAloneVmStatusCommand(); // ResetStandAloneVmStatusCommand |  (optional) 

            try {
                // Reset vm status
                Object result = apiInstance.standaloneReset(resetStandAloneVmStatusCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneReset: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$resetStandAloneVmStatusCommand = ; // ResetStandAloneVmStatusCommand | 

try {
    $result = $api_instance->standaloneReset($resetStandAloneVmStatusCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneReset: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $resetStandAloneVmStatusCommand = WWW::OPenAPIClient::Object::ResetStandAloneVmStatusCommand->new(); # ResetStandAloneVmStatusCommand | 

eval {
    my $result = $api_instance->standaloneReset(resetStandAloneVmStatusCommand => $resetStandAloneVmStatusCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneReset: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
resetStandAloneVmStatusCommand =  # ResetStandAloneVmStatusCommand |  (optional)

try:
    # Reset vm status
    api_response = api_instance.standalone_reset(resetStandAloneVmStatusCommand=resetStandAloneVmStatusCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneReset: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let resetStandAloneVmStatusCommand = ; // ResetStandAloneVmStatusCommand

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneReset(resetStandAloneVmStatusCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
resetStandAloneVmStatusCommand

Responses


standaloneUpdateFlavor

Update standalone vm flavor


/api/v1/standalone/update/flavor

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalone/update/flavor" \
 -d '{
  "flavor" : "flavor",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneApi;

import java.io.File;
import java.util.*;

public class StandaloneApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneApi apiInstance = new StandaloneApi();
        UpdateStandAloneVmFlavorCommand updateStandAloneVmFlavorCommand = ; // UpdateStandAloneVmFlavorCommand | 

        try {
            Object result = apiInstance.standaloneUpdateFlavor(updateStandAloneVmFlavorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneUpdateFlavor");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateStandAloneVmFlavorCommand updateStandAloneVmFlavorCommand = new UpdateStandAloneVmFlavorCommand(); // UpdateStandAloneVmFlavorCommand | 

try {
    final result = await api_instance.standaloneUpdateFlavor(updateStandAloneVmFlavorCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneUpdateFlavor: $e\n');
}

import org.openapitools.client.api.StandaloneApi;

public class StandaloneApiExample {
    public static void main(String[] args) {
        StandaloneApi apiInstance = new StandaloneApi();
        UpdateStandAloneVmFlavorCommand updateStandAloneVmFlavorCommand = ; // UpdateStandAloneVmFlavorCommand | 

        try {
            Object result = apiInstance.standaloneUpdateFlavor(updateStandAloneVmFlavorCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneApi#standaloneUpdateFlavor");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneApi *apiInstance = [[StandaloneApi alloc] init];
UpdateStandAloneVmFlavorCommand *updateStandAloneVmFlavorCommand = ; //  (optional)

// Update standalone vm flavor
[apiInstance standaloneUpdateFlavorWith:updateStandAloneVmFlavorCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneApi()
var opts = {
  'updateStandAloneVmFlavorCommand':  // {UpdateStandAloneVmFlavorCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneUpdateFlavor(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneUpdateFlavorExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneApi();
            var updateStandAloneVmFlavorCommand = new UpdateStandAloneVmFlavorCommand(); // UpdateStandAloneVmFlavorCommand |  (optional) 

            try {
                // Update standalone vm flavor
                Object result = apiInstance.standaloneUpdateFlavor(updateStandAloneVmFlavorCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneApi.standaloneUpdateFlavor: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneApi();
$updateStandAloneVmFlavorCommand = ; // UpdateStandAloneVmFlavorCommand | 

try {
    $result = $api_instance->standaloneUpdateFlavor($updateStandAloneVmFlavorCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneApi->standaloneUpdateFlavor: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneApi->new();
my $updateStandAloneVmFlavorCommand = WWW::OPenAPIClient::Object::UpdateStandAloneVmFlavorCommand->new(); # UpdateStandAloneVmFlavorCommand | 

eval {
    my $result = $api_instance->standaloneUpdateFlavor(updateStandAloneVmFlavorCommand => $updateStandAloneVmFlavorCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneApi->standaloneUpdateFlavor: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneApi()
updateStandAloneVmFlavorCommand =  # UpdateStandAloneVmFlavorCommand |  (optional)

try:
    # Update standalone vm flavor
    api_response = api_instance.standalone_update_flavor(updateStandAloneVmFlavorCommand=updateStandAloneVmFlavorCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneApi->standaloneUpdateFlavor: %s\n" % e)
extern crate StandaloneApi;

pub fn main() {
    let updateStandAloneVmFlavorCommand = ; // UpdateStandAloneVmFlavorCommand

    let mut context = StandaloneApi::Context::default();
    let result = client.standaloneUpdateFlavor(updateStandAloneVmFlavorCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateStandAloneVmFlavorCommand

Responses


StandaloneActions

standaloneactionsConsole

Console screenshot or terminal for vm

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/standaloneactions/console

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/console" \
 -d '{
  "serverId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        VmConsoleScreenshotCommand vmConsoleScreenshotCommand = ; // VmConsoleScreenshotCommand | 

        try {
            'String' result = apiInstance.standaloneactionsConsole(vmConsoleScreenshotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsConsole");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VmConsoleScreenshotCommand vmConsoleScreenshotCommand = new VmConsoleScreenshotCommand(); // VmConsoleScreenshotCommand | 

try {
    final result = await api_instance.standaloneactionsConsole(vmConsoleScreenshotCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsConsole: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        VmConsoleScreenshotCommand vmConsoleScreenshotCommand = ; // VmConsoleScreenshotCommand | 

        try {
            'String' result = apiInstance.standaloneactionsConsole(vmConsoleScreenshotCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsConsole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
VmConsoleScreenshotCommand *vmConsoleScreenshotCommand = ; //  (optional)

// Console screenshot or terminal for vm
[apiInstance standaloneactionsConsoleWith:vmConsoleScreenshotCommand
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'vmConsoleScreenshotCommand':  // {VmConsoleScreenshotCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsConsole(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsConsoleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var vmConsoleScreenshotCommand = new VmConsoleScreenshotCommand(); // VmConsoleScreenshotCommand |  (optional) 

            try {
                // Console screenshot or terminal for vm
                'String' result = apiInstance.standaloneactionsConsole(vmConsoleScreenshotCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsConsole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$vmConsoleScreenshotCommand = ; // VmConsoleScreenshotCommand | 

try {
    $result = $api_instance->standaloneactionsConsole($vmConsoleScreenshotCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsConsole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $vmConsoleScreenshotCommand = WWW::OPenAPIClient::Object::VmConsoleScreenshotCommand->new(); # VmConsoleScreenshotCommand | 

eval {
    my $result = $api_instance->standaloneactionsConsole(vmConsoleScreenshotCommand => $vmConsoleScreenshotCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsConsole: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
vmConsoleScreenshotCommand =  # VmConsoleScreenshotCommand |  (optional)

try:
    # Console screenshot or terminal for vm
    api_response = api_instance.standaloneactions_console(vmConsoleScreenshotCommand=vmConsoleScreenshotCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsConsole: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let vmConsoleScreenshotCommand = ; // VmConsoleScreenshotCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsConsole(vmConsoleScreenshotCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
vmConsoleScreenshotCommand

Responses


standaloneactionsDownloadRdp

Download RDP file


/api/v1/standaloneactions/download/rdp/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/standaloneactions/download/rdp/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer

        try {
            CsvExporter result = apiInstance.standaloneactionsDownloadRdp(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsDownloadRdp");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Standalone VM id, positive integer

try {
    final result = await api_instance.standaloneactionsDownloadRdp(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsDownloadRdp: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer

        try {
            CsvExporter result = apiInstance.standaloneactionsDownloadRdp(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsDownloadRdp");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
Integer *id = 56; // Standalone VM id, positive integer (default to null)

// Download RDP file
[apiInstance standaloneactionsDownloadRdpWith:id
              completionHandler: ^(CsvExporter output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var id = 56; // {Integer} Standalone VM id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsDownloadRdp(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsDownloadRdpExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var id = 56;  // Integer | Standalone VM id, positive integer (default to null)

            try {
                // Download RDP file
                CsvExporter result = apiInstance.standaloneactionsDownloadRdp(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsDownloadRdp: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$id = 56; // Integer | Standalone VM id, positive integer

try {
    $result = $api_instance->standaloneactionsDownloadRdp($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsDownloadRdp: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $id = 56; # Integer | Standalone VM id, positive integer

eval {
    my $result = $api_instance->standaloneactionsDownloadRdp(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsDownloadRdp: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
id = 56 # Integer | Standalone VM id, positive integer (default to null)

try:
    # Download RDP file
    api_response = api_instance.standaloneactions_download_rdp(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsDownloadRdp: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsDownloadRdp(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Standalone VM id, positive integer
Required

Responses


standaloneactionsReboot

Reboot standalone vm


/api/v1/standaloneactions/reboot

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/reboot" \
 -d '{
  "id" : 0,
  "type" : "type"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        RebootStandAloneVmCommand rebootStandAloneVmCommand = ; // RebootStandAloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsReboot(rebootStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsReboot");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final RebootStandAloneVmCommand rebootStandAloneVmCommand = new RebootStandAloneVmCommand(); // RebootStandAloneVmCommand | 

try {
    final result = await api_instance.standaloneactionsReboot(rebootStandAloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsReboot: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        RebootStandAloneVmCommand rebootStandAloneVmCommand = ; // RebootStandAloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsReboot(rebootStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsReboot");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
RebootStandAloneVmCommand *rebootStandAloneVmCommand = ; //  (optional)

// Reboot standalone vm
[apiInstance standaloneactionsRebootWith:rebootStandAloneVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'rebootStandAloneVmCommand':  // {RebootStandAloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsReboot(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsRebootExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var rebootStandAloneVmCommand = new RebootStandAloneVmCommand(); // RebootStandAloneVmCommand |  (optional) 

            try {
                // Reboot standalone vm
                Object result = apiInstance.standaloneactionsReboot(rebootStandAloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsReboot: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$rebootStandAloneVmCommand = ; // RebootStandAloneVmCommand | 

try {
    $result = $api_instance->standaloneactionsReboot($rebootStandAloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsReboot: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $rebootStandAloneVmCommand = WWW::OPenAPIClient::Object::RebootStandAloneVmCommand->new(); # RebootStandAloneVmCommand | 

eval {
    my $result = $api_instance->standaloneactionsReboot(rebootStandAloneVmCommand => $rebootStandAloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsReboot: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
rebootStandAloneVmCommand =  # RebootStandAloneVmCommand |  (optional)

try:
    # Reboot standalone vm
    api_response = api_instance.standaloneactions_reboot(rebootStandAloneVmCommand=rebootStandAloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsReboot: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let rebootStandAloneVmCommand = ; // RebootStandAloneVmCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsReboot(rebootStandAloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
rebootStandAloneVmCommand

Responses


standaloneactionsShelve

Shelve standalone vm


/api/v1/standaloneactions/shelve

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/shelve" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        ShelveStandAloneVmCommand shelveStandAloneVmCommand = ; // ShelveStandAloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsShelve(shelveStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsShelve");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ShelveStandAloneVmCommand shelveStandAloneVmCommand = new ShelveStandAloneVmCommand(); // ShelveStandAloneVmCommand | 

try {
    final result = await api_instance.standaloneactionsShelve(shelveStandAloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsShelve: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        ShelveStandAloneVmCommand shelveStandAloneVmCommand = ; // ShelveStandAloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsShelve(shelveStandAloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsShelve");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
ShelveStandAloneVmCommand *shelveStandAloneVmCommand = ; //  (optional)

// Shelve standalone vm
[apiInstance standaloneactionsShelveWith:shelveStandAloneVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'shelveStandAloneVmCommand':  // {ShelveStandAloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsShelve(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsShelveExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var shelveStandAloneVmCommand = new ShelveStandAloneVmCommand(); // ShelveStandAloneVmCommand |  (optional) 

            try {
                // Shelve standalone vm
                Object result = apiInstance.standaloneactionsShelve(shelveStandAloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsShelve: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$shelveStandAloneVmCommand = ; // ShelveStandAloneVmCommand | 

try {
    $result = $api_instance->standaloneactionsShelve($shelveStandAloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsShelve: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $shelveStandAloneVmCommand = WWW::OPenAPIClient::Object::ShelveStandAloneVmCommand->new(); # ShelveStandAloneVmCommand | 

eval {
    my $result = $api_instance->standaloneactionsShelve(shelveStandAloneVmCommand => $shelveStandAloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsShelve: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
shelveStandAloneVmCommand =  # ShelveStandAloneVmCommand |  (optional)

try:
    # Shelve standalone vm
    api_response = api_instance.standaloneactions_shelve(shelveStandAloneVmCommand=shelveStandAloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsShelve: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let shelveStandAloneVmCommand = ; // ShelveStandAloneVmCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsShelve(shelveStandAloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
shelveStandAloneVmCommand

Responses


standaloneactionsStart

Start standalone vm


/api/v1/standaloneactions/start

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/start" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        StartStandaloneVmCommand startStandaloneVmCommand = ; // StartStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsStart(startStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStart");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StartStandaloneVmCommand startStandaloneVmCommand = new StartStandaloneVmCommand(); // StartStandaloneVmCommand | 

try {
    final result = await api_instance.standaloneactionsStart(startStandaloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsStart: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        StartStandaloneVmCommand startStandaloneVmCommand = ; // StartStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsStart(startStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStart");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
StartStandaloneVmCommand *startStandaloneVmCommand = ; //  (optional)

// Start standalone vm
[apiInstance standaloneactionsStartWith:startStandaloneVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'startStandaloneVmCommand':  // {StartStandaloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsStart(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsStartExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var startStandaloneVmCommand = new StartStandaloneVmCommand(); // StartStandaloneVmCommand |  (optional) 

            try {
                // Start standalone vm
                Object result = apiInstance.standaloneactionsStart(startStandaloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsStart: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$startStandaloneVmCommand = ; // StartStandaloneVmCommand | 

try {
    $result = $api_instance->standaloneactionsStart($startStandaloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsStart: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $startStandaloneVmCommand = WWW::OPenAPIClient::Object::StartStandaloneVmCommand->new(); # StartStandaloneVmCommand | 

eval {
    my $result = $api_instance->standaloneactionsStart(startStandaloneVmCommand => $startStandaloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsStart: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
startStandaloneVmCommand =  # StartStandaloneVmCommand |  (optional)

try:
    # Start standalone vm
    api_response = api_instance.standaloneactions_start(startStandaloneVmCommand=startStandaloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsStart: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let startStandaloneVmCommand = ; // StartStandaloneVmCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsStart(startStandaloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
startStandaloneVmCommand

Responses


standaloneactionsStatus

Show standalone vm status


/api/v1/standaloneactions/status/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 "http://localhost/api/v1/standaloneactions/status/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer

        try {
            'String' result = apiInstance.standaloneactionsStatus(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStatus");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Standalone VM id, positive integer

try {
    final result = await api_instance.standaloneactionsStatus(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsStatus: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer

        try {
            'String' result = apiInstance.standaloneactionsStatus(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStatus");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
Integer *id = 56; // Standalone VM id, positive integer (default to null)

// Show standalone vm status
[apiInstance standaloneactionsStatusWith:id
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var id = 56; // {Integer} Standalone VM id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsStatus(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsStatusExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var id = 56;  // Integer | Standalone VM id, positive integer (default to null)

            try {
                // Show standalone vm status
                'String' result = apiInstance.standaloneactionsStatus(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$id = 56; // Integer | Standalone VM id, positive integer

try {
    $result = $api_instance->standaloneactionsStatus($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $id = 56; # Integer | Standalone VM id, positive integer

eval {
    my $result = $api_instance->standaloneactionsStatus(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsStatus: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
id = 56 # Integer | Standalone VM id, positive integer (default to null)

try:
    # Show standalone vm status
    api_response = api_instance.standaloneactions_status(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsStatus: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsStatus(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Standalone VM id, positive integer
Required

Responses


standaloneactionsStop

Stop standalone vm


/api/v1/standaloneactions/stop

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/stop" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        StopStandaloneVmCommand stopStandaloneVmCommand = ; // StopStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsStop(stopStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStop");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StopStandaloneVmCommand stopStandaloneVmCommand = new StopStandaloneVmCommand(); // StopStandaloneVmCommand | 

try {
    final result = await api_instance.standaloneactionsStop(stopStandaloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsStop: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        StopStandaloneVmCommand stopStandaloneVmCommand = ; // StopStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsStop(stopStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsStop");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
StopStandaloneVmCommand *stopStandaloneVmCommand = ; //  (optional)

// Stop standalone vm
[apiInstance standaloneactionsStopWith:stopStandaloneVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'stopStandaloneVmCommand':  // {StopStandaloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsStop(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsStopExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var stopStandaloneVmCommand = new StopStandaloneVmCommand(); // StopStandaloneVmCommand |  (optional) 

            try {
                // Stop standalone vm
                Object result = apiInstance.standaloneactionsStop(stopStandaloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsStop: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$stopStandaloneVmCommand = ; // StopStandaloneVmCommand | 

try {
    $result = $api_instance->standaloneactionsStop($stopStandaloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsStop: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $stopStandaloneVmCommand = WWW::OPenAPIClient::Object::StopStandaloneVmCommand->new(); # StopStandaloneVmCommand | 

eval {
    my $result = $api_instance->standaloneactionsStop(stopStandaloneVmCommand => $stopStandaloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsStop: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
stopStandaloneVmCommand =  # StopStandaloneVmCommand |  (optional)

try:
    # Stop standalone vm
    api_response = api_instance.standaloneactions_stop(stopStandaloneVmCommand=stopStandaloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsStop: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let stopStandaloneVmCommand = ; // StopStandaloneVmCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsStop(stopStandaloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
stopStandaloneVmCommand

Responses


standaloneactionsUnshelve

Unshelve standalone vm


/api/v1/standaloneactions/unshelve

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneactions/unshelve" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        UnshelveStandaloneVmCommand unshelveStandaloneVmCommand = ; // UnshelveStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsUnshelve(unshelveStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsUnshelve");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UnshelveStandaloneVmCommand unshelveStandaloneVmCommand = new UnshelveStandaloneVmCommand(); // UnshelveStandaloneVmCommand | 

try {
    final result = await api_instance.standaloneactionsUnshelve(unshelveStandaloneVmCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsUnshelve: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        UnshelveStandaloneVmCommand unshelveStandaloneVmCommand = ; // UnshelveStandaloneVmCommand | 

        try {
            Object result = apiInstance.standaloneactionsUnshelve(unshelveStandaloneVmCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsUnshelve");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
UnshelveStandaloneVmCommand *unshelveStandaloneVmCommand = ; //  (optional)

// Unshelve standalone vm
[apiInstance standaloneactionsUnshelveWith:unshelveStandaloneVmCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var opts = {
  'unshelveStandaloneVmCommand':  // {UnshelveStandaloneVmCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsUnshelve(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsUnshelveExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var unshelveStandaloneVmCommand = new UnshelveStandaloneVmCommand(); // UnshelveStandaloneVmCommand |  (optional) 

            try {
                // Unshelve standalone vm
                Object result = apiInstance.standaloneactionsUnshelve(unshelveStandaloneVmCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsUnshelve: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$unshelveStandaloneVmCommand = ; // UnshelveStandaloneVmCommand | 

try {
    $result = $api_instance->standaloneactionsUnshelve($unshelveStandaloneVmCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsUnshelve: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $unshelveStandaloneVmCommand = WWW::OPenAPIClient::Object::UnshelveStandaloneVmCommand->new(); # UnshelveStandaloneVmCommand | 

eval {
    my $result = $api_instance->standaloneactionsUnshelve(unshelveStandaloneVmCommand => $unshelveStandaloneVmCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsUnshelve: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
unshelveStandaloneVmCommand =  # UnshelveStandaloneVmCommand |  (optional)

try:
    # Unshelve standalone vm
    api_response = api_instance.standaloneactions_unshelve(unshelveStandaloneVmCommand=unshelveStandaloneVmCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsUnshelve: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let unshelveStandaloneVmCommand = ; // UnshelveStandaloneVmCommand

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsUnshelve(unshelveStandaloneVmCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unshelveStandaloneVmCommand

Responses


standaloneactionsWindowsInstancePassword

Retrieve aws windows admin instance password


/api/v1/standaloneactions/password

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: text/plain,application/json" \
 -H "Content-Type: multipart/form-data" \
 "http://localhost/api/v1/standaloneactions/password"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneActionsApi;

import java.io.File;
import java.util.*;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer
        String key = key_example; // String | Private key used to decrypt the Windows password
        File config = ; // File | Cloud config file, max 4096 bytes

        try {
            'String' result = apiInstance.standaloneactionsWindowsInstancePassword(id, key, config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsWindowsInstancePassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | Standalone VM id, positive integer
final String key = new String(); // String | Private key used to decrypt the Windows password
final File config = new File(); // File | Cloud config file, max 4096 bytes

try {
    final result = await api_instance.standaloneactionsWindowsInstancePassword(id, key, config);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneactionsWindowsInstancePassword: $e\n');
}

import org.openapitools.client.api.StandaloneActionsApi;

public class StandaloneActionsApiExample {
    public static void main(String[] args) {
        StandaloneActionsApi apiInstance = new StandaloneActionsApi();
        Integer id = 56; // Integer | Standalone VM id, positive integer
        String key = key_example; // String | Private key used to decrypt the Windows password
        File config = ; // File | Cloud config file, max 4096 bytes

        try {
            'String' result = apiInstance.standaloneactionsWindowsInstancePassword(id, key, config);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneActionsApi#standaloneactionsWindowsInstancePassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneActionsApi *apiInstance = [[StandaloneActionsApi alloc] init];
Integer *id = 56; // Standalone VM id, positive integer (default to null)
String *key = key_example; // Private key used to decrypt the Windows password (default to null)
File *config = ; // Cloud config file, max 4096 bytes (default to null)

// Retrieve aws windows admin instance password
[apiInstance standaloneactionsWindowsInstancePasswordWith:id
    key:key
    config:config
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneActionsApi()
var id = 56; // {Integer} Standalone VM id, positive integer
var key = key_example; // {String} Private key used to decrypt the Windows password
var config = ; // {File} Cloud config file, max 4096 bytes

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneactionsWindowsInstancePassword(id, key, config, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneactionsWindowsInstancePasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneActionsApi();
            var id = 56;  // Integer | Standalone VM id, positive integer (default to null)
            var key = key_example;  // String | Private key used to decrypt the Windows password (default to null)
            var config = new File(); // File | Cloud config file, max 4096 bytes (default to null)

            try {
                // Retrieve aws windows admin instance password
                'String' result = apiInstance.standaloneactionsWindowsInstancePassword(id, key, config);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneActionsApi.standaloneactionsWindowsInstancePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneActionsApi();
$id = 56; // Integer | Standalone VM id, positive integer
$key = key_example; // String | Private key used to decrypt the Windows password
$config = ; // File | Cloud config file, max 4096 bytes

try {
    $result = $api_instance->standaloneactionsWindowsInstancePassword($id, $key, $config);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneActionsApi->standaloneactionsWindowsInstancePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneActionsApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneActionsApi->new();
my $id = 56; # Integer | Standalone VM id, positive integer
my $key = key_example; # String | Private key used to decrypt the Windows password
my $config = ; # File | Cloud config file, max 4096 bytes

eval {
    my $result = $api_instance->standaloneactionsWindowsInstancePassword(id => $id, key => $key, config => $config);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneActionsApi->standaloneactionsWindowsInstancePassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneActionsApi()
id = 56 # Integer | Standalone VM id, positive integer (default to null)
key = key_example # String | Private key used to decrypt the Windows password (default to null)
config =  # File | Cloud config file, max 4096 bytes (default to null)

try:
    # Retrieve aws windows admin instance password
    api_response = api_instance.standaloneactions_windows_instance_password(id, key, config)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneActionsApi->standaloneactionsWindowsInstancePassword: %s\n" % e)
extern crate StandaloneActionsApi;

pub fn main() {
    let id = 56; // Integer
    let key = key_example; // String
    let config = ; // File

    let mut context = StandaloneActionsApi::Context::default();
    let result = client.standaloneactionsWindowsInstancePassword(id, key, config, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Form parameters
Name Description
id*
Integer (int32)
Standalone VM id, positive integer
Required
key*
String
Private key used to decrypt the Windows password
Required
config*
File (binary)
Cloud config file, max 4096 bytes
Required

Responses


StandaloneProfile

standaloneprofileCreate

Create standalone profile.


/api/v1/standaloneprofile/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneprofile/create" \
 -d '{
  "organizationId" : 1,
  "name" : "name",
  "securityGroups" : [ {
    "protocol" : "ICMP",
    "name" : "name",
    "portMinRange" : 0,
    "portMaxRange" : 6,
    "remoteIpPrefix" : "remoteIpPrefix"
  }, {
    "protocol" : "ICMP",
    "name" : "name",
    "portMinRange" : 0,
    "portMaxRange" : 6,
    "remoteIpPrefix" : "remoteIpPrefix"
  } ],
  "publicKey" : "publicKey"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileCreateCommand standAloneProfileCreateCommand = ; // StandAloneProfileCreateCommand | 

        try {
            ApiResponse result = apiInstance.standaloneprofileCreate(standAloneProfileCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StandAloneProfileCreateCommand standAloneProfileCreateCommand = new StandAloneProfileCreateCommand(); // StandAloneProfileCreateCommand | 

try {
    final result = await api_instance.standaloneprofileCreate(standAloneProfileCreateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileCreate: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileCreateCommand standAloneProfileCreateCommand = ; // StandAloneProfileCreateCommand | 

        try {
            ApiResponse result = apiInstance.standaloneprofileCreate(standAloneProfileCreateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
StandAloneProfileCreateCommand *standAloneProfileCreateCommand = ; //  (optional)

// Create standalone profile.
[apiInstance standaloneprofileCreateWith:standAloneProfileCreateCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'standAloneProfileCreateCommand':  // {StandAloneProfileCreateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var standAloneProfileCreateCommand = new StandAloneProfileCreateCommand(); // StandAloneProfileCreateCommand |  (optional) 

            try {
                // Create standalone profile.
                ApiResponse result = apiInstance.standaloneprofileCreate(standAloneProfileCreateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$standAloneProfileCreateCommand = ; // StandAloneProfileCreateCommand | 

try {
    $result = $api_instance->standaloneprofileCreate($standAloneProfileCreateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $standAloneProfileCreateCommand = WWW::OPenAPIClient::Object::StandAloneProfileCreateCommand->new(); # StandAloneProfileCreateCommand | 

eval {
    my $result = $api_instance->standaloneprofileCreate(standAloneProfileCreateCommand => $standAloneProfileCreateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
standAloneProfileCreateCommand =  # StandAloneProfileCreateCommand |  (optional)

try:
    # Create standalone profile.
    api_response = api_instance.standaloneprofile_create(standAloneProfileCreateCommand=standAloneProfileCreateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileCreate: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let standAloneProfileCreateCommand = ; // StandAloneProfileCreateCommand

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileCreate(standAloneProfileCreateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
standAloneProfileCreateCommand

Responses


standaloneprofileDelete

Delete standalone profile.


/api/v1/standaloneprofile/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneprofile/delete" \
 -d '{
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        DeleteStandAloneProfileCommand deleteStandAloneProfileCommand = ; // DeleteStandAloneProfileCommand | 

        try {
            Object result = apiInstance.standaloneprofileDelete(deleteStandAloneProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteStandAloneProfileCommand deleteStandAloneProfileCommand = new DeleteStandAloneProfileCommand(); // DeleteStandAloneProfileCommand | 

try {
    final result = await api_instance.standaloneprofileDelete(deleteStandAloneProfileCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileDelete: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        DeleteStandAloneProfileCommand deleteStandAloneProfileCommand = ; // DeleteStandAloneProfileCommand | 

        try {
            Object result = apiInstance.standaloneprofileDelete(deleteStandAloneProfileCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
DeleteStandAloneProfileCommand *deleteStandAloneProfileCommand = ; //  (optional)

// Delete standalone profile.
[apiInstance standaloneprofileDeleteWith:deleteStandAloneProfileCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'deleteStandAloneProfileCommand':  // {DeleteStandAloneProfileCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var deleteStandAloneProfileCommand = new DeleteStandAloneProfileCommand(); // DeleteStandAloneProfileCommand |  (optional) 

            try {
                // Delete standalone profile.
                Object result = apiInstance.standaloneprofileDelete(deleteStandAloneProfileCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$deleteStandAloneProfileCommand = ; // DeleteStandAloneProfileCommand | 

try {
    $result = $api_instance->standaloneprofileDelete($deleteStandAloneProfileCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $deleteStandAloneProfileCommand = WWW::OPenAPIClient::Object::DeleteStandAloneProfileCommand->new(); # DeleteStandAloneProfileCommand | 

eval {
    my $result = $api_instance->standaloneprofileDelete(deleteStandAloneProfileCommand => $deleteStandAloneProfileCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
deleteStandAloneProfileCommand =  # DeleteStandAloneProfileCommand |  (optional)

try:
    # Delete standalone profile.
    api_response = api_instance.standaloneprofile_delete(deleteStandAloneProfileCommand=deleteStandAloneProfileCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileDelete: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let deleteStandAloneProfileCommand = ; // DeleteStandAloneProfileCommand

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileDelete(deleteStandAloneProfileCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteStandAloneProfileCommand

Responses


standaloneprofileDropdown

Retrieve all standalone profiles for organization


/api/v1/standaloneprofile/list

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/standaloneprofile/list?OrganizationId=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        String search = search_example; // String | Optional free-text search on profile name

        try {
            array[CommonDropdownDto] result = apiInstance.standaloneprofileDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Optional organization id to filter by
final String search = new String(); // String | Optional free-text search on profile name

try {
    final result = await api_instance.standaloneprofileDropdown(organizationId, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileDropdown: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        String search = search_example; // String | Optional free-text search on profile name

        try {
            array[CommonDropdownDto] result = apiInstance.standaloneprofileDropdown(organizationId, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
Integer *organizationId = 56; // Optional organization id to filter by (optional) (default to null)
String *search = search_example; // Optional free-text search on profile name (optional) (default to null)

// Retrieve all standalone profiles for organization
[apiInstance standaloneprofileDropdownWith:organizationId
    search:search
              completionHandler: ^(array[CommonDropdownDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'organizationId': 56, // {Integer} Optional organization id to filter by
  'search': search_example // {String} Optional free-text search on profile name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileDropdown(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var organizationId = 56;  // Integer | Optional organization id to filter by (optional)  (default to null)
            var search = search_example;  // String | Optional free-text search on profile name (optional)  (default to null)

            try {
                // Retrieve all standalone profiles for organization
                array[CommonDropdownDto] result = apiInstance.standaloneprofileDropdown(organizationId, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$organizationId = 56; // Integer | Optional organization id to filter by
$search = search_example; // String | Optional free-text search on profile name

try {
    $result = $api_instance->standaloneprofileDropdown($organizationId, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $organizationId = 56; # Integer | Optional organization id to filter by
my $search = search_example; # String | Optional free-text search on profile name

eval {
    my $result = $api_instance->standaloneprofileDropdown(organizationId => $organizationId, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
organizationId = 56 # Integer | Optional organization id to filter by (optional) (default to null)
search = search_example # String | Optional free-text search on profile name (optional) (default to null)

try:
    # Retrieve all standalone profiles for organization
    api_response = api_instance.standaloneprofile_dropdown(organizationId=organizationId, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileDropdown: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let organizationId = 56; // Integer
    let search = search_example; // String

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileDropdown(organizationId, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId
Integer (int32)
Optional organization id to filter by
Search

Responses


standaloneprofileEdit

Edit standalone profile.


/api/v1/standaloneprofile/edit

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneprofile/edit" \
 -d '{
  "name" : "name",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileUpdateCommand standAloneProfileUpdateCommand = ; // StandAloneProfileUpdateCommand | 

        try {
            Object result = apiInstance.standaloneprofileEdit(standAloneProfileUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StandAloneProfileUpdateCommand standAloneProfileUpdateCommand = new StandAloneProfileUpdateCommand(); // StandAloneProfileUpdateCommand | 

try {
    final result = await api_instance.standaloneprofileEdit(standAloneProfileUpdateCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileEdit: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileUpdateCommand standAloneProfileUpdateCommand = ; // StandAloneProfileUpdateCommand | 

        try {
            Object result = apiInstance.standaloneprofileEdit(standAloneProfileUpdateCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
StandAloneProfileUpdateCommand *standAloneProfileUpdateCommand = ; //  (optional)

// Edit standalone profile.
[apiInstance standaloneprofileEditWith:standAloneProfileUpdateCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'standAloneProfileUpdateCommand':  // {StandAloneProfileUpdateCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileEdit(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var standAloneProfileUpdateCommand = new StandAloneProfileUpdateCommand(); // StandAloneProfileUpdateCommand |  (optional) 

            try {
                // Edit standalone profile.
                Object result = apiInstance.standaloneprofileEdit(standAloneProfileUpdateCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$standAloneProfileUpdateCommand = ; // StandAloneProfileUpdateCommand | 

try {
    $result = $api_instance->standaloneprofileEdit($standAloneProfileUpdateCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $standAloneProfileUpdateCommand = WWW::OPenAPIClient::Object::StandAloneProfileUpdateCommand->new(); # StandAloneProfileUpdateCommand | 

eval {
    my $result = $api_instance->standaloneprofileEdit(standAloneProfileUpdateCommand => $standAloneProfileUpdateCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
standAloneProfileUpdateCommand =  # StandAloneProfileUpdateCommand |  (optional)

try:
    # Edit standalone profile.
    api_response = api_instance.standaloneprofile_edit(standAloneProfileUpdateCommand=standAloneProfileUpdateCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileEdit: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let standAloneProfileUpdateCommand = ; // StandAloneProfileUpdateCommand

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileEdit(standAloneProfileUpdateCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
standAloneProfileUpdateCommand

Responses


standaloneprofileList

Retrieve all standalone profiles


/api/v1/standaloneprofile

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/standaloneprofile?Limit=56&Offset=56&OrganizationId=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56&DomainId=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on profile name
        String searchId = searchId_example; // String | Optional search by id
        Integer id = 56; // Integer | Optional filter by profile id
        Integer domainId = 56; // Integer | Optional filter by domain id

        try {
            StandAloneProfiles result = apiInstance.standaloneprofileList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Optional page size
final Integer offset = new Integer(); // Integer | Optional page offset
final Integer organizationId = new Integer(); // Integer | Optional organization id to filter by
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: 'asc' or 'desc'
final String search = new String(); // String | Optional free-text search on profile name
final String searchId = new String(); // String | Optional search by id
final Integer id = new Integer(); // Integer | Optional filter by profile id
final Integer domainId = new Integer(); // Integer | Optional filter by domain id

try {
    final result = await api_instance.standaloneprofileList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileList: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        Integer organizationId = 56; // Integer | Optional organization id to filter by
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on profile name
        String searchId = searchId_example; // String | Optional search by id
        Integer id = 56; // Integer | Optional filter by profile id
        Integer domainId = 56; // Integer | Optional filter by domain id

        try {
            StandAloneProfiles result = apiInstance.standaloneprofileList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
Integer *limit = 56; // Optional page size (optional) (default to null)
Integer *offset = 56; // Optional page offset (optional) (default to null)
Integer *organizationId = 56; // Optional organization id to filter by (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: 'asc' or 'desc' (optional) (default to null)
String *search = search_example; // Optional free-text search on profile name (optional) (default to null)
String *searchId = searchId_example; // Optional search by id (optional) (default to null)
Integer *id = 56; // Optional filter by profile id (optional) (default to null)
Integer *domainId = 56; // Optional filter by domain id (optional) (default to null)

// Retrieve all standalone profiles
[apiInstance standaloneprofileListWith:limit
    offset:offset
    organizationId:organizationId
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
    domainId:domainId
              completionHandler: ^(StandAloneProfiles output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'limit': 56, // {Integer} Optional page size
  'offset': 56, // {Integer} Optional page offset
  'organizationId': 56, // {Integer} Optional organization id to filter by
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: 'asc' or 'desc'
  'search': search_example, // {String} Optional free-text search on profile name
  'searchId': searchId_example, // {String} Optional search by id
  'id': 56, // {Integer} Optional filter by profile id
  'domainId': 56 // {Integer} Optional filter by domain id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileList(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var limit = 56;  // Integer | Optional page size (optional)  (default to null)
            var offset = 56;  // Integer | Optional page offset (optional)  (default to null)
            var organizationId = 56;  // Integer | Optional organization id to filter by (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: 'asc' or 'desc' (optional)  (default to null)
            var search = search_example;  // String | Optional free-text search on profile name (optional)  (default to null)
            var searchId = searchId_example;  // String | Optional search by id (optional)  (default to null)
            var id = 56;  // Integer | Optional filter by profile id (optional)  (default to null)
            var domainId = 56;  // Integer | Optional filter by domain id (optional)  (default to null)

            try {
                // Retrieve all standalone profiles
                StandAloneProfiles result = apiInstance.standaloneprofileList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$limit = 56; // Integer | Optional page size
$offset = 56; // Integer | Optional page offset
$organizationId = 56; // Integer | Optional organization id to filter by
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
$search = search_example; // String | Optional free-text search on profile name
$searchId = searchId_example; // String | Optional search by id
$id = 56; // Integer | Optional filter by profile id
$domainId = 56; // Integer | Optional filter by domain id

try {
    $result = $api_instance->standaloneprofileList($limit, $offset, $organizationId, $sortBy, $sortDirection, $search, $searchId, $id, $domainId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $limit = 56; # Integer | Optional page size
my $offset = 56; # Integer | Optional page offset
my $organizationId = 56; # Integer | Optional organization id to filter by
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: 'asc' or 'desc'
my $search = search_example; # String | Optional free-text search on profile name
my $searchId = searchId_example; # String | Optional search by id
my $id = 56; # Integer | Optional filter by profile id
my $domainId = 56; # Integer | Optional filter by domain id

eval {
    my $result = $api_instance->standaloneprofileList(limit => $limit, offset => $offset, organizationId => $organizationId, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id, domainId => $domainId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
limit = 56 # Integer | Optional page size (optional) (default to null)
offset = 56 # Integer | Optional page offset (optional) (default to null)
organizationId = 56 # Integer | Optional organization id to filter by (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: 'asc' or 'desc' (optional) (default to null)
search = search_example # String | Optional free-text search on profile name (optional) (default to null)
searchId = searchId_example # String | Optional search by id (optional) (default to null)
id = 56 # Integer | Optional filter by profile id (optional) (default to null)
domainId = 56 # Integer | Optional filter by domain id (optional) (default to null)

try:
    # Retrieve all standalone profiles
    api_response = api_instance.standaloneprofile_list(limit=limit, offset=offset, organizationId=organizationId, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id, domainId=domainId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileList: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let limit = 56; // Integer
    let offset = 56; // Integer
    let organizationId = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer
    let domainId = 56; // Integer

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileList(limit, offset, organizationId, sortBy, sortDirection, search, searchId, id, domainId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
Limit
Integer (int32)
Optional page size
Offset
Integer (int32)
Optional page offset
OrganizationId
Integer (int32)
Optional organization id to filter by
SortBy
String
Field to sort by
SortDirection
String
Sort direction: 'asc' or 'desc'
Search
SearchId
String
Optional search by id
Id
Integer (int32)
Optional filter by profile id
DomainId
Integer (int32)
Optional filter by domain id

Responses


standaloneprofileLockManagement

Lock/unlock standalone profile.


/api/v1/standaloneprofile/lockmanager

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standaloneprofile/lockmanager" \
 -d '{
  "mode" : "mode",
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneProfileApi;

import java.io.File;
import java.util.*;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileLockManagementCommand standAloneProfileLockManagementCommand = ; // StandAloneProfileLockManagementCommand | 

        try {
            Object result = apiInstance.standaloneprofileLockManagement(standAloneProfileLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileLockManagement");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final StandAloneProfileLockManagementCommand standAloneProfileLockManagementCommand = new StandAloneProfileLockManagementCommand(); // StandAloneProfileLockManagementCommand | 

try {
    final result = await api_instance.standaloneprofileLockManagement(standAloneProfileLockManagementCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standaloneprofileLockManagement: $e\n');
}

import org.openapitools.client.api.StandaloneProfileApi;

public class StandaloneProfileApiExample {
    public static void main(String[] args) {
        StandaloneProfileApi apiInstance = new StandaloneProfileApi();
        StandAloneProfileLockManagementCommand standAloneProfileLockManagementCommand = ; // StandAloneProfileLockManagementCommand | 

        try {
            Object result = apiInstance.standaloneprofileLockManagement(standAloneProfileLockManagementCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneProfileApi#standaloneprofileLockManagement");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneProfileApi *apiInstance = [[StandaloneProfileApi alloc] init];
StandAloneProfileLockManagementCommand *standAloneProfileLockManagementCommand = ; //  (optional)

// Lock/unlock standalone profile.
[apiInstance standaloneprofileLockManagementWith:standAloneProfileLockManagementCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneProfileApi()
var opts = {
  'standAloneProfileLockManagementCommand':  // {StandAloneProfileLockManagementCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standaloneprofileLockManagement(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standaloneprofileLockManagementExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneProfileApi();
            var standAloneProfileLockManagementCommand = new StandAloneProfileLockManagementCommand(); // StandAloneProfileLockManagementCommand |  (optional) 

            try {
                // Lock/unlock standalone profile.
                Object result = apiInstance.standaloneprofileLockManagement(standAloneProfileLockManagementCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneProfileApi.standaloneprofileLockManagement: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneProfileApi();
$standAloneProfileLockManagementCommand = ; // StandAloneProfileLockManagementCommand | 

try {
    $result = $api_instance->standaloneprofileLockManagement($standAloneProfileLockManagementCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneProfileApi->standaloneprofileLockManagement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneProfileApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneProfileApi->new();
my $standAloneProfileLockManagementCommand = WWW::OPenAPIClient::Object::StandAloneProfileLockManagementCommand->new(); # StandAloneProfileLockManagementCommand | 

eval {
    my $result = $api_instance->standaloneprofileLockManagement(standAloneProfileLockManagementCommand => $standAloneProfileLockManagementCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneProfileApi->standaloneprofileLockManagement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneProfileApi()
standAloneProfileLockManagementCommand =  # StandAloneProfileLockManagementCommand |  (optional)

try:
    # Lock/unlock standalone profile.
    api_response = api_instance.standaloneprofile_lock_management(standAloneProfileLockManagementCommand=standAloneProfileLockManagementCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneProfileApi->standaloneprofileLockManagement: %s\n" % e)
extern crate StandaloneProfileApi;

pub fn main() {
    let standAloneProfileLockManagementCommand = ; // StandAloneProfileLockManagementCommand

    let mut context = StandaloneProfileApi::Context::default();
    let result = client.standaloneprofileLockManagement(standAloneProfileLockManagementCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
standAloneProfileLockManagementCommand

Responses


StandaloneVMDisks

standalonevmdisksCreate

Add disk for standalone vm


/api/v1/standalonevmdisks/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalonevmdisks/create" \
 -d '{
  "volumeType" : "volumeType",
  "size" : 6,
  "standaloneVmId" : 0,
  "name" : "name"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneVMDisksApi;

import java.io.File;
import java.util.*;

public class StandaloneVMDisksApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneVMDisksApi apiInstance = new StandaloneVMDisksApi();
        CreateStandAloneDiskCommand createStandAloneDiskCommand = ; // CreateStandAloneDiskCommand | 

        try {
            ApiResponse result = apiInstance.standalonevmdisksCreate(createStandAloneDiskCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneVMDisksApi#standalonevmdisksCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateStandAloneDiskCommand createStandAloneDiskCommand = new CreateStandAloneDiskCommand(); // CreateStandAloneDiskCommand | 

try {
    final result = await api_instance.standalonevmdisksCreate(createStandAloneDiskCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standalonevmdisksCreate: $e\n');
}

import org.openapitools.client.api.StandaloneVMDisksApi;

public class StandaloneVMDisksApiExample {
    public static void main(String[] args) {
        StandaloneVMDisksApi apiInstance = new StandaloneVMDisksApi();
        CreateStandAloneDiskCommand createStandAloneDiskCommand = ; // CreateStandAloneDiskCommand | 

        try {
            ApiResponse result = apiInstance.standalonevmdisksCreate(createStandAloneDiskCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneVMDisksApi#standalonevmdisksCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneVMDisksApi *apiInstance = [[StandaloneVMDisksApi alloc] init];
CreateStandAloneDiskCommand *createStandAloneDiskCommand = ; //  (optional)

// Add disk for standalone vm
[apiInstance standalonevmdisksCreateWith:createStandAloneDiskCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneVMDisksApi()
var opts = {
  'createStandAloneDiskCommand':  // {CreateStandAloneDiskCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standalonevmdisksCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standalonevmdisksCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneVMDisksApi();
            var createStandAloneDiskCommand = new CreateStandAloneDiskCommand(); // CreateStandAloneDiskCommand |  (optional) 

            try {
                // Add disk for standalone vm
                ApiResponse result = apiInstance.standalonevmdisksCreate(createStandAloneDiskCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneVMDisksApi.standalonevmdisksCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneVMDisksApi();
$createStandAloneDiskCommand = ; // CreateStandAloneDiskCommand | 

try {
    $result = $api_instance->standalonevmdisksCreate($createStandAloneDiskCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneVMDisksApi->standalonevmdisksCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneVMDisksApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneVMDisksApi->new();
my $createStandAloneDiskCommand = WWW::OPenAPIClient::Object::CreateStandAloneDiskCommand->new(); # CreateStandAloneDiskCommand | 

eval {
    my $result = $api_instance->standalonevmdisksCreate(createStandAloneDiskCommand => $createStandAloneDiskCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneVMDisksApi->standalonevmdisksCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneVMDisksApi()
createStandAloneDiskCommand =  # CreateStandAloneDiskCommand |  (optional)

try:
    # Add disk for standalone vm
    api_response = api_instance.standalonevmdisks_create(createStandAloneDiskCommand=createStandAloneDiskCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneVMDisksApi->standalonevmdisksCreate: %s\n" % e)
extern crate StandaloneVMDisksApi;

pub fn main() {
    let createStandAloneDiskCommand = ; // CreateStandAloneDiskCommand

    let mut context = StandaloneVMDisksApi::Context::default();
    let result = client.standalonevmdisksCreate(createStandAloneDiskCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createStandAloneDiskCommand

Responses


standalonevmdisksUpdateSize

Update disk size


/api/v1/standalonevmdisks/update-size

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/standalonevmdisks/update-size" \
 -d '{
  "size" : 6,
  "id" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StandaloneVMDisksApi;

import java.io.File;
import java.util.*;

public class StandaloneVMDisksApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        StandaloneVMDisksApi apiInstance = new StandaloneVMDisksApi();
        UpdateStandaloneVmDiskSizeCommand updateStandaloneVmDiskSizeCommand = ; // UpdateStandaloneVmDiskSizeCommand | 

        try {
            Object result = apiInstance.standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneVMDisksApi#standalonevmdisksUpdateSize");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateStandaloneVmDiskSizeCommand updateStandaloneVmDiskSizeCommand = new UpdateStandaloneVmDiskSizeCommand(); // UpdateStandaloneVmDiskSizeCommand | 

try {
    final result = await api_instance.standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->standalonevmdisksUpdateSize: $e\n');
}

import org.openapitools.client.api.StandaloneVMDisksApi;

public class StandaloneVMDisksApiExample {
    public static void main(String[] args) {
        StandaloneVMDisksApi apiInstance = new StandaloneVMDisksApi();
        UpdateStandaloneVmDiskSizeCommand updateStandaloneVmDiskSizeCommand = ; // UpdateStandaloneVmDiskSizeCommand | 

        try {
            Object result = apiInstance.standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StandaloneVMDisksApi#standalonevmdisksUpdateSize");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
StandaloneVMDisksApi *apiInstance = [[StandaloneVMDisksApi alloc] init];
UpdateStandaloneVmDiskSizeCommand *updateStandaloneVmDiskSizeCommand = ; //  (optional)

// Update disk size
[apiInstance standalonevmdisksUpdateSizeWith:updateStandaloneVmDiskSizeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.StandaloneVMDisksApi()
var opts = {
  'updateStandaloneVmDiskSizeCommand':  // {UpdateStandaloneVmDiskSizeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.standalonevmdisksUpdateSize(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class standalonevmdisksUpdateSizeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new StandaloneVMDisksApi();
            var updateStandaloneVmDiskSizeCommand = new UpdateStandaloneVmDiskSizeCommand(); // UpdateStandaloneVmDiskSizeCommand |  (optional) 

            try {
                // Update disk size
                Object result = apiInstance.standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StandaloneVMDisksApi.standalonevmdisksUpdateSize: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\StandaloneVMDisksApi();
$updateStandaloneVmDiskSizeCommand = ; // UpdateStandaloneVmDiskSizeCommand | 

try {
    $result = $api_instance->standalonevmdisksUpdateSize($updateStandaloneVmDiskSizeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling StandaloneVMDisksApi->standalonevmdisksUpdateSize: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::StandaloneVMDisksApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::StandaloneVMDisksApi->new();
my $updateStandaloneVmDiskSizeCommand = WWW::OPenAPIClient::Object::UpdateStandaloneVmDiskSizeCommand->new(); # UpdateStandaloneVmDiskSizeCommand | 

eval {
    my $result = $api_instance->standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand => $updateStandaloneVmDiskSizeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StandaloneVMDisksApi->standalonevmdisksUpdateSize: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.StandaloneVMDisksApi()
updateStandaloneVmDiskSizeCommand =  # UpdateStandaloneVmDiskSizeCommand |  (optional)

try:
    # Update disk size
    api_response = api_instance.standalonevmdisks_update_size(updateStandaloneVmDiskSizeCommand=updateStandaloneVmDiskSizeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StandaloneVMDisksApi->standalonevmdisksUpdateSize: %s\n" % e)
extern crate StandaloneVMDisksApi;

pub fn main() {
    let updateStandaloneVmDiskSizeCommand = ; // UpdateStandaloneVmDiskSizeCommand

    let mut context = StandaloneVMDisksApi::Context::default();
    let result = client.standalonevmdisksUpdateSize(updateStandaloneVmDiskSizeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateStandaloneVmDiskSizeCommand

Responses


TrustedRegistries

trustedregistriesCreate

Create trusted registries for access profile


/api/v1/trustedregistries/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/trustedregistries/create" \
 -d '{
  "registry" : "registry",
  "accessProfileId" : 0,
  "caPem" : "caPem"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TrustedRegistriesApi;

import java.io.File;
import java.util.*;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        CreateTrustedRegistriesCommand createTrustedRegistriesCommand = ; // CreateTrustedRegistriesCommand | 

        try {
            ApiResponse result = apiInstance.trustedregistriesCreate(createTrustedRegistriesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateTrustedRegistriesCommand createTrustedRegistriesCommand = new CreateTrustedRegistriesCommand(); // CreateTrustedRegistriesCommand | 

try {
    final result = await api_instance.trustedregistriesCreate(createTrustedRegistriesCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->trustedregistriesCreate: $e\n');
}

import org.openapitools.client.api.TrustedRegistriesApi;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        CreateTrustedRegistriesCommand createTrustedRegistriesCommand = ; // CreateTrustedRegistriesCommand | 

        try {
            ApiResponse result = apiInstance.trustedregistriesCreate(createTrustedRegistriesCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
TrustedRegistriesApi *apiInstance = [[TrustedRegistriesApi alloc] init];
CreateTrustedRegistriesCommand *createTrustedRegistriesCommand = ; //  (optional)

// Create trusted registries for access profile
[apiInstance trustedregistriesCreateWith:createTrustedRegistriesCommand
              completionHandler: ^(ApiResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.TrustedRegistriesApi()
var opts = {
  'createTrustedRegistriesCommand':  // {CreateTrustedRegistriesCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trustedregistriesCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class trustedregistriesCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new TrustedRegistriesApi();
            var createTrustedRegistriesCommand = new CreateTrustedRegistriesCommand(); // CreateTrustedRegistriesCommand |  (optional) 

            try {
                // Create trusted registries for access profile
                ApiResponse result = apiInstance.trustedregistriesCreate(createTrustedRegistriesCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TrustedRegistriesApi.trustedregistriesCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TrustedRegistriesApi();
$createTrustedRegistriesCommand = ; // CreateTrustedRegistriesCommand | 

try {
    $result = $api_instance->trustedregistriesCreate($createTrustedRegistriesCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrustedRegistriesApi->trustedregistriesCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TrustedRegistriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TrustedRegistriesApi->new();
my $createTrustedRegistriesCommand = WWW::OPenAPIClient::Object::CreateTrustedRegistriesCommand->new(); # CreateTrustedRegistriesCommand | 

eval {
    my $result = $api_instance->trustedregistriesCreate(createTrustedRegistriesCommand => $createTrustedRegistriesCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TrustedRegistriesApi->trustedregistriesCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.TrustedRegistriesApi()
createTrustedRegistriesCommand =  # CreateTrustedRegistriesCommand |  (optional)

try:
    # Create trusted registries for access profile
    api_response = api_instance.trustedregistries_create(createTrustedRegistriesCommand=createTrustedRegistriesCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TrustedRegistriesApi->trustedregistriesCreate: %s\n" % e)
extern crate TrustedRegistriesApi;

pub fn main() {
    let createTrustedRegistriesCommand = ; // CreateTrustedRegistriesCommand

    let mut context = TrustedRegistriesApi::Context::default();
    let result = client.trustedregistriesCreate(createTrustedRegistriesCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createTrustedRegistriesCommand

Responses


trustedregistriesDelete

Delete trusted registry


/api/v1/trustedregistries/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/trustedregistries/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TrustedRegistriesApi;

import java.io.File;
import java.util.*;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.trustedregistriesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 

try {
    final result = await api_instance.trustedregistriesDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->trustedregistriesDelete: $e\n');
}

import org.openapitools.client.api.TrustedRegistriesApi;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 

        try {
            Object result = apiInstance.trustedregistriesDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
TrustedRegistriesApi *apiInstance = [[TrustedRegistriesApi alloc] init];
Integer *id = 56; //  (default to null)

// Delete trusted registry
[apiInstance trustedregistriesDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.TrustedRegistriesApi()
var id = 56; // {Integer} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trustedregistriesDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class trustedregistriesDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new TrustedRegistriesApi();
            var id = 56;  // Integer |  (default to null)

            try {
                // Delete trusted registry
                Object result = apiInstance.trustedregistriesDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TrustedRegistriesApi.trustedregistriesDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TrustedRegistriesApi();
$id = 56; // Integer | 

try {
    $result = $api_instance->trustedregistriesDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrustedRegistriesApi->trustedregistriesDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TrustedRegistriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TrustedRegistriesApi->new();
my $id = 56; # Integer | 

eval {
    my $result = $api_instance->trustedregistriesDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TrustedRegistriesApi->trustedregistriesDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.TrustedRegistriesApi()
id = 56 # Integer |  (default to null)

try:
    # Delete trusted registry
    api_response = api_instance.trustedregistries_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TrustedRegistriesApi->trustedregistriesDelete: %s\n" % e)
extern crate TrustedRegistriesApi;

pub fn main() {
    let id = 56; // Integer

    let mut context = TrustedRegistriesApi::Context::default();
    let result = client.trustedregistriesDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required

Responses


trustedregistriesEdit

Edit trusted registry


/api/v1/trustedregistries/edit/{id}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/trustedregistries/edit/{id}" \
 -d '{
  "registry" : "registry",
  "caPem" : "caPem"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TrustedRegistriesApi;

import java.io.File;
import java.util.*;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 
        TrustedRegistryEditDto trustedRegistryEditDto = ; // TrustedRegistryEditDto | 

        try {
            Object result = apiInstance.trustedregistriesEdit(id, trustedRegistryEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesEdit");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final TrustedRegistryEditDto trustedRegistryEditDto = new TrustedRegistryEditDto(); // TrustedRegistryEditDto | 

try {
    final result = await api_instance.trustedregistriesEdit(id, trustedRegistryEditDto);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->trustedregistriesEdit: $e\n');
}

import org.openapitools.client.api.TrustedRegistriesApi;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 
        TrustedRegistryEditDto trustedRegistryEditDto = ; // TrustedRegistryEditDto | 

        try {
            Object result = apiInstance.trustedregistriesEdit(id, trustedRegistryEditDto);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesEdit");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
TrustedRegistriesApi *apiInstance = [[TrustedRegistriesApi alloc] init];
Integer *id = 56; //  (default to null)
TrustedRegistryEditDto *trustedRegistryEditDto = ; //  (optional)

// Edit trusted registry
[apiInstance trustedregistriesEditWith:id
    trustedRegistryEditDto:trustedRegistryEditDto
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.TrustedRegistriesApi()
var id = 56; // {Integer} 
var opts = {
  'trustedRegistryEditDto':  // {TrustedRegistryEditDto} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trustedregistriesEdit(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class trustedregistriesEditExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new TrustedRegistriesApi();
            var id = 56;  // Integer |  (default to null)
            var trustedRegistryEditDto = new TrustedRegistryEditDto(); // TrustedRegistryEditDto |  (optional) 

            try {
                // Edit trusted registry
                Object result = apiInstance.trustedregistriesEdit(id, trustedRegistryEditDto);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TrustedRegistriesApi.trustedregistriesEdit: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TrustedRegistriesApi();
$id = 56; // Integer | 
$trustedRegistryEditDto = ; // TrustedRegistryEditDto | 

try {
    $result = $api_instance->trustedregistriesEdit($id, $trustedRegistryEditDto);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrustedRegistriesApi->trustedregistriesEdit: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TrustedRegistriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TrustedRegistriesApi->new();
my $id = 56; # Integer | 
my $trustedRegistryEditDto = WWW::OPenAPIClient::Object::TrustedRegistryEditDto->new(); # TrustedRegistryEditDto | 

eval {
    my $result = $api_instance->trustedregistriesEdit(id => $id, trustedRegistryEditDto => $trustedRegistryEditDto);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TrustedRegistriesApi->trustedregistriesEdit: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.TrustedRegistriesApi()
id = 56 # Integer |  (default to null)
trustedRegistryEditDto =  # TrustedRegistryEditDto |  (optional)

try:
    # Edit trusted registry
    api_response = api_instance.trustedregistries_edit(id, trustedRegistryEditDto=trustedRegistryEditDto)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TrustedRegistriesApi->trustedregistriesEdit: %s\n" % e)
extern crate TrustedRegistriesApi;

pub fn main() {
    let id = 56; // Integer
    let trustedRegistryEditDto = ; // TrustedRegistryEditDto

    let mut context = TrustedRegistriesApi::Context::default();
    let result = client.trustedregistriesEdit(id, trustedRegistryEditDto, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Body parameters
Name Description
trustedRegistryEditDto

Responses


trustedregistriesList

List trusted registries by profile id


/api/v1/trustedregistries/{id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/trustedregistries/{id}?search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.TrustedRegistriesApi;

import java.io.File;
import java.util.*;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[TrustedRegistriesListDto] result = apiInstance.trustedregistriesList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer id = new Integer(); // Integer | 
final String search = new String(); // String | 

try {
    final result = await api_instance.trustedregistriesList(id, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->trustedregistriesList: $e\n');
}

import org.openapitools.client.api.TrustedRegistriesApi;

public class TrustedRegistriesApiExample {
    public static void main(String[] args) {
        TrustedRegistriesApi apiInstance = new TrustedRegistriesApi();
        Integer id = 56; // Integer | 
        String search = search_example; // String | 

        try {
            array[TrustedRegistriesListDto] result = apiInstance.trustedregistriesList(id, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling TrustedRegistriesApi#trustedregistriesList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
TrustedRegistriesApi *apiInstance = [[TrustedRegistriesApi alloc] init];
Integer *id = 56; //  (default to null)
String *search = search_example; //  (optional) (default to null)

// List trusted registries by profile id
[apiInstance trustedregistriesListWith:id
    search:search
              completionHandler: ^(array[TrustedRegistriesListDto] output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.TrustedRegistriesApi()
var id = 56; // {Integer} 
var opts = {
  'search': search_example // {String} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.trustedregistriesList(id, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class trustedregistriesListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new TrustedRegistriesApi();
            var id = 56;  // Integer |  (default to null)
            var search = search_example;  // String |  (optional)  (default to null)

            try {
                // List trusted registries by profile id
                array[TrustedRegistriesListDto] result = apiInstance.trustedregistriesList(id, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling TrustedRegistriesApi.trustedregistriesList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\TrustedRegistriesApi();
$id = 56; // Integer | 
$search = search_example; // String | 

try {
    $result = $api_instance->trustedregistriesList($id, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling TrustedRegistriesApi->trustedregistriesList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::TrustedRegistriesApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::TrustedRegistriesApi->new();
my $id = 56; # Integer | 
my $search = search_example; # String | 

eval {
    my $result = $api_instance->trustedregistriesList(id => $id, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling TrustedRegistriesApi->trustedregistriesList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.TrustedRegistriesApi()
id = 56 # Integer |  (default to null)
search = search_example # String |  (optional) (default to null)

try:
    # List trusted registries by profile id
    api_response = api_instance.trustedregistries_list(id, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TrustedRegistriesApi->trustedregistriesList: %s\n" % e)
extern crate TrustedRegistriesApi;

pub fn main() {
    let id = 56; // Integer
    let search = search_example; // String

    let mut context = TrustedRegistriesApi::Context::default();
    let result = client.trustedregistriesList(id, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
Integer (int32)
Required
Query parameters
Name Description
search

Responses


Users

usersChangePassword

Change user password


/api/v1/users/changepassword

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/changepassword" \
 -d '{
  "password" : "password",
  "newPassword" : "newPassword"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ChangePasswordCommand changePasswordCommand = ; // ChangePasswordCommand | 

        try {
            Object result = apiInstance.usersChangePassword(changePasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersChangePassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ChangePasswordCommand changePasswordCommand = new ChangePasswordCommand(); // ChangePasswordCommand | 

try {
    final result = await api_instance.usersChangePassword(changePasswordCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersChangePassword: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ChangePasswordCommand changePasswordCommand = ; // ChangePasswordCommand | 

        try {
            Object result = apiInstance.usersChangePassword(changePasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersChangePassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ChangePasswordCommand *changePasswordCommand = ; //  (optional)

// Change user password
[apiInstance usersChangePasswordWith:changePasswordCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'changePasswordCommand':  // {ChangePasswordCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersChangePassword(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersChangePasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var changePasswordCommand = new ChangePasswordCommand(); // ChangePasswordCommand |  (optional) 

            try {
                // Change user password
                Object result = apiInstance.usersChangePassword(changePasswordCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersChangePassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$changePasswordCommand = ; // ChangePasswordCommand | 

try {
    $result = $api_instance->usersChangePassword($changePasswordCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersChangePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $changePasswordCommand = WWW::OPenAPIClient::Object::ChangePasswordCommand->new(); # ChangePasswordCommand | 

eval {
    my $result = $api_instance->usersChangePassword(changePasswordCommand => $changePasswordCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersChangePassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
changePasswordCommand =  # ChangePasswordCommand |  (optional)

try:
    # Change user password
    api_response = api_instance.users_change_password(changePasswordCommand=changePasswordCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersChangePassword: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let changePasswordCommand = ; // ChangePasswordCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersChangePassword(changePasswordCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
changePasswordCommand

Responses


usersConfirmEmail

Confirm user email


/api/v1/users/confirmemail

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/confirmemail" \
 -d '{
  "mode" : "",
  "newEmail" : "newEmail"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ConfirmEmailCommand confirmEmailCommand = ; // ConfirmEmailCommand | 

        try {
            Object result = apiInstance.usersConfirmEmail(confirmEmailCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersConfirmEmail");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ConfirmEmailCommand confirmEmailCommand = new ConfirmEmailCommand(); // ConfirmEmailCommand | 

try {
    final result = await api_instance.usersConfirmEmail(confirmEmailCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersConfirmEmail: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ConfirmEmailCommand confirmEmailCommand = ; // ConfirmEmailCommand | 

        try {
            Object result = apiInstance.usersConfirmEmail(confirmEmailCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersConfirmEmail");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ConfirmEmailCommand *confirmEmailCommand = ; //  (optional)

// Confirm user email
[apiInstance usersConfirmEmailWith:confirmEmailCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'confirmEmailCommand':  // {ConfirmEmailCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersConfirmEmail(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersConfirmEmailExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var confirmEmailCommand = new ConfirmEmailCommand(); // ConfirmEmailCommand |  (optional) 

            try {
                // Confirm user email
                Object result = apiInstance.usersConfirmEmail(confirmEmailCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersConfirmEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$confirmEmailCommand = ; // ConfirmEmailCommand | 

try {
    $result = $api_instance->usersConfirmEmail($confirmEmailCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersConfirmEmail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $confirmEmailCommand = WWW::OPenAPIClient::Object::ConfirmEmailCommand->new(); # ConfirmEmailCommand | 

eval {
    my $result = $api_instance->usersConfirmEmail(confirmEmailCommand => $confirmEmailCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersConfirmEmail: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
confirmEmailCommand =  # ConfirmEmailCommand |  (optional)

try:
    # Confirm user email
    api_response = api_instance.users_confirm_email(confirmEmailCommand=confirmEmailCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersConfirmEmail: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let confirmEmailCommand = ; // ConfirmEmailCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersConfirmEmail(confirmEmailCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
confirmEmailCommand

Responses


usersCreate

Create user


/api/v1/users/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/create" \
 -d '{
  "displayName" : "displayName",
  "email" : "email",
  "domainId" : 0,
  "isDomainAdmin" : true
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        CreateUserCommand createUserCommand = ; // CreateUserCommand | 

        try {
            CreateUserResponse result = apiInstance.usersCreate(createUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateUserCommand createUserCommand = new CreateUserCommand(); // CreateUserCommand | 

try {
    final result = await api_instance.usersCreate(createUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersCreate: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        CreateUserCommand createUserCommand = ; // CreateUserCommand | 

        try {
            CreateUserResponse result = apiInstance.usersCreate(createUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
CreateUserCommand *createUserCommand = ; //  (optional)

// Create user
[apiInstance usersCreateWith:createUserCommand
              completionHandler: ^(CreateUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'createUserCommand':  // {CreateUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var createUserCommand = new CreateUserCommand(); // CreateUserCommand |  (optional) 

            try {
                // Create user
                CreateUserResponse result = apiInstance.usersCreate(createUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$createUserCommand = ; // CreateUserCommand | 

try {
    $result = $api_instance->usersCreate($createUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $createUserCommand = WWW::OPenAPIClient::Object::CreateUserCommand->new(); # CreateUserCommand | 

eval {
    my $result = $api_instance->usersCreate(createUserCommand => $createUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
createUserCommand =  # CreateUserCommand |  (optional)

try:
    # Create user
    api_response = api_instance.users_create(createUserCommand=createUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersCreate: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let createUserCommand = ; // CreateUserCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersCreate(createUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createUserCommand

Responses


usersDelete

Delete user


/api/v1/users/{id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/users/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        String id = id_example; // String | 

        try {
            Object result = apiInstance.usersDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | 

try {
    final result = await api_instance.usersDelete(id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersDelete: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        String id = id_example; // String | 

        try {
            Object result = apiInstance.usersDelete(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
String *id = id_example; //  (default to null)

// Delete user
[apiInstance usersDeleteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var id = id_example; // {String} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersDelete(id, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var id = id_example;  // String |  (default to null)

            try {
                // Delete user
                Object result = apiInstance.usersDelete(id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$id = id_example; // String | 

try {
    $result = $api_instance->usersDelete($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $id = id_example; # String | 

eval {
    my $result = $api_instance->usersDelete(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
id = id_example # String |  (default to null)

try:
    # Delete user
    api_response = api_instance.users_delete(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersDelete: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let id = id_example; // String

    let mut context = UsersApi::Context::default();
    let result = client.usersDelete(id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
id*
String
Required

Responses


usersDeleteMyUser

Delete my user


/api/v1/users/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/delete" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.usersDeleteMyUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDeleteMyUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

try {
    final result = await api_instance.usersDeleteMyUser(body);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersDeleteMyUser: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Object body = Object; // Object | 

        try {
            Object result = apiInstance.usersDeleteMyUser(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDeleteMyUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Object *body = Object; //  (optional)

// Delete my user
[apiInstance usersDeleteMyUserWith:body
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'body': Object // {Object} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersDeleteMyUser(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersDeleteMyUserExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var body = Object;  // Object |  (optional) 

            try {
                // Delete my user
                Object result = apiInstance.usersDeleteMyUser(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersDeleteMyUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$body = Object; // Object | 

try {
    $result = $api_instance->usersDeleteMyUser($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersDeleteMyUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object | 

eval {
    my $result = $api_instance->usersDeleteMyUser(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersDeleteMyUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
body = Object # Object |  (optional)

try:
    # Delete my user
    api_response = api_instance.users_delete_my_user(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersDeleteMyUser: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let body = Object; // Object

    let mut context = UsersApi::Context::default();
    let result = client.usersDeleteMyUser(body, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
body

Responses


usersDisable

Disable user


/api/v1/users/disable

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/disable" \
 -d '{
  "disable" : true,
  "id" : "id"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        DisableUserCommand disableUserCommand = ; // DisableUserCommand | 

        try {
            Object result = apiInstance.usersDisable(disableUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDisable");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DisableUserCommand disableUserCommand = new DisableUserCommand(); // DisableUserCommand | 

try {
    final result = await api_instance.usersDisable(disableUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersDisable: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        DisableUserCommand disableUserCommand = ; // DisableUserCommand | 

        try {
            Object result = apiInstance.usersDisable(disableUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDisable");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
DisableUserCommand *disableUserCommand = ; //  (optional)

// Disable user
[apiInstance usersDisableWith:disableUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'disableUserCommand':  // {DisableUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersDisable(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersDisableExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var disableUserCommand = new DisableUserCommand(); // DisableUserCommand |  (optional) 

            try {
                // Disable user
                Object result = apiInstance.usersDisable(disableUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersDisable: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$disableUserCommand = ; // DisableUserCommand | 

try {
    $result = $api_instance->usersDisable($disableUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersDisable: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $disableUserCommand = WWW::OPenAPIClient::Object::DisableUserCommand->new(); # DisableUserCommand | 

eval {
    my $result = $api_instance->usersDisable(disableUserCommand => $disableUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersDisable: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
disableUserCommand =  # DisableUserCommand |  (optional)

try:
    # Disable user
    api_response = api_instance.users_disable(disableUserCommand=disableUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersDisable: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let disableUserCommand = ; // DisableUserCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersDisable(disableUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
disableUserCommand

Responses


usersDowngradeRole

Downgrade user role


/api/v1/users/downgrade

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/downgrade" \
 -d '{
  "userId" : "userId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        DowngradeUserCommand downgradeUserCommand = ; // DowngradeUserCommand | 

        try {
            Object result = apiInstance.usersDowngradeRole(downgradeUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDowngradeRole");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DowngradeUserCommand downgradeUserCommand = new DowngradeUserCommand(); // DowngradeUserCommand | 

try {
    final result = await api_instance.usersDowngradeRole(downgradeUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersDowngradeRole: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        DowngradeUserCommand downgradeUserCommand = ; // DowngradeUserCommand | 

        try {
            Object result = apiInstance.usersDowngradeRole(downgradeUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDowngradeRole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
DowngradeUserCommand *downgradeUserCommand = ; //  (optional)

// Downgrade user role
[apiInstance usersDowngradeRoleWith:downgradeUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'downgradeUserCommand':  // {DowngradeUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersDowngradeRole(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersDowngradeRoleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var downgradeUserCommand = new DowngradeUserCommand(); // DowngradeUserCommand |  (optional) 

            try {
                // Downgrade user role
                Object result = apiInstance.usersDowngradeRole(downgradeUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersDowngradeRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$downgradeUserCommand = ; // DowngradeUserCommand | 

try {
    $result = $api_instance->usersDowngradeRole($downgradeUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersDowngradeRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $downgradeUserCommand = WWW::OPenAPIClient::Object::DowngradeUserCommand->new(); # DowngradeUserCommand | 

eval {
    my $result = $api_instance->usersDowngradeRole(downgradeUserCommand => $downgradeUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersDowngradeRole: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
downgradeUserCommand =  # DowngradeUserCommand |  (optional)

try:
    # Downgrade user role
    api_response = api_instance.users_downgrade_role(downgradeUserCommand=downgradeUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersDowngradeRole: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let downgradeUserCommand = ; // DowngradeUserCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersDowngradeRole(downgradeUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
downgradeUserCommand

Responses


usersDropdown

Retrieve user info

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/users/dropdown

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/users/dropdown?OrganizationId=56&ProjectId=56&Limit=56&Offset=56&Search=search_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer
        Integer projectId = 56; // Integer | Optional project id to filter by
        Integer limit = 56; // Integer | Optional page size (defaults to 500)
        Integer offset = 56; // Integer | Optional page offset (defaults to 0)
        String search = search_example; // String | Optional free-text search on user name

        try {
            UserByOrgProjectDropdownList result = apiInstance.usersDropdown(organizationId, projectId, limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDropdown");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer organizationId = new Integer(); // Integer | Organization id, positive integer
final Integer projectId = new Integer(); // Integer | Optional project id to filter by
final Integer limit = new Integer(); // Integer | Optional page size (defaults to 500)
final Integer offset = new Integer(); // Integer | Optional page offset (defaults to 0)
final String search = new String(); // String | Optional free-text search on user name

try {
    final result = await api_instance.usersDropdown(organizationId, projectId, limit, offset, search);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersDropdown: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Integer organizationId = 56; // Integer | Organization id, positive integer
        Integer projectId = 56; // Integer | Optional project id to filter by
        Integer limit = 56; // Integer | Optional page size (defaults to 500)
        Integer offset = 56; // Integer | Optional page offset (defaults to 0)
        String search = search_example; // String | Optional free-text search on user name

        try {
            UserByOrgProjectDropdownList result = apiInstance.usersDropdown(organizationId, projectId, limit, offset, search);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersDropdown");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Integer *organizationId = 56; // Organization id, positive integer (default to null)
Integer *projectId = 56; // Optional project id to filter by (optional) (default to null)
Integer *limit = 56; // Optional page size (defaults to 500) (optional) (default to 500)
Integer *offset = 56; // Optional page offset (defaults to 0) (optional) (default to 0)
String *search = search_example; // Optional free-text search on user name (optional) (default to null)

// Retrieve user info
[apiInstance usersDropdownWith:organizationId
    projectId:projectId
    limit:limit
    offset:offset
    search:search
              completionHandler: ^(UserByOrgProjectDropdownList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var organizationId = 56; // {Integer} Organization id, positive integer
var opts = {
  'projectId': 56, // {Integer} Optional project id to filter by
  'limit': 56, // {Integer} Optional page size (defaults to 500)
  'offset': 56, // {Integer} Optional page offset (defaults to 0)
  'search': search_example // {String} Optional free-text search on user name
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersDropdown(organizationId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersDropdownExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var organizationId = 56;  // Integer | Organization id, positive integer (default to null)
            var projectId = 56;  // Integer | Optional project id to filter by (optional)  (default to null)
            var limit = 56;  // Integer | Optional page size (defaults to 500) (optional)  (default to 500)
            var offset = 56;  // Integer | Optional page offset (defaults to 0) (optional)  (default to 0)
            var search = search_example;  // String | Optional free-text search on user name (optional)  (default to null)

            try {
                // Retrieve user info
                UserByOrgProjectDropdownList result = apiInstance.usersDropdown(organizationId, projectId, limit, offset, search);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersDropdown: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$organizationId = 56; // Integer | Organization id, positive integer
$projectId = 56; // Integer | Optional project id to filter by
$limit = 56; // Integer | Optional page size (defaults to 500)
$offset = 56; // Integer | Optional page offset (defaults to 0)
$search = search_example; // String | Optional free-text search on user name

try {
    $result = $api_instance->usersDropdown($organizationId, $projectId, $limit, $offset, $search);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersDropdown: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $organizationId = 56; # Integer | Organization id, positive integer
my $projectId = 56; # Integer | Optional project id to filter by
my $limit = 56; # Integer | Optional page size (defaults to 500)
my $offset = 56; # Integer | Optional page offset (defaults to 0)
my $search = search_example; # String | Optional free-text search on user name

eval {
    my $result = $api_instance->usersDropdown(organizationId => $organizationId, projectId => $projectId, limit => $limit, offset => $offset, search => $search);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersDropdown: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
organizationId = 56 # Integer | Organization id, positive integer (default to null)
projectId = 56 # Integer | Optional project id to filter by (optional) (default to null)
limit = 56 # Integer | Optional page size (defaults to 500) (optional) (default to 500)
offset = 56 # Integer | Optional page offset (defaults to 0) (optional) (default to 0)
search = search_example # String | Optional free-text search on user name (optional) (default to null)

try:
    # Retrieve user info
    api_response = api_instance.users_dropdown(organizationId, projectId=projectId, limit=limit, offset=offset, search=search)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersDropdown: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let organizationId = 56; // Integer
    let projectId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let search = search_example; // String

    let mut context = UsersApi::Context::default();
    let result = client.usersDropdown(organizationId, projectId, limit, offset, search, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Query parameters
Name Description
OrganizationId*
Integer (int32)
Organization id, positive integer
Required
ProjectId
Integer (int32)
Optional project id to filter by
Limit
Integer (int32)
Optional page size (defaults to 500)
Offset
Integer (int32)
Optional page offset (defaults to 0)
Search

Responses


usersForceToResetPassword

Force to reset password


/api/v1/users/force-to-reset

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/force-to-reset" \
 -d '{
  "id" : "id"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ForceToResetPasswordCommand forceToResetPasswordCommand = ; // ForceToResetPasswordCommand | 

        try {
            Object result = apiInstance.usersForceToResetPassword(forceToResetPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersForceToResetPassword");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ForceToResetPasswordCommand forceToResetPasswordCommand = new ForceToResetPasswordCommand(); // ForceToResetPasswordCommand | 

try {
    final result = await api_instance.usersForceToResetPassword(forceToResetPasswordCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersForceToResetPassword: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ForceToResetPasswordCommand forceToResetPasswordCommand = ; // ForceToResetPasswordCommand | 

        try {
            Object result = apiInstance.usersForceToResetPassword(forceToResetPasswordCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersForceToResetPassword");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ForceToResetPasswordCommand *forceToResetPasswordCommand = ; //  (optional)

// Force to reset password
[apiInstance usersForceToResetPasswordWith:forceToResetPasswordCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'forceToResetPasswordCommand':  // {ForceToResetPasswordCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersForceToResetPassword(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersForceToResetPasswordExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var forceToResetPasswordCommand = new ForceToResetPasswordCommand(); // ForceToResetPasswordCommand |  (optional) 

            try {
                // Force to reset password
                Object result = apiInstance.usersForceToResetPassword(forceToResetPasswordCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersForceToResetPassword: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$forceToResetPasswordCommand = ; // ForceToResetPasswordCommand | 

try {
    $result = $api_instance->usersForceToResetPassword($forceToResetPasswordCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersForceToResetPassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $forceToResetPasswordCommand = WWW::OPenAPIClient::Object::ForceToResetPasswordCommand->new(); # ForceToResetPasswordCommand | 

eval {
    my $result = $api_instance->usersForceToResetPassword(forceToResetPasswordCommand => $forceToResetPasswordCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersForceToResetPassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
forceToResetPasswordCommand =  # ForceToResetPasswordCommand |  (optional)

try:
    # Force to reset password
    api_response = api_instance.users_force_to_reset_password(forceToResetPasswordCommand=forceToResetPasswordCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersForceToResetPassword: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let forceToResetPasswordCommand = ; // ForceToResetPasswordCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersForceToResetPassword(forceToResetPasswordCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
forceToResetPasswordCommand

Responses


usersManageRole

Manage user role


/api/v1/users/manage-role

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/manage-role" \
 -d '{
  "targetRole" : "",
  "userId" : "userId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ManageRoleCommand manageRoleCommand = ; // ManageRoleCommand | 

        try {
            Object result = apiInstance.usersManageRole(manageRoleCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersManageRole");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ManageRoleCommand manageRoleCommand = new ManageRoleCommand(); // ManageRoleCommand | 

try {
    final result = await api_instance.usersManageRole(manageRoleCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersManageRole: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ManageRoleCommand manageRoleCommand = ; // ManageRoleCommand | 

        try {
            Object result = apiInstance.usersManageRole(manageRoleCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersManageRole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ManageRoleCommand *manageRoleCommand = ; //  (optional)

// Manage user role
[apiInstance usersManageRoleWith:manageRoleCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'manageRoleCommand':  // {ManageRoleCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersManageRole(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersManageRoleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var manageRoleCommand = new ManageRoleCommand(); // ManageRoleCommand |  (optional) 

            try {
                // Manage user role
                Object result = apiInstance.usersManageRole(manageRoleCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersManageRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$manageRoleCommand = ; // ManageRoleCommand | 

try {
    $result = $api_instance->usersManageRole($manageRoleCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersManageRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $manageRoleCommand = WWW::OPenAPIClient::Object::ManageRoleCommand->new(); # ManageRoleCommand | 

eval {
    my $result = $api_instance->usersManageRole(manageRoleCommand => $manageRoleCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersManageRole: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
manageRoleCommand =  # ManageRoleCommand |  (optional)

try:
    # Manage user role
    api_response = api_instance.users_manage_role(manageRoleCommand=manageRoleCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersManageRole: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let manageRoleCommand = ; // ManageRoleCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersManageRole(manageRoleCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
manageRoleCommand

Responses


usersPromoteRole

Promote user role


/api/v1/users/promote-role

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/promote-role" \
 -d '{
  "isAdmin" : true,
  "userId" : "userId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        PromoteUserCommand promoteUserCommand = ; // PromoteUserCommand | 

        try {
            Object result = apiInstance.usersPromoteRole(promoteUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersPromoteRole");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final PromoteUserCommand promoteUserCommand = new PromoteUserCommand(); // PromoteUserCommand | 

try {
    final result = await api_instance.usersPromoteRole(promoteUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersPromoteRole: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        PromoteUserCommand promoteUserCommand = ; // PromoteUserCommand | 

        try {
            Object result = apiInstance.usersPromoteRole(promoteUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersPromoteRole");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
PromoteUserCommand *promoteUserCommand = ; //  (optional)

// Promote user role
[apiInstance usersPromoteRoleWith:promoteUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'promoteUserCommand':  // {PromoteUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersPromoteRole(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersPromoteRoleExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var promoteUserCommand = new PromoteUserCommand(); // PromoteUserCommand |  (optional) 

            try {
                // Promote user role
                Object result = apiInstance.usersPromoteRole(promoteUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersPromoteRole: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$promoteUserCommand = ; // PromoteUserCommand | 

try {
    $result = $api_instance->usersPromoteRole($promoteUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersPromoteRole: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $promoteUserCommand = WWW::OPenAPIClient::Object::PromoteUserCommand->new(); # PromoteUserCommand | 

eval {
    my $result = $api_instance->usersPromoteRole(promoteUserCommand => $promoteUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersPromoteRole: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
promoteUserCommand =  # PromoteUserCommand |  (optional)

try:
    # Promote user role
    api_response = api_instance.users_promote_role(promoteUserCommand=promoteUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersPromoteRole: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let promoteUserCommand = ; // PromoteUserCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersPromoteRole(promoteUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
promoteUserCommand

Responses


usersToggleMaintenanceMode

Toggle maintenance mode


/api/v1/users/togglemaintenancemode

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/togglemaintenancemode" \
 -d '{
  "mode" : "mode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ToggleMaintenanceModeCommand toggleMaintenanceModeCommand = ; // ToggleMaintenanceModeCommand | 

        try {
            Object result = apiInstance.usersToggleMaintenanceMode(toggleMaintenanceModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersToggleMaintenanceMode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ToggleMaintenanceModeCommand toggleMaintenanceModeCommand = new ToggleMaintenanceModeCommand(); // ToggleMaintenanceModeCommand | 

try {
    final result = await api_instance.usersToggleMaintenanceMode(toggleMaintenanceModeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersToggleMaintenanceMode: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ToggleMaintenanceModeCommand toggleMaintenanceModeCommand = ; // ToggleMaintenanceModeCommand | 

        try {
            Object result = apiInstance.usersToggleMaintenanceMode(toggleMaintenanceModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersToggleMaintenanceMode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ToggleMaintenanceModeCommand *toggleMaintenanceModeCommand = ; //  (optional)

// Toggle maintenance mode
[apiInstance usersToggleMaintenanceModeWith:toggleMaintenanceModeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'toggleMaintenanceModeCommand':  // {ToggleMaintenanceModeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersToggleMaintenanceMode(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersToggleMaintenanceModeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var toggleMaintenanceModeCommand = new ToggleMaintenanceModeCommand(); // ToggleMaintenanceModeCommand |  (optional) 

            try {
                // Toggle maintenance mode
                Object result = apiInstance.usersToggleMaintenanceMode(toggleMaintenanceModeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersToggleMaintenanceMode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$toggleMaintenanceModeCommand = ; // ToggleMaintenanceModeCommand | 

try {
    $result = $api_instance->usersToggleMaintenanceMode($toggleMaintenanceModeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersToggleMaintenanceMode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $toggleMaintenanceModeCommand = WWW::OPenAPIClient::Object::ToggleMaintenanceModeCommand->new(); # ToggleMaintenanceModeCommand | 

eval {
    my $result = $api_instance->usersToggleMaintenanceMode(toggleMaintenanceModeCommand => $toggleMaintenanceModeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersToggleMaintenanceMode: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
toggleMaintenanceModeCommand =  # ToggleMaintenanceModeCommand |  (optional)

try:
    # Toggle maintenance mode
    api_response = api_instance.users_toggle_maintenance_mode(toggleMaintenanceModeCommand=toggleMaintenanceModeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersToggleMaintenanceMode: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let toggleMaintenanceModeCommand = ; // ToggleMaintenanceModeCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersToggleMaintenanceMode(toggleMaintenanceModeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
toggleMaintenanceModeCommand

Responses


usersToggleNotificationMode

Toggle notification mode


/api/v1/users/togglenotificationmode

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/togglenotificationmode" \
 -d '{
  "mode" : "mode"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        ToggleNotificationModeCommand toggleNotificationModeCommand = ; // ToggleNotificationModeCommand | 

        try {
            Object result = apiInstance.usersToggleNotificationMode(toggleNotificationModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersToggleNotificationMode");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ToggleNotificationModeCommand toggleNotificationModeCommand = new ToggleNotificationModeCommand(); // ToggleNotificationModeCommand | 

try {
    final result = await api_instance.usersToggleNotificationMode(toggleNotificationModeCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersToggleNotificationMode: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        ToggleNotificationModeCommand toggleNotificationModeCommand = ; // ToggleNotificationModeCommand | 

        try {
            Object result = apiInstance.usersToggleNotificationMode(toggleNotificationModeCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersToggleNotificationMode");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
ToggleNotificationModeCommand *toggleNotificationModeCommand = ; //  (optional)

// Toggle notification mode
[apiInstance usersToggleNotificationModeWith:toggleNotificationModeCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'toggleNotificationModeCommand':  // {ToggleNotificationModeCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersToggleNotificationMode(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersToggleNotificationModeExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var toggleNotificationModeCommand = new ToggleNotificationModeCommand(); // ToggleNotificationModeCommand |  (optional) 

            try {
                // Toggle notification mode
                Object result = apiInstance.usersToggleNotificationMode(toggleNotificationModeCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersToggleNotificationMode: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$toggleNotificationModeCommand = ; // ToggleNotificationModeCommand | 

try {
    $result = $api_instance->usersToggleNotificationMode($toggleNotificationModeCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersToggleNotificationMode: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $toggleNotificationModeCommand = WWW::OPenAPIClient::Object::ToggleNotificationModeCommand->new(); # ToggleNotificationModeCommand | 

eval {
    my $result = $api_instance->usersToggleNotificationMode(toggleNotificationModeCommand => $toggleNotificationModeCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersToggleNotificationMode: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
toggleNotificationModeCommand =  # ToggleNotificationModeCommand |  (optional)

try:
    # Toggle notification mode
    api_response = api_instance.users_toggle_notification_mode(toggleNotificationModeCommand=toggleNotificationModeCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersToggleNotificationMode: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let toggleNotificationModeCommand = ; // ToggleNotificationModeCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersToggleNotificationMode(toggleNotificationModeCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
toggleNotificationModeCommand

Responses


usersUnlock2fa

Unlock 2fa mode


/api/v1/users/unlock-2fa

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/unlock-2fa" \
 -d '{
  "userId" : "userId"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        Unlock2FaCommand unlock2FaCommand = ; // Unlock2FaCommand | 

        try {
            Object result = apiInstance.usersUnlock2fa(unlock2FaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUnlock2fa");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Unlock2FaCommand unlock2FaCommand = new Unlock2FaCommand(); // Unlock2FaCommand | 

try {
    final result = await api_instance.usersUnlock2fa(unlock2FaCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersUnlock2fa: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        Unlock2FaCommand unlock2FaCommand = ; // Unlock2FaCommand | 

        try {
            Object result = apiInstance.usersUnlock2fa(unlock2FaCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUnlock2fa");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
Unlock2FaCommand *unlock2FaCommand = ; //  (optional)

// Unlock 2fa mode
[apiInstance usersUnlock2faWith:unlock2FaCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'unlock2FaCommand':  // {Unlock2FaCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersUnlock2fa(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersUnlock2faExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var unlock2FaCommand = new Unlock2FaCommand(); // Unlock2FaCommand |  (optional) 

            try {
                // Unlock 2fa mode
                Object result = apiInstance.usersUnlock2fa(unlock2FaCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersUnlock2fa: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$unlock2FaCommand = ; // Unlock2FaCommand | 

try {
    $result = $api_instance->usersUnlock2fa($unlock2FaCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersUnlock2fa: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $unlock2FaCommand = WWW::OPenAPIClient::Object::Unlock2FaCommand->new(); # Unlock2FaCommand | 

eval {
    my $result = $api_instance->usersUnlock2fa(unlock2FaCommand => $unlock2FaCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersUnlock2fa: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
unlock2FaCommand =  # Unlock2FaCommand |  (optional)

try:
    # Unlock 2fa mode
    api_response = api_instance.users_unlock2fa(unlock2FaCommand=unlock2FaCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersUnlock2fa: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let unlock2FaCommand = ; // Unlock2FaCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersUnlock2fa(unlock2FaCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
unlock2FaCommand

Responses


usersUpdateUser

Update user


/api/v1/users/update

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/update" \
 -d '{
  "displayName" : "displayName",
  "disable" : true,
  "forceToResetPassword" : true,
  "id" : "id",
  "email" : "email"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        UpdateUserCommand updateUserCommand = ; // UpdateUserCommand | 

        try {
            Object result = apiInstance.usersUpdateUser(updateUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUpdateUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final UpdateUserCommand updateUserCommand = new UpdateUserCommand(); // UpdateUserCommand | 

try {
    final result = await api_instance.usersUpdateUser(updateUserCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersUpdateUser: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        UpdateUserCommand updateUserCommand = ; // UpdateUserCommand | 

        try {
            Object result = apiInstance.usersUpdateUser(updateUserCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUpdateUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
UpdateUserCommand *updateUserCommand = ; //  (optional)

// Update user
[apiInstance usersUpdateUserWith:updateUserCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'updateUserCommand':  // {UpdateUserCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersUpdateUser(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersUpdateUserExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var updateUserCommand = new UpdateUserCommand(); // UpdateUserCommand |  (optional) 

            try {
                // Update user
                Object result = apiInstance.usersUpdateUser(updateUserCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersUpdateUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$updateUserCommand = ; // UpdateUserCommand | 

try {
    $result = $api_instance->usersUpdateUser($updateUserCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersUpdateUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $updateUserCommand = WWW::OPenAPIClient::Object::UpdateUserCommand->new(); # UpdateUserCommand | 

eval {
    my $result = $api_instance->usersUpdateUser(updateUserCommand => $updateUserCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersUpdateUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
updateUserCommand =  # UpdateUserCommand |  (optional)

try:
    # Update user
    api_response = api_instance.users_update_user(updateUserCommand=updateUserCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersUpdateUser: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let updateUserCommand = ; // UpdateUserCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersUpdateUser(updateUserCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
updateUserCommand

Responses


usersUserInfo

Retrieve user info


/api/v1/users/userinfo

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/users/userinfo"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();

        try {
            UserDetails result = apiInstance.usersUserInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUserInfo");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.usersUserInfo();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersUserInfo: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();

        try {
            UserDetails result = apiInstance.usersUserInfo();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersUserInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];

// Retrieve user info
[apiInstance usersUserInfoWithCompletionHandler: 
              ^(UserDetails output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersUserInfo(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersUserInfoExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();

            try {
                // Retrieve user info
                UserDetails result = apiInstance.usersUserInfo();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersUserInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();

try {
    $result = $api_instance->usersUserInfo();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersUserInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();

eval {
    my $result = $api_instance->usersUserInfo();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersUserInfo: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()

try:
    # Retrieve user info
    api_response = api_instance.users_user_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersUserInfo: %s\n" % e)
extern crate UsersApi;

pub fn main() {

    let mut context = UsersApi::Context::default();
    let result = client.usersUserInfo(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


usersVerifyEmail

Verify user email


/api/v1/users/verifyemail

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/users/verifyemail" \
 -d '{
  "mode" : "",
  "token" : "token"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UsersApi;

import java.io.File;
import java.util.*;

public class UsersApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        UsersApi apiInstance = new UsersApi();
        VerifyEmailCommand verifyEmailCommand = ; // VerifyEmailCommand | 

        try {
            Object result = apiInstance.usersVerifyEmail(verifyEmailCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersVerifyEmail");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VerifyEmailCommand verifyEmailCommand = new VerifyEmailCommand(); // VerifyEmailCommand | 

try {
    final result = await api_instance.usersVerifyEmail(verifyEmailCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->usersVerifyEmail: $e\n');
}

import org.openapitools.client.api.UsersApi;

public class UsersApiExample {
    public static void main(String[] args) {
        UsersApi apiInstance = new UsersApi();
        VerifyEmailCommand verifyEmailCommand = ; // VerifyEmailCommand | 

        try {
            Object result = apiInstance.usersVerifyEmail(verifyEmailCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UsersApi#usersVerifyEmail");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
UsersApi *apiInstance = [[UsersApi alloc] init];
VerifyEmailCommand *verifyEmailCommand = ; //  (optional)

// Verify user email
[apiInstance usersVerifyEmailWith:verifyEmailCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.UsersApi()
var opts = {
  'verifyEmailCommand':  // {VerifyEmailCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.usersVerifyEmail(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class usersVerifyEmailExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new UsersApi();
            var verifyEmailCommand = new VerifyEmailCommand(); // VerifyEmailCommand |  (optional) 

            try {
                // Verify user email
                Object result = apiInstance.usersVerifyEmail(verifyEmailCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UsersApi.usersVerifyEmail: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\UsersApi();
$verifyEmailCommand = ; // VerifyEmailCommand | 

try {
    $result = $api_instance->usersVerifyEmail($verifyEmailCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling UsersApi->usersVerifyEmail: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::UsersApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::UsersApi->new();
my $verifyEmailCommand = WWW::OPenAPIClient::Object::VerifyEmailCommand->new(); # VerifyEmailCommand | 

eval {
    my $result = $api_instance->usersVerifyEmail(verifyEmailCommand => $verifyEmailCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UsersApi->usersVerifyEmail: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.UsersApi()
verifyEmailCommand =  # VerifyEmailCommand |  (optional)

try:
    # Verify user email
    api_response = api_instance.users_verify_email(verifyEmailCommand=verifyEmailCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UsersApi->usersVerifyEmail: %s\n" % e)
extern crate UsersApi;

pub fn main() {
    let verifyEmailCommand = ; // VerifyEmailCommand

    let mut context = UsersApi::Context::default();
    let result = client.usersVerifyEmail(verifyEmailCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
verifyEmailCommand

Responses


VirtualCluster

virtualClusterCreate

Create virtual cluster


/api/v1/virtual-cluster/create

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/create" \
 -d '{
  "expiredAt" : "2000-01-23T04:56:07.000+00:00",
  "exposeHostname" : "exposeHostname",
  "deleteOnExpiration" : true,
  "alertingProfileId" : 1,
  "ephemeralStorageLimits" : "",
  "cloudId" : 0,
  "name" : "name",
  "ramLimits" : "",
  "workloadResources" : "",
  "projectId" : 6,
  "cpuLimits" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        CreateVirtualClusterCommand createVirtualClusterCommand = ; // CreateVirtualClusterCommand | 

        try {
            Object result = apiInstance.virtualClusterCreate(createVirtualClusterCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterCreate");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateVirtualClusterCommand createVirtualClusterCommand = new CreateVirtualClusterCommand(); // CreateVirtualClusterCommand | 

try {
    final result = await api_instance.virtualClusterCreate(createVirtualClusterCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterCreate: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        CreateVirtualClusterCommand createVirtualClusterCommand = ; // CreateVirtualClusterCommand | 

        try {
            Object result = apiInstance.virtualClusterCreate(createVirtualClusterCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterCreate");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
CreateVirtualClusterCommand *createVirtualClusterCommand = ; //  (optional)

// Create virtual cluster
[apiInstance virtualClusterCreateWith:createVirtualClusterCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'createVirtualClusterCommand':  // {CreateVirtualClusterCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterCreate(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterCreateExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var createVirtualClusterCommand = new CreateVirtualClusterCommand(); // CreateVirtualClusterCommand |  (optional) 

            try {
                // Create virtual cluster
                Object result = apiInstance.virtualClusterCreate(createVirtualClusterCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterCreate: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$createVirtualClusterCommand = ; // CreateVirtualClusterCommand | 

try {
    $result = $api_instance->virtualClusterCreate($createVirtualClusterCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterCreate: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $createVirtualClusterCommand = WWW::OPenAPIClient::Object::CreateVirtualClusterCommand->new(); # CreateVirtualClusterCommand | 

eval {
    my $result = $api_instance->virtualClusterCreate(createVirtualClusterCommand => $createVirtualClusterCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterCreate: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
createVirtualClusterCommand =  # CreateVirtualClusterCommand |  (optional)

try:
    # Create virtual cluster
    api_response = api_instance.virtual_cluster_create(createVirtualClusterCommand=createVirtualClusterCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterCreate: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let createVirtualClusterCommand = ; // CreateVirtualClusterCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterCreate(createVirtualClusterCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
createVirtualClusterCommand

Responses


virtualClusterDelete

Delete virtual cluster


/api/v1/virtual-cluster/delete

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/delete" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        DeleteVirtualClusterCommand deleteVirtualClusterCommand = ; // DeleteVirtualClusterCommand | 

        try {
            Object result = apiInstance.virtualClusterDelete(deleteVirtualClusterCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDelete");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final DeleteVirtualClusterCommand deleteVirtualClusterCommand = new DeleteVirtualClusterCommand(); // DeleteVirtualClusterCommand | 

try {
    final result = await api_instance.virtualClusterDelete(deleteVirtualClusterCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterDelete: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        DeleteVirtualClusterCommand deleteVirtualClusterCommand = ; // DeleteVirtualClusterCommand | 

        try {
            Object result = apiInstance.virtualClusterDelete(deleteVirtualClusterCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDelete");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
DeleteVirtualClusterCommand *deleteVirtualClusterCommand = ; //  (optional)

// Delete virtual cluster
[apiInstance virtualClusterDeleteWith:deleteVirtualClusterCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'deleteVirtualClusterCommand':  // {DeleteVirtualClusterCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterDelete(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterDeleteExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var deleteVirtualClusterCommand = new DeleteVirtualClusterCommand(); // DeleteVirtualClusterCommand |  (optional) 

            try {
                // Delete virtual cluster
                Object result = apiInstance.virtualClusterDelete(deleteVirtualClusterCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterDelete: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$deleteVirtualClusterCommand = ; // DeleteVirtualClusterCommand | 

try {
    $result = $api_instance->virtualClusterDelete($deleteVirtualClusterCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $deleteVirtualClusterCommand = WWW::OPenAPIClient::Object::DeleteVirtualClusterCommand->new(); # DeleteVirtualClusterCommand | 

eval {
    my $result = $api_instance->virtualClusterDelete(deleteVirtualClusterCommand => $deleteVirtualClusterCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterDelete: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
deleteVirtualClusterCommand =  # DeleteVirtualClusterCommand |  (optional)

try:
    # Delete virtual cluster
    api_response = api_instance.virtual_cluster_delete(deleteVirtualClusterCommand=deleteVirtualClusterCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterDelete: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let deleteVirtualClusterCommand = ; // DeleteVirtualClusterCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterDelete(deleteVirtualClusterCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
deleteVirtualClusterCommand

Responses


virtualClusterDisableBackup

Disable backup for virtual cluster


/api/v1/virtual-cluster/disable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/disable-backup" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterDisableBackupCommand virtualClusterDisableBackupCommand = ; // VirtualClusterDisableBackupCommand | 

        try {
            Object result = apiInstance.virtualClusterDisableBackup(virtualClusterDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDisableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VirtualClusterDisableBackupCommand virtualClusterDisableBackupCommand = new VirtualClusterDisableBackupCommand(); // VirtualClusterDisableBackupCommand | 

try {
    final result = await api_instance.virtualClusterDisableBackup(virtualClusterDisableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterDisableBackup: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterDisableBackupCommand virtualClusterDisableBackupCommand = ; // VirtualClusterDisableBackupCommand | 

        try {
            Object result = apiInstance.virtualClusterDisableBackup(virtualClusterDisableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDisableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
VirtualClusterDisableBackupCommand *virtualClusterDisableBackupCommand = ; //  (optional)

// Disable backup for virtual cluster
[apiInstance virtualClusterDisableBackupWith:virtualClusterDisableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'virtualClusterDisableBackupCommand':  // {VirtualClusterDisableBackupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterDisableBackup(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterDisableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var virtualClusterDisableBackupCommand = new VirtualClusterDisableBackupCommand(); // VirtualClusterDisableBackupCommand |  (optional) 

            try {
                // Disable backup for virtual cluster
                Object result = apiInstance.virtualClusterDisableBackup(virtualClusterDisableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterDisableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$virtualClusterDisableBackupCommand = ; // VirtualClusterDisableBackupCommand | 

try {
    $result = $api_instance->virtualClusterDisableBackup($virtualClusterDisableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterDisableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $virtualClusterDisableBackupCommand = WWW::OPenAPIClient::Object::VirtualClusterDisableBackupCommand->new(); # VirtualClusterDisableBackupCommand | 

eval {
    my $result = $api_instance->virtualClusterDisableBackup(virtualClusterDisableBackupCommand => $virtualClusterDisableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterDisableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
virtualClusterDisableBackupCommand =  # VirtualClusterDisableBackupCommand |  (optional)

try:
    # Disable backup for virtual cluster
    api_response = api_instance.virtual_cluster_disable_backup(virtualClusterDisableBackupCommand=virtualClusterDisableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterDisableBackup: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let virtualClusterDisableBackupCommand = ; // VirtualClusterDisableBackupCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterDisableBackup(virtualClusterDisableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
virtualClusterDisableBackupCommand

Responses


virtualClusterDisableMonitoring

Disable monitoring for virtual cluster


/api/v1/virtual-cluster/disable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/disable-monitoring" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterDisableMonitoringCommand virtualClusterDisableMonitoringCommand = ; // VirtualClusterDisableMonitoringCommand | 

        try {
            Object result = apiInstance.virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDisableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VirtualClusterDisableMonitoringCommand virtualClusterDisableMonitoringCommand = new VirtualClusterDisableMonitoringCommand(); // VirtualClusterDisableMonitoringCommand | 

try {
    final result = await api_instance.virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterDisableMonitoring: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterDisableMonitoringCommand virtualClusterDisableMonitoringCommand = ; // VirtualClusterDisableMonitoringCommand | 

        try {
            Object result = apiInstance.virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterDisableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
VirtualClusterDisableMonitoringCommand *virtualClusterDisableMonitoringCommand = ; //  (optional)

// Disable monitoring for virtual cluster
[apiInstance virtualClusterDisableMonitoringWith:virtualClusterDisableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'virtualClusterDisableMonitoringCommand':  // {VirtualClusterDisableMonitoringCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterDisableMonitoring(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterDisableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var virtualClusterDisableMonitoringCommand = new VirtualClusterDisableMonitoringCommand(); // VirtualClusterDisableMonitoringCommand |  (optional) 

            try {
                // Disable monitoring for virtual cluster
                Object result = apiInstance.virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterDisableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$virtualClusterDisableMonitoringCommand = ; // VirtualClusterDisableMonitoringCommand | 

try {
    $result = $api_instance->virtualClusterDisableMonitoring($virtualClusterDisableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterDisableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $virtualClusterDisableMonitoringCommand = WWW::OPenAPIClient::Object::VirtualClusterDisableMonitoringCommand->new(); # VirtualClusterDisableMonitoringCommand | 

eval {
    my $result = $api_instance->virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand => $virtualClusterDisableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterDisableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
virtualClusterDisableMonitoringCommand =  # VirtualClusterDisableMonitoringCommand |  (optional)

try:
    # Disable monitoring for virtual cluster
    api_response = api_instance.virtual_cluster_disable_monitoring(virtualClusterDisableMonitoringCommand=virtualClusterDisableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterDisableMonitoring: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let virtualClusterDisableMonitoringCommand = ; // VirtualClusterDisableMonitoringCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterDisableMonitoring(virtualClusterDisableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
virtualClusterDisableMonitoringCommand

Responses


virtualClusterEditQuotas

Edit virtual cluster resource quotas and limit ranges


/api/v1/virtual-cluster/edit/quotas

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/edit/quotas" \
 -d '{
  "vClusterId" : 0,
  "ephemeralStorageLimits" : "",
  "ramLimits" : "",
  "workloadResources" : "",
  "cpuLimits" : ""
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        EditVirtualClusterQuotasCommand editVirtualClusterQuotasCommand = ; // EditVirtualClusterQuotasCommand | 

        try {
            Object result = apiInstance.virtualClusterEditQuotas(editVirtualClusterQuotasCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEditQuotas");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final EditVirtualClusterQuotasCommand editVirtualClusterQuotasCommand = new EditVirtualClusterQuotasCommand(); // EditVirtualClusterQuotasCommand | 

try {
    final result = await api_instance.virtualClusterEditQuotas(editVirtualClusterQuotasCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterEditQuotas: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        EditVirtualClusterQuotasCommand editVirtualClusterQuotasCommand = ; // EditVirtualClusterQuotasCommand | 

        try {
            Object result = apiInstance.virtualClusterEditQuotas(editVirtualClusterQuotasCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEditQuotas");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
EditVirtualClusterQuotasCommand *editVirtualClusterQuotasCommand = ; //  (optional)

// Edit virtual cluster resource quotas and limit ranges
[apiInstance virtualClusterEditQuotasWith:editVirtualClusterQuotasCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'editVirtualClusterQuotasCommand':  // {EditVirtualClusterQuotasCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterEditQuotas(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterEditQuotasExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var editVirtualClusterQuotasCommand = new EditVirtualClusterQuotasCommand(); // EditVirtualClusterQuotasCommand |  (optional) 

            try {
                // Edit virtual cluster resource quotas and limit ranges
                Object result = apiInstance.virtualClusterEditQuotas(editVirtualClusterQuotasCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterEditQuotas: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$editVirtualClusterQuotasCommand = ; // EditVirtualClusterQuotasCommand | 

try {
    $result = $api_instance->virtualClusterEditQuotas($editVirtualClusterQuotasCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterEditQuotas: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $editVirtualClusterQuotasCommand = WWW::OPenAPIClient::Object::EditVirtualClusterQuotasCommand->new(); # EditVirtualClusterQuotasCommand | 

eval {
    my $result = $api_instance->virtualClusterEditQuotas(editVirtualClusterQuotasCommand => $editVirtualClusterQuotasCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterEditQuotas: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
editVirtualClusterQuotasCommand =  # EditVirtualClusterQuotasCommand |  (optional)

try:
    # Edit virtual cluster resource quotas and limit ranges
    api_response = api_instance.virtual_cluster_edit_quotas(editVirtualClusterQuotasCommand=editVirtualClusterQuotasCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterEditQuotas: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let editVirtualClusterQuotasCommand = ; // EditVirtualClusterQuotasCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterEditQuotas(editVirtualClusterQuotasCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
editVirtualClusterQuotasCommand

Responses


virtualClusterEnableBackup

Enable backup for virtual cluster


/api/v1/virtual-cluster/enable-backup

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/enable-backup" \
 -d '{
  "projectId" : 0,
  "backupCredentialId" : 6
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterEnableBackupCommand virtualClusterEnableBackupCommand = ; // VirtualClusterEnableBackupCommand | 

        try {
            Object result = apiInstance.virtualClusterEnableBackup(virtualClusterEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEnableBackup");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VirtualClusterEnableBackupCommand virtualClusterEnableBackupCommand = new VirtualClusterEnableBackupCommand(); // VirtualClusterEnableBackupCommand | 

try {
    final result = await api_instance.virtualClusterEnableBackup(virtualClusterEnableBackupCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterEnableBackup: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterEnableBackupCommand virtualClusterEnableBackupCommand = ; // VirtualClusterEnableBackupCommand | 

        try {
            Object result = apiInstance.virtualClusterEnableBackup(virtualClusterEnableBackupCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEnableBackup");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
VirtualClusterEnableBackupCommand *virtualClusterEnableBackupCommand = ; //  (optional)

// Enable backup for virtual cluster
[apiInstance virtualClusterEnableBackupWith:virtualClusterEnableBackupCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'virtualClusterEnableBackupCommand':  // {VirtualClusterEnableBackupCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterEnableBackup(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterEnableBackupExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var virtualClusterEnableBackupCommand = new VirtualClusterEnableBackupCommand(); // VirtualClusterEnableBackupCommand |  (optional) 

            try {
                // Enable backup for virtual cluster
                Object result = apiInstance.virtualClusterEnableBackup(virtualClusterEnableBackupCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterEnableBackup: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$virtualClusterEnableBackupCommand = ; // VirtualClusterEnableBackupCommand | 

try {
    $result = $api_instance->virtualClusterEnableBackup($virtualClusterEnableBackupCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterEnableBackup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $virtualClusterEnableBackupCommand = WWW::OPenAPIClient::Object::VirtualClusterEnableBackupCommand->new(); # VirtualClusterEnableBackupCommand | 

eval {
    my $result = $api_instance->virtualClusterEnableBackup(virtualClusterEnableBackupCommand => $virtualClusterEnableBackupCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterEnableBackup: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
virtualClusterEnableBackupCommand =  # VirtualClusterEnableBackupCommand |  (optional)

try:
    # Enable backup for virtual cluster
    api_response = api_instance.virtual_cluster_enable_backup(virtualClusterEnableBackupCommand=virtualClusterEnableBackupCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterEnableBackup: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let virtualClusterEnableBackupCommand = ; // VirtualClusterEnableBackupCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterEnableBackup(virtualClusterEnableBackupCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
virtualClusterEnableBackupCommand

Responses


virtualClusterEnableMonitoring

Enable monitoring for virtual cluster


/api/v1/virtual-cluster/enable-monitoring

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 -H "Content-Type: application/json" \
 "http://localhost/api/v1/virtual-cluster/enable-monitoring" \
 -d '{
  "projectId" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterEnableMonitoringCommand virtualClusterEnableMonitoringCommand = ; // VirtualClusterEnableMonitoringCommand | 

        try {
            Object result = apiInstance.virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEnableMonitoring");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final VirtualClusterEnableMonitoringCommand virtualClusterEnableMonitoringCommand = new VirtualClusterEnableMonitoringCommand(); // VirtualClusterEnableMonitoringCommand | 

try {
    final result = await api_instance.virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterEnableMonitoring: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        VirtualClusterEnableMonitoringCommand virtualClusterEnableMonitoringCommand = ; // VirtualClusterEnableMonitoringCommand | 

        try {
            Object result = apiInstance.virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterEnableMonitoring");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
VirtualClusterEnableMonitoringCommand *virtualClusterEnableMonitoringCommand = ; //  (optional)

// Enable monitoring for virtual cluster
[apiInstance virtualClusterEnableMonitoringWith:virtualClusterEnableMonitoringCommand
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var opts = {
  'virtualClusterEnableMonitoringCommand':  // {VirtualClusterEnableMonitoringCommand} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterEnableMonitoring(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterEnableMonitoringExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var virtualClusterEnableMonitoringCommand = new VirtualClusterEnableMonitoringCommand(); // VirtualClusterEnableMonitoringCommand |  (optional) 

            try {
                // Enable monitoring for virtual cluster
                Object result = apiInstance.virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterEnableMonitoring: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$virtualClusterEnableMonitoringCommand = ; // VirtualClusterEnableMonitoringCommand | 

try {
    $result = $api_instance->virtualClusterEnableMonitoring($virtualClusterEnableMonitoringCommand);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterEnableMonitoring: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $virtualClusterEnableMonitoringCommand = WWW::OPenAPIClient::Object::VirtualClusterEnableMonitoringCommand->new(); # VirtualClusterEnableMonitoringCommand | 

eval {
    my $result = $api_instance->virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand => $virtualClusterEnableMonitoringCommand);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterEnableMonitoring: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
virtualClusterEnableMonitoringCommand =  # VirtualClusterEnableMonitoringCommand |  (optional)

try:
    # Enable monitoring for virtual cluster
    api_response = api_instance.virtual_cluster_enable_monitoring(virtualClusterEnableMonitoringCommand=virtualClusterEnableMonitoringCommand)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterEnableMonitoring: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let virtualClusterEnableMonitoringCommand = ; // VirtualClusterEnableMonitoringCommand

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterEnableMonitoring(virtualClusterEnableMonitoringCommand, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Body parameters
Name Description
virtualClusterEnableMonitoringCommand

Responses


virtualClusterList

Retrieve all vCluster by given project


/api/v1/virtual-cluster/{parentProjectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/virtual-cluster/{parentProjectId}?Limit=56&Offset=56&SortBy=sortBy_example&SortDirection=sortDirection_example&Search=search_example&SearchId=searchId_example&Id=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer parentProjectId = 56; // Integer | Parent project id, positive integer
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on name
        String searchId = searchId_example; // String | Optional search by id
        Integer id = 56; // Integer | Optional filter by virtual cluster id

        try {
            VClusterList result = apiInstance.virtualClusterList(parentProjectId, limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterList");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer parentProjectId = new Integer(); // Integer | Parent project id, positive integer
final Integer limit = new Integer(); // Integer | Optional page size
final Integer offset = new Integer(); // Integer | Optional page offset
final String sortBy = new String(); // String | Field to sort by
final String sortDirection = new String(); // String | Sort direction: 'asc' or 'desc'
final String search = new String(); // String | Optional free-text search on name
final String searchId = new String(); // String | Optional search by id
final Integer id = new Integer(); // Integer | Optional filter by virtual cluster id

try {
    final result = await api_instance.virtualClusterList(parentProjectId, limit, offset, sortBy, sortDirection, search, searchId, id);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterList: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer parentProjectId = 56; // Integer | Parent project id, positive integer
        Integer limit = 56; // Integer | Optional page size
        Integer offset = 56; // Integer | Optional page offset
        String sortBy = sortBy_example; // String | Field to sort by
        String sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
        String search = search_example; // String | Optional free-text search on name
        String searchId = searchId_example; // String | Optional search by id
        Integer id = 56; // Integer | Optional filter by virtual cluster id

        try {
            VClusterList result = apiInstance.virtualClusterList(parentProjectId, limit, offset, sortBy, sortDirection, search, searchId, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterList");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
Integer *parentProjectId = 56; // Parent project id, positive integer (default to null)
Integer *limit = 56; // Optional page size (optional) (default to null)
Integer *offset = 56; // Optional page offset (optional) (default to null)
String *sortBy = sortBy_example; // Field to sort by (optional) (default to null)
String *sortDirection = sortDirection_example; // Sort direction: 'asc' or 'desc' (optional) (default to null)
String *search = search_example; // Optional free-text search on name (optional) (default to null)
String *searchId = searchId_example; // Optional search by id (optional) (default to null)
Integer *id = 56; // Optional filter by virtual cluster id (optional) (default to null)

// Retrieve all vCluster by given project
[apiInstance virtualClusterListWith:parentProjectId
    limit:limit
    offset:offset
    sortBy:sortBy
    sortDirection:sortDirection
    search:search
    searchId:searchId
    id:id
              completionHandler: ^(VClusterList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var parentProjectId = 56; // {Integer} Parent project id, positive integer
var opts = {
  'limit': 56, // {Integer} Optional page size
  'offset': 56, // {Integer} Optional page offset
  'sortBy': sortBy_example, // {String} Field to sort by
  'sortDirection': sortDirection_example, // {String} Sort direction: 'asc' or 'desc'
  'search': search_example, // {String} Optional free-text search on name
  'searchId': searchId_example, // {String} Optional search by id
  'id': 56 // {Integer} Optional filter by virtual cluster id
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterList(parentProjectId, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterListExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var parentProjectId = 56;  // Integer | Parent project id, positive integer (default to null)
            var limit = 56;  // Integer | Optional page size (optional)  (default to null)
            var offset = 56;  // Integer | Optional page offset (optional)  (default to null)
            var sortBy = sortBy_example;  // String | Field to sort by (optional)  (default to null)
            var sortDirection = sortDirection_example;  // String | Sort direction: 'asc' or 'desc' (optional)  (default to null)
            var search = search_example;  // String | Optional free-text search on name (optional)  (default to null)
            var searchId = searchId_example;  // String | Optional search by id (optional)  (default to null)
            var id = 56;  // Integer | Optional filter by virtual cluster id (optional)  (default to null)

            try {
                // Retrieve all vCluster by given project
                VClusterList result = apiInstance.virtualClusterList(parentProjectId, limit, offset, sortBy, sortDirection, search, searchId, id);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterList: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$parentProjectId = 56; // Integer | Parent project id, positive integer
$limit = 56; // Integer | Optional page size
$offset = 56; // Integer | Optional page offset
$sortBy = sortBy_example; // String | Field to sort by
$sortDirection = sortDirection_example; // String | Sort direction: 'asc' or 'desc'
$search = search_example; // String | Optional free-text search on name
$searchId = searchId_example; // String | Optional search by id
$id = 56; // Integer | Optional filter by virtual cluster id

try {
    $result = $api_instance->virtualClusterList($parentProjectId, $limit, $offset, $sortBy, $sortDirection, $search, $searchId, $id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterList: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $parentProjectId = 56; # Integer | Parent project id, positive integer
my $limit = 56; # Integer | Optional page size
my $offset = 56; # Integer | Optional page offset
my $sortBy = sortBy_example; # String | Field to sort by
my $sortDirection = sortDirection_example; # String | Sort direction: 'asc' or 'desc'
my $search = search_example; # String | Optional free-text search on name
my $searchId = searchId_example; # String | Optional search by id
my $id = 56; # Integer | Optional filter by virtual cluster id

eval {
    my $result = $api_instance->virtualClusterList(parentProjectId => $parentProjectId, limit => $limit, offset => $offset, sortBy => $sortBy, sortDirection => $sortDirection, search => $search, searchId => $searchId, id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterList: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
parentProjectId = 56 # Integer | Parent project id, positive integer (default to null)
limit = 56 # Integer | Optional page size (optional) (default to null)
offset = 56 # Integer | Optional page offset (optional) (default to null)
sortBy = sortBy_example # String | Field to sort by (optional) (default to null)
sortDirection = sortDirection_example # String | Sort direction: 'asc' or 'desc' (optional) (default to null)
search = search_example # String | Optional free-text search on name (optional) (default to null)
searchId = searchId_example # String | Optional search by id (optional) (default to null)
id = 56 # Integer | Optional filter by virtual cluster id (optional) (default to null)

try:
    # Retrieve all vCluster by given project
    api_response = api_instance.virtual_cluster_list(parentProjectId, limit=limit, offset=offset, sortBy=sortBy, sortDirection=sortDirection, search=search, searchId=searchId, id=id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterList: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let parentProjectId = 56; // Integer
    let limit = 56; // Integer
    let offset = 56; // Integer
    let sortBy = sortBy_example; // String
    let sortDirection = sortDirection_example; // String
    let search = search_example; // String
    let searchId = searchId_example; // String
    let id = 56; // Integer

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterList(parentProjectId, limit, offset, sortBy, sortDirection, search, searchId, id, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
parentProjectId*
Integer (int32)
Parent project id, positive integer
Required
Query parameters
Name Description
Limit
Integer (int32)
Optional page size
Offset
Integer (int32)
Optional page offset
SortBy
String
Field to sort by
SortDirection
String
Sort direction: 'asc' or 'desc'
Search
SearchId
String
Optional search by id
Id
Integer (int32)
Optional filter by virtual cluster id

Responses


virtualClusterQuota

Retrieve vcluster quota details

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/virtual-cluster/quota/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/virtual-cluster/quota/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer projectId = 56; // Integer | Virtual cluster project id, positive integer

        try {
            KubernetesQuotaListDto result = apiInstance.virtualClusterQuota(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterQuota");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Virtual cluster project id, positive integer

try {
    final result = await api_instance.virtualClusterQuota(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterQuota: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer projectId = 56; // Integer | Virtual cluster project id, positive integer

        try {
            KubernetesQuotaListDto result = apiInstance.virtualClusterQuota(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterQuota");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
Integer *projectId = 56; // Virtual cluster project id, positive integer (default to null)

// Retrieve vcluster quota details
[apiInstance virtualClusterQuotaWith:projectId
              completionHandler: ^(KubernetesQuotaListDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var projectId = 56; // {Integer} Virtual cluster project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterQuota(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterQuotaExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var projectId = 56;  // Integer | Virtual cluster project id, positive integer (default to null)

            try {
                // Retrieve vcluster quota details
                KubernetesQuotaListDto result = apiInstance.virtualClusterQuota(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterQuota: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$projectId = 56; // Integer | Virtual cluster project id, positive integer

try {
    $result = $api_instance->virtualClusterQuota($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterQuota: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $projectId = 56; # Integer | Virtual cluster project id, positive integer

eval {
    my $result = $api_instance->virtualClusterQuota(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterQuota: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
projectId = 56 # Integer | Virtual cluster project id, positive integer (default to null)

try:
    # Retrieve vcluster quota details
    api_response = api_instance.virtual_cluster_quota(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterQuota: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterQuota(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Virtual cluster project id, positive integer
Required

Responses


virtualClusterQuotaPresets

Retrieve vCluster quota presets


/api/v1/virtual-cluster/quota-presets

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/virtual-cluster/quota-presets"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();

        try {
            VirtualClusterQuotasDto result = apiInstance.virtualClusterQuotaPresets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterQuotaPresets");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


try {
    final result = await api_instance.virtualClusterQuotaPresets();
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterQuotaPresets: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();

        try {
            VirtualClusterQuotasDto result = apiInstance.virtualClusterQuotaPresets();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterQuotaPresets");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];

// Retrieve vCluster quota presets
[apiInstance virtualClusterQuotaPresetsWithCompletionHandler: 
              ^(VirtualClusterQuotasDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterQuotaPresets(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterQuotaPresetsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();

            try {
                // Retrieve vCluster quota presets
                VirtualClusterQuotasDto result = apiInstance.virtualClusterQuotaPresets();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterQuotaPresets: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();

try {
    $result = $api_instance->virtualClusterQuotaPresets();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterQuotaPresets: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();

eval {
    my $result = $api_instance->virtualClusterQuotaPresets();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterQuotaPresets: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()

try:
    # Retrieve vCluster quota presets
    api_response = api_instance.virtual_cluster_quota_presets()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterQuotaPresets: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterQuotaPresets(&context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Responses


virtualClusterVisibility

Create button condition visibility

**Internal API.** Reserved for Taikun internal services and subject to change without notice — not part of the public contract. Do not use from customer integrations.


/api/v1/virtual-cluster/visibility/{projectId}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Basic [[basicHash]]" \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json" \
 "http://localhost/api/v1/virtual-cluster/visibility/{projectId}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.VirtualClusterApi;

import java.io.File;
import java.util.*;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        // Configure HTTP basic authorization: BasicAuth
        HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
        BasicAuth.setUsername("YOUR USERNAME");
        BasicAuth.setPassword("YOUR PASSWORD");

        // Configure API key authorization: Bearer
        ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
        Bearer.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //Bearer.setApiKeyPrefix("Token");

        // Create an instance of the API class
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer projectId = 56; // Integer | Virtual cluster project id, positive integer

        try {
            VClusterActionVisibilityDto result = apiInstance.virtualClusterVisibility(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterVisibility");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer projectId = new Integer(); // Integer | Virtual cluster project id, positive integer

try {
    final result = await api_instance.virtualClusterVisibility(projectId);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->virtualClusterVisibility: $e\n');
}

import org.openapitools.client.api.VirtualClusterApi;

public class VirtualClusterApiExample {
    public static void main(String[] args) {
        VirtualClusterApi apiInstance = new VirtualClusterApi();
        Integer projectId = 56; // Integer | Virtual cluster project id, positive integer

        try {
            VClusterActionVisibilityDto result = apiInstance.virtualClusterVisibility(projectId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling VirtualClusterApi#virtualClusterVisibility");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BasicAuth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
VirtualClusterApi *apiInstance = [[VirtualClusterApi alloc] init];
Integer *projectId = 56; // Virtual cluster project id, positive integer (default to null)

// Create button condition visibility
[apiInstance virtualClusterVisibilityWith:projectId
              completionHandler: ^(VClusterActionVisibilityDto output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var CcfWebApi = require('ccf_web_api');
var defaultClient = CcfWebApi.ApiClient.instance;

// Configure HTTP basic authorization: BasicAuth
var BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token";

// Create an instance of the API class
var api = new CcfWebApi.VirtualClusterApi()
var projectId = 56; // {Integer} Virtual cluster project id, positive integer

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.virtualClusterVisibility(projectId, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class virtualClusterVisibilityExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: BasicAuth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: Bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new VirtualClusterApi();
            var projectId = 56;  // Integer | Virtual cluster project id, positive integer (default to null)

            try {
                // Create button condition visibility
                VClusterActionVisibilityDto result = apiInstance.virtualClusterVisibility(projectId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling VirtualClusterApi.virtualClusterVisibility: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: BasicAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

// Configure API key authorization: Bearer
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\VirtualClusterApi();
$projectId = 56; // Integer | Virtual cluster project id, positive integer

try {
    $result = $api_instance->virtualClusterVisibility($projectId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling VirtualClusterApi->virtualClusterVisibility: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::VirtualClusterApi;
# Configure HTTP basic authorization: BasicAuth
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';

# Configure API key authorization: Bearer
$WWW::OPenAPIClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::VirtualClusterApi->new();
my $projectId = 56; # Integer | Virtual cluster project id, positive integer

eval {
    my $result = $api_instance->virtualClusterVisibility(projectId => $projectId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling VirtualClusterApi->virtualClusterVisibility: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'

# Configure API key authorization: Bearer
openapi_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['Authorization'] = 'Bearer'

# Create an instance of the API class
api_instance = openapi_client.VirtualClusterApi()
projectId = 56 # Integer | Virtual cluster project id, positive integer (default to null)

try:
    # Create button condition visibility
    api_response = api_instance.virtual_cluster_visibility(projectId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling VirtualClusterApi->virtualClusterVisibility: %s\n" % e)
extern crate VirtualClusterApi;

pub fn main() {
    let projectId = 56; // Integer

    let mut context = VirtualClusterApi::Context::default();
    let result = client.virtualClusterVisibility(projectId, &context).wait();

    println!("{:?}", result);
}

Scopes

Parameters

Path parameters
Name Description
projectId*
Integer (int32)
Virtual cluster project id, positive integer
Required

Responses