Cloudera Documentation

Cloudera AI Gateway and Inference

ServingService

servingServiceCreateBackend

Create an AI Gateway Backend.


/api/v1/ai-gateway/backends

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/backends" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateBackendRequest servingV1CreateBackendRequest = ; // ServingV1CreateBackendRequest | 

        try {
            serving.v1.CreateBackendResponse result = apiInstance.servingServiceCreateBackend(servingV1CreateBackendRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateBackend");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServingV1CreateBackendRequest servingV1CreateBackendRequest = new ServingV1CreateBackendRequest(); // ServingV1CreateBackendRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateBackendRequest servingV1CreateBackendRequest = ; // ServingV1CreateBackendRequest | 

        try {
            serving.v1.CreateBackendResponse result = apiInstance.servingServiceCreateBackend(servingV1CreateBackendRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateBackend");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceCreateBackendWith:servingV1CreateBackendRequest
              completionHandler: ^(serving.v1.CreateBackendResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1CreateBackendRequest = ; // {ServingV1CreateBackendRequest} 

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

namespace Example
{
    public class servingServiceCreateBackendExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1CreateBackendRequest = new ServingV1CreateBackendRequest(); // ServingV1CreateBackendRequest | 

            try {
                serving.v1.CreateBackendResponse result = apiInstance.servingServiceCreateBackend(servingV1CreateBackendRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceCreateBackend: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1CreateBackendRequest = ; // ServingV1CreateBackendRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1CreateBackendRequest = WWW::OPenAPIClient::Object::ServingV1CreateBackendRequest->new(); # ServingV1CreateBackendRequest | 

eval {
    my $result = $api_instance->servingServiceCreateBackend(servingV1CreateBackendRequest => $servingV1CreateBackendRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceCreateBackend: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1CreateBackendRequest =  # ServingV1CreateBackendRequest | 

try:
    api_response = api_instance.serving_service_create_backend(servingV1CreateBackendRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceCreateBackend: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1CreateBackendRequest = ; // ServingV1CreateBackendRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceCreateBackend(servingV1CreateBackendRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1CreateBackendRequest *

Responses


servingServiceCreateDeployment

Create a deployment from a model source. Fails with ALREADY_EXISTS (HTTP 409), writing nothing, when the namespace already holds a deployment of that name, whatever its source.


/api/v1/deployments

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateDeploymentRequest servingV1CreateDeploymentRequest = ; // ServingV1CreateDeploymentRequest | 

        try {
            serving.v1.CreateDeploymentResponse result = apiInstance.servingServiceCreateDeployment(servingV1CreateDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateDeployment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServingV1CreateDeploymentRequest servingV1CreateDeploymentRequest = new ServingV1CreateDeploymentRequest(); // ServingV1CreateDeploymentRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateDeploymentRequest servingV1CreateDeploymentRequest = ; // ServingV1CreateDeploymentRequest | 

        try {
            serving.v1.CreateDeploymentResponse result = apiInstance.servingServiceCreateDeployment(servingV1CreateDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceCreateDeploymentWith:servingV1CreateDeploymentRequest
              completionHandler: ^(serving.v1.CreateDeploymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1CreateDeploymentRequest = ; // {ServingV1CreateDeploymentRequest} 

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

namespace Example
{
    public class servingServiceCreateDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1CreateDeploymentRequest = new ServingV1CreateDeploymentRequest(); // ServingV1CreateDeploymentRequest | 

            try {
                serving.v1.CreateDeploymentResponse result = apiInstance.servingServiceCreateDeployment(servingV1CreateDeploymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceCreateDeployment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1CreateDeploymentRequest = ; // ServingV1CreateDeploymentRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1CreateDeploymentRequest = WWW::OPenAPIClient::Object::ServingV1CreateDeploymentRequest->new(); # ServingV1CreateDeploymentRequest | 

eval {
    my $result = $api_instance->servingServiceCreateDeployment(servingV1CreateDeploymentRequest => $servingV1CreateDeploymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceCreateDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1CreateDeploymentRequest =  # ServingV1CreateDeploymentRequest | 

try:
    api_response = api_instance.serving_service_create_deployment(servingV1CreateDeploymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceCreateDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1CreateDeploymentRequest = ; // ServingV1CreateDeploymentRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceCreateDeployment(servingV1CreateDeploymentRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1CreateDeploymentRequest *

Responses


servingServiceCreateEndpoint

Create an AI Gateway Endpoint.


/api/v1/ai-gateway/endpoints

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateEndpointRequest servingV1CreateEndpointRequest = ; // ServingV1CreateEndpointRequest | 

        try {
            serving.v1.CreateEndpointResponse result = apiInstance.servingServiceCreateEndpoint(servingV1CreateEndpointRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateEndpoint");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServingV1CreateEndpointRequest servingV1CreateEndpointRequest = new ServingV1CreateEndpointRequest(); // ServingV1CreateEndpointRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateEndpointRequest servingV1CreateEndpointRequest = ; // ServingV1CreateEndpointRequest | 

        try {
            serving.v1.CreateEndpointResponse result = apiInstance.servingServiceCreateEndpoint(servingV1CreateEndpointRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateEndpoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceCreateEndpointWith:servingV1CreateEndpointRequest
              completionHandler: ^(serving.v1.CreateEndpointResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1CreateEndpointRequest = ; // {ServingV1CreateEndpointRequest} 

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

namespace Example
{
    public class servingServiceCreateEndpointExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1CreateEndpointRequest = new ServingV1CreateEndpointRequest(); // ServingV1CreateEndpointRequest | 

            try {
                serving.v1.CreateEndpointResponse result = apiInstance.servingServiceCreateEndpoint(servingV1CreateEndpointRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceCreateEndpoint: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1CreateEndpointRequest = ; // ServingV1CreateEndpointRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1CreateEndpointRequest = WWW::OPenAPIClient::Object::ServingV1CreateEndpointRequest->new(); # ServingV1CreateEndpointRequest | 

eval {
    my $result = $api_instance->servingServiceCreateEndpoint(servingV1CreateEndpointRequest => $servingV1CreateEndpointRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceCreateEndpoint: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1CreateEndpointRequest =  # ServingV1CreateEndpointRequest | 

try:
    api_response = api_instance.serving_service_create_endpoint(servingV1CreateEndpointRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceCreateEndpoint: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1CreateEndpointRequest = ; // ServingV1CreateEndpointRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceCreateEndpoint(servingV1CreateEndpointRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1CreateEndpointRequest *

Responses


servingServiceCreateModelRoute

Create an AI Gateway ModelRoute. The parent Endpoint and referenced Backend must exist.


/api/v1/ai-gateway/model-routes

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/model-routes" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateModelRouteRequest servingV1CreateModelRouteRequest = ; // ServingV1CreateModelRouteRequest | 

        try {
            serving.v1.CreateModelRouteResponse result = apiInstance.servingServiceCreateModelRoute(servingV1CreateModelRouteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateModelRoute");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServingV1CreateModelRouteRequest servingV1CreateModelRouteRequest = new ServingV1CreateModelRouteRequest(); // ServingV1CreateModelRouteRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreateModelRouteRequest servingV1CreateModelRouteRequest = ; // ServingV1CreateModelRouteRequest | 

        try {
            serving.v1.CreateModelRouteResponse result = apiInstance.servingServiceCreateModelRoute(servingV1CreateModelRouteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreateModelRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceCreateModelRouteWith:servingV1CreateModelRouteRequest
              completionHandler: ^(serving.v1.CreateModelRouteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1CreateModelRouteRequest = ; // {ServingV1CreateModelRouteRequest} 

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

namespace Example
{
    public class servingServiceCreateModelRouteExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1CreateModelRouteRequest = new ServingV1CreateModelRouteRequest(); // ServingV1CreateModelRouteRequest | 

            try {
                serving.v1.CreateModelRouteResponse result = apiInstance.servingServiceCreateModelRoute(servingV1CreateModelRouteRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceCreateModelRoute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1CreateModelRouteRequest = ; // ServingV1CreateModelRouteRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1CreateModelRouteRequest = WWW::OPenAPIClient::Object::ServingV1CreateModelRouteRequest->new(); # ServingV1CreateModelRouteRequest | 

eval {
    my $result = $api_instance->servingServiceCreateModelRoute(servingV1CreateModelRouteRequest => $servingV1CreateModelRouteRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceCreateModelRoute: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1CreateModelRouteRequest =  # ServingV1CreateModelRouteRequest | 

try:
    api_response = api_instance.serving_service_create_model_route(servingV1CreateModelRouteRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceCreateModelRoute: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1CreateModelRouteRequest = ; // ServingV1CreateModelRouteRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceCreateModelRoute(servingV1CreateModelRouteRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1CreateModelRouteRequest *

Responses


servingServiceCreatePrincipal

Create an AI Gateway Principal. Returns a one-time API key.


/api/v1/ai-gateway/principals

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/principals" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreatePrincipalRequest servingV1CreatePrincipalRequest = ; // ServingV1CreatePrincipalRequest | 

        try {
            serving.v1.CreatePrincipalResponse result = apiInstance.servingServiceCreatePrincipal(servingV1CreatePrincipalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreatePrincipal");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final ServingV1CreatePrincipalRequest servingV1CreatePrincipalRequest = new ServingV1CreatePrincipalRequest(); // ServingV1CreatePrincipalRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1CreatePrincipalRequest servingV1CreatePrincipalRequest = ; // ServingV1CreatePrincipalRequest | 

        try {
            serving.v1.CreatePrincipalResponse result = apiInstance.servingServiceCreatePrincipal(servingV1CreatePrincipalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceCreatePrincipal");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceCreatePrincipalWith:servingV1CreatePrincipalRequest
              completionHandler: ^(serving.v1.CreatePrincipalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1CreatePrincipalRequest = ; // {ServingV1CreatePrincipalRequest} 

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

namespace Example
{
    public class servingServiceCreatePrincipalExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1CreatePrincipalRequest = new ServingV1CreatePrincipalRequest(); // ServingV1CreatePrincipalRequest | 

            try {
                serving.v1.CreatePrincipalResponse result = apiInstance.servingServiceCreatePrincipal(servingV1CreatePrincipalRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceCreatePrincipal: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1CreatePrincipalRequest = ; // ServingV1CreatePrincipalRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1CreatePrincipalRequest = WWW::OPenAPIClient::Object::ServingV1CreatePrincipalRequest->new(); # ServingV1CreatePrincipalRequest | 

eval {
    my $result = $api_instance->servingServiceCreatePrincipal(servingV1CreatePrincipalRequest => $servingV1CreatePrincipalRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceCreatePrincipal: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1CreatePrincipalRequest =  # ServingV1CreatePrincipalRequest | 

try:
    api_response = api_instance.serving_service_create_principal(servingV1CreatePrincipalRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceCreatePrincipal: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1CreatePrincipalRequest = ; // ServingV1CreatePrincipalRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceCreatePrincipal(servingV1CreatePrincipalRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1CreatePrincipalRequest *

Responses


servingServiceDeleteBackend

Delete an AI Gateway Backend.


/api/v1/ai-gateway/backends/{id}

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/backends/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            Object result = apiInstance.servingServiceDeleteBackend(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceDeleteBackend");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceDeleteBackendWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceDeleteBackendExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceDeleteBackend(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceDeleteBackend: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_delete_backend(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceDeleteBackend: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceDeleteDeployment

Delete a deployment and every resource derived from it.


/api/v1/deployments/{id}

Usage and SDK Samples

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

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

        try {
            Object result = apiInstance.servingServiceDeleteDeployment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceDeleteDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

[apiInstance servingServiceDeleteDeploymentWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.

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

namespace Example
{
    public class servingServiceDeleteDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.

eval {
    my $result = $api_instance->servingServiceDeleteDeployment(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceDeleteDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

try:
    api_response = api_instance.serving_service_delete_deployment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceDeleteDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required

Responses


servingServiceDeleteEndpoint

Delete an AI Gateway Endpoint and its derived AIGatewayRoute/EnvoyFilter.


/api/v1/ai-gateway/endpoints/{id}

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            Object result = apiInstance.servingServiceDeleteEndpoint(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceDeleteEndpoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceDeleteEndpointWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceDeleteEndpointExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceDeleteEndpoint(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceDeleteEndpoint: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_delete_endpoint(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceDeleteEndpoint: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceDeleteModelRoute

Delete an AI Gateway ModelRoute and remove its rule from the owning Endpoint's AIGatewayRoute.


/api/v1/ai-gateway/model-routes/{id}

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/model-routes/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            Object result = apiInstance.servingServiceDeleteModelRoute(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceDeleteModelRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceDeleteModelRouteWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceDeleteModelRouteExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceDeleteModelRoute(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceDeleteModelRoute: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_delete_model_route(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceDeleteModelRoute: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceDeletePrincipal

Delete an AI Gateway Principal and its associated API key.


/api/v1/ai-gateway/principals/{id}

Usage and SDK Samples

curl -X DELETE \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/principals/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            Object result = apiInstance.servingServiceDeletePrincipal(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceDeletePrincipal");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceDeletePrincipalWith:id
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceDeletePrincipalExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceDeletePrincipal(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceDeletePrincipal: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_delete_principal(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceDeletePrincipal: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceGenerateAccessApiKey

Mint a long-lived AWC API key via the console access-keys service.


/api/v1/auth/access-api-keys

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/auth/access-api-keys" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        Object body = Object; // Object | 

        try {
            serving.v1.GenerateAccessApiKeyResponse result = apiInstance.servingServiceGenerateAccessApiKey(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGenerateAccessApiKey");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Object body = new Object(); // Object | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        Object body = Object; // Object | 

        try {
            serving.v1.GenerateAccessApiKeyResponse result = apiInstance.servingServiceGenerateAccessApiKey(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGenerateAccessApiKey");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceGenerateAccessApiKeyWith:body
              completionHandler: ^(serving.v1.GenerateAccessApiKeyResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var body = Object; // {Object} 

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

namespace Example
{
    public class servingServiceGenerateAccessApiKeyExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var body = Object;  // Object | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$body = Object; // Object | 

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

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

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

eval {
    my $result = $api_instance->servingServiceGenerateAccessApiKey(body => $body);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGenerateAccessApiKey: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
body = Object # Object | 

try:
    api_response = api_instance.serving_service_generate_access_api_key(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGenerateAccessApiKey: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let body = Object; // Object

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGenerateAccessApiKey(body, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
body *

Responses


servingServiceGetBackend

Get full details of an AI Gateway Backend including convergence state.


/api/v1/ai-gateway/backends/{id}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/backends/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            serving.v1.GetBackendResponse result = apiInstance.servingServiceGetBackend(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetBackend");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceGetBackendWith:id
              completionHandler: ^(serving.v1.GetBackendResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceGetBackendExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceGetBackend(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetBackend: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_get_backend(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetBackend: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceGetDeployment

Get full details of a deployment including status, revisions, and configuration.


/api/v1/deployments/{id}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

        try {
            serving.v1.GetDeploymentResponse result = apiInstance.servingServiceGetDeployment(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

[apiInstance servingServiceGetDeploymentWith:id
              completionHandler: ^(serving.v1.GetDeploymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.

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

namespace Example
{
    public class servingServiceGetDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.

eval {
    my $result = $api_instance->servingServiceGetDeployment(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)

try:
    api_response = api_instance.serving_service_get_deployment(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required

Responses


servingServiceGetDeploymentEvents

Get Kubernetes events for a deployment replica.


/api/v1/deployments/{id}/events

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}/events?replica=replica_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        String replica = replica_example; // String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

        try {
            serving.v1.GetDeploymentEventsResponse result = apiInstance.servingServiceGetDeploymentEvents(id, replica);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetDeploymentEvents");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
final String replica = new String(); // String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        String replica = replica_example; // String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

        try {
            serving.v1.GetDeploymentEventsResponse result = apiInstance.servingServiceGetDeploymentEvents(id, replica);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetDeploymentEvents");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
String *replica = replica_example; // Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)

[apiInstance servingServiceGetDeploymentEventsWith:id
    replica:replica
              completionHandler: ^(serving.v1.GetDeploymentEventsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.
var replica = replica_example; // {String} Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

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

namespace Example
{
    public class servingServiceGetDeploymentEventsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
            var replica = replica_example;  // String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)

            try {
                serving.v1.GetDeploymentEventsResponse result = apiInstance.servingServiceGetDeploymentEvents(id, replica);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceGetDeploymentEvents: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
$replica = replica_example; // String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.
my $replica = replica_example; # String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.

eval {
    my $result = $api_instance->servingServiceGetDeploymentEvents(id => $id, replica => $replica);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetDeploymentEvents: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
replica = replica_example # String | Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)

try:
    api_response = api_instance.serving_service_get_deployment_events(id, replica)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetDeploymentEvents: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let replica = replica_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGetDeploymentEvents(id, replica, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required
Query parameters
Name Description
replica*
String
Replica to retrieve events for, one of `DeploymentStatus.revisions[].metadata.replica_names`. A deployment with no replicas has no events. INVALID_ARGUMENT when empty or when the deployment has no such replica.
Required

Responses


servingServiceGetDeploymentLogs

Stream the log lines of a deployment replica's container, oldest first, as they are read from the pod. Sends the most recent tail_lines lines and then ends; it does not follow a running container, so call it again for newer lines. A stream that breaks mid-way ends with UNAVAILABLE.


/api/v1/deployments/{id}/logs

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/x-ndjson,application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}/logs?replica=replica_example&container=container_example&tailLines=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        String replica = replica_example; // String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
        String container = container_example; // String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
        Integer tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

        try {
            serving.v1.GetDeploymentLogsStreamChunk result = apiInstance.servingServiceGetDeploymentLogs(id, replica, container, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetDeploymentLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
final String replica = new String(); // String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
final String container = new String(); // String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
final Integer tailLines = new Integer(); // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        String replica = replica_example; // String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
        String container = container_example; // String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
        Integer tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

        try {
            serving.v1.GetDeploymentLogsStreamChunk result = apiInstance.servingServiceGetDeploymentLogs(id, replica, container, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetDeploymentLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
String *replica = replica_example; // Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)
String *container = container_example; // Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container. (optional) (default to null)
Integer *tailLines = 56; // Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional) (default to null)

[apiInstance servingServiceGetDeploymentLogsWith:id
    replica:replica
    container:container
    tailLines:tailLines
              completionHandler: ^(serving.v1.GetDeploymentLogsStreamChunk output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.
var replica = replica_example; // {String} Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
var opts = {
  'container': container_example, // {String} Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
  'tailLines': 56 // {Integer} Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.
};

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

namespace Example
{
    public class servingServiceGetDeploymentLogsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
            var replica = replica_example;  // String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)
            var container = container_example;  // String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container. (optional)  (default to null)
            var tailLines = 56;  // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional)  (default to null)

            try {
                serving.v1.GetDeploymentLogsStreamChunk result = apiInstance.servingServiceGetDeploymentLogs(id, replica, container, tailLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceGetDeploymentLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
$replica = replica_example; // String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
$container = container_example; // String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
$tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

try {
    $result = $api_instance->servingServiceGetDeploymentLogs($id, $replica, $container, $tailLines);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceGetDeploymentLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.
my $replica = replica_example; # String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica.
my $container = container_example; # String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
my $tailLines = 56; # Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

eval {
    my $result = $api_instance->servingServiceGetDeploymentLogs(id => $id, replica => $replica, container => $container, tailLines => $tailLines);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetDeploymentLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
replica = replica_example # String | Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`.
 A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the
 deployment has no such replica. (default to null)
container = container_example # String | Container name within the replica to retrieve logs from. Empty selects the model server
 container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container. (optional) (default to null)
tailLines = 56 # Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional) (default to null)

try:
    api_response = api_instance.serving_service_get_deployment_logs(id, replica, container=container, tailLines=tailLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetDeploymentLogs: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let replica = replica_example; // String
    let container = container_example; // String
    let tailLines = 56; // Integer

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGetDeploymentLogs(id, replica, container, tailLines, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required
Query parameters
Name Description
replica*
String
Replica to retrieve logs from, one of `DeploymentStatus.revisions[].metadata.replica_names`. A deployment with no replicas has no logs. INVALID_ARGUMENT when empty or when the deployment has no such replica.
Required
container
String
Container name within the replica to retrieve logs from. Empty selects the model server container (`kserve-container`). INVALID_ARGUMENT when the replica has no such container.
tailLines
Integer (int32)
Maximum number of most-recent log lines to return; the cluster trims the log, so older lines are never read. 0 returns the most recent lines up to the service limit (default 150); larger values are capped at that limit. INVALID_ARGUMENT when negative.

Responses


servingServiceGetEndpoint

Get full details of an AI Gateway Endpoint including convergence state.


/api/v1/ai-gateway/endpoints/{id}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            serving.v1.GetEndpointResponse result = apiInstance.servingServiceGetEndpoint(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetEndpoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceGetEndpointWith:id
              completionHandler: ^(serving.v1.GetEndpointResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceGetEndpointExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceGetEndpoint(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetEndpoint: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_get_endpoint(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetEndpoint: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceGetModelRoute

Get full details of an AI Gateway ModelRoute including convergence state.


/api/v1/ai-gateway/model-routes/{id}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/model-routes/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            serving.v1.GetModelRouteResponse result = apiInstance.servingServiceGetModelRoute(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetModelRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceGetModelRouteWith:id
              completionHandler: ^(serving.v1.GetModelRouteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceGetModelRouteExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceGetModelRoute(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetModelRoute: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_get_model_route(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetModelRoute: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceGetPrincipal

Get full details of an AI Gateway Principal.


/api/v1/ai-gateway/principals/{id}

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/principals/{id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`.

        try {
            serving.v1.GetPrincipalResponse result = apiInstance.servingServiceGetPrincipal(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetPrincipal");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`. (default to null)

[apiInstance servingServiceGetPrincipalWith:id
              completionHandler: ^(serving.v1.GetPrincipalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`.

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

namespace Example
{
    public class servingServiceGetPrincipalExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceGetPrincipal(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetPrincipal: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_get_principal(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetPrincipal: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceGetService

GetService returns metadata for this Cloudera AI Inference service instance.


/api/v1/service

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/service"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

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

        try {
            serving.v1.GetServiceResponse result = apiInstance.servingServiceGetService();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetService");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ServingServiceApi;

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

        try {
            serving.v1.GetServiceResponse result = apiInstance.servingServiceGetService();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetService");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceGetServiceWithCompletionHandler: 
              ^(serving.v1.GetServiceResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

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

namespace Example
{
    public class servingServiceGetServiceExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

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

            try {
                serving.v1.GetServiceResponse result = apiInstance.servingServiceGetService();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceGetService: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

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

eval {
    my $result = $api_instance->servingServiceGetService();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetService: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

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

try:
    api_response = api_instance.serving_service_get_service()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetService: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGetService(&context).wait();

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

Scopes

Parameters

Responses


servingServiceGetServiceLogs

Stream the log lines of a container of the Cloudera AI Inference API service's own pod, oldest first, as they are read from the pod. Sends the most recent tail_lines lines and then ends; it does not follow a running container, so call it again for newer lines. A stream that breaks mid-way ends with UNAVAILABLE.


/api/v1/service/logs

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/x-ndjson,application/json,application/yaml" \
 "http://localhost/api/v1/service/logs?container=container_example&tailLines=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String container = container_example; // String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
        Integer tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

        try {
            serving.v1.GetServiceLogsStreamChunk result = apiInstance.servingServiceGetServiceLogs(container, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetServiceLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String container = new String(); // String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
final Integer tailLines = new Integer(); // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String container = container_example; // String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
        Integer tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

        try {
            serving.v1.GetServiceLogsStreamChunk result = apiInstance.servingServiceGetServiceLogs(container, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetServiceLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *container = container_example; // Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container. (default to null)
Integer *tailLines = 56; // Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional) (default to null)

[apiInstance servingServiceGetServiceLogsWith:container
    tailLines:tailLines
              completionHandler: ^(serving.v1.GetServiceLogsStreamChunk output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var container = container_example; // {String} Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
var opts = {
  'tailLines': 56 // {Integer} Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.
};

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

namespace Example
{
    public class servingServiceGetServiceLogsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var container = container_example;  // String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container. (default to null)
            var tailLines = 56;  // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional)  (default to null)

            try {
                serving.v1.GetServiceLogsStreamChunk result = apiInstance.servingServiceGetServiceLogs(container, tailLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceGetServiceLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$container = container_example; // String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
$tailLines = 56; // Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

try {
    $result = $api_instance->servingServiceGetServiceLogs($container, $tailLines);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceGetServiceLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $container = container_example; # String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container.
my $tailLines = 56; # Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative.

eval {
    my $result = $api_instance->servingServiceGetServiceLogs(container => $container, tailLines => $tailLines);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetServiceLogs: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
container = container_example # String | Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when
 the pod has no such container. (default to null)
tailLines = 56 # Integer | Maximum number of most-recent log lines to return; the cluster trims the log, so older lines
 are never read. 0 returns the most recent lines up to the service limit (default 150); larger
 values are capped at that limit. INVALID_ARGUMENT when negative. (optional) (default to null)

try:
    api_response = api_instance.serving_service_get_service_logs(container, tailLines=tailLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetServiceLogs: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let container = container_example; // String
    let tailLines = 56; // Integer

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGetServiceLogs(container, tailLines, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
container*
String
Container name within the API pod to retrieve logs from. INVALID_ARGUMENT when empty or when the pod has no such container.
Required
tailLines
Integer (int32)
Maximum number of most-recent log lines to return; the cluster trims the log, so older lines are never read. 0 returns the most recent lines up to the service limit (default 150); larger values are capped at that limit. INVALID_ARGUMENT when negative.

Responses


servingServiceGetUser

GetUser returns the authenticated caller's username. UNAUTHENTICATED when the request carries none.


/api/v1/user

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/user"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

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

        try {
            serving.v1.GetUserResponse result = apiInstance.servingServiceGetUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetUser");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ServingServiceApi;

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

        try {
            serving.v1.GetUserResponse result = apiInstance.servingServiceGetUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGetUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceGetUserWithCompletionHandler: 
              ^(serving.v1.GetUserResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

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

namespace Example
{
    public class servingServiceGetUserExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

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

            try {
                serving.v1.GetUserResponse result = apiInstance.servingServiceGetUser();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceGetUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

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

eval {
    my $result = $api_instance->servingServiceGetUser();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGetUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

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

try:
    api_response = api_instance.serving_service_get_user()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGetUser: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGetUser(&context).wait();

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

Scopes

Parameters

Responses


servingServiceGrantDeploymentPermission

Grant a user or group an access type on a deployment.


/api/v1/deployments/{id}/permissions:grant

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}/permissions:grant" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.
        ServingV1GrantDeploymentPermissionRequest servingV1GrantDeploymentPermissionRequest = ; // ServingV1GrantDeploymentPermissionRequest | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`.
final ServingV1GrantDeploymentPermissionRequest servingV1GrantDeploymentPermissionRequest = new ServingV1GrantDeploymentPermissionRequest(); // ServingV1GrantDeploymentPermissionRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.
        ServingV1GrantDeploymentPermissionRequest servingV1GrantDeploymentPermissionRequest = ; // ServingV1GrantDeploymentPermissionRequest | 

        try {
            Object result = apiInstance.servingServiceGrantDeploymentPermission(id, servingV1GrantDeploymentPermissionRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceGrantDeploymentPermission");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`. (default to null)
ServingV1GrantDeploymentPermissionRequest *servingV1GrantDeploymentPermissionRequest = ; // 

[apiInstance servingServiceGrantDeploymentPermissionWith:id
    servingV1GrantDeploymentPermissionRequest:servingV1GrantDeploymentPermissionRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`.
var servingV1GrantDeploymentPermissionRequest = ; // {ServingV1GrantDeploymentPermissionRequest} 

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

namespace Example
{
    public class servingServiceGrantDeploymentPermissionExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`. (default to null)
            var servingV1GrantDeploymentPermissionRequest = new ServingV1GrantDeploymentPermissionRequest(); // ServingV1GrantDeploymentPermissionRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`.
$servingV1GrantDeploymentPermissionRequest = ; // ServingV1GrantDeploymentPermissionRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`.
my $servingV1GrantDeploymentPermissionRequest = WWW::OPenAPIClient::Object::ServingV1GrantDeploymentPermissionRequest->new(); # ServingV1GrantDeploymentPermissionRequest | 

eval {
    my $result = $api_instance->servingServiceGrantDeploymentPermission(id => $id, servingV1GrantDeploymentPermissionRequest => $servingV1GrantDeploymentPermissionRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceGrantDeploymentPermission: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`. (default to null)
servingV1GrantDeploymentPermissionRequest =  # ServingV1GrantDeploymentPermissionRequest | 

try:
    api_response = api_instance.serving_service_grant_deployment_permission(id, servingV1GrantDeploymentPermissionRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceGrantDeploymentPermission: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1GrantDeploymentPermissionRequest = ; // ServingV1GrantDeploymentPermissionRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceGrantDeploymentPermission(id, servingV1GrantDeploymentPermissionRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`.
Required
Body parameters
Name Description
servingV1GrantDeploymentPermissionRequest *

Responses


servingServiceListBackends

List AI Gateway Backends in a namespace, paginated in ascending name order.


/api/v1/ai-gateway/backends

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/backends?namespace=namespace_example&name=name_example&pageSize=56&pageToken=pageToken_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Backends from.
        String name = name_example; // String | name filters to the Backend with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListBackendsResponse result = apiInstance.servingServiceListBackends(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListBackends");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String namespace = new String(); // String | namespace to list Backends from.
final String name = new String(); // String | name filters to the Backend with this exact name.
final Integer pageSize = new Integer(); // Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
final String pageToken = new String(); // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    final result = await api_instance.servingServiceListBackends(namespace, name, pageSize, pageToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListBackends: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Backends from.
        String name = name_example; // String | name filters to the Backend with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListBackendsResponse result = apiInstance.servingServiceListBackends(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListBackends");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *namespace = namespace_example; // namespace to list Backends from. (optional) (default to null)
String *name = name_example; // name filters to the Backend with this exact name. (optional) (default to null)
Integer *pageSize = 56; // page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
String *pageToken = pageToken_example; // page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

[apiInstance servingServiceListBackendsWith:namespace
    name:name
    pageSize:pageSize
    pageToken:pageToken
              completionHandler: ^(serving.v1.ListBackendsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'namespace': namespace_example, // {String} namespace to list Backends from.
  'name': name_example, // {String} name filters to the Backend with this exact name.
  'pageSize': 56, // {Integer} page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
  'pageToken': pageToken_example // {String} page_token is an opaque pagination cursor from a previous response's next_page_token.
};

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

namespace Example
{
    public class servingServiceListBackendsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var namespace = namespace_example;  // String | namespace to list Backends from. (optional)  (default to null)
            var name = name_example;  // String | name filters to the Backend with this exact name. (optional)  (default to null)
            var pageSize = 56;  // Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped. (optional)  (default to null)
            var pageToken = pageToken_example;  // String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional)  (default to null)

            try {
                serving.v1.ListBackendsResponse result = apiInstance.servingServiceListBackends(namespace, name, pageSize, pageToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListBackends: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$namespace = namespace_example; // String | namespace to list Backends from.
$name = name_example; // String | name filters to the Backend with this exact name.
$pageSize = 56; // Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
$pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    $result = $api_instance->servingServiceListBackends($namespace, $name, $pageSize, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListBackends: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $namespace = namespace_example; # String | namespace to list Backends from.
my $name = name_example; # String | name filters to the Backend with this exact name.
my $pageSize = 56; # Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped.
my $pageToken = pageToken_example; # String | page_token is an opaque pagination cursor from a previous response's next_page_token.

eval {
    my $result = $api_instance->servingServiceListBackends(namespace => $namespace, name => $name, pageSize => $pageSize, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListBackends: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
namespace = namespace_example # String | namespace to list Backends from. (optional) (default to null)
name = name_example # String | name filters to the Backend with this exact name. (optional) (default to null)
pageSize = 56 # Integer | page_size caps the number of Backends returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
pageToken = pageToken_example # String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_backends(namespace=namespace, name=name, pageSize=pageSize, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListBackends: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let namespace = namespace_example; // String
    let name = name_example; // String
    let pageSize = 56; // Integer
    let pageToken = pageToken_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListBackends(namespace, name, pageSize, pageToken, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
namespace
String
namespace to list Backends from.
name
String
name filters to the Backend with this exact name.
pageSize
Integer (int32)
page_size caps the number of Backends returned; non-positive uses the server default, values above the server maximum are capped.
pageToken
String
page_token is an opaque pagination cursor from a previous response's next_page_token.

Responses


servingServiceListClusterResources

List cluster compute instances matching an instance category and resource requirements.


/api/v1/cluster/resources

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/cluster/resources?instanceCategory=instanceCategory_example&cpu=cpu_example&memory=memory_example&gpuType=gpuType_example&gpuCount=56&secondaryNetworkResourceNames="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String instanceCategory = instanceCategory_example; // String | Instance category relevant for the query.
        String cpu = cpu_example; // String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
        String memory = memory_example; // String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
        String gpuType = gpuType_example; // String | GPU type to filter by (e.g. `A100`).
        Integer gpuCount = 56; // Integer | GPUs requested.
        array[String] secondaryNetworkResourceNames = ; // array[String] | Secondary network resource names to query allocatable counts for.

        try {
            serving.v1.ListClusterResourcesResponse result = apiInstance.servingServiceListClusterResources(instanceCategory, cpu, memory, gpuType, gpuCount, secondaryNetworkResourceNames);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListClusterResources");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String instanceCategory = new String(); // String | Instance category relevant for the query.
final String cpu = new String(); // String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
final String memory = new String(); // String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
final String gpuType = new String(); // String | GPU type to filter by (e.g. `A100`).
final Integer gpuCount = new Integer(); // Integer | GPUs requested.
final array[String] secondaryNetworkResourceNames = new array[String](); // array[String] | Secondary network resource names to query allocatable counts for.

try {
    final result = await api_instance.servingServiceListClusterResources(instanceCategory, cpu, memory, gpuType, gpuCount, secondaryNetworkResourceNames);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListClusterResources: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String instanceCategory = instanceCategory_example; // String | Instance category relevant for the query.
        String cpu = cpu_example; // String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
        String memory = memory_example; // String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
        String gpuType = gpuType_example; // String | GPU type to filter by (e.g. `A100`).
        Integer gpuCount = 56; // Integer | GPUs requested.
        array[String] secondaryNetworkResourceNames = ; // array[String] | Secondary network resource names to query allocatable counts for.

        try {
            serving.v1.ListClusterResourcesResponse result = apiInstance.servingServiceListClusterResources(instanceCategory, cpu, memory, gpuType, gpuCount, secondaryNetworkResourceNames);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListClusterResources");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *instanceCategory = instanceCategory_example; // Instance category relevant for the query. (optional) (default to null)
String *cpu = cpu_example; // Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`. (optional) (default to null)
String *memory = memory_example; // Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value. (optional) (default to null)
String *gpuType = gpuType_example; // GPU type to filter by (e.g. `A100`). (optional) (default to null)
Integer *gpuCount = 56; // GPUs requested. (optional) (default to null)
array[String] *secondaryNetworkResourceNames = ; // Secondary network resource names to query allocatable counts for. (optional) (default to null)

[apiInstance servingServiceListClusterResourcesWith:instanceCategory
    cpu:cpu
    memory:memory
    gpuType:gpuType
    gpuCount:gpuCount
    secondaryNetworkResourceNames:secondaryNetworkResourceNames
              completionHandler: ^(serving.v1.ListClusterResourcesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'instanceCategory': instanceCategory_example, // {String} Instance category relevant for the query.
  'cpu': cpu_example, // {String} Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
  'memory': memory_example, // {String} Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
  'gpuType': gpuType_example, // {String} GPU type to filter by (e.g. `A100`).
  'gpuCount': 56, // {Integer} GPUs requested.
  'secondaryNetworkResourceNames':  // {array[String]} Secondary network resource names to query allocatable counts for.
};

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

namespace Example
{
    public class servingServiceListClusterResourcesExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var instanceCategory = instanceCategory_example;  // String | Instance category relevant for the query. (optional)  (default to null)
            var cpu = cpu_example;  // String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`. (optional)  (default to null)
            var memory = memory_example;  // String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value. (optional)  (default to null)
            var gpuType = gpuType_example;  // String | GPU type to filter by (e.g. `A100`). (optional)  (default to null)
            var gpuCount = 56;  // Integer | GPUs requested. (optional)  (default to null)
            var secondaryNetworkResourceNames = new array[String](); // array[String] | Secondary network resource names to query allocatable counts for. (optional)  (default to null)

            try {
                serving.v1.ListClusterResourcesResponse result = apiInstance.servingServiceListClusterResources(instanceCategory, cpu, memory, gpuType, gpuCount, secondaryNetworkResourceNames);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListClusterResources: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$instanceCategory = instanceCategory_example; // String | Instance category relevant for the query.
$cpu = cpu_example; // String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
$memory = memory_example; // String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
$gpuType = gpuType_example; // String | GPU type to filter by (e.g. `A100`).
$gpuCount = 56; // Integer | GPUs requested.
$secondaryNetworkResourceNames = ; // array[String] | Secondary network resource names to query allocatable counts for.

try {
    $result = $api_instance->servingServiceListClusterResources($instanceCategory, $cpu, $memory, $gpuType, $gpuCount, $secondaryNetworkResourceNames);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListClusterResources: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $instanceCategory = instanceCategory_example; # String | Instance category relevant for the query.
my $cpu = cpu_example; # String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
my $memory = memory_example; # String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value.
my $gpuType = gpuType_example; # String | GPU type to filter by (e.g. `A100`).
my $gpuCount = 56; # Integer | GPUs requested.
my $secondaryNetworkResourceNames = []; # array[String] | Secondary network resource names to query allocatable counts for.

eval {
    my $result = $api_instance->servingServiceListClusterResources(instanceCategory => $instanceCategory, cpu => $cpu, memory => $memory, gpuType => $gpuType, gpuCount => $gpuCount, secondaryNetworkResourceNames => $secondaryNetworkResourceNames);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListClusterResources: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
instanceCategory = instanceCategory_example # String | Instance category relevant for the query. (optional) (default to null)
cpu = cpu_example # String | Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`,
 `500m`). A string, not an int, so it takes the same values as `Resources.cpu`. (optional) (default to null)
memory = memory_example # String | Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`).
 A string, not an int, because the unit suffix is part of the value. (optional) (default to null)
gpuType = gpuType_example # String | GPU type to filter by (e.g. `A100`). (optional) (default to null)
gpuCount = 56 # Integer | GPUs requested. (optional) (default to null)
secondaryNetworkResourceNames =  # array[String] | Secondary network resource names to query allocatable counts for. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_cluster_resources(instanceCategory=instanceCategory, cpu=cpu, memory=memory, gpuType=gpuType, gpuCount=gpuCount, secondaryNetworkResourceNames=secondaryNetworkResourceNames)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListClusterResources: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let instanceCategory = instanceCategory_example; // String
    let cpu = cpu_example; // String
    let memory = memory_example; // String
    let gpuType = gpuType_example; // String
    let gpuCount = 56; // Integer
    let secondaryNetworkResourceNames = ; // array[String]

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListClusterResources(instanceCategory, cpu, memory, gpuType, gpuCount, secondaryNetworkResourceNames, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
instanceCategory
String (enum)
Instance category relevant for the query.
cpu
String
Minimum CPU a node must have allocatable, as a Kubernetes quantity string (e.g. `2`, `500m`). A string, not an int, so it takes the same values as `Resources.cpu`.
memory
String
Minimum memory a node must have allocatable, as a Kubernetes quantity string (e.g. `16Gi`). A string, not an int, because the unit suffix is part of the value.
gpuType
String
GPU type to filter by (e.g. `A100`).
gpuCount
Integer (int32)
GPUs requested.
secondaryNetworkResourceNames
array[String]
Secondary network resource names to query allocatable counts for.

Responses


servingServiceListDeploymentPermissions

List every permission granted on a deployment.


/api/v1/deployments/{id}/permissions

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}/permissions"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.

        try {
            serving.v1.ListDeploymentPermissionsResponse result = apiInstance.servingServiceListDeploymentPermissions(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListDeploymentPermissions");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`. (default to null)

[apiInstance servingServiceListDeploymentPermissionsWith:id
              completionHandler: ^(serving.v1.ListDeploymentPermissionsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`.

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

namespace Example
{
    public class servingServiceListDeploymentPermissionsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`. (default to null)

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`.

eval {
    my $result = $api_instance->servingServiceListDeploymentPermissions(id => $id);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListDeploymentPermissions: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`. (default to null)

try:
    api_response = api_instance.serving_service_list_deployment_permissions(id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListDeploymentPermissions: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String

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

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`.
Required

Responses


servingServiceListDeployments

List deployments in a namespace, with optional filters, paginated in ascending name order.


/api/v1/deployments

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/deployments?namespace=namespace_example&name=name_example&createdBy=createdBy_example&apiStandard=apiStandard_example&modelName=modelName_example&task=task_example&state=state_example&chatEnabled=true&pageSize=56&pageToken=pageToken_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
        String name = name_example; // String | Filters to the deployment with this exact name.
        String createdBy = createdBy_example; // String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
        String apiStandard = apiStandard_example; // String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
        String modelName = modelName_example; // String | Filters to deployments serving this model name.
        String task = task_example; // String | Filters to deployments with this model task.
        String state = state_example; // String | Filters to deployments in this lifecycle state.
        Boolean chatEnabled = true; // Boolean | Filters to deployments that do, or do not, support the OpenAI chat API.
        Integer pageSize = 56; // Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
        String pageToken = pageToken_example; // String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

        try {
            serving.v1.ListDeploymentsResponse result = apiInstance.servingServiceListDeployments(namespace, name, createdBy, apiStandard, modelName, task, state, chatEnabled, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListDeployments");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String namespace = new String(); // String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
final String name = new String(); // String | Filters to the deployment with this exact name.
final String createdBy = new String(); // String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
final String apiStandard = new String(); // String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
final String modelName = new String(); // String | Filters to deployments serving this model name.
final String task = new String(); // String | Filters to deployments with this model task.
final String state = new String(); // String | Filters to deployments in this lifecycle state.
final Boolean chatEnabled = new Boolean(); // Boolean | Filters to deployments that do, or do not, support the OpenAI chat API.
final Integer pageSize = new Integer(); // Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
final String pageToken = new String(); // String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

try {
    final result = await api_instance.servingServiceListDeployments(namespace, name, createdBy, apiStandard, modelName, task, state, chatEnabled, pageSize, pageToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListDeployments: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
        String name = name_example; // String | Filters to the deployment with this exact name.
        String createdBy = createdBy_example; // String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
        String apiStandard = apiStandard_example; // String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
        String modelName = modelName_example; // String | Filters to deployments serving this model name.
        String task = task_example; // String | Filters to deployments with this model task.
        String state = state_example; // String | Filters to deployments in this lifecycle state.
        Boolean chatEnabled = true; // Boolean | Filters to deployments that do, or do not, support the OpenAI chat API.
        Integer pageSize = 56; // Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
        String pageToken = pageToken_example; // String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

        try {
            serving.v1.ListDeploymentsResponse result = apiInstance.servingServiceListDeployments(namespace, name, createdBy, apiStandard, modelName, task, state, chatEnabled, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListDeployments");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *namespace = namespace_example; // Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none. (default to null)
String *name = name_example; // Filters to the deployment with this exact name. (optional) (default to null)
String *createdBy = createdBy_example; // Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT. (optional) (default to null)
String *apiStandard = apiStandard_example; // Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter. (optional) (default to null)
String *modelName = modelName_example; // Filters to deployments serving this model name. (optional) (default to null)
String *task = task_example; // Filters to deployments with this model task. (optional) (default to null)
String *state = state_example; // Filters to deployments in this lifecycle state. (optional) (default to null)
Boolean *chatEnabled = true; // Filters to deployments that do, or do not, support the OpenAI chat API. (optional) (default to null)
Integer *pageSize = 56; // Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped. (optional) (default to null)
String *pageToken = pageToken_example; // Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page. (optional) (default to null)

[apiInstance servingServiceListDeploymentsWith:namespace
    name:name
    createdBy:createdBy
    apiStandard:apiStandard
    modelName:modelName
    task:task
    state:state
    chatEnabled:chatEnabled
    pageSize:pageSize
    pageToken:pageToken
              completionHandler: ^(serving.v1.ListDeploymentsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var namespace = namespace_example; // {String} Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
var opts = {
  'name': name_example, // {String} Filters to the deployment with this exact name.
  'createdBy': createdBy_example, // {String} Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
  'apiStandard': apiStandard_example, // {String} Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
  'modelName': modelName_example, // {String} Filters to deployments serving this model name.
  'task': task_example, // {String} Filters to deployments with this model task.
  'state': state_example, // {String} Filters to deployments in this lifecycle state.
  'chatEnabled': true, // {Boolean} Filters to deployments that do, or do not, support the OpenAI chat API.
  'pageSize': 56, // {Integer} Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
  'pageToken': pageToken_example // {String} Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.
};

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

namespace Example
{
    public class servingServiceListDeploymentsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var namespace = namespace_example;  // String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none. (default to null)
            var name = name_example;  // String | Filters to the deployment with this exact name. (optional)  (default to null)
            var createdBy = createdBy_example;  // String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT. (optional)  (default to null)
            var apiStandard = apiStandard_example;  // String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter. (optional)  (default to null)
            var modelName = modelName_example;  // String | Filters to deployments serving this model name. (optional)  (default to null)
            var task = task_example;  // String | Filters to deployments with this model task. (optional)  (default to null)
            var state = state_example;  // String | Filters to deployments in this lifecycle state. (optional)  (default to null)
            var chatEnabled = true;  // Boolean | Filters to deployments that do, or do not, support the OpenAI chat API. (optional)  (default to null)
            var pageSize = 56;  // Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped. (optional)  (default to null)
            var pageToken = pageToken_example;  // String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page. (optional)  (default to null)

            try {
                serving.v1.ListDeploymentsResponse result = apiInstance.servingServiceListDeployments(namespace, name, createdBy, apiStandard, modelName, task, state, chatEnabled, pageSize, pageToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListDeployments: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$namespace = namespace_example; // String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
$name = name_example; // String | Filters to the deployment with this exact name.
$createdBy = createdBy_example; // String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
$apiStandard = apiStandard_example; // String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
$modelName = modelName_example; // String | Filters to deployments serving this model name.
$task = task_example; // String | Filters to deployments with this model task.
$state = state_example; // String | Filters to deployments in this lifecycle state.
$chatEnabled = true; // Boolean | Filters to deployments that do, or do not, support the OpenAI chat API.
$pageSize = 56; // Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
$pageToken = pageToken_example; // String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

try {
    $result = $api_instance->servingServiceListDeployments($namespace, $name, $createdBy, $apiStandard, $modelName, $task, $state, $chatEnabled, $pageSize, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListDeployments: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $namespace = namespace_example; # String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none.
my $name = name_example; # String | Filters to the deployment with this exact name.
my $createdBy = createdBy_example; # String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT.
my $apiStandard = apiStandard_example; # String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
my $modelName = modelName_example; # String | Filters to deployments serving this model name.
my $task = task_example; # String | Filters to deployments with this model task.
my $state = state_example; # String | Filters to deployments in this lifecycle state.
my $chatEnabled = true; # Boolean | Filters to deployments that do, or do not, support the OpenAI chat API.
my $pageSize = 56; # Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
my $pageToken = pageToken_example; # String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

eval {
    my $result = $api_instance->servingServiceListDeployments(namespace => $namespace, name => $name, createdBy => $createdBy, apiStandard => $apiStandard, modelName => $modelName, task => $task, state => $state, chatEnabled => $chatEnabled, pageSize => $pageSize, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListDeployments: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
namespace = namespace_example # String | Namespace to list deployments from. Deployments live only in the service's serving
 namespace, so any other namespace lists none. (default to null)
name = name_example # String | Filters to the deployment with this exact name. (optional) (default to null)
createdBy = createdBy_example # String | Filters to deployments created by this user. Must be a valid Kubernetes label value
 (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a
 letter or digit); any other value is rejected with INVALID_ARGUMENT. (optional) (default to null)
apiStandard = apiStandard_example # String | Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter. (optional) (default to null)
modelName = modelName_example # String | Filters to deployments serving this model name. (optional) (default to null)
task = task_example # String | Filters to deployments with this model task. (optional) (default to null)
state = state_example # String | Filters to deployments in this lifecycle state. (optional) (default to null)
chatEnabled = true # Boolean | Filters to deployments that do, or do not, support the OpenAI chat API. (optional) (default to null)
pageSize = 56 # Integer | Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped. (optional) (default to null)
pageToken = pageToken_example # String | Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_deployments(namespace, name=name, createdBy=createdBy, apiStandard=apiStandard, modelName=modelName, task=task, state=state, chatEnabled=chatEnabled, pageSize=pageSize, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListDeployments: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let namespace = namespace_example; // String
    let name = name_example; // String
    let createdBy = createdBy_example; // String
    let apiStandard = apiStandard_example; // String
    let modelName = modelName_example; // String
    let task = task_example; // String
    let state = state_example; // String
    let chatEnabled = true; // Boolean
    let pageSize = 56; // Integer
    let pageToken = pageToken_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListDeployments(namespace, name, createdBy, apiStandard, modelName, task, state, chatEnabled, pageSize, pageToken, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
namespace*
String
Namespace to list deployments from. Deployments live only in the service's serving namespace, so any other namespace lists none.
Required
name
String
Filters to the deployment with this exact name.
createdBy
String
Filters to deployments created by this user. Must be a valid Kubernetes label value (at most 63 characters; letters, digits, '-', '_' and '.', starting and ending with a letter or digit); any other value is rejected with INVALID_ARGUMENT.
apiStandard
String (enum)
Filters to deployments serving this inference API standard. UNSPECIFIED applies no filter.
modelName
String
Filters to deployments serving this model name.
task
String (enum)
Filters to deployments with this model task.
state
String (enum)
Filters to deployments in this lifecycle state.
chatEnabled
Boolean
Filters to deployments that do, or do not, support the OpenAI chat API.
pageSize
Integer (int32)
Maximum number of deployments to return. Non-positive values use the server default; values above the server maximum are capped.
pageToken
String
Opaque pagination cursor from a previous response's next_page_token. Omit to start from the first page.

Responses


servingServiceListEndpoints

List AI Gateway Endpoints in a namespace, paginated in ascending name order.


/api/v1/ai-gateway/endpoints

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints?namespace=namespace_example&name=name_example&pageSize=56&pageToken=pageToken_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Endpoints from.
        String name = name_example; // String | name filters to the Endpoint with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListEndpointsResponse result = apiInstance.servingServiceListEndpoints(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListEndpoints");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String namespace = new String(); // String | namespace to list Endpoints from.
final String name = new String(); // String | name filters to the Endpoint with this exact name.
final Integer pageSize = new Integer(); // Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
final String pageToken = new String(); // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    final result = await api_instance.servingServiceListEndpoints(namespace, name, pageSize, pageToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListEndpoints: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Endpoints from.
        String name = name_example; // String | name filters to the Endpoint with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListEndpointsResponse result = apiInstance.servingServiceListEndpoints(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListEndpoints");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *namespace = namespace_example; // namespace to list Endpoints from. (optional) (default to null)
String *name = name_example; // name filters to the Endpoint with this exact name. (optional) (default to null)
Integer *pageSize = 56; // page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
String *pageToken = pageToken_example; // page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

[apiInstance servingServiceListEndpointsWith:namespace
    name:name
    pageSize:pageSize
    pageToken:pageToken
              completionHandler: ^(serving.v1.ListEndpointsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'namespace': namespace_example, // {String} namespace to list Endpoints from.
  'name': name_example, // {String} name filters to the Endpoint with this exact name.
  'pageSize': 56, // {Integer} page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
  'pageToken': pageToken_example // {String} page_token is an opaque pagination cursor from a previous response's next_page_token.
};

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

namespace Example
{
    public class servingServiceListEndpointsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var namespace = namespace_example;  // String | namespace to list Endpoints from. (optional)  (default to null)
            var name = name_example;  // String | name filters to the Endpoint with this exact name. (optional)  (default to null)
            var pageSize = 56;  // Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped. (optional)  (default to null)
            var pageToken = pageToken_example;  // String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional)  (default to null)

            try {
                serving.v1.ListEndpointsResponse result = apiInstance.servingServiceListEndpoints(namespace, name, pageSize, pageToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListEndpoints: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$namespace = namespace_example; // String | namespace to list Endpoints from.
$name = name_example; // String | name filters to the Endpoint with this exact name.
$pageSize = 56; // Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
$pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    $result = $api_instance->servingServiceListEndpoints($namespace, $name, $pageSize, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListEndpoints: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $namespace = namespace_example; # String | namespace to list Endpoints from.
my $name = name_example; # String | name filters to the Endpoint with this exact name.
my $pageSize = 56; # Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped.
my $pageToken = pageToken_example; # String | page_token is an opaque pagination cursor from a previous response's next_page_token.

eval {
    my $result = $api_instance->servingServiceListEndpoints(namespace => $namespace, name => $name, pageSize => $pageSize, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListEndpoints: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
namespace = namespace_example # String | namespace to list Endpoints from. (optional) (default to null)
name = name_example # String | name filters to the Endpoint with this exact name. (optional) (default to null)
pageSize = 56 # Integer | page_size caps the number of Endpoints returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
pageToken = pageToken_example # String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_endpoints(namespace=namespace, name=name, pageSize=pageSize, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListEndpoints: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let namespace = namespace_example; // String
    let name = name_example; // String
    let pageSize = 56; // Integer
    let pageToken = pageToken_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListEndpoints(namespace, name, pageSize, pageToken, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
namespace
String
namespace to list Endpoints from.
name
String
name filters to the Endpoint with this exact name.
pageSize
Integer (int32)
page_size caps the number of Endpoints returned; non-positive uses the server default, values above the server maximum are capped.
pageToken
String
page_token is an opaque pagination cursor from a previous response's next_page_token.

Responses


servingServiceListLdapGroups

Search the platform LDAP directory for groups by name prefix, to pick the subject of a permission grant. Each result's name is the value for Subject.group.


/api/v1/ldap/groups

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ldap/groups?query=query_example&pageSize=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String query = query_example; // String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
        Integer pageSize = 56; // Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

        try {
            serving.v1.ListLdapGroupsResponse result = apiInstance.servingServiceListLdapGroups(query, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListLdapGroups");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String query = new String(); // String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
final Integer pageSize = new Integer(); // Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String query = query_example; // String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
        Integer pageSize = 56; // Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

        try {
            serving.v1.ListLdapGroupsResponse result = apiInstance.servingServiceListLdapGroups(query, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListLdapGroups");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *query = query_example; // Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
Integer *pageSize = 56; // Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional) (default to null)

[apiInstance servingServiceListLdapGroupsWith:query
    pageSize:pageSize
              completionHandler: ^(serving.v1.ListLdapGroupsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var query = query_example; // {String} Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
var opts = {
  'pageSize': 56 // {Integer} Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.
};

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

namespace Example
{
    public class servingServiceListLdapGroupsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var query = query_example;  // String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
            var pageSize = 56;  // Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional)  (default to null)

            try {
                serving.v1.ListLdapGroupsResponse result = apiInstance.servingServiceListLdapGroups(query, pageSize);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListLdapGroups: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$query = query_example; // String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
$pageSize = 56; // Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

try {
    $result = $api_instance->servingServiceListLdapGroups($query, $pageSize);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListLdapGroups: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $query = query_example; # String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
my $pageSize = 56; # Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

eval {
    my $result = $api_instance->servingServiceListLdapGroups(query => $query, pageSize => $pageSize);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListLdapGroups: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
query = query_example # String | Case-insensitive group name prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
pageSize = 56 # Integer | Maximum number of groups to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_ldap_groups(query, pageSize=pageSize)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListLdapGroups: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let query = query_example; // String
    let pageSize = 56; // Integer

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListLdapGroups(query, pageSize, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
query*
String
Case-insensitive group name prefix to match. Required: from the server's minimum length (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with no control characters. LDAP filter metacharacters are matched literally.
Required
pageSize
Integer (int32)
Maximum number of groups to return. Non-positive uses the server default (20); values above the server maximum (100) are capped.

Responses


servingServiceListLdapUsers

Search the platform LDAP directory for users by username prefix, to pick the subject of a permission grant. Each result's name is the value for Subject.user.


/api/v1/ldap/users

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ldap/users?query=query_example&pageSize=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String query = query_example; // String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
        Integer pageSize = 56; // Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

        try {
            serving.v1.ListLdapUsersResponse result = apiInstance.servingServiceListLdapUsers(query, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListLdapUsers");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String query = new String(); // String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
final Integer pageSize = new Integer(); // Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String query = query_example; // String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
        Integer pageSize = 56; // Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

        try {
            serving.v1.ListLdapUsersResponse result = apiInstance.servingServiceListLdapUsers(query, pageSize);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListLdapUsers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *query = query_example; // Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
Integer *pageSize = 56; // Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional) (default to null)

[apiInstance servingServiceListLdapUsersWith:query
    pageSize:pageSize
              completionHandler: ^(serving.v1.ListLdapUsersResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var query = query_example; // {String} Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
var opts = {
  'pageSize': 56 // {Integer} Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.
};

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

namespace Example
{
    public class servingServiceListLdapUsersExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var query = query_example;  // String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
            var pageSize = 56;  // Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional)  (default to null)

            try {
                serving.v1.ListLdapUsersResponse result = apiInstance.servingServiceListLdapUsers(query, pageSize);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListLdapUsers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$query = query_example; // String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
$pageSize = 56; // Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

try {
    $result = $api_instance->servingServiceListLdapUsers($query, $pageSize);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListLdapUsers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $query = query_example; # String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally.
my $pageSize = 56; # Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped.

eval {
    my $result = $api_instance->servingServiceListLdapUsers(query => $query, pageSize => $pageSize);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListLdapUsers: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
query = query_example # String | Case-insensitive username prefix to match. Required: from the server's minimum length
 (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with
 no control characters. LDAP filter metacharacters are matched literally. (default to null)
pageSize = 56 # Integer | Maximum number of users to return. Non-positive uses the server default (20); values
 above the server maximum (100) are capped. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_ldap_users(query, pageSize=pageSize)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListLdapUsers: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let query = query_example; // String
    let pageSize = 56; // Integer

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListLdapUsers(query, pageSize, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
query*
String
Case-insensitive username prefix to match. Required: from the server's minimum length (3 by default, configurable) to 128 characters after trimming surrounding whitespace, with no control characters. LDAP filter metacharacters are matched literally.
Required
pageSize
Integer (int32)
Maximum number of users to return. Non-positive uses the server default (20); values above the server maximum (100) are capped.

Responses


servingServiceListModelRoutes

List AI Gateway ModelRoutes in a namespace, paginated in ascending name order.


/api/v1/ai-gateway/model-routes

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/model-routes?namespace=namespace_example&endpointId=endpointId_example&name=name_example&pageSize=56&pageToken=pageToken_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list ModelRoutes from.
        String endpointId = endpointId_example; // String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
        String name = name_example; // String | name filters to the ModelRoute with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListModelRoutesResponse result = apiInstance.servingServiceListModelRoutes(namespace, endpointId, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListModelRoutes");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String namespace = new String(); // String | namespace to list ModelRoutes from.
final String endpointId = new String(); // String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
final String name = new String(); // String | name filters to the ModelRoute with this exact name.
final Integer pageSize = new Integer(); // Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
final String pageToken = new String(); // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    final result = await api_instance.servingServiceListModelRoutes(namespace, endpointId, name, pageSize, pageToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListModelRoutes: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list ModelRoutes from.
        String endpointId = endpointId_example; // String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
        String name = name_example; // String | name filters to the ModelRoute with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListModelRoutesResponse result = apiInstance.servingServiceListModelRoutes(namespace, endpointId, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListModelRoutes");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *namespace = namespace_example; // namespace to list ModelRoutes from. (optional) (default to null)
String *endpointId = endpointId_example; // endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`). (optional) (default to null)
String *name = name_example; // name filters to the ModelRoute with this exact name. (optional) (default to null)
Integer *pageSize = 56; // page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
String *pageToken = pageToken_example; // page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

[apiInstance servingServiceListModelRoutesWith:namespace
    endpointId:endpointId
    name:name
    pageSize:pageSize
    pageToken:pageToken
              completionHandler: ^(serving.v1.ListModelRoutesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'namespace': namespace_example, // {String} namespace to list ModelRoutes from.
  'endpointId': endpointId_example, // {String} endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
  'name': name_example, // {String} name filters to the ModelRoute with this exact name.
  'pageSize': 56, // {Integer} page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
  'pageToken': pageToken_example // {String} page_token is an opaque pagination cursor from a previous response's next_page_token.
};

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

namespace Example
{
    public class servingServiceListModelRoutesExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var namespace = namespace_example;  // String | namespace to list ModelRoutes from. (optional)  (default to null)
            var endpointId = endpointId_example;  // String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`). (optional)  (default to null)
            var name = name_example;  // String | name filters to the ModelRoute with this exact name. (optional)  (default to null)
            var pageSize = 56;  // Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped. (optional)  (default to null)
            var pageToken = pageToken_example;  // String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional)  (default to null)

            try {
                serving.v1.ListModelRoutesResponse result = apiInstance.servingServiceListModelRoutes(namespace, endpointId, name, pageSize, pageToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListModelRoutes: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$namespace = namespace_example; // String | namespace to list ModelRoutes from.
$endpointId = endpointId_example; // String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
$name = name_example; // String | name filters to the ModelRoute with this exact name.
$pageSize = 56; // Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
$pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    $result = $api_instance->servingServiceListModelRoutes($namespace, $endpointId, $name, $pageSize, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListModelRoutes: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $namespace = namespace_example; # String | namespace to list ModelRoutes from.
my $endpointId = endpointId_example; # String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`).
my $name = name_example; # String | name filters to the ModelRoute with this exact name.
my $pageSize = 56; # Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped.
my $pageToken = pageToken_example; # String | page_token is an opaque pagination cursor from a previous response's next_page_token.

eval {
    my $result = $api_instance->servingServiceListModelRoutes(namespace => $namespace, endpointId => $endpointId, name => $name, pageSize => $pageSize, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListModelRoutes: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
namespace = namespace_example # String | namespace to list ModelRoutes from. (optional) (default to null)
endpointId = endpointId_example # String | endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s::`). (optional) (default to null)
name = name_example # String | name filters to the ModelRoute with this exact name. (optional) (default to null)
pageSize = 56 # Integer | page_size caps the number of ModelRoutes returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
pageToken = pageToken_example # String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_model_routes(namespace=namespace, endpointId=endpointId, name=name, pageSize=pageSize, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListModelRoutes: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let namespace = namespace_example; // String
    let endpointId = endpointId_example; // String
    let name = name_example; // String
    let pageSize = 56; // Integer
    let pageToken = pageToken_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListModelRoutes(namespace, endpointId, name, pageSize, pageToken, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
namespace
String
namespace to list ModelRoutes from.
endpointId
String
endpoint_id filters to ModelRoutes belonging to this Endpoint, by id (`k8s:<namespace>:<name>`).
name
String
name filters to the ModelRoute with this exact name.
pageSize
Integer (int32)
page_size caps the number of ModelRoutes returned; non-positive uses the server default, values above the server maximum are capped.
pageToken
String
page_token is an opaque pagination cursor from a previous response's next_page_token.

Responses


servingServiceListPrincipals

List AI Gateway Principals in a namespace, paginated in ascending name order.


/api/v1/ai-gateway/principals

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/principals?namespace=namespace_example&name=name_example&pageSize=56&pageToken=pageToken_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Principals from.
        String name = name_example; // String | name filters to the Principal with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListPrincipalsResponse result = apiInstance.servingServiceListPrincipals(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListPrincipals");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String namespace = new String(); // String | namespace to list Principals from.
final String name = new String(); // String | name filters to the Principal with this exact name.
final Integer pageSize = new Integer(); // Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
final String pageToken = new String(); // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    final result = await api_instance.servingServiceListPrincipals(namespace, name, pageSize, pageToken);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->servingServiceListPrincipals: $e\n');
}

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String namespace = namespace_example; // String | namespace to list Principals from.
        String name = name_example; // String | name filters to the Principal with this exact name.
        Integer pageSize = 56; // Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
        String pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

        try {
            serving.v1.ListPrincipalsResponse result = apiInstance.servingServiceListPrincipals(namespace, name, pageSize, pageToken);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceListPrincipals");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *namespace = namespace_example; // namespace to list Principals from. (optional) (default to null)
String *name = name_example; // name filters to the Principal with this exact name. (optional) (default to null)
Integer *pageSize = 56; // page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
String *pageToken = pageToken_example; // page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

[apiInstance servingServiceListPrincipalsWith:namespace
    name:name
    pageSize:pageSize
    pageToken:pageToken
              completionHandler: ^(serving.v1.ListPrincipalsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'namespace': namespace_example, // {String} namespace to list Principals from.
  'name': name_example, // {String} name filters to the Principal with this exact name.
  'pageSize': 56, // {Integer} page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
  'pageToken': pageToken_example // {String} page_token is an opaque pagination cursor from a previous response's next_page_token.
};

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

namespace Example
{
    public class servingServiceListPrincipalsExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var namespace = namespace_example;  // String | namespace to list Principals from. (optional)  (default to null)
            var name = name_example;  // String | name filters to the Principal with this exact name. (optional)  (default to null)
            var pageSize = 56;  // Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped. (optional)  (default to null)
            var pageToken = pageToken_example;  // String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional)  (default to null)

            try {
                serving.v1.ListPrincipalsResponse result = apiInstance.servingServiceListPrincipals(namespace, name, pageSize, pageToken);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceListPrincipals: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$namespace = namespace_example; // String | namespace to list Principals from.
$name = name_example; // String | name filters to the Principal with this exact name.
$pageSize = 56; // Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
$pageToken = pageToken_example; // String | page_token is an opaque pagination cursor from a previous response's next_page_token.

try {
    $result = $api_instance->servingServiceListPrincipals($namespace, $name, $pageSize, $pageToken);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceListPrincipals: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $namespace = namespace_example; # String | namespace to list Principals from.
my $name = name_example; # String | name filters to the Principal with this exact name.
my $pageSize = 56; # Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped.
my $pageToken = pageToken_example; # String | page_token is an opaque pagination cursor from a previous response's next_page_token.

eval {
    my $result = $api_instance->servingServiceListPrincipals(namespace => $namespace, name => $name, pageSize => $pageSize, pageToken => $pageToken);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceListPrincipals: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
namespace = namespace_example # String | namespace to list Principals from. (optional) (default to null)
name = name_example # String | name filters to the Principal with this exact name. (optional) (default to null)
pageSize = 56 # Integer | page_size caps the number of Principals returned; non-positive uses the server default,
 values above the server maximum are capped. (optional) (default to null)
pageToken = pageToken_example # String | page_token is an opaque pagination cursor from a previous response's next_page_token. (optional) (default to null)

try:
    api_response = api_instance.serving_service_list_principals(namespace=namespace, name=name, pageSize=pageSize, pageToken=pageToken)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceListPrincipals: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let namespace = namespace_example; // String
    let name = name_example; // String
    let pageSize = 56; // Integer
    let pageToken = pageToken_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceListPrincipals(namespace, name, pageSize, pageToken, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
namespace
String
namespace to list Principals from.
name
String
name filters to the Principal with this exact name.
pageSize
Integer (int32)
page_size caps the number of Principals returned; non-positive uses the server default, values above the server maximum are capped.
pageToken
String
page_token is an opaque pagination cursor from a previous response's next_page_token.

Responses


servingServicePing

Ping reports that the API service is reachable and serving v1.


/api/v1/ping

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ping"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

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

        try {
            serving.v1.PingResponse result = apiInstance.servingServicePing();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServicePing");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.ServingServiceApi;

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

        try {
            serving.v1.PingResponse result = apiInstance.servingServicePing();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServicePing");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServicePingWithCompletionHandler: 
              ^(serving.v1.PingResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

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

namespace Example
{
    public class servingServicePingExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

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

            try {
                serving.v1.PingResponse result = apiInstance.servingServicePing();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServicePing: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

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

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

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

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

eval {
    my $result = $api_instance->servingServicePing();
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServicePing: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

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

try:
    api_response = api_instance.serving_service_ping()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServicePing: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServicePing(&context).wait();

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

Scopes

Parameters

Responses


servingServicePreviewEndpointBaseURL

Preview the base URL an AI Gateway Endpoint would receive, without creating it.


/api/v1/ai-gateway/endpoints:preview-base-url

Usage and SDK Samples

curl -X GET \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints:preview-base-url?name=name_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String name = name_example; // String | name is the Endpoint name to preview the base URL for.

        try {
            serving.v1.PreviewEndpointBaseURLResponse result = apiInstance.servingServicePreviewEndpointBaseURL(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServicePreviewEndpointBaseURL");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String name = new String(); // String | name is the Endpoint name to preview the base URL for.

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String name = name_example; // String | name is the Endpoint name to preview the base URL for.

        try {
            serving.v1.PreviewEndpointBaseURLResponse result = apiInstance.servingServicePreviewEndpointBaseURL(name);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServicePreviewEndpointBaseURL");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *name = name_example; // name is the Endpoint name to preview the base URL for. (optional) (default to null)

[apiInstance servingServicePreviewEndpointBaseURLWith:name
              completionHandler: ^(serving.v1.PreviewEndpointBaseURLResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var opts = {
  'name': name_example // {String} name is the Endpoint name to preview the base URL for.
};

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

namespace Example
{
    public class servingServicePreviewEndpointBaseURLExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var name = name_example;  // String | name is the Endpoint name to preview the base URL for. (optional)  (default to null)

            try {
                serving.v1.PreviewEndpointBaseURLResponse result = apiInstance.servingServicePreviewEndpointBaseURL(name);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServicePreviewEndpointBaseURL: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$name = name_example; // String | name is the Endpoint name to preview the base URL for.

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $name = name_example; # String | name is the Endpoint name to preview the base URL for.

eval {
    my $result = $api_instance->servingServicePreviewEndpointBaseURL(name => $name);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServicePreviewEndpointBaseURL: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
name = name_example # String | name is the Endpoint name to preview the base URL for. (optional) (default to null)

try:
    api_response = api_instance.serving_service_preview_endpoint_base_url(name=name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServicePreviewEndpointBaseURL: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let name = name_example; // String

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServicePreviewEndpointBaseURL(name, &context).wait();

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

Scopes

Parameters

Query parameters
Name Description
name
String
name is the Endpoint name to preview the base URL for.

Responses


servingServiceRevokeDeploymentPermission

Revoke a user's or group's access type on a deployment.


/api/v1/deployments/{id}/permissions:revoke

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}/permissions:revoke" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.
        ServingV1RevokeDeploymentPermissionRequest servingV1RevokeDeploymentPermissionRequest = ; // ServingV1RevokeDeploymentPermissionRequest | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`.
final ServingV1RevokeDeploymentPermissionRequest servingV1RevokeDeploymentPermissionRequest = new ServingV1RevokeDeploymentPermissionRequest(); // ServingV1RevokeDeploymentPermissionRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`.
        ServingV1RevokeDeploymentPermissionRequest servingV1RevokeDeploymentPermissionRequest = ; // ServingV1RevokeDeploymentPermissionRequest | 

        try {
            Object result = apiInstance.servingServiceRevokeDeploymentPermission(id, servingV1RevokeDeploymentPermissionRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceRevokeDeploymentPermission");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`. (default to null)
ServingV1RevokeDeploymentPermissionRequest *servingV1RevokeDeploymentPermissionRequest = ; // 

[apiInstance servingServiceRevokeDeploymentPermissionWith:id
    servingV1RevokeDeploymentPermissionRequest:servingV1RevokeDeploymentPermissionRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`.
var servingV1RevokeDeploymentPermissionRequest = ; // {ServingV1RevokeDeploymentPermissionRequest} 

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

namespace Example
{
    public class servingServiceRevokeDeploymentPermissionExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`. (default to null)
            var servingV1RevokeDeploymentPermissionRequest = new ServingV1RevokeDeploymentPermissionRequest(); // ServingV1RevokeDeploymentPermissionRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`.
$servingV1RevokeDeploymentPermissionRequest = ; // ServingV1RevokeDeploymentPermissionRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`.
my $servingV1RevokeDeploymentPermissionRequest = WWW::OPenAPIClient::Object::ServingV1RevokeDeploymentPermissionRequest->new(); # ServingV1RevokeDeploymentPermissionRequest | 

eval {
    my $result = $api_instance->servingServiceRevokeDeploymentPermission(id => $id, servingV1RevokeDeploymentPermissionRequest => $servingV1RevokeDeploymentPermissionRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceRevokeDeploymentPermission: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`. (default to null)
servingV1RevokeDeploymentPermissionRequest =  # ServingV1RevokeDeploymentPermissionRequest | 

try:
    api_response = api_instance.serving_service_revoke_deployment_permission(id, servingV1RevokeDeploymentPermissionRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceRevokeDeploymentPermission: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1RevokeDeploymentPermissionRequest = ; // ServingV1RevokeDeploymentPermissionRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceRevokeDeploymentPermission(id, servingV1RevokeDeploymentPermissionRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`.
Required
Body parameters
Name Description
servingV1RevokeDeploymentPermissionRequest *

Responses


servingServiceStartDeployment

Start a stopped deployment.


/api/v1/deployments/{id}:start

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}:start" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        ServingV1StartDeploymentRequest servingV1StartDeploymentRequest = ; // ServingV1StartDeploymentRequest | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
final ServingV1StartDeploymentRequest servingV1StartDeploymentRequest = new ServingV1StartDeploymentRequest(); // ServingV1StartDeploymentRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        ServingV1StartDeploymentRequest servingV1StartDeploymentRequest = ; // ServingV1StartDeploymentRequest | 

        try {
            Object result = apiInstance.servingServiceStartDeployment(id, servingV1StartDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceStartDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
ServingV1StartDeploymentRequest *servingV1StartDeploymentRequest = ; // 

[apiInstance servingServiceStartDeploymentWith:id
    servingV1StartDeploymentRequest:servingV1StartDeploymentRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.
var servingV1StartDeploymentRequest = ; // {ServingV1StartDeploymentRequest} 

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

namespace Example
{
    public class servingServiceStartDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
            var servingV1StartDeploymentRequest = new ServingV1StartDeploymentRequest(); // ServingV1StartDeploymentRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
$servingV1StartDeploymentRequest = ; // ServingV1StartDeploymentRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.
my $servingV1StartDeploymentRequest = WWW::OPenAPIClient::Object::ServingV1StartDeploymentRequest->new(); # ServingV1StartDeploymentRequest | 

eval {
    my $result = $api_instance->servingServiceStartDeployment(id => $id, servingV1StartDeploymentRequest => $servingV1StartDeploymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceStartDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
servingV1StartDeploymentRequest =  # ServingV1StartDeploymentRequest | 

try:
    api_response = api_instance.serving_service_start_deployment(id, servingV1StartDeploymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceStartDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1StartDeploymentRequest = ; // ServingV1StartDeploymentRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceStartDeployment(id, servingV1StartDeploymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required
Body parameters
Name Description
servingV1StartDeploymentRequest *

Responses


servingServiceStopDeployment

Stop a deployment, scaling it to nothing without deleting it.


/api/v1/deployments/{id}:stop

Usage and SDK Samples

curl -X POST \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}:stop" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        ServingV1StopDeploymentRequest servingV1StopDeploymentRequest = ; // ServingV1StopDeploymentRequest | 

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

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
final ServingV1StopDeploymentRequest servingV1StopDeploymentRequest = new ServingV1StopDeploymentRequest(); // ServingV1StopDeploymentRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
        ServingV1StopDeploymentRequest servingV1StopDeploymentRequest = ; // ServingV1StopDeploymentRequest | 

        try {
            Object result = apiInstance.servingServiceStopDeployment(id, servingV1StopDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceStopDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
ServingV1StopDeploymentRequest *servingV1StopDeploymentRequest = ; // 

[apiInstance servingServiceStopDeploymentWith:id
    servingV1StopDeploymentRequest:servingV1StopDeploymentRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, `k8s::`, as returned in `Deployment.id`.
var servingV1StopDeploymentRequest = ; // {ServingV1StopDeploymentRequest} 

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

namespace Example
{
    public class servingServiceStopDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
            var servingV1StopDeploymentRequest = new ServingV1StopDeploymentRequest(); // ServingV1StopDeploymentRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, `k8s::`, as returned in `Deployment.id`.
$servingV1StopDeploymentRequest = ; // ServingV1StopDeploymentRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, `k8s::`, as returned in `Deployment.id`.
my $servingV1StopDeploymentRequest = WWW::OPenAPIClient::Object::ServingV1StopDeploymentRequest->new(); # ServingV1StopDeploymentRequest | 

eval {
    my $result = $api_instance->servingServiceStopDeployment(id => $id, servingV1StopDeploymentRequest => $servingV1StopDeploymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceStopDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, `k8s::`, as returned in `Deployment.id`. (default to null)
servingV1StopDeploymentRequest =  # ServingV1StopDeploymentRequest | 

try:
    api_response = api_instance.serving_service_stop_deployment(id, servingV1StopDeploymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceStopDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1StopDeploymentRequest = ; // ServingV1StopDeploymentRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceStopDeployment(id, servingV1StopDeploymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, `k8s:<namespace>:<name>`, as returned in `Deployment.id`.
Required
Body parameters
Name Description
servingV1StopDeploymentRequest *

Responses


servingServiceUpdateBackend

Update the fields of an AI Gateway Backend named in update_mask.


/api/v1/ai-gateway/backends/{id}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/backends/{id}" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateBackendRequest servingV1UpdateBackendRequest = ; // ServingV1UpdateBackendRequest | 

        try {
            serving.v1.UpdateBackendResponse result = apiInstance.servingServiceUpdateBackend(id, servingV1UpdateBackendRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateBackend");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`, from the URL path. Not updatable.
final ServingV1UpdateBackendRequest servingV1UpdateBackendRequest = new ServingV1UpdateBackendRequest(); // ServingV1UpdateBackendRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateBackendRequest servingV1UpdateBackendRequest = ; // ServingV1UpdateBackendRequest | 

        try {
            serving.v1.UpdateBackendResponse result = apiInstance.servingServiceUpdateBackend(id, servingV1UpdateBackendRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateBackend");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`, from the URL path. Not updatable. (default to null)
ServingV1UpdateBackendRequest *servingV1UpdateBackendRequest = ; // 

[apiInstance servingServiceUpdateBackendWith:id
    servingV1UpdateBackendRequest:servingV1UpdateBackendRequest
              completionHandler: ^(serving.v1.UpdateBackendResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`, from the URL path. Not updatable.
var servingV1UpdateBackendRequest = ; // {ServingV1UpdateBackendRequest} 

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

namespace Example
{
    public class servingServiceUpdateBackendExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`, from the URL path. Not updatable. (default to null)
            var servingV1UpdateBackendRequest = new ServingV1UpdateBackendRequest(); // ServingV1UpdateBackendRequest | 

            try {
                serving.v1.UpdateBackendResponse result = apiInstance.servingServiceUpdateBackend(id, servingV1UpdateBackendRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceUpdateBackend: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
$servingV1UpdateBackendRequest = ; // ServingV1UpdateBackendRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`, from the URL path. Not updatable.
my $servingV1UpdateBackendRequest = WWW::OPenAPIClient::Object::ServingV1UpdateBackendRequest->new(); # ServingV1UpdateBackendRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateBackend(id => $id, servingV1UpdateBackendRequest => $servingV1UpdateBackendRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateBackend: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`, from the URL path. Not updatable. (default to null)
servingV1UpdateBackendRequest =  # ServingV1UpdateBackendRequest | 

try:
    api_response = api_instance.serving_service_update_backend(id, servingV1UpdateBackendRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateBackend: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1UpdateBackendRequest = ; // ServingV1UpdateBackendRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateBackend(id, servingV1UpdateBackendRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`, from the URL path. Not updatable.
Required
Body parameters
Name Description
servingV1UpdateBackendRequest *

Responses


servingServiceUpdateDeployment

Update the fields of a deployment named in update_mask, leaving the rest untouched.


/api/v1/deployments/{id}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/deployments/{id}" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, from the URL path. Identifies the deployment; not updatable.
        ServingV1UpdateDeploymentRequest servingV1UpdateDeploymentRequest = ; // ServingV1UpdateDeploymentRequest | 

        try {
            serving.v1.UpdateDeploymentResponse result = apiInstance.servingServiceUpdateDeployment(id, servingV1UpdateDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateDeployment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Deployment id, from the URL path. Identifies the deployment; not updatable.
final ServingV1UpdateDeploymentRequest servingV1UpdateDeploymentRequest = new ServingV1UpdateDeploymentRequest(); // ServingV1UpdateDeploymentRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | Deployment id, from the URL path. Identifies the deployment; not updatable.
        ServingV1UpdateDeploymentRequest servingV1UpdateDeploymentRequest = ; // ServingV1UpdateDeploymentRequest | 

        try {
            serving.v1.UpdateDeploymentResponse result = apiInstance.servingServiceUpdateDeployment(id, servingV1UpdateDeploymentRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateDeployment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // Deployment id, from the URL path. Identifies the deployment; not updatable. (default to null)
ServingV1UpdateDeploymentRequest *servingV1UpdateDeploymentRequest = ; // 

[apiInstance servingServiceUpdateDeploymentWith:id
    servingV1UpdateDeploymentRequest:servingV1UpdateDeploymentRequest
              completionHandler: ^(serving.v1.UpdateDeploymentResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} Deployment id, from the URL path. Identifies the deployment; not updatable.
var servingV1UpdateDeploymentRequest = ; // {ServingV1UpdateDeploymentRequest} 

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

namespace Example
{
    public class servingServiceUpdateDeploymentExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | Deployment id, from the URL path. Identifies the deployment; not updatable. (default to null)
            var servingV1UpdateDeploymentRequest = new ServingV1UpdateDeploymentRequest(); // ServingV1UpdateDeploymentRequest | 

            try {
                serving.v1.UpdateDeploymentResponse result = apiInstance.servingServiceUpdateDeployment(id, servingV1UpdateDeploymentRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceUpdateDeployment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | Deployment id, from the URL path. Identifies the deployment; not updatable.
$servingV1UpdateDeploymentRequest = ; // ServingV1UpdateDeploymentRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | Deployment id, from the URL path. Identifies the deployment; not updatable.
my $servingV1UpdateDeploymentRequest = WWW::OPenAPIClient::Object::ServingV1UpdateDeploymentRequest->new(); # ServingV1UpdateDeploymentRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateDeployment(id => $id, servingV1UpdateDeploymentRequest => $servingV1UpdateDeploymentRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateDeployment: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | Deployment id, from the URL path. Identifies the deployment; not updatable. (default to null)
servingV1UpdateDeploymentRequest =  # ServingV1UpdateDeploymentRequest | 

try:
    api_response = api_instance.serving_service_update_deployment(id, servingV1UpdateDeploymentRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateDeployment: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1UpdateDeploymentRequest = ; // ServingV1UpdateDeploymentRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateDeployment(id, servingV1UpdateDeploymentRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
Deployment id, from the URL path. Identifies the deployment; not updatable.
Required
Body parameters
Name Description
servingV1UpdateDeploymentRequest *

Responses


servingServiceUpdateEndpoint

Update the fields of an AI Gateway Endpoint named in update_mask.


/api/v1/ai-gateway/endpoints/{id}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/endpoints/{id}" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateEndpointRequest servingV1UpdateEndpointRequest = ; // ServingV1UpdateEndpointRequest | 

        try {
            serving.v1.UpdateEndpointResponse result = apiInstance.servingServiceUpdateEndpoint(id, servingV1UpdateEndpointRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateEndpoint");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`, from the URL path. Not updatable.
final ServingV1UpdateEndpointRequest servingV1UpdateEndpointRequest = new ServingV1UpdateEndpointRequest(); // ServingV1UpdateEndpointRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateEndpointRequest servingV1UpdateEndpointRequest = ; // ServingV1UpdateEndpointRequest | 

        try {
            serving.v1.UpdateEndpointResponse result = apiInstance.servingServiceUpdateEndpoint(id, servingV1UpdateEndpointRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateEndpoint");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`, from the URL path. Not updatable. (default to null)
ServingV1UpdateEndpointRequest *servingV1UpdateEndpointRequest = ; // 

[apiInstance servingServiceUpdateEndpointWith:id
    servingV1UpdateEndpointRequest:servingV1UpdateEndpointRequest
              completionHandler: ^(serving.v1.UpdateEndpointResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`, from the URL path. Not updatable.
var servingV1UpdateEndpointRequest = ; // {ServingV1UpdateEndpointRequest} 

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

namespace Example
{
    public class servingServiceUpdateEndpointExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`, from the URL path. Not updatable. (default to null)
            var servingV1UpdateEndpointRequest = new ServingV1UpdateEndpointRequest(); // ServingV1UpdateEndpointRequest | 

            try {
                serving.v1.UpdateEndpointResponse result = apiInstance.servingServiceUpdateEndpoint(id, servingV1UpdateEndpointRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceUpdateEndpoint: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
$servingV1UpdateEndpointRequest = ; // ServingV1UpdateEndpointRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`, from the URL path. Not updatable.
my $servingV1UpdateEndpointRequest = WWW::OPenAPIClient::Object::ServingV1UpdateEndpointRequest->new(); # ServingV1UpdateEndpointRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateEndpoint(id => $id, servingV1UpdateEndpointRequest => $servingV1UpdateEndpointRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateEndpoint: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`, from the URL path. Not updatable. (default to null)
servingV1UpdateEndpointRequest =  # ServingV1UpdateEndpointRequest | 

try:
    api_response = api_instance.serving_service_update_endpoint(id, servingV1UpdateEndpointRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateEndpoint: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1UpdateEndpointRequest = ; // ServingV1UpdateEndpointRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateEndpoint(id, servingV1UpdateEndpointRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`, from the URL path. Not updatable.
Required
Body parameters
Name Description
servingV1UpdateEndpointRequest *

Responses


servingServiceUpdateFeatures

Update the service feature flags named in update_mask.


/api/v1/config/features

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/config/features" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1UpdateFeaturesRequest servingV1UpdateFeaturesRequest = ; // ServingV1UpdateFeaturesRequest | 

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

final api_instance = DefaultApi();

final ServingV1UpdateFeaturesRequest servingV1UpdateFeaturesRequest = new ServingV1UpdateFeaturesRequest(); // ServingV1UpdateFeaturesRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1UpdateFeaturesRequest servingV1UpdateFeaturesRequest = ; // ServingV1UpdateFeaturesRequest | 

        try {
            Object result = apiInstance.servingServiceUpdateFeatures(servingV1UpdateFeaturesRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateFeatures");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceUpdateFeaturesWith:servingV1UpdateFeaturesRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1UpdateFeaturesRequest = ; // {ServingV1UpdateFeaturesRequest} 

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

namespace Example
{
    public class servingServiceUpdateFeaturesExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1UpdateFeaturesRequest = new ServingV1UpdateFeaturesRequest(); // ServingV1UpdateFeaturesRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1UpdateFeaturesRequest = ; // ServingV1UpdateFeaturesRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1UpdateFeaturesRequest = WWW::OPenAPIClient::Object::ServingV1UpdateFeaturesRequest->new(); # ServingV1UpdateFeaturesRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateFeatures(servingV1UpdateFeaturesRequest => $servingV1UpdateFeaturesRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateFeatures: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1UpdateFeaturesRequest =  # ServingV1UpdateFeaturesRequest | 

try:
    api_response = api_instance.serving_service_update_features(servingV1UpdateFeaturesRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateFeatures: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1UpdateFeaturesRequest = ; // ServingV1UpdateFeaturesRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateFeatures(servingV1UpdateFeaturesRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1UpdateFeaturesRequest *

Responses


servingServiceUpdateInferenceLoggingConfig

Update the service-wide inference logging fields named in update_mask.


/api/v1/config/inference-logging

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/config/inference-logging" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1UpdateInferenceLoggingConfigRequest servingV1UpdateInferenceLoggingConfigRequest = ; // ServingV1UpdateInferenceLoggingConfigRequest | 

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

final api_instance = DefaultApi();

final ServingV1UpdateInferenceLoggingConfigRequest servingV1UpdateInferenceLoggingConfigRequest = new ServingV1UpdateInferenceLoggingConfigRequest(); // ServingV1UpdateInferenceLoggingConfigRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        ServingV1UpdateInferenceLoggingConfigRequest servingV1UpdateInferenceLoggingConfigRequest = ; // ServingV1UpdateInferenceLoggingConfigRequest | 

        try {
            Object result = apiInstance.servingServiceUpdateInferenceLoggingConfig(servingV1UpdateInferenceLoggingConfigRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateInferenceLoggingConfig");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


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

[apiInstance servingServiceUpdateInferenceLoggingConfigWith:servingV1UpdateInferenceLoggingConfigRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var servingV1UpdateInferenceLoggingConfigRequest = ; // {ServingV1UpdateInferenceLoggingConfigRequest} 

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

namespace Example
{
    public class servingServiceUpdateInferenceLoggingConfigExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var servingV1UpdateInferenceLoggingConfigRequest = new ServingV1UpdateInferenceLoggingConfigRequest(); // ServingV1UpdateInferenceLoggingConfigRequest | 

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

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$servingV1UpdateInferenceLoggingConfigRequest = ; // ServingV1UpdateInferenceLoggingConfigRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $servingV1UpdateInferenceLoggingConfigRequest = WWW::OPenAPIClient::Object::ServingV1UpdateInferenceLoggingConfigRequest->new(); # ServingV1UpdateInferenceLoggingConfigRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateInferenceLoggingConfig(servingV1UpdateInferenceLoggingConfigRequest => $servingV1UpdateInferenceLoggingConfigRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateInferenceLoggingConfig: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
servingV1UpdateInferenceLoggingConfigRequest =  # ServingV1UpdateInferenceLoggingConfigRequest | 

try:
    api_response = api_instance.serving_service_update_inference_logging_config(servingV1UpdateInferenceLoggingConfigRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateInferenceLoggingConfig: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let servingV1UpdateInferenceLoggingConfigRequest = ; // ServingV1UpdateInferenceLoggingConfigRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateInferenceLoggingConfig(servingV1UpdateInferenceLoggingConfigRequest, &context).wait();

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

Scopes

Parameters

Body parameters
Name Description
servingV1UpdateInferenceLoggingConfigRequest *

Responses


servingServiceUpdateModelRoute

Update the fields of an AI Gateway ModelRoute named in update_mask.


/api/v1/ai-gateway/model-routes/{id}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/model-routes/{id}" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateModelRouteRequest servingV1UpdateModelRouteRequest = ; // ServingV1UpdateModelRouteRequest | 

        try {
            serving.v1.UpdateModelRouteResponse result = apiInstance.servingServiceUpdateModelRoute(id, servingV1UpdateModelRouteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateModelRoute");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | id, `k8s::`, from the URL path. Not updatable.
final ServingV1UpdateModelRouteRequest servingV1UpdateModelRouteRequest = new ServingV1UpdateModelRouteRequest(); // ServingV1UpdateModelRouteRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
        ServingV1UpdateModelRouteRequest servingV1UpdateModelRouteRequest = ; // ServingV1UpdateModelRouteRequest | 

        try {
            serving.v1.UpdateModelRouteResponse result = apiInstance.servingServiceUpdateModelRoute(id, servingV1UpdateModelRouteRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdateModelRoute");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *id = id_example; // id, `k8s::`, from the URL path. Not updatable. (default to null)
ServingV1UpdateModelRouteRequest *servingV1UpdateModelRouteRequest = ; // 

[apiInstance servingServiceUpdateModelRouteWith:id
    servingV1UpdateModelRouteRequest:servingV1UpdateModelRouteRequest
              completionHandler: ^(serving.v1.UpdateModelRouteResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var id = id_example; // {String} id, `k8s::`, from the URL path. Not updatable.
var servingV1UpdateModelRouteRequest = ; // {ServingV1UpdateModelRouteRequest} 

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

namespace Example
{
    public class servingServiceUpdateModelRouteExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var id = id_example;  // String | id, `k8s::`, from the URL path. Not updatable. (default to null)
            var servingV1UpdateModelRouteRequest = new ServingV1UpdateModelRouteRequest(); // ServingV1UpdateModelRouteRequest | 

            try {
                serving.v1.UpdateModelRouteResponse result = apiInstance.servingServiceUpdateModelRoute(id, servingV1UpdateModelRouteRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceUpdateModelRoute: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$id = id_example; // String | id, `k8s::`, from the URL path. Not updatable.
$servingV1UpdateModelRouteRequest = ; // ServingV1UpdateModelRouteRequest | 

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

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $id = id_example; # String | id, `k8s::`, from the URL path. Not updatable.
my $servingV1UpdateModelRouteRequest = WWW::OPenAPIClient::Object::ServingV1UpdateModelRouteRequest->new(); # ServingV1UpdateModelRouteRequest | 

eval {
    my $result = $api_instance->servingServiceUpdateModelRoute(id => $id, servingV1UpdateModelRouteRequest => $servingV1UpdateModelRouteRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdateModelRoute: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
id = id_example # String | id, `k8s::`, from the URL path. Not updatable. (default to null)
servingV1UpdateModelRouteRequest =  # ServingV1UpdateModelRouteRequest | 

try:
    api_response = api_instance.serving_service_update_model_route(id, servingV1UpdateModelRouteRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdateModelRoute: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let id = id_example; // String
    let servingV1UpdateModelRouteRequest = ; // ServingV1UpdateModelRouteRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdateModelRoute(id, servingV1UpdateModelRouteRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
id*
String
id, `k8s:<namespace>:<name>`, from the URL path. Not updatable.
Required
Body parameters
Name Description
servingV1UpdateModelRouteRequest *

Responses


servingServiceUpdatePrincipal

Update the fields of an AI Gateway Principal named in update_mask.


/api/v1/ai-gateway/principals/{name}

Usage and SDK Samples

curl -X PATCH \
-H "Authorization: [[apiKey]]" \
 -H "Accept: application/json,application/yaml" \
 -H "Content-Type: application/json,application/yaml" \
 "http://localhost/api/v1/ai-gateway/principals/{name}" \
 -d 'Custom MIME type example not yet supported: application/yaml'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ServingServiceApi;

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

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();

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

        // Create an instance of the API class
        ServingServiceApi apiInstance = new ServingServiceApi();
        String name = name_example; // String | name is the Principal's identifier, from the URL path. Not updatable.
        ServingV1UpdatePrincipalRequest servingV1UpdatePrincipalRequest = ; // ServingV1UpdatePrincipalRequest | 

        try {
            serving.v1.UpdatePrincipalResponse result = apiInstance.servingServiceUpdatePrincipal(name, servingV1UpdatePrincipalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdatePrincipal");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String name = new String(); // String | name is the Principal's identifier, from the URL path. Not updatable.
final ServingV1UpdatePrincipalRequest servingV1UpdatePrincipalRequest = new ServingV1UpdatePrincipalRequest(); // ServingV1UpdatePrincipalRequest | 

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

import org.openapitools.client.api.ServingServiceApi;

public class ServingServiceApiExample {
    public static void main(String[] args) {
        ServingServiceApi apiInstance = new ServingServiceApi();
        String name = name_example; // String | name is the Principal's identifier, from the URL path. Not updatable.
        ServingV1UpdatePrincipalRequest servingV1UpdatePrincipalRequest = ; // ServingV1UpdatePrincipalRequest | 

        try {
            serving.v1.UpdatePrincipalResponse result = apiInstance.servingServiceUpdatePrincipal(name, servingV1UpdatePrincipalRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ServingServiceApi#servingServiceUpdatePrincipal");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];


// Create an instance of the API class
ServingServiceApi *apiInstance = [[ServingServiceApi alloc] init];
String *name = name_example; // name is the Principal's identifier, from the URL path. Not updatable. (default to null)
ServingV1UpdatePrincipalRequest *servingV1UpdatePrincipalRequest = ; // 

[apiInstance servingServiceUpdatePrincipalWith:name
    servingV1UpdatePrincipalRequest:servingV1UpdatePrincipalRequest
              completionHandler: ^(serving.v1.UpdatePrincipalResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var ClouderaAiGatewayAndInference = require('cloudera_ai_gateway_and_inference');
var defaultClient = ClouderaAiGatewayAndInference.ApiClient.instance;

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

// Create an instance of the API class
var api = new ClouderaAiGatewayAndInference.ServingServiceApi()
var name = name_example; // {String} name is the Principal's identifier, from the URL path. Not updatable.
var servingV1UpdatePrincipalRequest = ; // {ServingV1UpdatePrincipalRequest} 

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

namespace Example
{
    public class servingServiceUpdatePrincipalExample
    {
        public void main()
        {
            // Configure API key authorization: bearer
            Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");

            // Create an instance of the API class
            var apiInstance = new ServingServiceApi();
            var name = name_example;  // String | name is the Principal's identifier, from the URL path. Not updatable. (default to null)
            var servingV1UpdatePrincipalRequest = new ServingV1UpdatePrincipalRequest(); // ServingV1UpdatePrincipalRequest | 

            try {
                serving.v1.UpdatePrincipalResponse result = apiInstance.servingServiceUpdatePrincipal(name, servingV1UpdatePrincipalRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ServingServiceApi.servingServiceUpdatePrincipal: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

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

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServingServiceApi();
$name = name_example; // String | name is the Principal's identifier, from the URL path. Not updatable.
$servingV1UpdatePrincipalRequest = ; // ServingV1UpdatePrincipalRequest | 

try {
    $result = $api_instance->servingServiceUpdatePrincipal($name, $servingV1UpdatePrincipalRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ServingServiceApi->servingServiceUpdatePrincipal: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ServingServiceApi;

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

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServingServiceApi->new();
my $name = name_example; # String | name is the Principal's identifier, from the URL path. Not updatable.
my $servingV1UpdatePrincipalRequest = WWW::OPenAPIClient::Object::ServingV1UpdatePrincipalRequest->new(); # ServingV1UpdatePrincipalRequest | 

eval {
    my $result = $api_instance->servingServiceUpdatePrincipal(name => $name, servingV1UpdatePrincipalRequest => $servingV1UpdatePrincipalRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ServingServiceApi->servingServiceUpdatePrincipal: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

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

# Create an instance of the API class
api_instance = openapi_client.ServingServiceApi()
name = name_example # String | name is the Principal's identifier, from the URL path. Not updatable. (default to null)
servingV1UpdatePrincipalRequest =  # ServingV1UpdatePrincipalRequest | 

try:
    api_response = api_instance.serving_service_update_principal(name, servingV1UpdatePrincipalRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ServingServiceApi->servingServiceUpdatePrincipal: %s\n" % e)
extern crate ServingServiceApi;

pub fn main() {
    let name = name_example; // String
    let servingV1UpdatePrincipalRequest = ; // ServingV1UpdatePrincipalRequest

    let mut context = ServingServiceApi::Context::default();
    let result = client.servingServiceUpdatePrincipal(name, servingV1UpdatePrincipalRequest, &context).wait();

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

Scopes

Parameters

Path parameters
Name Description
name*
String
name is the Principal's identifier, from the URL path. Not updatable.
Required
Body parameters
Name Description
servingV1UpdatePrincipalRequest *

Responses