Cloudera Documentation

AWC Diagnostics Service API

Collection

collectDiagnostics

Start diagnostic collection

Initiates a new diagnostic collection process. This creates a collection job that gathers logs and diagnostics from specified namespaces and pods. The collection process runs asynchronously. Use the status endpoint to monitor progress. There is one current collection: each collect replaces the previous one, and the download builds its bundle from whichever collection is current. Pass the returned `collection_id` to the download so that it fails with 409 instead of serving a collection that replaced this one.


/api/v1/diagnostics/collect

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/collect" \
 -d '{
  "live_resource_filters" : [ {
    "environment" : "production",
    "workload_type" : "deployment",
    "workload_list" : [ "api-service" ]
  }, {
    "environment" : "production",
    "workload_type" : "deployment",
    "workload_list" : [ "api-service" ]
  } ],
  "end_timestamp" : "2025-02-10T23:59:59Z",
  "start_timestamp" : "2025-02-10T00:00:00Z",
  "archive_resource_filters" : [ {
    "pod_list" : [ "executor-1", "driver-1" ],
    "environment" : "production",
    "namespace_list" : [ "spark-jobs", "cdp-system" ]
  }, {
    "pod_list" : [ "executor-1", "driver-1" ],
    "environment" : "production",
    "namespace_list" : [ "spark-jobs", "cdp-system" ]
  } ],
  "bundle_size" : 500,
  "type" : "full",
  "environment_filters" : [ {
    "environment" : "production"
  }, {
    "environment" : "production"
  } ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.CollectionApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        CollectionApi apiInstance = new CollectionApi();
        CollectRequest collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // CollectRequest | 

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

final api_instance = DefaultApi();

final CollectRequest collectRequest = new CollectRequest(); // CollectRequest | 

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

import org.openapitools.client.api.CollectionApi;

public class CollectionApiExample {
    public static void main(String[] args) {
        CollectionApi apiInstance = new CollectionApi();
        CollectRequest collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // CollectRequest | 

        try {
            CollectResponse result = apiInstance.collectDiagnostics(collectRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling CollectionApi#collectDiagnostics");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
CollectionApi *apiInstance = [[CollectionApi alloc] init];
CollectRequest *collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // 

// Start diagnostic collection
[apiInstance collectDiagnosticsWith:collectRequest
              completionHandler: ^(CollectResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.CollectionApi()
var collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // {CollectRequest} 

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

namespace Example
{
    public class collectDiagnosticsExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new CollectionApi();
            var collectRequest = new CollectRequest(); // CollectRequest | 

            try {
                // Start diagnostic collection
                CollectResponse result = apiInstance.collectDiagnostics(collectRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling CollectionApi.collectDiagnostics: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\CollectionApi();
$collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // CollectRequest | 

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.CollectionApi()
collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"} # CollectRequest | 

try:
    # Start diagnostic collection
    api_response = api_instance.collect_diagnostics(collectRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CollectionApi->collectDiagnostics: %s\n" % e)
extern crate CollectionApi;

pub fn main() {
    let collectRequest = {"type":"full","bundle_size":500,"start_timestamp":"2025-02-10T00:00:00Z","end_timestamp":"2025-02-10T23:59:59Z"}; // CollectRequest

    let mut context = CollectionApi::Context::default();
    let result = client.collectDiagnostics(collectRequest, &context).wait();

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

Scopes

manage_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
collectRequest *

Responses


Download

downloadDiagnosticsBundle

Download diagnostic bundle (GET)

Downloads the collected diagnostic bundle as a compressed TAR archive. The bundle is streamed with LZ4 compression for efficient transfer. This endpoint supports distributed download across multiple service replicas for improved performance. Serves the current collection (tracked in the collection ConfigMap). With `collection_id`, the download fails with 409 if a later collect replaced that collection. With no collection recorded, it serves every namespace for the last 7 days. Log retention is governed server-side by the LOG_RETENTION_DAYS setting, not per request.


/api/v1/diagnostics/download

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/x-lz4,application/problem+json" \
 "/api/v1/diagnostics/api/v1/diagnostics/download?collection_id=1a2b3c4d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DownloadApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        DownloadApi apiInstance = new DownloadApi();
        String collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

final api_instance = DefaultApi();

final String collectionId = new String(); // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

import org.openapitools.client.api.DownloadApi;

public class DownloadApiExample {
    public static void main(String[] args) {
        DownloadApi apiInstance = new DownloadApi();
        String collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


        try {
            File result = apiInstance.downloadDiagnosticsBundle(collectionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DownloadApi#downloadDiagnosticsBundle");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
DownloadApi *apiInstance = [[DownloadApi alloc] init];
String *collectionId = 1a2b3c4d; // The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional) (default to null)

// Download diagnostic bundle (GET)
[apiInstance downloadDiagnosticsBundleWith:collectionId
              completionHandler: ^(File output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.DownloadApi()
var opts = {
  'collectionId': 1a2b3c4d // {String} The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.

};

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

namespace Example
{
    public class downloadDiagnosticsBundleExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new DownloadApi();
            var collectionId = 1a2b3c4d;  // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional)  (default to null)

            try {
                // Download diagnostic bundle (GET)
                File result = apiInstance.downloadDiagnosticsBundle(collectionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DownloadApi.downloadDiagnosticsBundle: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DownloadApi();
$collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DownloadApi->new();
my $collectionId = 1a2b3c4d; # String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.DownloadApi()
collectionId = 1a2b3c4d # String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional) (default to null)

try:
    # Download diagnostic bundle (GET)
    api_response = api_instance.download_diagnostics_bundle(collectionId=collectionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DownloadApi->downloadDiagnosticsBundle: %s\n" % e)
extern crate DownloadApi;

pub fn main() {
    let collectionId = 1a2b3c4d; // String

    let mut context = DownloadApi::Context::default();
    let result = client.downloadDiagnosticsBundle(collectionId, &context).wait();

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Query parameters
Name Description
collection_id
String
The `collection_id` returned by the collect. When the current collection is a different one, the download fails with 409; when no collection is recorded, it fails with 404. Omit it to serve whichever collection is current.

Responses

Name Type Format Description
Content-Disposition String Filename for the downloaded bundle
Content-Type String MIME type


downloadDiagnosticsBundlePost

Download diagnostic bundle (POST)

Alternative endpoint for downloading diagnostic bundles using POST. Functionally identical to the GET endpoint; takes no request body.


/api/v1/diagnostics/download

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/x-lz4,application/problem+json" \
 "/api/v1/diagnostics/api/v1/diagnostics/download?collection_id=1a2b3c4d"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DownloadApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        DownloadApi apiInstance = new DownloadApi();
        String collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

final api_instance = DefaultApi();

final String collectionId = new String(); // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

import org.openapitools.client.api.DownloadApi;

public class DownloadApiExample {
    public static void main(String[] args) {
        DownloadApi apiInstance = new DownloadApi();
        String collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


        try {
            File result = apiInstance.downloadDiagnosticsBundlePost(collectionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DownloadApi#downloadDiagnosticsBundlePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
DownloadApi *apiInstance = [[DownloadApi alloc] init];
String *collectionId = 1a2b3c4d; // The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional) (default to null)

// Download diagnostic bundle (POST)
[apiInstance downloadDiagnosticsBundlePostWith:collectionId
              completionHandler: ^(File output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.DownloadApi()
var opts = {
  'collectionId': 1a2b3c4d // {String} The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.

};

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

namespace Example
{
    public class downloadDiagnosticsBundlePostExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new DownloadApi();
            var collectionId = 1a2b3c4d;  // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional)  (default to null)

            try {
                // Download diagnostic bundle (POST)
                File result = apiInstance.downloadDiagnosticsBundlePost(collectionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DownloadApi.downloadDiagnosticsBundlePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DownloadApi();
$collectionId = 1a2b3c4d; // String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DownloadApi->new();
my $collectionId = 1a2b3c4d; # String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.


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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.DownloadApi()
collectionId = 1a2b3c4d # String | The `collection_id` returned by the collect. When the current collection
is a different one, the download fails with 409; when no collection is
recorded, it fails with 404. Omit it to serve whichever collection is
current.
 (optional) (default to null)

try:
    # Download diagnostic bundle (POST)
    api_response = api_instance.download_diagnostics_bundle_post(collectionId=collectionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DownloadApi->downloadDiagnosticsBundlePost: %s\n" % e)
extern crate DownloadApi;

pub fn main() {
    let collectionId = 1a2b3c4d; // String

    let mut context = DownloadApi::Context::default();
    let result = client.downloadDiagnosticsBundlePost(collectionId, &context).wait();

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Query parameters
Name Description
collection_id
String
The `collection_id` returned by the collect. When the current collection is a different one, the download fails with 409; when no collection is recorded, it fails with 404. Omit it to serve whichever collection is current.

Responses


downloadDiagnosticsFile

Download specific log file

Downloads a specific log file from a pod. Useful for viewing individual pod logs without downloading the entire diagnostic bundle. Each line is redacted with the current redaction rules.


/api/v1/diagnostics/download-file

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "/api/v1/diagnostics/api/v1/diagnostics/download-file?pod_name=spark-executor-1&namespace=spark-jobs&tail_lines=100"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DownloadApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        DownloadApi apiInstance = new DownloadApi();
        String podName = spark-executor-1; // String | Name of the pod
        String namespace = spark-jobs; // String | Kubernetes namespace. Defaults to "mcp-platform" when omitted.
        Integer tailLines = 100; // Integer | Number of log lines to return from the end

        try {
            DownloadFileResponse result = apiInstance.downloadDiagnosticsFile(podName, namespace, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DownloadApi#downloadDiagnosticsFile");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String podName = new String(); // String | Name of the pod
final String namespace = new String(); // String | Kubernetes namespace. Defaults to "mcp-platform" when omitted.
final Integer tailLines = new Integer(); // Integer | Number of log lines to return from the end

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

import org.openapitools.client.api.DownloadApi;

public class DownloadApiExample {
    public static void main(String[] args) {
        DownloadApi apiInstance = new DownloadApi();
        String podName = spark-executor-1; // String | Name of the pod
        String namespace = spark-jobs; // String | Kubernetes namespace. Defaults to "mcp-platform" when omitted.
        Integer tailLines = 100; // Integer | Number of log lines to return from the end

        try {
            DownloadFileResponse result = apiInstance.downloadDiagnosticsFile(podName, namespace, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DownloadApi#downloadDiagnosticsFile");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
DownloadApi *apiInstance = [[DownloadApi alloc] init];
String *podName = spark-executor-1; // Name of the pod (default to null)
String *namespace = spark-jobs; // Kubernetes namespace. Defaults to "mcp-platform" when omitted. (optional) (default to null)
Integer *tailLines = 100; // Number of log lines to return from the end (optional) (default to 100)

// Download specific log file
[apiInstance downloadDiagnosticsFileWith:podName
    namespace:namespace
    tailLines:tailLines
              completionHandler: ^(DownloadFileResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.DownloadApi()
var podName = spark-executor-1; // {String} Name of the pod
var opts = {
  'namespace': spark-jobs, // {String} Kubernetes namespace. Defaults to "mcp-platform" when omitted.
  'tailLines': 100 // {Integer} Number of log lines to return from the end
};

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

namespace Example
{
    public class downloadDiagnosticsFileExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new DownloadApi();
            var podName = spark-executor-1;  // String | Name of the pod (default to null)
            var namespace = spark-jobs;  // String | Kubernetes namespace. Defaults to "mcp-platform" when omitted. (optional)  (default to null)
            var tailLines = 100;  // Integer | Number of log lines to return from the end (optional)  (default to 100)

            try {
                // Download specific log file
                DownloadFileResponse result = apiInstance.downloadDiagnosticsFile(podName, namespace, tailLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling DownloadApi.downloadDiagnosticsFile: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DownloadApi();
$podName = spark-executor-1; // String | Name of the pod
$namespace = spark-jobs; // String | Kubernetes namespace. Defaults to "mcp-platform" when omitted.
$tailLines = 100; // Integer | Number of log lines to return from the end

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DownloadApi->new();
my $podName = spark-executor-1; # String | Name of the pod
my $namespace = spark-jobs; # String | Kubernetes namespace. Defaults to "mcp-platform" when omitted.
my $tailLines = 100; # Integer | Number of log lines to return from the end

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.DownloadApi()
podName = spark-executor-1 # String | Name of the pod (default to null)
namespace = spark-jobs # String | Kubernetes namespace. Defaults to "mcp-platform" when omitted. (optional) (default to null)
tailLines = 100 # Integer | Number of log lines to return from the end (optional) (default to 100)

try:
    # Download specific log file
    api_response = api_instance.download_diagnostics_file(podName, namespace=namespace, tailLines=tailLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DownloadApi->downloadDiagnosticsFile: %s\n" % e)
extern crate DownloadApi;

pub fn main() {
    let podName = spark-executor-1; // String
    let namespace = spark-jobs; // String
    let tailLines = 100; // Integer

    let mut context = DownloadApi::Context::default();
    let result = client.downloadDiagnosticsFile(podName, namespace, tailLines, &context).wait();

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Query parameters
Name Description
pod_name*
String
Name of the pod
Required
namespace
String
Kubernetes namespace. Defaults to "mcp-platform" when omitted.
tail_lines
Integer
Number of log lines to return from the end

Responses


Health

getHealth

Liveness check

Verify the service process is running.


/health

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "/api/v1/diagnostics/health"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.HealthApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.HealthApi;

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

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Liveness check
[apiInstance getHealthWithCompletionHandler: 
              ^(HealthResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

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

namespace Example
{
    public class getHealthExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // Liveness check
                HealthResponse result = apiInstance.getHealth();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling HealthApi.getHealth: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # Liveness check
    api_response = api_instance.get_health()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HealthApi->getHealth: %s\n" % e)
extern crate HealthApi;

pub fn main() {

    let mut context = HealthApi::Context::default();
    let result = client.getHealth(&context).wait();

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

Scopes

Parameters

Responses


getReady

Readiness check

Verify the service can handle requests (Kubernetes and storage healthy).


/ready

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "/api/v1/diagnostics/ready"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.HealthApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.HealthApi;

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

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Readiness check
[apiInstance getReadyWithCompletionHandler: 
              ^(ReadyResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

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

namespace Example
{
    public class getReadyExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // Readiness check
                ReadyResponse result = apiInstance.getReady();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling HealthApi.getReady: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # Readiness check
    api_response = api_instance.get_ready()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HealthApi->getReady: %s\n" % e)
extern crate HealthApi;

pub fn main() {

    let mut context = HealthApi::Context::default();
    let result = client.getReady(&context).wait();

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

Scopes

Parameters

Responses


getVersion

Service and API version


/version

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "/api/v1/diagnostics/version"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.HealthApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.HealthApi;

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

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Service and API version
[apiInstance getVersionWithCompletionHandler: 
              ^(VersionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

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

namespace Example
{
    public class getVersionExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // Service and API version
                VersionResponse result = apiInstance.getVersion();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling HealthApi.getVersion: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # Service and API version
    api_response = api_instance.get_version()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HealthApi->getVersion: %s\n" % e)
extern crate HealthApi;

pub fn main() {

    let mut context = HealthApi::Context::default();
    let result = client.getVersion(&context).wait();

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

Scopes

Parameters

Responses


Namespaces

listNamespaces

List Kubernetes namespaces

Returns a list of all Kubernetes namespaces in the cluster. Useful for discovering which namespaces are available for log collection.


/api/v1/diagnostics/list-namespaces

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/list-namespaces" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.NamespacesApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.NamespacesApi;

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

        try {
            ListNamespacesResponse result = apiInstance.listNamespaces(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling NamespacesApi#listNamespaces");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// List Kubernetes namespaces
[apiInstance listNamespacesWith:body
              completionHandler: ^(ListNamespacesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.NamespacesApi()
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.listNamespaces(body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listNamespacesExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // List Kubernetes namespaces
                ListNamespacesResponse result = apiInstance.listNamespaces(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling NamespacesApi.listNamespaces: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # List Kubernetes namespaces
    api_response = api_instance.list_namespaces(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling NamespacesApi->listNamespaces: %s\n" % e)
extern crate NamespacesApi;

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

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

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
body *

Responses


OTLP

ingestOtlpLogs

OTLP log ingestion

OpenTelemetry Protocol (OTLP) endpoint for real-time log ingestion. This endpoint accepts logs in OTLP format from OpenTelemetry collectors and applications. Logs are processed, optionally redacted, and written to the log storage. This is an external OpenTelemetry protocol contract; its request/response bodies are defined by the OTLP specification and are not restyled to the AWC property conventions.


/v1/logs

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/x-protobuf" \
 "/api/v1/diagnostics/v1/logs" \
 -d 'Custom MIME type example not yet supported: application/x-protobuf'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.OTLPApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        OTLPApi apiInstance = new OTLPApi();
        File body = BINARY_DATA_HERE; // File | 

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.OTLPApi;

public class OTLPApiExample {
    public static void main(String[] args) {
        OTLPApi apiInstance = new OTLPApi();
        File body = BINARY_DATA_HERE; // File | 

        try {
            OTLPLogsResponse result = apiInstance.ingestOtlpLogs(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling OTLPApi#ingestOtlpLogs");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
OTLPApi *apiInstance = [[OTLPApi alloc] init];
File *body = BINARY_DATA_HERE; // 

// OTLP log ingestion
[apiInstance ingestOtlpLogsWith:body
              completionHandler: ^(OTLPLogsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.OTLPApi()
var body = BINARY_DATA_HERE; // {File} 

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

namespace Example
{
    public class ingestOtlpLogsExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new OTLPApi();
            var body = BINARY_DATA_HERE;  // File | 

            try {
                // OTLP log ingestion
                OTLPLogsResponse result = apiInstance.ingestOtlpLogs(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling OTLPApi.ingestOtlpLogs: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.OTLPApi()
body = BINARY_DATA_HERE # File | 

try:
    # OTLP log ingestion
    api_response = api_instance.ingest_otlp_logs(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling OTLPApi->ingestOtlpLogs: %s\n" % e)
extern crate OTLPApi;

pub fn main() {
    let body = BINARY_DATA_HERE; // File

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

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

Scopes

Parameters

Body parameters
Name Description
body *

OTLP LogsData encoded as protobuf. The handler decodes protobuf only; JSON-encoded OTLP is not accepted on this HTTP path.

Responses


Redaction

createRedactionRule

Create redaction rule

Creates a new rule for redacting sensitive data from logs. Rules use regex patterns to find and replace sensitive information.


/api/v1/diagnostics/create-redaction-rule

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/create-redaction-rule" \
 -d '{
  "search" : "password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)",
  "case_sensitive" : false,
  "insertion_index" : 0,
  "replace" : "password=redacted",
  "description" : "Redact password fields",
  "trigger" : "password"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RedactionApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        RedactionApi apiInstance = new RedactionApi();
        CreateRedactionRuleRequest createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // CreateRedactionRuleRequest | 

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

final api_instance = DefaultApi();

final CreateRedactionRuleRequest createRedactionRuleRequest = new CreateRedactionRuleRequest(); // CreateRedactionRuleRequest | 

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

import org.openapitools.client.api.RedactionApi;

public class RedactionApiExample {
    public static void main(String[] args) {
        RedactionApi apiInstance = new RedactionApi();
        CreateRedactionRuleRequest createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // CreateRedactionRuleRequest | 

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

// Create an instance of the API class
RedactionApi *apiInstance = [[RedactionApi alloc] init];
CreateRedactionRuleRequest *createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // 

// Create redaction rule
[apiInstance createRedactionRuleWith:createRedactionRuleRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.RedactionApi()
var createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // {CreateRedactionRuleRequest} 

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

namespace Example
{
    public class createRedactionRuleExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new RedactionApi();
            var createRedactionRuleRequest = new CreateRedactionRuleRequest(); // CreateRedactionRuleRequest | 

            try {
                // Create redaction rule
                Object result = apiInstance.createRedactionRule(createRedactionRuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RedactionApi.createRedactionRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RedactionApi();
$createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // CreateRedactionRuleRequest | 

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.RedactionApi()
createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"} # CreateRedactionRuleRequest | 

try:
    # Create redaction rule
    api_response = api_instance.create_redaction_rule(createRedactionRuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RedactionApi->createRedactionRule: %s\n" % e)
extern crate RedactionApi;

pub fn main() {
    let createRedactionRuleRequest = {"description":"Redact password fields","search":"password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)","case_sensitive":false,"replace":"password=redacted","insertion_index":0,"trigger":"password"}; // CreateRedactionRuleRequest

    let mut context = RedactionApi::Context::default();
    let result = client.createRedactionRule(createRedactionRuleRequest, &context).wait();

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

Scopes

manage_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
createRedactionRuleRequest *

Responses


deleteRedactionRule

Delete redaction rule

Deletes a redaction rule at the specified index.


/api/v1/diagnostics/delete-redaction-rule

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/delete-redaction-rule" \
 -d '{
  "index" : 0
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RedactionApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        RedactionApi apiInstance = new RedactionApi();
        DeleteRedactionRuleRequest deleteRedactionRuleRequest = ; // DeleteRedactionRuleRequest | 

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

final api_instance = DefaultApi();

final DeleteRedactionRuleRequest deleteRedactionRuleRequest = new DeleteRedactionRuleRequest(); // DeleteRedactionRuleRequest | 

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

import org.openapitools.client.api.RedactionApi;

public class RedactionApiExample {
    public static void main(String[] args) {
        RedactionApi apiInstance = new RedactionApi();
        DeleteRedactionRuleRequest deleteRedactionRuleRequest = ; // DeleteRedactionRuleRequest | 

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Delete redaction rule
[apiInstance deleteRedactionRuleWith:deleteRedactionRuleRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.RedactionApi()
var deleteRedactionRuleRequest = ; // {DeleteRedactionRuleRequest} 

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

namespace Example
{
    public class deleteRedactionRuleExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new RedactionApi();
            var deleteRedactionRuleRequest = new DeleteRedactionRuleRequest(); // DeleteRedactionRuleRequest | 

            try {
                // Delete redaction rule
                Object result = apiInstance.deleteRedactionRule(deleteRedactionRuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RedactionApi.deleteRedactionRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RedactionApi();
$deleteRedactionRuleRequest = ; // DeleteRedactionRuleRequest | 

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.RedactionApi()
deleteRedactionRuleRequest =  # DeleteRedactionRuleRequest | 

try:
    # Delete redaction rule
    api_response = api_instance.delete_redaction_rule(deleteRedactionRuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RedactionApi->deleteRedactionRule: %s\n" % e)
extern crate RedactionApi;

pub fn main() {
    let deleteRedactionRuleRequest = ; // DeleteRedactionRuleRequest

    let mut context = RedactionApi::Context::default();
    let result = client.deleteRedactionRule(deleteRedactionRuleRequest, &context).wait();

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

Scopes

manage_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
deleteRedactionRuleRequest *

Responses


listRedactionRules

List all redaction rules

Returns all configured redaction rules.


/api/v1/diagnostics/list-redaction-rules

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/list-redaction-rules" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RedactionApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.RedactionApi;

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

        try {
            ListRedactionRulesResponse result = apiInstance.listRedactionRules(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling RedactionApi#listRedactionRules");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// List all redaction rules
[apiInstance listRedactionRulesWith:body
              completionHandler: ^(ListRedactionRulesResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.RedactionApi()
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.listRedactionRules(body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listRedactionRulesExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // List all redaction rules
                ListRedactionRulesResponse result = apiInstance.listRedactionRules(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RedactionApi.listRedactionRules: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # List all redaction rules
    api_response = api_instance.list_redaction_rules(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RedactionApi->listRedactionRules: %s\n" % e)
extern crate RedactionApi;

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

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

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
body *

Responses


updateRedactionRule

Update redaction rule

Updates an existing redaction rule at the specified index.


/api/v1/diagnostics/update-redaction-rule

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/update-redaction-rule" \
 -d '{
  "search" : "password[\"']?\\s*[:=]\\s*[\"']?([^\"'\\s,}]+)",
  "case_sensitive" : false,
  "replace" : "password=redacted",
  "index" : 0,
  "description" : "Redact password fields",
  "trigger" : "password"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.RedactionApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

        // Create an instance of the API class
        RedactionApi apiInstance = new RedactionApi();
        UpdateRedactionRuleRequest updateRedactionRuleRequest = ; // UpdateRedactionRuleRequest | 

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

final api_instance = DefaultApi();

final UpdateRedactionRuleRequest updateRedactionRuleRequest = new UpdateRedactionRuleRequest(); // UpdateRedactionRuleRequest | 

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

import org.openapitools.client.api.RedactionApi;

public class RedactionApiExample {
    public static void main(String[] args) {
        RedactionApi apiInstance = new RedactionApi();
        UpdateRedactionRuleRequest updateRedactionRuleRequest = ; // UpdateRedactionRuleRequest | 

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Update redaction rule
[apiInstance updateRedactionRuleWith:updateRedactionRuleRequest
              completionHandler: ^(Object output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.RedactionApi()
var updateRedactionRuleRequest = ; // {UpdateRedactionRuleRequest} 

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

namespace Example
{
    public class updateRedactionRuleExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            // Create an instance of the API class
            var apiInstance = new RedactionApi();
            var updateRedactionRuleRequest = new UpdateRedactionRuleRequest(); // UpdateRedactionRuleRequest | 

            try {
                // Update redaction rule
                Object result = apiInstance.updateRedactionRule(updateRedactionRuleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling RedactionApi.updateRedactionRule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\RedactionApi();
$updateRedactionRuleRequest = ; // UpdateRedactionRuleRequest | 

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Create an instance of the API class
api_instance = openapi_client.RedactionApi()
updateRedactionRuleRequest =  # UpdateRedactionRuleRequest | 

try:
    # Update redaction rule
    api_response = api_instance.update_redaction_rule(updateRedactionRuleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RedactionApi->updateRedactionRule: %s\n" % e)
extern crate RedactionApi;

pub fn main() {
    let updateRedactionRuleRequest = ; // UpdateRedactionRuleRequest

    let mut context = RedactionApi::Context::default();
    let result = client.updateRedactionRule(updateRedactionRuleRequest, &context).wait();

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

Scopes

manage_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
updateRedactionRuleRequest *

Responses


Status

getDiagnosticsStatus

Get collection status (GET)

Returns the current status of the diagnostic collection process. This endpoint provides the same functionality as the POST version but without requiring a request body.


/api/v1/diagnostics/status

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "/api/v1/diagnostics/api/v1/diagnostics/status"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatusApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.StatusApi;

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

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

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Get collection status (GET)
[apiInstance getDiagnosticsStatusWithCompletionHandler: 
              ^(StatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

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

namespace Example
{
    public class getDiagnosticsStatusExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // Get collection status (GET)
                StatusResponse result = apiInstance.getDiagnosticsStatus();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatusApi.getDiagnosticsStatus: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # Get collection status (GET)
    api_response = api_instance.get_diagnostics_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatusApi->getDiagnosticsStatus: %s\n" % e)
extern crate StatusApi;

pub fn main() {

    let mut context = StatusApi::Context::default();
    let result = client.getDiagnosticsStatus(&context).wait();

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Responses


getDiagnosticsStatusPost

Get collection status (POST)

Returns the current status of the diagnostic collection process. Accepts an empty JSON object as the request body.


/api/v1/diagnostics/status

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "/api/v1/diagnostics/api/v1/diagnostics/status" \
 -d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StatusApi;

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

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

        // Configure Bearer (JWT) access token for authorization: JwtAuthentication
        HttpBearerAuth JwtAuthentication = (HttpBearerAuth) defaultClient.getAuthentication("JwtAuthentication");
        JwtAuthentication.setBearerToken("BEARER TOKEN");

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

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

final api_instance = DefaultApi();

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

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

import org.openapitools.client.api.StatusApi;

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

        try {
            StatusResponse result = apiInstance.getDiagnosticsStatusPost(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StatusApi#getDiagnosticsStatusPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

// Get collection status (POST)
[apiInstance getDiagnosticsStatusPostWith:body
              completionHandler: ^(StatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AwcDiagnosticsServiceApi = require('awc_diagnostics_service_api');
var defaultClient = AwcDiagnosticsServiceApi.ApiClient.instance;

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
var JwtAuthentication = defaultClient.authentications['JwtAuthentication'];
JwtAuthentication.accessToken = "YOUR ACCESS TOKEN";

// Create an instance of the API class
var api = new AwcDiagnosticsServiceApi.StatusApi()
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.getDiagnosticsStatusPost(body, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getDiagnosticsStatusPostExample
    {
        public void main()
        {
            // Configure Bearer (JWT) access token for authorization: JwtAuthentication
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

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

            try {
                // Get collection status (POST)
                StatusResponse result = apiInstance.getDiagnosticsStatusPost(body);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StatusApi.getDiagnosticsStatusPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure Bearer (JWT) access token for authorization: JwtAuthentication
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('', 'YOUR_ACCESS_TOKEN');

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

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

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

# Configure Bearer (JWT) access token for authorization: JwtAuthentication
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

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

try:
    # Get collection status (POST)
    api_response = api_instance.get_diagnostics_status_post(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StatusApi->getDiagnosticsStatusPost: %s\n" % e)
extern crate StatusApi;

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

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

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

Scopes

view_settings HTTP Authorization Bearer header using a JWT

Parameters

Body parameters
Name Description
body *

Responses