Cloudera Documentation

Anywhere Cloud Console API

BlueprintDeployments

createBlueprintDeployment

Deploy a blueprint onto a new or existing cluster

Deploys the selected blueprint version onto a new cluster (the default) or an existing cluster selected with `deploy_target=existing_cluster`. A `deploy_target` other than `new_cluster` or `existing_cluster` returns `400 VALIDATION_ERROR`; omitting it selects `new_cluster`. Existing-cluster deployment requires an ace-hub RemoteCluster registration before accepting work. Each exclusiveFor node group of the tier gets a new, dedicated node pool, reserved for this deployment, on both flows; its nodes come from the entries in `cluster_config.worker_node_groups` named after the group. On both flows, a required exclusive group with no entry returns 400 EXCLUSIVE_NODE_GROUP_REQUIRED before anything is provisioned. On both flows, storage choices the engine versions' declared slots do not allow also return 400 before anything is provisioned (codes listed on `s3_storage`), and so do log routing choices the declared log streams do not allow (codes listed on `telemetry`). On an existing cluster, an entry for any other group returns 400 EXCLUSIVE_PLACEMENT_UNSUPPORTED, and a workload kubeconfig that cannot list nodes, or a Cloud Factory project that is not Ready (another node add, upgrade or repair is running, its last action failed, or it is being deleted), or another deployment is adding nodes to the cluster, returns 409 CLUSTER_NOT_READY (`dry_run=true` does not check for another deployment adding nodes). The pool's nodes are added and must all be Ready before the engines are deployed. An engine can require a cluster capability (`gvisor`, the gVisor sandbox runtime; `custom-metrics`, custom.metrics.k8s.io from prometheus-adapter; `vpa`, the Vertical Pod Autoscaler; `knative-serving`, Knative Serving with net-istio; `kserve`, KServe on Knative; `envoy-gateway`, Envoy Gateway with the platform Gateway `serving-gateway`; `envoy-ai-gateway`, the Envoy AI Gateway on Envoy Gateway; declared by the engine's `ecosystem.awc.cloudera.com/required-cluster-capabilities` annotation). `gvisor` comes from the cluster's Cloudera Cloud Factory Kubernetes profile: a new cluster is created with it, and an existing cluster that lacks it returns 409 CLUSTER_CAPABILITY_MISSING, because the profile is fixed when the cluster is created. `custom-metrics`, `vpa`, `knative-serving`, `kserve`, `envoy-gateway` and `envoy-ai-gateway` are installed by Anywhere Cloud, so a deploy onto an existing cluster that lacks one enables it on that cluster and waits for it. A deploy that needs `knative-serving`, `kserve`, `envoy-gateway` or `envoy-ai-gateway` on a cluster that already runs a copy of those controllers that Anywhere Cloud did not install fails. On both flows, an exclusive node group whose id cannot be used in a Kubernetes label value returns 400 INVALID_BLUEPRINT. On both flows, node group entries are checked against the hardware tier's node groups before anything is provisioned: on a new cluster every `master_node_groups` and `worker_node_groups` entry named after a node group of the tier, on an existing cluster every entry (the nodes to add). Per entry, the flavor must exist in the cloud credential and have at least the node group's minimum CPU and memory, a node group that requires a GPU needs a flavor Cloudera Cloud Factory reports as GPU (`gpu` on the flavors list; a GPU flavor on a node group that does not require one is accepted), and `disk_size` must meet the node group's disk minimum. Memory and disk minimums are rounded up to whole GiB, the unit of `disk_size` and of flavor memory. The node counts of a node group's entries are summed and must meet its minimum node count. A new cluster also needs an entry for every mandatory master and worker node group, and the flavors of its bastion and custom groups must exist. A violation returns 400 VALIDATION_ERROR with the first problem as `detail`; `dry_run=true` lists every problem in `errors`. On both flows, an entry for an exclusive node group whose instances are all reused (`reused_engines`, including an instance reused because a reused engine is wired to it) also returns 400 VALIDATION_ERROR: those engines keep the nodes they run on, so the entry would add nodes nothing uses. An unknown `blueprint_version_id` returns `404 BLUEPRINT_VERSION_NOT_FOUND` on both flows, as `GET /blueprints/{blueprint_id}/versions/{blueprint_version_id}` does; with `dry_run=true` it is reported as `valid: false` instead. An `existing_cluster` deploy also returns 404 for an unknown `target_cluster_id` (`CLUSTER_NOT_FOUND`) or reused engine deployment (`ENGINE_DEPLOYMENT_NOT_FOUND`). A blueprint version whose `requires_dedicated_cluster` is true declares an instance of a privileged engine, exempt from the strict ACE RBAC platform-write gate. Such a version deploys only with `new_cluster`; `existing_cluster` returns 400 DEDICATED_CLUSTER_REQUIRED. The cluster the new-cluster flow creates for it is marked `dedicated` and installs a reduced set of admission policies, so any later deployment onto that cluster returns 409 CLUSTER_DEDICATED. The mark is never cleared, so it stays true after the blueprint deployment is deleted, and the cluster must be deleted to be reclaimed — a retry of the same privileged engine is refused too. A blueprint whose instances on this cluster mix a privileged engine with an ordinary one returns 400 MIXED_PRIVILEGED_BLUEPRINT: the two cannot share a cluster, because the reduced policy set would leave the ordinary engine unguarded. Reuse the ordinary engines from another cluster, or deploy them separately. Instances listed in `reused_engines` run elsewhere and are not counted. Returns `202 Accepted` after synchronous preflight and staging; provisioning (for new clusters) and hub submission proceed asynchronously. Track progress via `GET /api/v1/console/blueprint-deployments/events` (SSE). Pass `dry_run=true` to run pre-flight checks (e.g. the node group checks, OpenStack quota) without persisting or creating any resources; the response reports validity and any errors and nothing is persisted. Existing-cluster dry-run shares deploy's blueprint/digest, engine-version, name, placement, registration, config preparation, and capacity checks. Infrastructure failures return safe 5xx problems, not a valid/invalid result. A successful dry-run does not reserve a name or capacity. A new cluster's Kubernetes version is not chosen by the request or the blueprint. Anywhere Cloud installs the newest patch release of the minor it targets that Cloudera Cloud Factory offers. If Cloudera Cloud Factory offers no release of that minor, the deploy is rejected with `409 K8S_VERSION_REQUIRES_AWC_UPGRADE` (Cloudera Cloud Factory is ahead: upgrade Anywhere Cloud) or `409 K8S_VERSION_REQUIRES_CCF_UPGRADE` (Cloudera Cloud Factory is behind: upgrade Cloudera Cloud Factory). Resending an edited request cannot clear either. If Cloudera Cloud Factory's version list cannot be read, the deploy returns `502 CCF_CATALOG_UNAVAILABLE`; retry. A dry-run reports a version mismatch as a validation error (`valid: false`) and an unreadable list as the same 502. The same holds for the cloud credential's flavor list, which the node group checks need: on a new cluster, and on an existing cluster when entries add nodes, an unreadable flavor list returns `502 CCF_CATALOG_UNAVAILABLE` on deploy and dry-run alike. A new cluster's CCF DNS credential and certificate profile are the request's `dns_credential_id` / `certificate_profile_id`, or the console's platform default when omitted (`GET /api/v1/console/ccf-binding-defaults`). The effective binding is checked against the CCF catalogs on dry-run and create: an unusable one is `400 CCF_BINDING_INVALID` (a dry-run reports it as a validation error, naming a platform default as such), and unreadable catalogs are `502 CCF_CATALOG_UNAVAILABLE`; retry. The 202 body identifies one parent blueprint deployment. Each blueprint instance has a child engine deployment, listed via `GET /api/v1/console/engine-deployments`. Existing-cluster parent and child records are created atomically before owned config Secrets are staged. A failed submission remains visible; a lost CR write response stays deploying while its outcome is uncertain and its resources are retained.


/api/v1/console/blueprint-deployments

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/blueprint-deployments?dry_run=false" \
 -d '{
  "cloudera_saas_observability" : {
    "metric_endpoint" : "https://receive.api.monitoring.us-west-1.cdp.cloudera.com",
    "access_key" : "3b1c4f2e-0000-4000-8000-000000000000",
    "private_key" : "YXdjLWV4YW1wbGUtZWQyNTUxOS1zZWVkLTMyYnl0ZXM=",
    "region" : "us",
    "databus_endpoint" : "https://dbusapi.us-west-1.sigma.altus.cloudera.com",
    "enabled" : false
  },
  "audit_export" : {
    "credentials" : [ {
      "key" : "access-key",
      "value" : "4f8a1c9e2b7d"
    } ],
    "config_yaml" : "config_yaml",
    "enabled" : true
  },
  "cluster_name" : "my-cai-cluster",
  "s3_storage" : {
    "cdx" : [ {
      "app_bucket" : "hms-prod",
      "names" : [ "warehouse" ],
      "permissions" : [ "read", "list" ]
    }, {
      "app_bucket" : "audit-trail",
      "names" : [ "logs" ],
      "permissions" : [ "write", "list" ]
    }, {
      "app_bucket" : "scratch-space",
      "permissions" : [ "read", "list" ]
    } ]
  },
  "compute_infrastructure" : "osc1-sjc",
  "ace_instance_info" : {
    "demo-monitoring-plugin" : {
      "metricsEnabled" : false,
      "retentionDays" : 14
    }
  },
  "telemetry_export" : {
    "enabled" : true,
    "config_yaml" : "metrics:\n  exporters:\n    - type: datadog\n      name: dd\n      config:\n        api:\n          site: datadoghq.com\n          key: ${secret:telemetry-export-creds:datadog-api-key}\nlogs:\n  exporters:\n    - type: otlphttp\n      config:\n        endpoint: https://otlp.vendor.example.com\n        headers:\n          authorization: Bearer ${secret:telemetry-export-creds:vendor-token}\n",
    "credentials" : [ {
      "key" : "datadog-api-key",
      "value" : "4f8a1c9e2b7d"
    }, {
      "key" : "vendor-token",
      "value" : "9d2e7b1a5c3f"
    } ]
  },
  "reused_engines" : [ {
    "instance_name" : "kafka",
    "engine_deployment_id" : 12
  }, {
    "instance_name" : "kafka",
    "engine_deployment_id" : 12
  } ],
  "enable_telemetry_export" : false,
  "dns_credential_id" : 36,
  "cluster_config" : {
    "bastion_node" : {
      "flavor" : "c04m04",
      "disk_size" : 100
    },
    "worker_node_groups" : [ {
      "flavor" : "c16m32",
      "name" : "master-primary",
      "count" : 2,
      "disk_size" : 300
    }, {
      "flavor" : "c16m32",
      "name" : "master-primary",
      "count" : 2,
      "disk_size" : 300
    } ],
    "master_node_groups" : [ {
      "flavor" : "c16m32",
      "name" : "master-primary",
      "count" : 2,
      "disk_size" : 300
    }, {
      "flavor" : "c16m32",
      "name" : "master-primary",
      "count" : 2,
      "disk_size" : 300
    } ]
  },
  "certificate_profile_id" : 7,
  "name" : "my-cai-exp",
  "blueprint_version_id" : 10,
  "cloud_credential_id" : 392,
  "telemetry" : {
    "cdx" : {
      "default_app_bucket" : "audit-trail",
      "bindings" : [ {
        "stream" : "spark-driver",
        "app_bucket" : "driver-logs"
      } ]
    }
  },
  "cidr" : "10.0.0.0/16",
  "engine_versions" : {
    "cdx" : "1.0.0"
  },
  "hardware_tier" : "default",
  "deploy_target" : "existing_cluster",
  "target_cluster_id" : "cluster-006"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlueprintDeploymentsApi;

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

public class BlueprintDeploymentsApiExample {
    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
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        CreateBlueprintDeploymentRequest createBlueprintDeploymentRequest = ; // CreateBlueprintDeploymentRequest | 
        Boolean dryRun = false; // Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.


        try {
            DryRunResult result = apiInstance.createBlueprintDeployment(createBlueprintDeploymentRequest, dryRun);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlueprintDeploymentsApi#createBlueprintDeployment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final CreateBlueprintDeploymentRequest createBlueprintDeploymentRequest = new CreateBlueprintDeploymentRequest(); // CreateBlueprintDeploymentRequest | 
final Boolean dryRun = new Boolean(); // Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.


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

import org.openapitools.client.api.BlueprintDeploymentsApi;

public class BlueprintDeploymentsApiExample {
    public static void main(String[] args) {
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        CreateBlueprintDeploymentRequest createBlueprintDeploymentRequest = ; // CreateBlueprintDeploymentRequest | 
        Boolean dryRun = false; // Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.


        try {
            DryRunResult result = apiInstance.createBlueprintDeployment(createBlueprintDeploymentRequest, dryRun);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlueprintDeploymentsApi#createBlueprintDeployment");
            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
BlueprintDeploymentsApi *apiInstance = [[BlueprintDeploymentsApi alloc] init];
CreateBlueprintDeploymentRequest *createBlueprintDeploymentRequest = ; // 
Boolean *dryRun = false; // When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.
 (optional) (default to null)

// Deploy a blueprint onto a new or existing cluster
[apiInstance createBlueprintDeploymentWith:createBlueprintDeploymentRequest
    dryRun:dryRun
              completionHandler: ^(DryRunResult output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.BlueprintDeploymentsApi()
var createBlueprintDeploymentRequest = ; // {CreateBlueprintDeploymentRequest} 
var opts = {
  'dryRun': false // {Boolean} When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.

};

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

namespace Example
{
    public class createBlueprintDeploymentExample
    {
        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 BlueprintDeploymentsApi();
            var createBlueprintDeploymentRequest = new CreateBlueprintDeploymentRequest(); // CreateBlueprintDeploymentRequest | 
            var dryRun = false;  // Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.
 (optional)  (default to null)

            try {
                // Deploy a blueprint onto a new or existing cluster
                DryRunResult result = apiInstance.createBlueprintDeployment(createBlueprintDeploymentRequest, dryRun);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlueprintDeploymentsApi.createBlueprintDeployment: " + 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\BlueprintDeploymentsApi();
$createBlueprintDeploymentRequest = ; // CreateBlueprintDeploymentRequest | 
$dryRun = false; // Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.


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

# 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::BlueprintDeploymentsApi->new();
my $createBlueprintDeploymentRequest = WWW::OPenAPIClient::Object::CreateBlueprintDeploymentRequest->new(); # CreateBlueprintDeploymentRequest | 
my $dryRun = false; # Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.


eval {
    my $result = $api_instance->createBlueprintDeployment(createBlueprintDeploymentRequest => $createBlueprintDeploymentRequest, dryRun => $dryRun);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlueprintDeploymentsApi->createBlueprintDeployment: $@\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.BlueprintDeploymentsApi()
createBlueprintDeploymentRequest =  # CreateBlueprintDeploymentRequest | 
dryRun = false # Boolean | When true, run the selected deploy mode's read-only preflight.
Returns `200` with a validation result instead of `202`, or a 5xx
problem if an infrastructure failure prevents validation.
 (optional) (default to null)

try:
    # Deploy a blueprint onto a new or existing cluster
    api_response = api_instance.create_blueprint_deployment(createBlueprintDeploymentRequest, dryRun=dryRun)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlueprintDeploymentsApi->createBlueprintDeployment: %s\n" % e)
extern crate BlueprintDeploymentsApi;

pub fn main() {
    let createBlueprintDeploymentRequest = ; // CreateBlueprintDeploymentRequest
    let dryRun = false; // Boolean

    let mut context = BlueprintDeploymentsApi::Context::default();
    let result = client.createBlueprintDeployment(createBlueprintDeploymentRequest, dryRun, &context).wait();

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

Scopes

manage_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Body parameters
Name Description
createBlueprintDeploymentRequest *

Query parameters
Name Description
dry_run
Boolean
When true, run the selected deploy mode's read-only preflight. Returns `200` with a validation result instead of `202`, or a 5xx problem if an infrastructure failure prevents validation.

Responses


listBlueprintDeployments

List all blueprint deployments (JSON snapshot)

Returns a JSON snapshot of all blueprint deployments (deployed blueprint instances) across all clusters. For real-time updates, use `GET /api/v1/console/blueprint-deployments/events` (SSE).


/api/v1/console/blueprint-deployments

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprint-deployments?status=deployed&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlueprintDeploymentsApi;

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

public class BlueprintDeploymentsApiExample {
    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
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        String status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listBlueprintDeployments_200_response result = apiInstance.listBlueprintDeployments(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlueprintDeploymentsApi#listBlueprintDeployments");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.BlueprintDeploymentsApi;

public class BlueprintDeploymentsApiExample {
    public static void main(String[] args) {
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        String status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listBlueprintDeployments_200_response result = apiInstance.listBlueprintDeployments(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlueprintDeploymentsApi#listBlueprintDeployments");
            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
BlueprintDeploymentsApi *apiInstance = [[BlueprintDeploymentsApi alloc] init];
String *status = deployed; // Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List all blueprint deployments (JSON snapshot)
[apiInstance listBlueprintDeploymentsWith:status
    limit:limit
    offset:offset
              completionHandler: ^(listBlueprintDeployments_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.BlueprintDeploymentsApi()
var opts = {
  'status': deployed, // {String} Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listBlueprintDeploymentsExample
    {
        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 BlueprintDeploymentsApi();
            var status = deployed;  // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List all blueprint deployments (JSON snapshot)
                listBlueprintDeployments_200_response result = apiInstance.listBlueprintDeployments(status, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlueprintDeploymentsApi.listBlueprintDeployments: " + 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\BlueprintDeploymentsApi();
$status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::BlueprintDeploymentsApi->new();
my $status = deployed; # String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listBlueprintDeployments(status => $status, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlueprintDeploymentsApi->listBlueprintDeployments: $@\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.BlueprintDeploymentsApi()
status = deployed # String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List all blueprint deployments (JSON snapshot)
    api_response = api_instance.list_blueprint_deployments(status=status, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlueprintDeploymentsApi->listBlueprintDeployments: %s\n" % e)
extern crate BlueprintDeploymentsApi;

pub fn main() {
    let status = deployed; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = BlueprintDeploymentsApi::Context::default();
    let result = client.listBlueprintDeployments(status, limit, offset, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by blueprint deployment status, as reported. `deleting` and `delete_failed` are cluster-derived: they appear when every live engine of the deployment runs on a cluster being deleted or whose deletion failed, and a deployment that keeps engines on another cluster matches `degraded` instead. The rows they cover stop matching `deployed`.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


streamBlueprintDeployments

Stream blueprint deployments (SSE)

Server-Sent Events (SSE) stream for real-time blueprint deployment updates. Initial data is sent immediately; further frames are sent only when the data changes (SHA-256 change detection). Keepalive comments (`: keepalive`) are sent every 30 seconds when idle. Accepts the same `status` filter as the JSON list endpoint.


/api/v1/console/blueprint-deployments/events

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: text/event-stream,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprint-deployments/events?status=deployed"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BlueprintDeploymentsApi;

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

public class BlueprintDeploymentsApiExample {
    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
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        String status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.


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

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.


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

import org.openapitools.client.api.BlueprintDeploymentsApi;

public class BlueprintDeploymentsApiExample {
    public static void main(String[] args) {
        BlueprintDeploymentsApi apiInstance = new BlueprintDeploymentsApi();
        String status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.


        try {
            'String' result = apiInstance.streamBlueprintDeployments(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling BlueprintDeploymentsApi#streamBlueprintDeployments");
            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
BlueprintDeploymentsApi *apiInstance = [[BlueprintDeploymentsApi alloc] init];
String *status = deployed; // Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional) (default to null)

// Stream blueprint deployments (SSE)
[apiInstance streamBlueprintDeploymentsWith:status
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.BlueprintDeploymentsApi()
var opts = {
  'status': deployed // {String} Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.

};

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

namespace Example
{
    public class streamBlueprintDeploymentsExample
    {
        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 BlueprintDeploymentsApi();
            var status = deployed;  // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional)  (default to null)

            try {
                // Stream blueprint deployments (SSE)
                'String' result = apiInstance.streamBlueprintDeployments(status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling BlueprintDeploymentsApi.streamBlueprintDeployments: " + 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\BlueprintDeploymentsApi();
$status = deployed; // String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.


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

# 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::BlueprintDeploymentsApi->new();
my $status = deployed; # String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.


eval {
    my $result = $api_instance->streamBlueprintDeployments(status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling BlueprintDeploymentsApi->streamBlueprintDeployments: $@\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.BlueprintDeploymentsApi()
status = deployed # String | Filter by blueprint deployment status, as reported. `deleting` and
`delete_failed` are cluster-derived: they appear when every live engine
of the deployment runs on a cluster being deleted or whose deletion
failed, and a deployment that keeps engines on another cluster matches
`degraded` instead. The rows they cover stop matching `deployed`.
 (optional) (default to null)

try:
    # Stream blueprint deployments (SSE)
    api_response = api_instance.stream_blueprint_deployments(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BlueprintDeploymentsApi->streamBlueprintDeployments: %s\n" % e)
extern crate BlueprintDeploymentsApi;

pub fn main() {
    let status = deployed; // String

    let mut context = BlueprintDeploymentsApi::Context::default();
    let result = client.streamBlueprintDeployments(status, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by blueprint deployment status, as reported. `deleting` and `delete_failed` are cluster-derived: they appear when every live engine of the deployment runs on a cluster being deleted or whose deletion failed, and a deployment that keeps engines on another cluster matches `degraded` instead. The rows they cover stop matching `deployed`.

Responses


Clusters

checkClusterCapacity

Check blueprint resource capacity on an existing cluster

Inspects the target cluster's real free capacity (Allocatable minus the greater of pod requests and actual usage, plus free disk) and returns whether the selected blueprint version + hardware tier fits, per node pool. Read-only — it does not deploy. A fixed 25% buffer is always applied. Evaluates resource requirements even when the tier contains exclusiveFor groups. Mandatory exclusive groups contribute their requirements; optional groups are omitted. Exclusive node groups and ace-hub registration are checked by deploy and dry-run, not by this endpoint. A sufficient report does not authorize deployment, and a deploy adds new nodes for exclusive groups anyway. GPU-flavored nodes are excluded from general worker capacity even for CPU-only blueprints. Unknown worker identities or unavailable cloud inventory return 502 PREFLIGHT_UNAVAILABLE. This is a conservative capacity estimate, not a scheduling guarantee or reservation. Deploy always repeats the preflight before accepting work. A cluster that is not ready is reported as `503 CLUSTER_NOT_READY` here (this read-only preview has no state to conflict with), while the existing-cluster deploy reports the same `code` and `detail` as `409 CLUSTER_NOT_READY` and its `dry_run=true` returns `200` with `valid: false`. Branch on the endpoint and `code`, not the status alone.


/api/v1/console/clusters/{cluster_id}/capacity-check

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/clusters/{cluster_id}/capacity-check" \
 -d '{
  "blueprint_version_id" : 0,
  "hardware_tier" : "hardware_tier"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

        CapacityCheckRequest capacityCheckRequest = ; // CapacityCheckRequest | 

        try {
            CapacityCheckReport result = apiInstance.checkClusterCapacity(clusterId, capacityCheckRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#checkClusterCapacity");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

final CapacityCheckRequest capacityCheckRequest = new CapacityCheckRequest(); // CapacityCheckRequest | 

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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

        CapacityCheckRequest capacityCheckRequest = ; // CapacityCheckRequest | 

        try {
            CapacityCheckReport result = apiInstance.checkClusterCapacity(clusterId, capacityCheckRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#checkClusterCapacity");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *clusterId = cluster-034; // Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
CapacityCheckRequest *capacityCheckRequest = ; // 

// Check blueprint resource capacity on an existing cluster
[apiInstance checkClusterCapacityWith:clusterId
    capacityCheckRequest:capacityCheckRequest
              completionHandler: ^(CapacityCheckReport output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var clusterId = cluster-034; // {String} Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

var capacityCheckRequest = ; // {CapacityCheckRequest} 

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

namespace Example
{
    public class checkClusterCapacityExample
    {
        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 ClustersApi();
            var clusterId = cluster-034;  // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
            var capacityCheckRequest = new CapacityCheckRequest(); // CapacityCheckRequest | 

            try {
                // Check blueprint resource capacity on an existing cluster
                CapacityCheckReport result = apiInstance.checkClusterCapacity(clusterId, capacityCheckRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.checkClusterCapacity: " + 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\ClustersApi();
$clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

$capacityCheckRequest = ; // CapacityCheckRequest | 

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

# 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::ClustersApi->new();
my $clusterId = cluster-034; # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

my $capacityCheckRequest = WWW::OPenAPIClient::Object::CapacityCheckRequest->new(); # CapacityCheckRequest | 

eval {
    my $result = $api_instance->checkClusterCapacity(clusterId => $clusterId, capacityCheckRequest => $capacityCheckRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->checkClusterCapacity: $@\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.ClustersApi()
clusterId = cluster-034 # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
capacityCheckRequest =  # CapacityCheckRequest | 

try:
    # Check blueprint resource capacity on an existing cluster
    api_response = api_instance.check_cluster_capacity(clusterId, capacityCheckRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->checkClusterCapacity: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let clusterId = cluster-034; // String
    let capacityCheckRequest = ; // CapacityCheckRequest

    let mut context = ClustersApi::Context::default();
    let result = client.checkClusterCapacity(clusterId, capacityCheckRequest, &context).wait();

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

Scopes

manage_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
cluster_id*
String
Cluster ID in the canonical form the API returns: `cluster-` followed by the number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`). Any other spelling (bare number, extra or missing padding, sign, whitespace, different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32).
Required
Body parameters
Name Description
capacityCheckRequest *

Responses


deleteCluster

Delete a cluster

Initiates deletion of a cluster and all its blueprint deployments. Returns `202 Accepted` immediately; deletion runs asynchronously (the backing Cloudera Cloud Factory project is force-deleted, then polled until gone, then the rows are removed). Subscribe to `GET /api/v1/console/clusters/events` (SSE) to track progress. On failure the cluster status is set to `delete_failed` with a reason and the DELETE can be retried.


/api/v1/console/clusters/{cluster_id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters/{cluster_id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


        try {
            DeletionAcceptedResponse result = apiInstance.deleteCluster(clusterId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#deleteCluster");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *clusterId = cluster-034; // Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

// Delete a cluster
[apiInstance deleteClusterWith:clusterId
              completionHandler: ^(DeletionAcceptedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var clusterId = cluster-034; // {String} Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

namespace Example
{
    public class deleteClusterExample
    {
        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 ClustersApi();
            var clusterId = cluster-034;  // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

            try {
                // Delete a cluster
                DeletionAcceptedResponse result = apiInstance.deleteCluster(clusterId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.deleteCluster: " + 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\ClustersApi();
$clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

# 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::ClustersApi->new();
my $clusterId = cluster-034; # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


eval {
    my $result = $api_instance->deleteCluster(clusterId => $clusterId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->deleteCluster: $@\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.ClustersApi()
clusterId = cluster-034 # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

try:
    # Delete a cluster
    api_response = api_instance.delete_cluster(clusterId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->deleteCluster: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let clusterId = cluster-034; // String

    let mut context = ClustersApi::Context::default();
    let result = client.deleteCluster(clusterId, &context).wait();

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

Scopes

manage_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
cluster_id*
String
Cluster ID in the canonical form the API returns: `cluster-` followed by the number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`). Any other spelling (bare number, extra or missing padding, sign, whitespace, different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32).
Required

Responses


getClusterKubernetesUpgrade

Get a cluster's Kubernetes upgrade status

Returns the cluster's most recent Kubernetes upgrade attempt. The status persists until a new upgrade is started. Returns `404` with code `KUBERNETES_UPGRADE_NOT_FOUND` when the cluster has never been upgraded. **Polling behavior:** while `status` is `upgrading`, poll every ~30 seconds; stop once it is `upgraded` or `failed`.


/api/v1/console/clusters/{cluster_id}/kubernetes-upgrade

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters/{cluster_id}/kubernetes-upgrade"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


        try {
            ClusterKubernetesUpgrade result = apiInstance.getClusterKubernetesUpgrade(clusterId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#getClusterKubernetesUpgrade");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *clusterId = cluster-034; // Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

// Get a cluster's Kubernetes upgrade status
[apiInstance getClusterKubernetesUpgradeWith:clusterId
              completionHandler: ^(ClusterKubernetesUpgrade output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var clusterId = cluster-034; // {String} Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

namespace Example
{
    public class getClusterKubernetesUpgradeExample
    {
        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 ClustersApi();
            var clusterId = cluster-034;  // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

            try {
                // Get a cluster's Kubernetes upgrade status
                ClusterKubernetesUpgrade result = apiInstance.getClusterKubernetesUpgrade(clusterId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.getClusterKubernetesUpgrade: " + 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\ClustersApi();
$clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

# 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::ClustersApi->new();
my $clusterId = cluster-034; # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


eval {
    my $result = $api_instance->getClusterKubernetesUpgrade(clusterId => $clusterId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->getClusterKubernetesUpgrade: $@\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.ClustersApi()
clusterId = cluster-034 # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

try:
    # Get a cluster's Kubernetes upgrade status
    api_response = api_instance.get_cluster_kubernetes_upgrade(clusterId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->getClusterKubernetesUpgrade: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let clusterId = cluster-034; // String

    let mut context = ClustersApi::Context::default();
    let result = client.getClusterKubernetesUpgrade(clusterId, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
cluster_id*
String
Cluster ID in the canonical form the API returns: `cluster-` followed by the number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`). Any other spelling (bare number, extra or missing padding, sign, whitespace, different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32).
Required

Responses


listClusters

List all deployed clusters (JSON snapshot)

Returns a JSON snapshot of all Kubernetes clusters that have been deployed. For real-time updates, use `GET /api/v1/console/clusters/events` (SSE). The `status` filter is case-insensitive.


/api/v1/console/clusters

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters?status=ready&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String status = ready; // String | Filter by cluster status (case-insensitive)
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listClusters_200_response result = apiInstance.listClusters(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#listClusters");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by cluster status (case-insensitive)
final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String status = ready; // String | Filter by cluster status (case-insensitive)
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listClusters_200_response result = apiInstance.listClusters(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#listClusters");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *status = ready; // Filter by cluster status (case-insensitive) (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List all deployed clusters (JSON snapshot)
[apiInstance listClustersWith:status
    limit:limit
    offset:offset
              completionHandler: ^(listClusters_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var opts = {
  'status': ready, // {String} Filter by cluster status (case-insensitive)
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listClustersExample
    {
        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 ClustersApi();
            var status = ready;  // String | Filter by cluster status (case-insensitive) (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List all deployed clusters (JSON snapshot)
                listClusters_200_response result = apiInstance.listClusters(status, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.listClusters: " + 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\ClustersApi();
$status = ready; // String | Filter by cluster status (case-insensitive)
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::ClustersApi->new();
my $status = ready; # String | Filter by cluster status (case-insensitive)
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listClusters(status => $status, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->listClusters: $@\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.ClustersApi()
status = ready # String | Filter by cluster status (case-insensitive) (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List all deployed clusters (JSON snapshot)
    api_response = api_instance.list_clusters(status=status, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->listClusters: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let status = ready; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = ClustersApi::Context::default();
    let result = client.listClusters(status, limit, offset, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by cluster status (case-insensitive)
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


streamClusterDeploymentLogs

Stream live deployment logs for a cluster/instance (SSE)

Server-Sent Events stream of what is happening across a cluster's install lifecycle — deploy-Job progress, RemoteCluster readiness, and the blocking core-service HelmRelease. Reachable while the instance is still installing, before any engine exists. Per-engine phase/events/pod logs are streamed by GET /api/v1/console/engine-deployments/{engine_deployment_id}/logs. `status` frames carry the plain-language narrative (current stage, acting service, what it is waiting on or why it is stuck); `log` frames carry the redacted raw detail; an `end` frame carries the terminal reason. Once authorized the response is always 200 (refusals ride an `end` frame, since the browser's EventSource cannot read a non-200 and auto-reconnects on a clean close). Keepalive comments every 15 seconds.


/api/v1/console/clusters/{cluster_id}/deployment-logs

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: text/event-stream,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters/{cluster_id}/deployment-logs?service=service_example&core_logs=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

        String service = service_example; // String | Scope core-service (HelmRelease) logs to this service name.
        Boolean coreLogs = true; // Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.


        try {
            'String' result = apiInstance.streamClusterDeploymentLogs(clusterId, service, coreLogs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#streamClusterDeploymentLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

final String service = new String(); // String | Scope core-service (HelmRelease) logs to this service name.
final Boolean coreLogs = new Boolean(); // Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.


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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

        String service = service_example; // String | Scope core-service (HelmRelease) logs to this service name.
        Boolean coreLogs = true; // Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.


        try {
            'String' result = apiInstance.streamClusterDeploymentLogs(clusterId, service, coreLogs);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#streamClusterDeploymentLogs");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *clusterId = cluster-034; // Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
String *service = service_example; // Scope core-service (HelmRelease) logs to this service name. (optional) (default to null)
Boolean *coreLogs = true; // Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.
 (optional) (default to false)

// Stream live deployment logs for a cluster/instance (SSE)
[apiInstance streamClusterDeploymentLogsWith:clusterId
    service:service
    coreLogs:coreLogs
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var clusterId = cluster-034; // {String} Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

var opts = {
  'service': service_example, // {String} Scope core-service (HelmRelease) logs to this service name.
  'coreLogs': true // {Boolean} Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.

};

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

namespace Example
{
    public class streamClusterDeploymentLogsExample
    {
        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 ClustersApi();
            var clusterId = cluster-034;  // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
            var service = service_example;  // String | Scope core-service (HelmRelease) logs to this service name. (optional)  (default to null)
            var coreLogs = true;  // Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.
 (optional)  (default to false)

            try {
                // Stream live deployment logs for a cluster/instance (SSE)
                'String' result = apiInstance.streamClusterDeploymentLogs(clusterId, service, coreLogs);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.streamClusterDeploymentLogs: " + 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\ClustersApi();
$clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

$service = service_example; // String | Scope core-service (HelmRelease) logs to this service name.
$coreLogs = true; // Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.


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

# 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::ClustersApi->new();
my $clusterId = cluster-034; # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).

my $service = service_example; # String | Scope core-service (HelmRelease) logs to this service name.
my $coreLogs = true; # Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.


eval {
    my $result = $api_instance->streamClusterDeploymentLogs(clusterId => $clusterId, service => $service, coreLogs => $coreLogs);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->streamClusterDeploymentLogs: $@\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.ClustersApi()
clusterId = cluster-034 # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)
service = service_example # String | Scope core-service (HelmRelease) logs to this service name. (optional) (default to null)
coreLogs = true # Boolean | Stream the pod logs of every core service, not only the blocking one. When false,
only the blocking service's pods (or the `service`-scoped service's pods) are
streamed.
 (optional) (default to false)

try:
    # Stream live deployment logs for a cluster/instance (SSE)
    api_response = api_instance.stream_cluster_deployment_logs(clusterId, service=service, coreLogs=coreLogs)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->streamClusterDeploymentLogs: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let clusterId = cluster-034; // String
    let service = service_example; // String
    let coreLogs = true; // Boolean

    let mut context = ClustersApi::Context::default();
    let result = client.streamClusterDeploymentLogs(clusterId, service, coreLogs, &context).wait();

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

Scopes

view_deployment_logs HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
cluster_id*
String
Cluster ID in the canonical form the API returns: `cluster-` followed by the number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`). Any other spelling (bare number, extra or missing padding, sign, whitespace, different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32).
Required
Query parameters
Name Description
service
String
Scope core-service (HelmRelease) logs to this service name.
core_logs
Boolean
Stream the pod logs of every core service, not only the blocking one. When false, only the blocking service's pods (or the `service`-scoped service's pods) are streamed.

Responses


streamClusters

Stream deployed clusters (SSE)

Server-Sent Events (SSE) stream for real-time cluster updates. Initial data is sent immediately; further frames are sent only when the data changes (SHA-256 change detection). Keepalive comments (`: keepalive`) are sent every 30 seconds when idle. Accepts the same `status` filter as the JSON list endpoint.


/api/v1/console/clusters/events

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: text/event-stream,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters/events?status=ready"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String status = ready; // String | Filter by cluster status (case-insensitive)

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

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by cluster status (case-insensitive)

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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String status = ready; // String | Filter by cluster status (case-insensitive)

        try {
            'String' result = apiInstance.streamClusters(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#streamClusters");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *status = ready; // Filter by cluster status (case-insensitive) (optional) (default to null)

// Stream deployed clusters (SSE)
[apiInstance streamClustersWith:status
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var opts = {
  'status': ready // {String} Filter by cluster status (case-insensitive)
};

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

namespace Example
{
    public class streamClustersExample
    {
        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 ClustersApi();
            var status = ready;  // String | Filter by cluster status (case-insensitive) (optional)  (default to null)

            try {
                // Stream deployed clusters (SSE)
                'String' result = apiInstance.streamClusters(status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.streamClusters: " + 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\ClustersApi();
$status = ready; // String | Filter by cluster status (case-insensitive)

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

# 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::ClustersApi->new();
my $status = ready; # String | Filter by cluster status (case-insensitive)

eval {
    my $result = $api_instance->streamClusters(status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->streamClusters: $@\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.ClustersApi()
status = ready # String | Filter by cluster status (case-insensitive) (optional) (default to null)

try:
    # Stream deployed clusters (SSE)
    api_response = api_instance.stream_clusters(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->streamClusters: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let status = ready; // String

    let mut context = ClustersApi::Context::default();
    let result = client.streamClusters(status, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by cluster status (case-insensitive)

Responses


upgradeClusterKubernetes

Upgrade a cluster's Kubernetes version

Upgrades the cluster's Kubernetes to the version Anywhere Cloud targets: the newest stable patch release of the Kubernetes minor it installs on every new cluster, among the versions Cloudera Cloud Factory currently offers (the same version a new cluster would get). The exact version is resolved when the upgrade starts and reported as `target_version`; release candidates are never selected. A cluster already on the target minor but an older patch is upgraded to the newest patch. There is no request body: the target is always owned by Anywhere Cloud, never chosen by the caller. The upgrade is executed entirely by Cloudera Cloud Factory as a CSK release upgrade, which carries the Kubernetes version with it; Anywhere Cloud only triggers it and tracks its progress. Cloudera Cloud Factory advances one Kubernetes version per upgrade, so a cluster several versions behind is upgraded in consecutive steps until it reaches the target version. An upgrade is refused with `409 CLUSTER_NOT_READY` while a blueprint or engine deployment on the cluster is deploying or upgrading (including one accepted moments ago that has not started yet), and deployments onto the cluster are refused while an upgrade is `upgrading`. The two are mutually exclusive: when an upgrade and a deployment are requested at the same time, exactly one is accepted. Retry once the other has finished. Returns `202 Accepted` once Cloudera Cloud Factory has accepted the first step. Track progress with `GET /api/v1/console/clusters/{cluster_id}/kubernetes-upgrade` or the `kubernetes_upgrade` field of the cluster list and SSE feed. A `failed` upgrade can be retried by calling this endpoint again. This is independent of the compute-cluster version upgrade (`/api/v1/console/clusters/{cluster_id}/upgrade`) and of the Anywhere Cloud console upgrade (`/api/v1/console/upgrade`).


/api/v1/console/clusters/{cluster_id}/kubernetes-upgrade

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/clusters/{cluster_id}/kubernetes-upgrade"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ClustersApi;

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

public class ClustersApiExample {
    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
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

import org.openapitools.client.api.ClustersApi;

public class ClustersApiExample {
    public static void main(String[] args) {
        ClustersApi apiInstance = new ClustersApi();
        String clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


        try {
            ClusterKubernetesUpgrade result = apiInstance.upgradeClusterKubernetes(clusterId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ClustersApi#upgradeClusterKubernetes");
            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
ClustersApi *apiInstance = [[ClustersApi alloc] init];
String *clusterId = cluster-034; // Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

// Upgrade a cluster's Kubernetes version
[apiInstance upgradeClusterKubernetesWith:clusterId
              completionHandler: ^(ClusterKubernetesUpgrade output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.ClustersApi()
var clusterId = cluster-034; // {String} Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

namespace Example
{
    public class upgradeClusterKubernetesExample
    {
        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 ClustersApi();
            var clusterId = cluster-034;  // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

            try {
                // Upgrade a cluster's Kubernetes version
                ClusterKubernetesUpgrade result = apiInstance.upgradeClusterKubernetes(clusterId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling ClustersApi.upgradeClusterKubernetes: " + 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\ClustersApi();
$clusterId = cluster-034; // String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


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

# 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::ClustersApi->new();
my $clusterId = cluster-034; # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).


eval {
    my $result = $api_instance->upgradeClusterKubernetes(clusterId => $clusterId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ClustersApi->upgradeClusterKubernetes: $@\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.ClustersApi()
clusterId = cluster-034 # String | Cluster ID in the canonical form the API returns: `cluster-` followed by the
number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`).
Any other spelling (bare number, extra or missing padding, sign, whitespace,
different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not
bound the number; the handler also rejects ids above 2147483647 (int32).
 (default to null)

try:
    # Upgrade a cluster's Kubernetes version
    api_response = api_instance.upgrade_cluster_kubernetes(clusterId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ClustersApi->upgradeClusterKubernetes: %s\n" % e)
extern crate ClustersApi;

pub fn main() {
    let clusterId = cluster-034; // String

    let mut context = ClustersApi::Context::default();
    let result = client.upgradeClusterKubernetes(clusterId, &context).wait();

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

Scopes

manage_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
cluster_id*
String
Cluster ID in the canonical form the API returns: `cluster-` followed by the number zero-padded to at least three digits (e.g. `cluster-025`, `cluster-1000`). Any other spelling (bare number, extra or missing padding, sign, whitespace, different case) is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32).
Required

Responses


EngineDeployments

deleteEngineDeployment

Delete an engine deployment

Starts asynchronous deletion of a single engine deployment, leaving the rest of its blueprint deployment running. Returns 202 immediately. Deletion removes the engine and the resources it created on its cluster. While that runs the engine deployment reports `deleting`. It disappears from this API once the cleanup finishes. If the cleanup does not finish, the engine deployment stays visible and reports `delete_failed` with the reason, so a failure is never silent. Retry the same request to try again. A retry also recovers a deletion whose worker died, for example if the service restarted while the cleanup was running. The engine deployment keeps reporting `deleting` in that case, and the retry takes it over once the original attempt has been idle long enough to be considered gone. Returns 409 in these cases: - Another blueprint deployment uses this engine. Deleting it would remove the engine from that blueprint too, so it can only be deleted once it is no longer shared. `blueprints` on the engine deployment lists the blueprint deployments that use it. A reusing blueprint deployment keeps the engine until that deployment itself is gone. A reusing blueprint deployment that created engines is removed when all of them are deleted, or when a cluster delete removed them. This releases the engine. A reusing blueprint deployment that created no engine stays until the cluster is deleted. - Another engine deployment depends on this one. Only dependencies declared between engines in the same blueprint deployment block deletion. - The engine deployment has not finished deploying (`not_started`, `deploying`) or is being upgraded (`upgrading`). Wait for it to settle. - A deletion is already running and has not been idle long enough to take over.


/api/v1/console/engine-deployments/{engine_deployment_id}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}?force=true"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        Boolean force = true; // Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.


        try {
            DeletionAcceptedResponse result = apiInstance.deleteEngineDeployment(engineDeploymentId, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#deleteEngineDeployment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier
final Boolean force = new Boolean(); // Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.


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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        Boolean force = true; // Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.


        try {
            DeletionAcceptedResponse result = apiInstance.deleteEngineDeployment(engineDeploymentId, force);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#deleteEngineDeployment");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)
Boolean *force = true; // Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.
 (optional) (default to false)

// Delete an engine deployment
[apiInstance deleteEngineDeploymentWith:engineDeploymentId
    force:force
              completionHandler: ^(DeletionAcceptedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier
var opts = {
  'force': true // {Boolean} Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.

};

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

namespace Example
{
    public class deleteEngineDeploymentExample
    {
        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 EngineDeploymentsApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)
            var force = true;  // Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.
 (optional)  (default to false)

            try {
                // Delete an engine deployment
                DeletionAcceptedResponse result = apiInstance.deleteEngineDeployment(engineDeploymentId, force);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.deleteEngineDeployment: " + 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\EngineDeploymentsApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier
$force = true; // Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.


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

# 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::EngineDeploymentsApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier
my $force = true; # Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.


eval {
    my $result = $api_instance->deleteEngineDeployment(engineDeploymentId => $engineDeploymentId, force => $force);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->deleteEngineDeployment: $@\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.EngineDeploymentsApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)
force = true # Boolean | Break-glass flag for operators. Deletes the engine deployment without
waiting for its cluster resources to be cleaned up, so those resources
are left behind and have to be removed by hand.

It also skips two of the checks above: the dependent-engine check, which
leaves the dependent engine deployment degraded, and the
not-settled check, which is what clears an engine deployment left behind
by a deploy or an upgrade that never completed. Without the flag only a
settled engine deployment can be deleted (`deployed`, `degraded`, `failed`
or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are
allowed too.

**Only use it on a `not_started`, `deploying` or `upgrading` engine
deployment once you know that work is no longer running.** A deploy that
is still running — for example one waiting for a new cluster to finish
provisioning — creates the engine after this call removes the record of
it. The engine then runs on the cluster with nothing tracking it: it does
not appear in this API, and deleting its cluster does not clean it up.
The service cannot tell a stopped deploy from a running one, so it does
not refuse this.

An `upgrading` engine deployment is less exposed than a deploying one: an
upgrade cannot overwrite the deletion, because the upgrade's own writes
require the row to still be upgrading and are refused once a delete has
claimed it.

It does **not** skip the check for an engine that another blueprint
deployment uses. Deleting a shared engine would break that other
blueprint deployment without reporting it, so remove the blueprint
deployments that use the engine first.

Not surfaced in the UI. Use only to clear a deletion that is stuck.
 (optional) (default to false)

try:
    # Delete an engine deployment
    api_response = api_instance.delete_engine_deployment(engineDeploymentId, force=force)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->deleteEngineDeployment: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer
    let force = true; // Boolean

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.deleteEngineDeployment(engineDeploymentId, force, &context).wait();

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

Scopes

manage_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required
Query parameters
Name Description
force
Boolean
Break-glass flag for operators. Deletes the engine deployment without waiting for its cluster resources to be cleaned up, so those resources are left behind and have to be removed by hand. It also skips two of the checks above: the dependent-engine check, which leaves the dependent engine deployment degraded, and the not-settled check, which is what clears an engine deployment left behind by a deploy or an upgrade that never completed. Without the flag only a settled engine deployment can be deleted (`deployed`, `degraded`, `failed` or `delete_failed`); with it, `not_started`, `deploying` and `upgrading` are allowed too. **Only use it on a `not_started`, `deploying` or `upgrading` engine deployment once you know that work is no longer running.** A deploy that is still running — for example one waiting for a new cluster to finish provisioning — creates the engine after this call removes the record of it. The engine then runs on the cluster with nothing tracking it: it does not appear in this API, and deleting its cluster does not clean it up. The service cannot tell a stopped deploy from a running one, so it does not refuse this. An `upgrading` engine deployment is less exposed than a deploying one: an upgrade cannot overwrite the deletion, because the upgrade's own writes require the row to still be upgrading and are refused once a delete has claimed it. It does **not** skip the check for an engine that another blueprint deployment uses. Deleting a shared engine would break that other blueprint deployment without reporting it, so remove the blueprint deployments that use the engine first. Not surfaced in the UI. Use only to clear a deletion that is stuck.

Responses


getEngineDeployment

Get one engine deployment with its read-only config

Returns a single engine instance plus its merged, read-only effective config. Called lazily when the user opens the read-only "Configure" drawer for a reusable instance. The `config` is the config-schema defaults merged with any saved overrides; sensitive fields are redacted server-side.


/api/v1/console/engine-deployments/{engine_deployment_id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

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

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier

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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

        try {
            EngineDeploymentDetail result = apiInstance.getEngineDeployment(engineDeploymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#getEngineDeployment");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)

// Get one engine deployment with its read-only config
[apiInstance getEngineDeploymentWith:engineDeploymentId
              completionHandler: ^(EngineDeploymentDetail output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier

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

namespace Example
{
    public class getEngineDeploymentExample
    {
        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 EngineDeploymentsApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)

            try {
                // Get one engine deployment with its read-only config
                EngineDeploymentDetail result = apiInstance.getEngineDeployment(engineDeploymentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.getEngineDeployment: " + 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\EngineDeploymentsApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier

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

# 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::EngineDeploymentsApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier

eval {
    my $result = $api_instance->getEngineDeployment(engineDeploymentId => $engineDeploymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->getEngineDeployment: $@\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.EngineDeploymentsApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)

try:
    # Get one engine deployment with its read-only config
    api_response = api_instance.get_engine_deployment(engineDeploymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->getEngineDeployment: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.getEngineDeployment(engineDeploymentId, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required

Responses


getEngineDeploymentConnectivity

Check that a reusable engine deployment's cluster is reachable

Runs a live, read-only connectivity check against the cluster the engine deployment runs on, for the deploy form's reuse picker. Always 200 for a known engine deployment: a failing check is reported with `passed: false` and a `reason`, not as an error status. `kubeconfigs_distributed` is always included and reflects the cluster's kubeconfig projection as a whole: it fails while any peer cluster's kubeconfig failed to copy. Deploy blocks on it because a transient failure can't be told apart from a permanent one. Deploy and dry-run run the same cluster checks for every reused engine on another cluster and reject with `409 REUSE_CONNECTIVITY_FAILED`.


/api/v1/console/engine-deployments/{engine_deployment_id}/connectivity

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}/connectivity"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

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

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier

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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

        try {
            EngineDeploymentConnectivity result = apiInstance.getEngineDeploymentConnectivity(engineDeploymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#getEngineDeploymentConnectivity");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)

// Check that a reusable engine deployment's cluster is reachable
[apiInstance getEngineDeploymentConnectivityWith:engineDeploymentId
              completionHandler: ^(EngineDeploymentConnectivity output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier

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

namespace Example
{
    public class getEngineDeploymentConnectivityExample
    {
        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 EngineDeploymentsApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)

            try {
                // Check that a reusable engine deployment's cluster is reachable
                EngineDeploymentConnectivity result = apiInstance.getEngineDeploymentConnectivity(engineDeploymentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.getEngineDeploymentConnectivity: " + 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\EngineDeploymentsApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier

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

# 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::EngineDeploymentsApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier

eval {
    my $result = $api_instance->getEngineDeploymentConnectivity(engineDeploymentId => $engineDeploymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->getEngineDeploymentConnectivity: $@\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.EngineDeploymentsApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)

try:
    # Check that a reusable engine deployment's cluster is reachable
    api_response = api_instance.get_engine_deployment_connectivity(engineDeploymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->getEngineDeploymentConnectivity: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.getEngineDeploymentConnectivity(engineDeploymentId, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required

Responses


listEngineDeployments

List all engine deployments (JSON snapshot)

Returns a JSON snapshot of all engine deployments (individual engine instances within blueprint deployments). For real-time updates, use `GET /api/v1/console/engine-deployments/events` (SSE).


/api/v1/console/engine-deployments

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments?status=deployed&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        String status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listEngineDeployments_200_response result = apiInstance.listEngineDeployments(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#listEngineDeployments");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        String status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listEngineDeployments_200_response result = apiInstance.listEngineDeployments(status, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#listEngineDeployments");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
String *status = deployed; // Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List all engine deployments (JSON snapshot)
[apiInstance listEngineDeploymentsWith:status
    limit:limit
    offset:offset
              completionHandler: ^(listEngineDeployments_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var opts = {
  'status': deployed, // {String} Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listEngineDeploymentsExample
    {
        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 EngineDeploymentsApi();
            var status = deployed;  // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List all engine deployments (JSON snapshot)
                listEngineDeployments_200_response result = apiInstance.listEngineDeployments(status, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.listEngineDeployments: " + 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\EngineDeploymentsApi();
$status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::EngineDeploymentsApi->new();
my $status = deployed; # String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listEngineDeployments(status => $status, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->listEngineDeployments: $@\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.EngineDeploymentsApi()
status = deployed # String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List all engine deployments (JSON snapshot)
    api_response = api_instance.list_engine_deployments(status=status, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->listEngineDeployments: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let status = deployed; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.listEngineDeployments(status, limit, offset, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by engine deployment status. `deleting` and `delete_failed` also match engines whose cluster is being deleted or whose cluster deletion failed, and `deployed` rows on such a cluster stop matching. `degraded` matches engines that ran and that ACE Hub now reports unhealthy.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


streamEngineDeploymentLogs

Stream live deployment logs for an engine deployment (SSE)

Server-Sent Events (SSE) stream of an engine deployment's live *deployment* signals: phase transitions, Kubernetes Events, and redacted pod/container logs as pods come up, following each restart of a crash-looping container. Live only; nothing is persisted. Once authorization passes the stream always responds `200`; refusals and terminal conditions are carried in an `end` frame (`reason`), never as a mid-stream HTTP status, because the browser's EventSource cannot observe a non-200 body and auto-reconnects on a clean close. Each `data:` frame is one JSON object: a `log`, a `status`, or an `end`. Keepalive comments every 15 seconds when idle. Pod-log lines and event messages are passed through the shared redaction rules.


/api/v1/console/engine-deployments/{engine_deployment_id}/logs

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: text/event-stream,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}/logs?signals=phase,events,pods&pod=pod_example&include_previous=true&tail_lines=56"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        String signals = phase,events,pods; // String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

        String pod = pod_example; // String | Restrict pod-log output to this pod name.
        Boolean includePrevious = true; // Boolean | Include the previous (terminated) container's log for crash-looping
containers.

        Integer tailLines = 56; // Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.


        try {
            'String' result = apiInstance.streamEngineDeploymentLogs(engineDeploymentId, signals, pod, includePrevious, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#streamEngineDeploymentLogs");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier
final String signals = new String(); // String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

final String pod = new String(); // String | Restrict pod-log output to this pod name.
final Boolean includePrevious = new Boolean(); // Boolean | Include the previous (terminated) container's log for crash-looping
containers.

final Integer tailLines = new Integer(); // Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.


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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        String signals = phase,events,pods; // String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

        String pod = pod_example; // String | Restrict pod-log output to this pod name.
        Boolean includePrevious = true; // Boolean | Include the previous (terminated) container's log for crash-looping
containers.

        Integer tailLines = 56; // Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.


        try {
            'String' result = apiInstance.streamEngineDeploymentLogs(engineDeploymentId, signals, pod, includePrevious, tailLines);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#streamEngineDeploymentLogs");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)
String *signals = phase,events,pods; // Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.
 (optional) (default to null)
String *pod = pod_example; // Restrict pod-log output to this pod name. (optional) (default to null)
Boolean *includePrevious = true; // Include the previous (terminated) container's log for crash-looping
containers.
 (optional) (default to true)
Integer *tailLines = 56; // Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.
 (optional) (default to 100)

// Stream live deployment logs for an engine deployment (SSE)
[apiInstance streamEngineDeploymentLogsWith:engineDeploymentId
    signals:signals
    pod:pod
    includePrevious:includePrevious
    tailLines:tailLines
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier
var opts = {
  'signals': phase,events,pods, // {String} Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

  'pod': pod_example, // {String} Restrict pod-log output to this pod name.
  'includePrevious': true, // {Boolean} Include the previous (terminated) container's log for crash-looping
containers.

  'tailLines': 56 // {Integer} Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.

};

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

namespace Example
{
    public class streamEngineDeploymentLogsExample
    {
        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 EngineDeploymentsApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)
            var signals = phase,events,pods;  // String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.
 (optional)  (default to null)
            var pod = pod_example;  // String | Restrict pod-log output to this pod name. (optional)  (default to null)
            var includePrevious = true;  // Boolean | Include the previous (terminated) container's log for crash-looping
containers.
 (optional)  (default to true)
            var tailLines = 56;  // Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.
 (optional)  (default to 100)

            try {
                // Stream live deployment logs for an engine deployment (SSE)
                'String' result = apiInstance.streamEngineDeploymentLogs(engineDeploymentId, signals, pod, includePrevious, tailLines);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.streamEngineDeploymentLogs: " + 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\EngineDeploymentsApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier
$signals = phase,events,pods; // String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

$pod = pod_example; // String | Restrict pod-log output to this pod name.
$includePrevious = true; // Boolean | Include the previous (terminated) container's log for crash-looping
containers.

$tailLines = 56; // Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.


try {
    $result = $api_instance->streamEngineDeploymentLogs($engineDeploymentId, $signals, $pod, $includePrevious, $tailLines);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EngineDeploymentsApi->streamEngineDeploymentLogs: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EngineDeploymentsApi;

# 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::EngineDeploymentsApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier
my $signals = phase,events,pods; # String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.

my $pod = pod_example; # String | Restrict pod-log output to this pod name.
my $includePrevious = true; # Boolean | Include the previous (terminated) container's log for crash-looping
containers.

my $tailLines = 56; # Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.


eval {
    my $result = $api_instance->streamEngineDeploymentLogs(engineDeploymentId => $engineDeploymentId, signals => $signals, pod => $pod, includePrevious => $includePrevious, tailLines => $tailLines);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->streamEngineDeploymentLogs: $@\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.EngineDeploymentsApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)
signals = phase,events,pods # String | Comma-separated subset of `phase,events,conditions,pods` to include.
Omitted means all. `conditions` (EngineInstance conditions) is reserved
and produces no frames yet.
 (optional) (default to null)
pod = pod_example # String | Restrict pod-log output to this pod name. (optional) (default to null)
includePrevious = true # Boolean | Include the previous (terminated) container's log for crash-looping
containers.
 (optional) (default to true)
tailLines = 56 # Integer | Lines of prior pod-log history to replay on attach. A value outside
1–1000 is clamped to the nearest bound.
 (optional) (default to 100)

try:
    # Stream live deployment logs for an engine deployment (SSE)
    api_response = api_instance.stream_engine_deployment_logs(engineDeploymentId, signals=signals, pod=pod, includePrevious=includePrevious, tailLines=tailLines)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->streamEngineDeploymentLogs: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer
    let signals = phase,events,pods; // String
    let pod = pod_example; // String
    let includePrevious = true; // Boolean
    let tailLines = 56; // Integer

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.streamEngineDeploymentLogs(engineDeploymentId, signals, pod, includePrevious, tailLines, &context).wait();

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

Scopes

view_deployment_logs HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required
Query parameters
Name Description
signals
String
Comma-separated subset of `phase,events,conditions,pods` to include. Omitted means all. `conditions` (EngineInstance conditions) is reserved and produces no frames yet.
pod
String
Restrict pod-log output to this pod name.
include_previous
Boolean
Include the previous (terminated) container's log for crash-looping containers.
tail_lines
Integer
Lines of prior pod-log history to replay on attach. A value outside 1–1000 is clamped to the nearest bound.

Responses


streamEngineDeployments

Stream engine deployments (SSE)

Server-Sent Events (SSE) stream for real-time engine deployment updates. Initial data is sent immediately; further frames are sent only when the data changes (SHA-256 change detection). Keepalive comments (`: keepalive`) are sent every 30 seconds when idle.


/api/v1/console/engine-deployments/events

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: text/event-stream,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/events?status=deployed"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineDeploymentsApi;

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

public class EngineDeploymentsApiExample {
    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
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        String status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.


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

final api_instance = DefaultApi();

final String status = new String(); // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.


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

import org.openapitools.client.api.EngineDeploymentsApi;

public class EngineDeploymentsApiExample {
    public static void main(String[] args) {
        EngineDeploymentsApi apiInstance = new EngineDeploymentsApi();
        String status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.


        try {
            'String' result = apiInstance.streamEngineDeployments(status);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineDeploymentsApi#streamEngineDeployments");
            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
EngineDeploymentsApi *apiInstance = [[EngineDeploymentsApi alloc] init];
String *status = deployed; // Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional) (default to null)

// Stream engine deployments (SSE)
[apiInstance streamEngineDeploymentsWith:status
              completionHandler: ^('String' output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineDeploymentsApi()
var opts = {
  'status': deployed // {String} Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.

};

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

namespace Example
{
    public class streamEngineDeploymentsExample
    {
        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 EngineDeploymentsApi();
            var status = deployed;  // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional)  (default to null)

            try {
                // Stream engine deployments (SSE)
                'String' result = apiInstance.streamEngineDeployments(status);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineDeploymentsApi.streamEngineDeployments: " + 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\EngineDeploymentsApi();
$status = deployed; // String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.


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

# 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::EngineDeploymentsApi->new();
my $status = deployed; # String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.


eval {
    my $result = $api_instance->streamEngineDeployments(status => $status);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineDeploymentsApi->streamEngineDeployments: $@\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.EngineDeploymentsApi()
status = deployed # String | Filter by engine deployment status. `deleting` and `delete_failed` also
match engines whose cluster is being deleted or whose cluster deletion
failed, and `deployed` rows on such a cluster stop matching. `degraded`
matches engines that ran and that ACE Hub now reports unhealthy.
 (optional) (default to null)

try:
    # Stream engine deployments (SSE)
    api_response = api_instance.stream_engine_deployments(status=status)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineDeploymentsApi->streamEngineDeployments: %s\n" % e)
extern crate EngineDeploymentsApi;

pub fn main() {
    let status = deployed; // String

    let mut context = EngineDeploymentsApi::Context::default();
    let result = client.streamEngineDeployments(status, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
status
String
Filter by engine deployment status. `deleting` and `delete_failed` also match engines whose cluster is being deleted or whose cluster deletion failed, and `deployed` rows on such a cluster stop matching. `degraded` matches engines that ran and that ACE Hub now reports unhealthy.

Responses


EngineUpgrades

getEngineDeploymentUpgradeStatus

Get engine upgrade status

Returns the upgrade lifecycle of one engine deployment: current status, the version a pending or completed upgrade targeted, and the version the component was upgraded from (single latest transition, no history). Poll until `status` is terminal (`deployed` after a successful upgrade, or `failed`).


/api/v1/console/engine-deployments/{engine_deployment_id}/upgrade/status

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}/upgrade/status"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineUpgradesApi;

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

public class EngineUpgradesApiExample {
    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
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

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

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier

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

import org.openapitools.client.api.EngineUpgradesApi;

public class EngineUpgradesApiExample {
    public static void main(String[] args) {
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier

        try {
            EngineUpgradeStatusResponse result = apiInstance.getEngineDeploymentUpgradeStatus(engineDeploymentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#getEngineDeploymentUpgradeStatus");
            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
EngineUpgradesApi *apiInstance = [[EngineUpgradesApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)

// Get engine upgrade status
[apiInstance getEngineDeploymentUpgradeStatusWith:engineDeploymentId
              completionHandler: ^(EngineUpgradeStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineUpgradesApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier

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

namespace Example
{
    public class getEngineDeploymentUpgradeStatusExample
    {
        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 EngineUpgradesApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)

            try {
                // Get engine upgrade status
                EngineUpgradeStatusResponse result = apiInstance.getEngineDeploymentUpgradeStatus(engineDeploymentId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineUpgradesApi.getEngineDeploymentUpgradeStatus: " + 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\EngineUpgradesApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier

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

# 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::EngineUpgradesApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier

eval {
    my $result = $api_instance->getEngineDeploymentUpgradeStatus(engineDeploymentId => $engineDeploymentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineUpgradesApi->getEngineDeploymentUpgradeStatus: $@\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.EngineUpgradesApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)

try:
    # Get engine upgrade status
    api_response = api_instance.get_engine_deployment_upgrade_status(engineDeploymentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineUpgradesApi->getEngineDeploymentUpgradeStatus: %s\n" % e)
extern crate EngineUpgradesApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer

    let mut context = EngineUpgradesApi::Context::default();
    let result = client.getEngineDeploymentUpgradeStatus(engineDeploymentId, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required

Responses


listActiveEngineDeploymentUpgrades

List active engine upgrades across all deployments

Returns one entry per engine deployment whose upgrade is currently active (`upgrading`) or needs attention (`failed`), each carrying the same per-engine status shape as the singleton `GET /api/v1/console/engine-deployments/{engine_deployment_id}/upgrade/status` plus component identity — the cross-deployment analogue of the cluster surface's `GET /api/v1/console/clusters/upgrade/status`. The engine-upgrades page calls this once on load to discover which components are mid-upgrade without pre-knowing an `engine_deployment_id` or polling every component's own status endpoint. Deployments that are idle (`not_started`, `deploying`) or settled (`deployed`) are omitted. **Polling behavior:** - Call once on page load. - Poll every ~5 seconds while the list is non-empty. - Stop polling once it returns an empty `data` array. This is a read-only view — it triggers nothing; use the per-deployment trigger to act on an entry.


/api/v1/console/engine-deployments/upgrade/status

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/upgrade/status"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineUpgradesApi;

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

public class EngineUpgradesApiExample {
    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
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.EngineUpgradesApi;

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

        try {
            listActiveEngineDeploymentUpgrades_200_response result = apiInstance.listActiveEngineDeploymentUpgrades();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#listActiveEngineDeploymentUpgrades");
            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
EngineUpgradesApi *apiInstance = [[EngineUpgradesApi alloc] init];

// List active engine upgrades across all deployments
[apiInstance listActiveEngineDeploymentUpgradesWithCompletionHandler: 
              ^(listActiveEngineDeploymentUpgrades_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineUpgradesApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.listActiveEngineDeploymentUpgrades(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class listActiveEngineDeploymentUpgradesExample
    {
        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 EngineUpgradesApi();

            try {
                // List active engine upgrades across all deployments
                listActiveEngineDeploymentUpgrades_200_response result = apiInstance.listActiveEngineDeploymentUpgrades();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineUpgradesApi.listActiveEngineDeploymentUpgrades: " + 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\EngineUpgradesApi();

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

# 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::EngineUpgradesApi->new();

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

try:
    # List active engine upgrades across all deployments
    api_response = api_instance.list_active_engine_deployment_upgrades()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineUpgradesApi->listActiveEngineDeploymentUpgrades: %s\n" % e)
extern crate EngineUpgradesApi;

pub fn main() {

    let mut context = EngineUpgradesApi::Context::default();
    let result = client.listActiveEngineDeploymentUpgrades(&context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Responses


listEngineDeploymentUpgrades

Aggregate engine upgrade availability

Returns, per engine deployment, the currently deployed engine version and the ordered list of versions it can be upgraded to: same major as the deployed version, strictly newer (no downgrades), highest first. Version ordering is semver-aware. Empty `available_versions` with `upgrade_available: false` means the component is already at the newest same-major version the catalog offers, has not finished its initial deploy (see `component_status`), or failed its first deploy (nothing ever ran to upgrade from; the deploy surfaces repair it) — the list never offers a target the trigger endpoint would reject with `409 COMPONENT_NOT_DEPLOYED`. The trigger's target-configuration gate (see the upgrade endpoint) is not part of this list: a listed version can still be refused there when the deployment's standing configuration does not satisfy its declared requirements. A corrupted deployed-version string (`version_fault: true`) scopes the fault to its row: unknown targets, endpoint still 200. Paginated with the shared envelope; `pagination.total` covers the full scoped set — page through with `limit`/`offset` rather than assuming a single response holds every component.


/api/v1/console/engine-deployments/upgrades

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-deployments/upgrades?cluster_id=cluster-034&blueprint_deployment_id=5&engine_type=kafka-plugin&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineUpgradesApi;

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

public class EngineUpgradesApiExample {
    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
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        String clusterId = cluster-034; // String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

        Integer blueprintDeploymentId = 5; // Integer | Filter to one blueprint deployment
        String engineType = kafka-plugin; // String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listEngineDeploymentUpgrades_200_response result = apiInstance.listEngineDeploymentUpgrades(clusterId, blueprintDeploymentId, engineType, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#listEngineDeploymentUpgrades");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String clusterId = new String(); // String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

final Integer blueprintDeploymentId = new Integer(); // Integer | Filter to one blueprint deployment
final String engineType = new String(); // String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.EngineUpgradesApi;

public class EngineUpgradesApiExample {
    public static void main(String[] args) {
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        String clusterId = cluster-034; // String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

        Integer blueprintDeploymentId = 5; // Integer | Filter to one blueprint deployment
        String engineType = kafka-plugin; // String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listEngineDeploymentUpgrades_200_response result = apiInstance.listEngineDeploymentUpgrades(clusterId, blueprintDeploymentId, engineType, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#listEngineDeploymentUpgrades");
            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
EngineUpgradesApi *apiInstance = [[EngineUpgradesApi alloc] init];
String *clusterId = cluster-034; // Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.
 (optional) (default to null)
Integer *blueprintDeploymentId = 5; // Filter to one blueprint deployment (optional) (default to null)
String *engineType = kafka-plugin; // Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.
 (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// Aggregate engine upgrade availability
[apiInstance listEngineDeploymentUpgradesWith:clusterId
    blueprintDeploymentId:blueprintDeploymentId
    engineType:engineType
    limit:limit
    offset:offset
              completionHandler: ^(listEngineDeploymentUpgrades_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineUpgradesApi()
var opts = {
  'clusterId': cluster-034, // {String} Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

  'blueprintDeploymentId': 5, // {Integer} Filter to one blueprint deployment
  'engineType': kafka-plugin, // {String} Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listEngineDeploymentUpgradesExample
    {
        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 EngineUpgradesApi();
            var clusterId = cluster-034;  // String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.
 (optional)  (default to null)
            var blueprintDeploymentId = 5;  // Integer | Filter to one blueprint deployment (optional)  (default to null)
            var engineType = kafka-plugin;  // String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.
 (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // Aggregate engine upgrade availability
                listEngineDeploymentUpgrades_200_response result = apiInstance.listEngineDeploymentUpgrades(clusterId, blueprintDeploymentId, engineType, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineUpgradesApi.listEngineDeploymentUpgrades: " + 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\EngineUpgradesApi();
$clusterId = cluster-034; // String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

$blueprintDeploymentId = 5; // Integer | Filter to one blueprint deployment
$engineType = kafka-plugin; // String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

try {
    $result = $api_instance->listEngineDeploymentUpgrades($clusterId, $blueprintDeploymentId, $engineType, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling EngineUpgradesApi->listEngineDeploymentUpgrades: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::EngineUpgradesApi;

# 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::EngineUpgradesApi->new();
my $clusterId = cluster-034; # String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.

my $blueprintDeploymentId = 5; # Integer | Filter to one blueprint deployment
my $engineType = kafka-plugin; # String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.

my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listEngineDeploymentUpgrades(clusterId => $clusterId, blueprintDeploymentId => $blueprintDeploymentId, engineType => $engineType, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineUpgradesApi->listEngineDeploymentUpgrades: $@\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.EngineUpgradesApi()
clusterId = cluster-034 # String | Filter to one cluster, by its canonical `cluster-NNN` id (as returned in
`cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`.
The pattern does not bound the number; the handler also rejects ids above
2147483647 (int32) and `cluster-000`.
 (optional) (default to null)
blueprintDeploymentId = 5 # Integer | Filter to one blueprint deployment (optional) (default to null)
engineType = kafka-plugin # String | Filter to one engine type — exact match on the engine's catalog
name (the `engine_name` value of this same list, which doubles as
the drawer's type selector: its distinct values over the unfiltered
response are the selectable types). An unknown type yields an empty
list, not an error.
 (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # Aggregate engine upgrade availability
    api_response = api_instance.list_engine_deployment_upgrades(clusterId=clusterId, blueprintDeploymentId=blueprintDeploymentId, engineType=engineType, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineUpgradesApi->listEngineDeploymentUpgrades: %s\n" % e)
extern crate EngineUpgradesApi;

pub fn main() {
    let clusterId = cluster-034; // String
    let blueprintDeploymentId = 5; // Integer
    let engineType = kafka-plugin; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = EngineUpgradesApi::Context::default();
    let result = client.listEngineDeploymentUpgrades(clusterId, blueprintDeploymentId, engineType, limit, offset, &context).wait();

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

Scopes

view_deployments HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
cluster_id
String
Filter to one cluster, by its canonical `cluster-NNN` id (as returned in `cluster_id`). Any other spelling is rejected with `400 INVALID_CLUSTER_ID`. The pattern does not bound the number; the handler also rejects ids above 2147483647 (int32) and `cluster-000`.
blueprint_deployment_id
Integer
Filter to one blueprint deployment
engine_type
String
Filter to one engine type — exact match on the engine's catalog name (the `engine_name` value of this same list, which doubles as the drawer's type selector: its distinct values over the unfiltered response are the selectable types). An unknown type yields an empty list, not an error.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


upgradeEngineDeployment

Trigger an in-place engine upgrade

Triggers an in-place upgrade of a single engine deployment to the specified engine version. The target must share the major of the currently deployed version and be strictly newer — cross-major targets return `422 MAJOR_VERSION_CHANGE`, downgrades return `422 DOWNGRADE_NOT_SUPPORTED`, and an equal version returns `409 UPGRADE_NOT_NEEDED`. A target that passes those gates but is not published by the catalog returns `400 ENGINE_VERSION_RESOLUTION_FAILED` (the resolver's own typed error, mapped per its contract) — never a bare 500. A stored blueprint definition that no longer parses is rejected as `400 INVALID_BLUEPRINT` for the same reason — corrupted data, not an internal failure. A deployed version string that no longer parses as semver is the same corrupted-data class and is rejected as `400 VERSION_FAULT` — the trigger-side twin of the availability list's per-row `version_fault`. While an upgrade is in flight, re-posting the same `target_version` is accepted and idempotent (it relaunches the apply); any other target returns `409 UPGRADE_IN_PROGRESS`. There is no stop/cancel operation (a running upgrade cannot be stopped, mirroring cluster upgrades). A component that has not finished its initial deploy (`not_started`, `deploying`) returns `409 COMPONENT_NOT_DEPLOYED` — an upgrade is an in-place move of a deployed component. A component being deleted, or left in `delete_failed` by a teardown that did not finish, returns `409 ENGINE_DEPLOYMENT_DELETION_IN_PROGRESS` — the same code the delete endpoint uses for the mirror-image conflict. A privileged engine (listed in `privilegedEngines`) on a cluster that is not `dedicated` returns `409 CLUSTER_NOT_DEDICATED`: it passed the strict RBAC gate when deployed, and the upgrade would exempt it on a shared cluster. That check runs in the same statement as the row update, so a delete that commits after the gate read still gets this answer rather than racing the upgrade. A target version whose engine requires the `secret-service` cluster capability returns `409 SECRET_SERVICE_NOT_CONFIGURED` unless the console secret service is enabled and its backend is onboarded (configuration status `CONFIGURED`); this includes a re-drive of a failed first deploy, and a refused trigger leaves the row untouched. A status read that itself fails is an outage and returns `502 PREFLIGHT_UNAVAILABLE`. An upgrade carries no configuration change: the target must run under the deployment's standing configuration, and one whose declared requirements that configuration does not satisfy is refused with `422` and the same code the deploy surface answers for the shape — telemetry (`TELEMETRY_REQUIRED`, `TELEMETRY_STREAM_UNBOUND`, `UNKNOWN_TELEMETRY_STREAM`, `TELEMETRY_NOT_DECLARED`), storage slots (`REQUIRED_S3_SLOT_UNBOUND`, `UNKNOWN_S3_SLOT`) or required config fields (`MISSING_REQUIRED_CONFIG`). A catalog row with no declarations recorded has nothing to check and passes; the workload cluster's admission webhook stays the backstop for every writer. Upgrades are per component: sibling components of the same deployment upgrade in parallel, and only the SAME component serializes — a trigger with a different `target_version` on a component already in flight returns `409 UPGRADE_IN_PROGRESS`. The move is in place: the deployment identity, its rows and its engine instance are preserved, and no other component's version changes. Returns `202 Accepted`; poll `GET /api/v1/console/engine-deployments/{engine_deployment_id}/upgrade/status` or the engine-deployments list/SSE feed for `upgrading` → `deployed`.


/api/v1/console/engine-deployments/{engine_deployment_id}/upgrade

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/engine-deployments/{engine_deployment_id}/upgrade" \
 -d '{
  "target_version" : "1.10.0"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.EngineUpgradesApi;

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

public class EngineUpgradesApiExample {
    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
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        EngineUpgradeTriggerRequest engineUpgradeTriggerRequest = ; // EngineUpgradeTriggerRequest | 

        try {
            EngineUpgradeStatusResponse result = apiInstance.upgradeEngineDeployment(engineDeploymentId, engineUpgradeTriggerRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#upgradeEngineDeployment");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer engineDeploymentId = new Integer(); // Integer | Engine deployment identifier
final EngineUpgradeTriggerRequest engineUpgradeTriggerRequest = new EngineUpgradeTriggerRequest(); // EngineUpgradeTriggerRequest | 

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

import org.openapitools.client.api.EngineUpgradesApi;

public class EngineUpgradesApiExample {
    public static void main(String[] args) {
        EngineUpgradesApi apiInstance = new EngineUpgradesApi();
        Integer engineDeploymentId = 12; // Integer | Engine deployment identifier
        EngineUpgradeTriggerRequest engineUpgradeTriggerRequest = ; // EngineUpgradeTriggerRequest | 

        try {
            EngineUpgradeStatusResponse result = apiInstance.upgradeEngineDeployment(engineDeploymentId, engineUpgradeTriggerRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling EngineUpgradesApi#upgradeEngineDeployment");
            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
EngineUpgradesApi *apiInstance = [[EngineUpgradesApi alloc] init];
Integer *engineDeploymentId = 12; // Engine deployment identifier (default to null)
EngineUpgradeTriggerRequest *engineUpgradeTriggerRequest = ; // 

// Trigger an in-place engine upgrade
[apiInstance upgradeEngineDeploymentWith:engineDeploymentId
    engineUpgradeTriggerRequest:engineUpgradeTriggerRequest
              completionHandler: ^(EngineUpgradeStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.EngineUpgradesApi()
var engineDeploymentId = 12; // {Integer} Engine deployment identifier
var engineUpgradeTriggerRequest = ; // {EngineUpgradeTriggerRequest} 

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

namespace Example
{
    public class upgradeEngineDeploymentExample
    {
        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 EngineUpgradesApi();
            var engineDeploymentId = 12;  // Integer | Engine deployment identifier (default to null)
            var engineUpgradeTriggerRequest = new EngineUpgradeTriggerRequest(); // EngineUpgradeTriggerRequest | 

            try {
                // Trigger an in-place engine upgrade
                EngineUpgradeStatusResponse result = apiInstance.upgradeEngineDeployment(engineDeploymentId, engineUpgradeTriggerRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling EngineUpgradesApi.upgradeEngineDeployment: " + 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\EngineUpgradesApi();
$engineDeploymentId = 12; // Integer | Engine deployment identifier
$engineUpgradeTriggerRequest = ; // EngineUpgradeTriggerRequest | 

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

# 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::EngineUpgradesApi->new();
my $engineDeploymentId = 12; # Integer | Engine deployment identifier
my $engineUpgradeTriggerRequest = WWW::OPenAPIClient::Object::EngineUpgradeTriggerRequest->new(); # EngineUpgradeTriggerRequest | 

eval {
    my $result = $api_instance->upgradeEngineDeployment(engineDeploymentId => $engineDeploymentId, engineUpgradeTriggerRequest => $engineUpgradeTriggerRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling EngineUpgradesApi->upgradeEngineDeployment: $@\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.EngineUpgradesApi()
engineDeploymentId = 12 # Integer | Engine deployment identifier (default to null)
engineUpgradeTriggerRequest =  # EngineUpgradeTriggerRequest | 

try:
    # Trigger an in-place engine upgrade
    api_response = api_instance.upgrade_engine_deployment(engineDeploymentId, engineUpgradeTriggerRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling EngineUpgradesApi->upgradeEngineDeployment: %s\n" % e)
extern crate EngineUpgradesApi;

pub fn main() {
    let engineDeploymentId = 12; // Integer
    let engineUpgradeTriggerRequest = ; // EngineUpgradeTriggerRequest

    let mut context = EngineUpgradesApi::Context::default();
    let result = client.upgradeEngineDeployment(engineDeploymentId, engineUpgradeTriggerRequest, &context).wait();

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

Scopes

manage_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_deployment_id*
Integer
Engine deployment identifier
Required
Body parameters
Name Description
engineUpgradeTriggerRequest *

Responses


Flavors

listFlavors

List available VM flavors

Returns available VM flavors (instance types) from the Cloudera Cloud Factory API for a cloud credential, with orthogonal optional resource filters. - `cloud_credential_id` — fetch flavors from this credential; when omitted, the project-default credential is used. - `min_cpu` / `min_memory` — raw Kubernetes quantity strings (e.g. `8`, `32Gi`); the server parses them and returns flavors meeting or exceeding the bar. Pass the node group's declared requirement verbatim. - `gpu` — when `true`, only GPU-enabled flavors; when `false`, only non-GPU flavors; when omitted, both.


/api/v1/console/flavors

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/flavors?cloud_credential_id=392&min_cpu=8&min_memory=32Gi&gpu=false&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.FlavorsApi;

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

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

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

        // Create an instance of the API class
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudCredentialId = 392; // Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

        String minCpu = 8; // String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

        String minMemory = 32Gi; // String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

        Boolean gpu = false; // Boolean | When set, filter flavors by GPU support.
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listFlavors_200_response result = apiInstance.listFlavors(cloudCredentialId, minCpu, minMemory, gpu, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#listFlavors");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudCredentialId = new Integer(); // Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

final String minCpu = new String(); // String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

final String minMemory = new String(); // String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

final Boolean gpu = new Boolean(); // Boolean | When set, filter flavors by GPU support.
final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

try {
    final result = await api_instance.listFlavors(cloudCredentialId, minCpu, minMemory, gpu, limit, offset);
    print(result);
} catch (e) {
    print('Exception when calling DefaultApi->listFlavors: $e\n');
}

import org.openapitools.client.api.FlavorsApi;

public class FlavorsApiExample {
    public static void main(String[] args) {
        FlavorsApi apiInstance = new FlavorsApi();
        Integer cloudCredentialId = 392; // Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

        String minCpu = 8; // String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

        String minMemory = 32Gi; // String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

        Boolean gpu = false; // Boolean | When set, filter flavors by GPU support.
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listFlavors_200_response result = apiInstance.listFlavors(cloudCredentialId, minCpu, minMemory, gpu, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling FlavorsApi#listFlavors");
            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
FlavorsApi *apiInstance = [[FlavorsApi alloc] init];
Integer *cloudCredentialId = 392; // Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.
 (optional) (default to null)
String *minCpu = 8; // Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.
 (optional) (default to null)
String *minMemory = 32Gi; // Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.
 (optional) (default to null)
Boolean *gpu = false; // When set, filter flavors by GPU support. (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List available VM flavors
[apiInstance listFlavorsWith:cloudCredentialId
    minCpu:minCpu
    minMemory:minMemory
    gpu:gpu
    limit:limit
    offset:offset
              completionHandler: ^(listFlavors_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.FlavorsApi()
var opts = {
  'cloudCredentialId': 392, // {Integer} Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

  'minCpu': 8, // {String} Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

  'minMemory': 32Gi, // {String} Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

  'gpu': false, // {Boolean} When set, filter flavors by GPU support.
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listFlavorsExample
    {
        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 FlavorsApi();
            var cloudCredentialId = 392;  // Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.
 (optional)  (default to null)
            var minCpu = 8;  // String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.
 (optional)  (default to null)
            var minMemory = 32Gi;  // String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.
 (optional)  (default to null)
            var gpu = false;  // Boolean | When set, filter flavors by GPU support. (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List available VM flavors
                listFlavors_200_response result = apiInstance.listFlavors(cloudCredentialId, minCpu, minMemory, gpu, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling FlavorsApi.listFlavors: " + 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\FlavorsApi();
$cloudCredentialId = 392; // Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

$minCpu = 8; // String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

$minMemory = 32Gi; // String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

$gpu = false; // Boolean | When set, filter flavors by GPU support.
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

try {
    $result = $api_instance->listFlavors($cloudCredentialId, $minCpu, $minMemory, $gpu, $limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling FlavorsApi->listFlavors: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::FlavorsApi;

# 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::FlavorsApi->new();
my $cloudCredentialId = 392; # Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.

my $minCpu = 8; # String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.

my $minMemory = 32Gi; # String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.

my $gpu = false; # Boolean | When set, filter flavors by GPU support.
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listFlavors(cloudCredentialId => $cloudCredentialId, minCpu => $minCpu, minMemory => $minMemory, gpu => $gpu, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling FlavorsApi->listFlavors: $@\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.FlavorsApi()
cloudCredentialId = 392 # Integer | Cloud credential to fetch flavors from (as returned by
`GET /api/v1/console/infrastructure`). When omitted, the project-default
credential is used. Returns 404 if the ID is not found.
 (optional) (default to null)
minCpu = 8 # String | Minimum CPU as a raw Kubernetes quantity string, parsed server-side
(e.g. `8`, `500m`). Flavors below this are excluded.
 (optional) (default to null)
minMemory = 32Gi # String | Minimum memory as a raw Kubernetes quantity string, parsed server-side
(e.g. `32Gi`, `16G`). Flavors below this are excluded.
 (optional) (default to null)
gpu = false # Boolean | When set, filter flavors by GPU support. (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List available VM flavors
    api_response = api_instance.list_flavors(cloudCredentialId=cloudCredentialId, minCpu=minCpu, minMemory=minMemory, gpu=gpu, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FlavorsApi->listFlavors: %s\n" % e)
extern crate FlavorsApi;

pub fn main() {
    let cloudCredentialId = 392; // Integer
    let minCpu = 8; // String
    let minMemory = 32Gi; // String
    let gpu = false; // Boolean
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = FlavorsApi::Context::default();
    let result = client.listFlavors(cloudCredentialId, minCpu, minMemory, gpu, limit, offset, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
cloud_credential_id
Integer
Cloud credential to fetch flavors from (as returned by `GET /api/v1/console/infrastructure`). When omitted, the project-default credential is used. Returns 404 if the ID is not found.
min_cpu
String
Minimum CPU as a raw Kubernetes quantity string, parsed server-side (e.g. `8`, `500m`). Flavors below this are excluded.
min_memory
String
Minimum memory as a raw Kubernetes quantity string, parsed server-side (e.g. `32Gi`, `16G`). Flavors below this are excluded.
gpu
Boolean
When set, filter flavors by GPU support.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


Health

getHealth

Liveness check

Simple health check to verify the service process is running


/health

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "http://localhost:8080/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 AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.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

Detailed check to verify the service can handle requests. Checks PostgreSQL database and Cloudera Cloud Factory API connectivity.


/ready

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "http://localhost:8080/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 AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.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

API version

Returns service and API version information


/version

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json" \
 "http://localhost:8080/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];

// API version
[apiInstance getVersionWithCompletionHandler: 
              ^(VersionResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.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 {
                // 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:
    # 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


Infrastructure

getCcfBindingDefaults

Get this console's platform-default CCF bindings

Returns the DNS credential and certificate profile this console binds to a new workload cluster when `POST /api/v1/console/blueprint-deployments` omits `dns_credential_id` / `certificate_profile_id` (awc-console chart `dns.ccf.dnsCredentialId` / `dns.ccf.certificateProfileId`), each checked against the live CCF catalogs with the same rules the deploy applies. Lets a client show what "default" means, and require an explicit choice when there is no usable default. This is the console's default, not CCF's: the `is_default` flag on the list endpoints marks the CCF organization's default, which a deploy never applies on its own.


/api/v1/console/ccf-binding-defaults

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/ccf-binding-defaults"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InfrastructureApi;

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

public class InfrastructureApiExample {
    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
        InfrastructureApi apiInstance = new InfrastructureApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.InfrastructureApi;

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

        try {
            CcfBindingDefaults result = apiInstance.getCcfBindingDefaults();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#getCcfBindingDefaults");
            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
InfrastructureApi *apiInstance = [[InfrastructureApi alloc] init];

// Get this console's platform-default CCF bindings
[apiInstance getCcfBindingDefaultsWithCompletionHandler: 
              ^(CcfBindingDefaults output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.InfrastructureApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getCcfBindingDefaults(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getCcfBindingDefaultsExample
    {
        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 InfrastructureApi();

            try {
                // Get this console's platform-default CCF bindings
                CcfBindingDefaults result = apiInstance.getCcfBindingDefaults();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InfrastructureApi.getCcfBindingDefaults: " + 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\InfrastructureApi();

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

# 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::InfrastructureApi->new();

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

try:
    # Get this console's platform-default CCF bindings
    api_response = api_instance.get_ccf_binding_defaults()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfrastructureApi->getCcfBindingDefaults: %s\n" % e)
extern crate InfrastructureApi;

pub fn main() {

    let mut context = InfrastructureApi::Context::default();
    let result = client.getCcfBindingDefaults(&context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Responses


listCertificateProfiles

List CCF certificate profiles

Returns the CCF/Taikun signing-CA certificate profiles the current user may bind to a workload cluster's CCF-provided cert-manager / trust-manager Backs the certificate-profile dropdown; the selected `certificate_profile_id` is passed on `POST /api/v1/console/blueprint-deployments`. Only signing-CA profiles are eligible to front a workload cluster's trust chain.


/api/v1/console/certificate-profiles

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/certificate-profiles?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InfrastructureApi;

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

public class InfrastructureApiExample {
    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
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listCertificateProfiles_200_response result = apiInstance.listCertificateProfiles(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listCertificateProfiles");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.InfrastructureApi;

public class InfrastructureApiExample {
    public static void main(String[] args) {
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listCertificateProfiles_200_response result = apiInstance.listCertificateProfiles(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listCertificateProfiles");
            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
InfrastructureApi *apiInstance = [[InfrastructureApi alloc] init];
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List CCF certificate profiles
[apiInstance listCertificateProfilesWith:limit
    offset:offset
              completionHandler: ^(listCertificateProfiles_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.InfrastructureApi()
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listCertificateProfilesExample
    {
        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 InfrastructureApi();
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List CCF certificate profiles
                listCertificateProfiles_200_response result = apiInstance.listCertificateProfiles(limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InfrastructureApi.listCertificateProfiles: " + 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\InfrastructureApi();
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::InfrastructureApi->new();
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listCertificateProfiles(limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfrastructureApi->listCertificateProfiles: $@\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.InfrastructureApi()
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List CCF certificate profiles
    api_response = api_instance.list_certificate_profiles(limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfrastructureApi->listCertificateProfiles: %s\n" % e)
extern crate InfrastructureApi;

pub fn main() {
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = InfrastructureApi::Context::default();
    let result = client.listCertificateProfiles(limit, offset, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listDnsCredentials

List CCF DNS credentials

Returns the CCF/Taikun DNS credentials the current user may bind to a workload cluster's CCF-provided external-dns. Backs the DNS-credential dropdown; the selected `dns_credential_id` is passed on `POST /api/v1/console/blueprint-deployments`. Locked credentials are included so the client can surface them.


/api/v1/console/dns-credentials

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/dns-credentials?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InfrastructureApi;

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

public class InfrastructureApiExample {
    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
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listDnsCredentials_200_response result = apiInstance.listDnsCredentials(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listDnsCredentials");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.InfrastructureApi;

public class InfrastructureApiExample {
    public static void main(String[] args) {
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listDnsCredentials_200_response result = apiInstance.listDnsCredentials(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listDnsCredentials");
            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
InfrastructureApi *apiInstance = [[InfrastructureApi alloc] init];
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List CCF DNS credentials
[apiInstance listDnsCredentialsWith:limit
    offset:offset
              completionHandler: ^(listDnsCredentials_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.InfrastructureApi()
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listDnsCredentialsExample
    {
        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 InfrastructureApi();
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List CCF DNS credentials
                listDnsCredentials_200_response result = apiInstance.listDnsCredentials(limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InfrastructureApi.listDnsCredentials: " + 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\InfrastructureApi();
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::InfrastructureApi->new();
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listDnsCredentials(limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfrastructureApi->listDnsCredentials: $@\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.InfrastructureApi()
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List CCF DNS credentials
    api_response = api_instance.list_dns_credentials(limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfrastructureApi->listDnsCredentials: %s\n" % e)
extern crate InfrastructureApi;

pub fn main() {
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = InfrastructureApi::Context::default();
    let result = client.listDnsCredentials(limit, offset, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listInfrastructure

List cloud credentials / compute infrastructure

Returns all cloud credentials visible to the current Cloudera Cloud Factory user, each with its associated provider and region. Data is fetched from the Cloudera Cloud Factory API. Use the optional `cloud_credential_id` filter to scope the list to a single credential.


/api/v1/console/infrastructure

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/infrastructure?cloud_credential_id=392&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.InfrastructureApi;

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

public class InfrastructureApiExample {
    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
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer cloudCredentialId = 392; // Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listInfrastructure_200_response result = apiInstance.listInfrastructure(cloudCredentialId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listInfrastructure");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer cloudCredentialId = new Integer(); // Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.InfrastructureApi;

public class InfrastructureApiExample {
    public static void main(String[] args) {
        InfrastructureApi apiInstance = new InfrastructureApi();
        Integer cloudCredentialId = 392; // Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listInfrastructure_200_response result = apiInstance.listInfrastructure(cloudCredentialId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InfrastructureApi#listInfrastructure");
            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
InfrastructureApi *apiInstance = [[InfrastructureApi alloc] init];
Integer *cloudCredentialId = 392; // When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.
 (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List cloud credentials / compute infrastructure
[apiInstance listInfrastructureWith:cloudCredentialId
    limit:limit
    offset:offset
              completionHandler: ^(listInfrastructure_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.InfrastructureApi()
var opts = {
  'cloudCredentialId': 392, // {Integer} When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listInfrastructureExample
    {
        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 InfrastructureApi();
            var cloudCredentialId = 392;  // Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.
 (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List cloud credentials / compute infrastructure
                listInfrastructure_200_response result = apiInstance.listInfrastructure(cloudCredentialId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling InfrastructureApi.listInfrastructure: " + 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\InfrastructureApi();
$cloudCredentialId = 392; // Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::InfrastructureApi->new();
my $cloudCredentialId = 392; # Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.

my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listInfrastructure(cloudCredentialId => $cloudCredentialId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling InfrastructureApi->listInfrastructure: $@\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.InfrastructureApi()
cloudCredentialId = 392 # Integer | When provided, the response is filtered to the single credential with
this ID. Returns 404 if the credential is not found.
 (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List cloud credentials / compute infrastructure
    api_response = api_instance.list_infrastructure(cloudCredentialId=cloudCredentialId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling InfrastructureApi->listInfrastructure: %s\n" % e)
extern crate InfrastructureApi;

pub fn main() {
    let cloudCredentialId = 392; // Integer
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = InfrastructureApi::Context::default();
    let result = client.listInfrastructure(cloudCredentialId, limit, offset, &context).wait();

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

Scopes

view_clusters HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
cloud_credential_id
Integer
When provided, the response is filtered to the single credential with this ID. Returns 404 if the credential is not found.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


Marketplace

getBlueprint

Get a single blueprint with its version list

Returns one blueprint parent with its registry-present version list; versions hidden from the marketplace are left out. Use `GET /api/v1/console/blueprints/{blueprint_id}/versions/{blueprint_version_id}` for engine and hardware tier details. `blueprint_id` is globally unique.


/api/v1/console/blueprints/{blueprint_id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprints/{blueprint_id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MarketplaceApi;

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

public class MarketplaceApiExample {
    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
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique

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

final api_instance = DefaultApi();

final Integer blueprintId = new Integer(); // Integer | Blueprint identifier, globally unique

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

import org.openapitools.client.api.MarketplaceApi;

public class MarketplaceApiExample {
    public static void main(String[] args) {
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique

        try {
            Blueprint result = apiInstance.getBlueprint(blueprintId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#getBlueprint");
            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
MarketplaceApi *apiInstance = [[MarketplaceApi alloc] init];
Integer *blueprintId = 8; // Blueprint identifier, globally unique (default to null)

// Get a single blueprint with its version list
[apiInstance getBlueprintWith:blueprintId
              completionHandler: ^(Blueprint output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.MarketplaceApi()
var blueprintId = 8; // {Integer} Blueprint identifier, globally unique

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

namespace Example
{
    public class getBlueprintExample
    {
        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 MarketplaceApi();
            var blueprintId = 8;  // Integer | Blueprint identifier, globally unique (default to null)

            try {
                // Get a single blueprint with its version list
                Blueprint result = apiInstance.getBlueprint(blueprintId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MarketplaceApi.getBlueprint: " + 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\MarketplaceApi();
$blueprintId = 8; // Integer | Blueprint identifier, globally unique

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

# 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::MarketplaceApi->new();
my $blueprintId = 8; # Integer | Blueprint identifier, globally unique

eval {
    my $result = $api_instance->getBlueprint(blueprintId => $blueprintId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MarketplaceApi->getBlueprint: $@\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.MarketplaceApi()
blueprintId = 8 # Integer | Blueprint identifier, globally unique (default to null)

try:
    # Get a single blueprint with its version list
    api_response = api_instance.get_blueprint(blueprintId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MarketplaceApi->getBlueprint: %s\n" % e)
extern crate MarketplaceApi;

pub fn main() {
    let blueprintId = 8; // Integer

    let mut context = MarketplaceApi::Context::default();
    let result = client.getBlueprint(blueprintId, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
blueprint_id*
Integer
Blueprint identifier, globally unique
Required

Responses


getBlueprintVersionDetail

Get blueprint version detail (engines + hardware tiers)

Returns the full detail for a single blueprint version, including its engine instances (each with compatible version choices) and hardware tiers. Used by the deploy form to populate engine version pickers and cluster topology.


/api/v1/console/blueprints/{blueprint_id}/versions/{blueprint_version_id}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprints/{blueprint_id}/versions/{blueprint_version_id}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MarketplaceApi;

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

public class MarketplaceApiExample {
    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
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique
        Integer blueprintVersionId = 10; // Integer | Blueprint version identifier

        try {
            BlueprintVersionDetail result = apiInstance.getBlueprintVersionDetail(blueprintId, blueprintVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#getBlueprintVersionDetail");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer blueprintId = new Integer(); // Integer | Blueprint identifier, globally unique
final Integer blueprintVersionId = new Integer(); // Integer | Blueprint version identifier

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

import org.openapitools.client.api.MarketplaceApi;

public class MarketplaceApiExample {
    public static void main(String[] args) {
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique
        Integer blueprintVersionId = 10; // Integer | Blueprint version identifier

        try {
            BlueprintVersionDetail result = apiInstance.getBlueprintVersionDetail(blueprintId, blueprintVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#getBlueprintVersionDetail");
            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
MarketplaceApi *apiInstance = [[MarketplaceApi alloc] init];
Integer *blueprintId = 8; // Blueprint identifier, globally unique (default to null)
Integer *blueprintVersionId = 10; // Blueprint version identifier (default to null)

// Get blueprint version detail (engines + hardware tiers)
[apiInstance getBlueprintVersionDetailWith:blueprintId
    blueprintVersionId:blueprintVersionId
              completionHandler: ^(BlueprintVersionDetail output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.MarketplaceApi()
var blueprintId = 8; // {Integer} Blueprint identifier, globally unique
var blueprintVersionId = 10; // {Integer} Blueprint version identifier

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

namespace Example
{
    public class getBlueprintVersionDetailExample
    {
        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 MarketplaceApi();
            var blueprintId = 8;  // Integer | Blueprint identifier, globally unique (default to null)
            var blueprintVersionId = 10;  // Integer | Blueprint version identifier (default to null)

            try {
                // Get blueprint version detail (engines + hardware tiers)
                BlueprintVersionDetail result = apiInstance.getBlueprintVersionDetail(blueprintId, blueprintVersionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MarketplaceApi.getBlueprintVersionDetail: " + 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\MarketplaceApi();
$blueprintId = 8; // Integer | Blueprint identifier, globally unique
$blueprintVersionId = 10; // Integer | Blueprint version identifier

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

# 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::MarketplaceApi->new();
my $blueprintId = 8; # Integer | Blueprint identifier, globally unique
my $blueprintVersionId = 10; # Integer | Blueprint version identifier

eval {
    my $result = $api_instance->getBlueprintVersionDetail(blueprintId => $blueprintId, blueprintVersionId => $blueprintVersionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MarketplaceApi->getBlueprintVersionDetail: $@\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.MarketplaceApi()
blueprintId = 8 # Integer | Blueprint identifier, globally unique (default to null)
blueprintVersionId = 10 # Integer | Blueprint version identifier (default to null)

try:
    # Get blueprint version detail (engines + hardware tiers)
    api_response = api_instance.get_blueprint_version_detail(blueprintId, blueprintVersionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MarketplaceApi->getBlueprintVersionDetail: %s\n" % e)
extern crate MarketplaceApi;

pub fn main() {
    let blueprintId = 8; // Integer
    let blueprintVersionId = 10; // Integer

    let mut context = MarketplaceApi::Context::default();
    let result = client.getBlueprintVersionDetail(blueprintId, blueprintVersionId, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
blueprint_id*
Integer
Blueprint identifier, globally unique
Required
blueprint_version_id*
Integer
Blueprint version identifier
Required

Responses


getEngineVersionConfigSchema

Get engine version config schema

Returns the config form fields for a specific engine version. Fetched lazily by the deploy form when the user selects an engine version. Engine name/description come from `getBlueprintVersionDetail`; this endpoint returns the form inputs and the engine's declared S3 storage slots (`s3_storage`), whose names are the valid values for an `S3StorageBinding`'s `names`.


/api/v1/console/engine-versions/{engine_version_id}/config-schema

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/engine-versions/{engine_version_id}/config-schema"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MarketplaceApi;

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

public class MarketplaceApiExample {
    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
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer engineVersionId = 50; // Integer | Engine version identifier

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

final api_instance = DefaultApi();

final Integer engineVersionId = new Integer(); // Integer | Engine version identifier

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

import org.openapitools.client.api.MarketplaceApi;

public class MarketplaceApiExample {
    public static void main(String[] args) {
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer engineVersionId = 50; // Integer | Engine version identifier

        try {
            EngineVersionConfigSchema result = apiInstance.getEngineVersionConfigSchema(engineVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#getEngineVersionConfigSchema");
            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
MarketplaceApi *apiInstance = [[MarketplaceApi alloc] init];
Integer *engineVersionId = 50; // Engine version identifier (default to null)

// Get engine version config schema
[apiInstance getEngineVersionConfigSchemaWith:engineVersionId
              completionHandler: ^(EngineVersionConfigSchema output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.MarketplaceApi()
var engineVersionId = 50; // {Integer} Engine version identifier

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

namespace Example
{
    public class getEngineVersionConfigSchemaExample
    {
        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 MarketplaceApi();
            var engineVersionId = 50;  // Integer | Engine version identifier (default to null)

            try {
                // Get engine version config schema
                EngineVersionConfigSchema result = apiInstance.getEngineVersionConfigSchema(engineVersionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MarketplaceApi.getEngineVersionConfigSchema: " + 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\MarketplaceApi();
$engineVersionId = 50; // Integer | Engine version identifier

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

# 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::MarketplaceApi->new();
my $engineVersionId = 50; # Integer | Engine version identifier

eval {
    my $result = $api_instance->getEngineVersionConfigSchema(engineVersionId => $engineVersionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MarketplaceApi->getEngineVersionConfigSchema: $@\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.MarketplaceApi()
engineVersionId = 50 # Integer | Engine version identifier (default to null)

try:
    # Get engine version config schema
    api_response = api_instance.get_engine_version_config_schema(engineVersionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MarketplaceApi->getEngineVersionConfigSchema: %s\n" % e)
extern crate MarketplaceApi;

pub fn main() {
    let engineVersionId = 50; // Integer

    let mut context = MarketplaceApi::Context::default();
    let result = client.getEngineVersionConfigSchema(engineVersionId, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
engine_version_id*
Integer
Engine version identifier
Required

Responses


listBlueprints

List blueprints across catalogs

Returns blueprint parent tiles flattened across all catalogs, each with its registry-present version drill-down. Pass `catalog_id` to scope to a single catalog. The version `blueprint_version_id` is the deploy entry point for creating a blueprint deployment. Platform blueprints are omitted: they are listed by `listPlatformBlueprints`. That is every blueprint of a dedicated platform registry, and, when the platform registry is also a marketplace registry, the blueprints of that registry whose deciding version declares `ui.platform`. A `catalog_id` that names a dedicated platform catalog is rejected.


/api/v1/console/blueprints

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprints?catalog_id=1&limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MarketplaceApi;

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

public class MarketplaceApiExample {
    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
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer catalogId = 1; // Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listBlueprints_200_response result = apiInstance.listBlueprints(catalogId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#listBlueprints");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer catalogId = new Integer(); // Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.MarketplaceApi;

public class MarketplaceApiExample {
    public static void main(String[] args) {
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer catalogId = 1; // Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listBlueprints_200_response result = apiInstance.listBlueprints(catalogId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#listBlueprints");
            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
MarketplaceApi *apiInstance = [[MarketplaceApi alloc] init];
Integer *catalogId = 1; // Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.
 (optional) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List blueprints across catalogs
[apiInstance listBlueprintsWith:catalogId
    limit:limit
    offset:offset
              completionHandler: ^(listBlueprints_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.MarketplaceApi()
var opts = {
  'catalogId': 1, // {Integer} Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listBlueprintsExample
    {
        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 MarketplaceApi();
            var catalogId = 1;  // Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.
 (optional)  (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List blueprints across catalogs
                listBlueprints_200_response result = apiInstance.listBlueprints(catalogId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MarketplaceApi.listBlueprints: " + 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\MarketplaceApi();
$catalogId = 1; // Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::MarketplaceApi->new();
my $catalogId = 1; # Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.

my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listBlueprints(catalogId => $catalogId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MarketplaceApi->listBlueprints: $@\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.MarketplaceApi()
catalogId = 1 # Integer | Optional filter scoping the list to a single catalog. Omit to list across
all catalogs.
 (optional) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List blueprints across catalogs
    api_response = api_instance.list_blueprints(catalogId=catalogId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MarketplaceApi->listBlueprints: %s\n" % e)
extern crate MarketplaceApi;

pub fn main() {
    let catalogId = 1; // Integer
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = MarketplaceApi::Context::default();
    let result = client.listBlueprints(catalogId, limit, offset, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
catalog_id
Integer
Optional filter scoping the list to a single catalog. Omit to list across all catalogs.
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listReuseCandidates

List reuse candidates for a blueprint version's engine slots

For each engine slot declared by this blueprint version, returns every existing engine deployment that matches the slot's engine identity and compatible-version set, regardless of status. Used by the deploy form's reuse picker as a preflight; the eligible boolean does not itself gate cluster placement — the compatible set is cluster-agnostic (candidates from any cluster are returned; `cluster_id` lets the client filter). A candidate whose engine is not yet `deployed` is returned with `eligible: false` and a `reason` explaining why, so the UI can grey it out rather than omit it. An unmatched slot returns an empty `candidates` array — never a 404; 404 is reserved for an unknown blueprint version. Eligibility uses the blueprint slot's `minimumVersion`, the same rule a fresh deploy applies: same major version and at or above the minimum in semantic-version order (with a 2.0.0 minimum, 2.0.1-b123 is eligible and 2.0.0-b123 is not). Each slot is evaluated on its own: minimum versions that other engines in the blueprint declare on their dependencies are checked by a deploy or `dry_run`, against the full selection.


/api/v1/console/blueprints/{blueprint_id}/versions/{blueprint_version_id}/reuse-candidates

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/blueprints/{blueprint_id}/versions/{blueprint_version_id}/reuse-candidates"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.MarketplaceApi;

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

public class MarketplaceApiExample {
    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
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique
        Integer blueprintVersionId = 10; // Integer | Blueprint version identifier

        try {
            ReuseCandidateList result = apiInstance.listReuseCandidates(blueprintId, blueprintVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#listReuseCandidates");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer blueprintId = new Integer(); // Integer | Blueprint identifier, globally unique
final Integer blueprintVersionId = new Integer(); // Integer | Blueprint version identifier

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

import org.openapitools.client.api.MarketplaceApi;

public class MarketplaceApiExample {
    public static void main(String[] args) {
        MarketplaceApi apiInstance = new MarketplaceApi();
        Integer blueprintId = 8; // Integer | Blueprint identifier, globally unique
        Integer blueprintVersionId = 10; // Integer | Blueprint version identifier

        try {
            ReuseCandidateList result = apiInstance.listReuseCandidates(blueprintId, blueprintVersionId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MarketplaceApi#listReuseCandidates");
            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
MarketplaceApi *apiInstance = [[MarketplaceApi alloc] init];
Integer *blueprintId = 8; // Blueprint identifier, globally unique (default to null)
Integer *blueprintVersionId = 10; // Blueprint version identifier (default to null)

// List reuse candidates for a blueprint version's engine slots
[apiInstance listReuseCandidatesWith:blueprintId
    blueprintVersionId:blueprintVersionId
              completionHandler: ^(ReuseCandidateList output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.MarketplaceApi()
var blueprintId = 8; // {Integer} Blueprint identifier, globally unique
var blueprintVersionId = 10; // {Integer} Blueprint version identifier

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

namespace Example
{
    public class listReuseCandidatesExample
    {
        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 MarketplaceApi();
            var blueprintId = 8;  // Integer | Blueprint identifier, globally unique (default to null)
            var blueprintVersionId = 10;  // Integer | Blueprint version identifier (default to null)

            try {
                // List reuse candidates for a blueprint version's engine slots
                ReuseCandidateList result = apiInstance.listReuseCandidates(blueprintId, blueprintVersionId);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling MarketplaceApi.listReuseCandidates: " + 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\MarketplaceApi();
$blueprintId = 8; // Integer | Blueprint identifier, globally unique
$blueprintVersionId = 10; // Integer | Blueprint version identifier

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

# 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::MarketplaceApi->new();
my $blueprintId = 8; # Integer | Blueprint identifier, globally unique
my $blueprintVersionId = 10; # Integer | Blueprint version identifier

eval {
    my $result = $api_instance->listReuseCandidates(blueprintId => $blueprintId, blueprintVersionId => $blueprintVersionId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling MarketplaceApi->listReuseCandidates: $@\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.MarketplaceApi()
blueprintId = 8 # Integer | Blueprint identifier, globally unique (default to null)
blueprintVersionId = 10 # Integer | Blueprint version identifier (default to null)

try:
    # List reuse candidates for a blueprint version's engine slots
    api_response = api_instance.list_reuse_candidates(blueprintId, blueprintVersionId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MarketplaceApi->listReuseCandidates: %s\n" % e)
extern crate MarketplaceApi;

pub fn main() {
    let blueprintId = 8; // Integer
    let blueprintVersionId = 10; // Integer

    let mut context = MarketplaceApi::Context::default();
    let result = client.listReuseCandidates(blueprintId, blueprintVersionId, &context).wait();

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

Scopes

view_marketplace HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
blueprint_id*
Integer
Blueprint identifier, globally unique
Required
blueprint_version_id*
Integer
Blueprint version identifier
Required

Responses


Storage

createS3BackendBucket

Create a bucket on a registered S3 backend

Wraps ABS's `createS3BackendBucket`: asks ABS to create one bucket on the backend, signed with the backend's real, stored credentials. It creates only the bucket. Registering it as a dataset stays the separate `createStorageServiceDatasets` step, and nothing is written to the cluster. Returns 201 when the backend created the bucket, and 200 when the bucket already exists on the backend, so a repeat is safe. Requires the backend to be `active` (validated) in ABS; returns 400 `BACKEND_NOT_ACTIVE` otherwise, and 400 `INVALID_BUCKET_NAME` for a name outside S3's bucket naming rules. Only S3 storage services take a bucket this way, as in the console UI, where the control is disabled for any other kind. A storage service of another kind (today, `azure`) is refused with 409 `STORAGE_BUCKET_CREATE_NOT_AVAILABLE`; an Azure service's containers are added by name. Dataset names are unique across storage services, because a dataset is named after its bucket. Before asking ABS, the console refuses with 409 `STORAGE_BUCKET_NAME_IN_USE` a name that registering the bucket would then reject: one a dataset already holds for another storage service's bucket, or for another bucket of this service. A dataset that already registers this very bucket on this service does not stop the create, so a create retried after a failed registration still works. A `backend_id` that no storage service in the cluster carries is 404 `BACKEND_NOT_FOUND`. A storage service that is being deleted is refused with 409 `STORAGE_SERVICE_DELETING` before ABS is asked: registration would refuse the bucket, and deleting the service keeps its buckets. When the backend refuses the create, the answer is 500 `BUCKET_CREATE_FAILED` with ABS's sanitized description of the refusal. On a console installed without storage (`abs.enabled: false`) there is no ABS to ask, and this returns 409 `STORAGE_NOT_ENABLED`.


/api/v1/console/s3-backends/{backend_id}/buckets

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/s3-backends/{backend_id}/buckets" \
 -d '{
  "name" : "sales"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String backendId = backend-034; // String | ABS S3 backend identifier
        CreateS3BucketRequest createS3BucketRequest = ; // CreateS3BucketRequest | 

        try {
            DiscoveredS3Bucket result = apiInstance.createS3BackendBucket(backendId, createS3BucketRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#createS3BackendBucket");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String backendId = new String(); // String | ABS S3 backend identifier
final CreateS3BucketRequest createS3BucketRequest = new CreateS3BucketRequest(); // CreateS3BucketRequest | 

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String backendId = backend-034; // String | ABS S3 backend identifier
        CreateS3BucketRequest createS3BucketRequest = ; // CreateS3BucketRequest | 

        try {
            DiscoveredS3Bucket result = apiInstance.createS3BackendBucket(backendId, createS3BucketRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#createS3BackendBucket");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *backendId = backend-034; // ABS S3 backend identifier (default to null)
CreateS3BucketRequest *createS3BucketRequest = ; // 

// Create a bucket on a registered S3 backend
[apiInstance createS3BackendBucketWith:backendId
    createS3BucketRequest:createS3BucketRequest
              completionHandler: ^(DiscoveredS3Bucket output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var backendId = backend-034; // {String} ABS S3 backend identifier
var createS3BucketRequest = ; // {CreateS3BucketRequest} 

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

namespace Example
{
    public class createS3BackendBucketExample
    {
        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 StorageApi();
            var backendId = backend-034;  // String | ABS S3 backend identifier (default to null)
            var createS3BucketRequest = new CreateS3BucketRequest(); // CreateS3BucketRequest | 

            try {
                // Create a bucket on a registered S3 backend
                DiscoveredS3Bucket result = apiInstance.createS3BackendBucket(backendId, createS3BucketRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.createS3BackendBucket: " + 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\StorageApi();
$backendId = backend-034; // String | ABS S3 backend identifier
$createS3BucketRequest = ; // CreateS3BucketRequest | 

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

# 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::StorageApi->new();
my $backendId = backend-034; # String | ABS S3 backend identifier
my $createS3BucketRequest = WWW::OPenAPIClient::Object::CreateS3BucketRequest->new(); # CreateS3BucketRequest | 

eval {
    my $result = $api_instance->createS3BackendBucket(backendId => $backendId, createS3BucketRequest => $createS3BucketRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->createS3BackendBucket: $@\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.StorageApi()
backendId = backend-034 # String | ABS S3 backend identifier (default to null)
createS3BucketRequest =  # CreateS3BucketRequest | 

try:
    # Create a bucket on a registered S3 backend
    api_response = api_instance.create_s3_backend_bucket(backendId, createS3BucketRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->createS3BackendBucket: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let backendId = backend-034; // String
    let createS3BucketRequest = ; // CreateS3BucketRequest

    let mut context = StorageApi::Context::default();
    let result = client.createS3BackendBucket(backendId, createS3BucketRequest, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.
manage_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
backend_id*
String
ABS S3 backend identifier
Required
Body parameters
Name Description
createS3BucketRequest *

Responses


createStorageService

Register a new S3-compatible storage service

Registers a new S3-compatible storage service. awc-console writes a credential Secret and an S3Backend custom resource to the console cluster's `abs` namespace, then waits (bounded) for the abs-operator to reach a verdict; it writes nothing to ABS. **Registration is an attempt, not a single request.** Once written, the Secret and S3Backend are retained after this request returns, and the abs-operator keeps reconciling them, except that for `kind: s3` the abs-operator's rejection of the input (`422` `STORAGE_SERVICE_REJECTED`) or ABS still unreachable once the retry grace is over (`503` `STORAGE_SERVICE_ABS_UNREACHABLE`) removes them. A `kind: azure` registration is never removed by this request once written. A response other than `201`, an s3 `422` or that `503` therefore never proves that no storage service exists, unless its `detail` says that nothing was registered (the Azure answers below): registration can still become `Ready` after the response. Use `GET /api/v1/console/storage-service-registrations/{registration_name}` to read the attempt's current state, and `PUT /api/v1/console/storage-service-registrations/{registration_name}` to correct its input. Outcomes: * `201 Created` — the S3Backend reached phase `Ready`; `id` is the ABS-assigned backend UUID. * `200 OK` — the same input was already registered by an earlier request and is `Ready` (an idempotent retry); no new resources were written. * `202 Accepted` — no final verdict yet. `state` is `pending` (the outcome is unknown: the wait budget elapsed without a verdict) or `retrying` (the abs-operator reported a failure and keeps retrying, e.g. validation failed and will be tried again (`ValidationFailed`), the credentials Secret is missing, or the input is being corrected; `reason` and `message` carry the operator's detail, including ABS's reason for a failed validation). It may still become `ready`; the attempt is kept and continues in the background. For `kind: s3`, a retry because ABS could not be reached is answered `503` `STORAGE_SERVICE_ABS_UNREACHABLE` once the retry grace is over; for `kind: azure` it is answered `202`. * `422 Unprocessable Entity` — the abs-operator rejected the input and will not retry until it changes (`STORAGE_SERVICE_REJECTED`): an invalid spec or malformed credentials (`InvalidSpec`, `CredentialsSecretMalformed`), or a validation failure it gave up on (`ValidationRejected`: bad credentials, an unresolvable host, a redirecting endpoint, a region mismatch, or validation that kept failing for 30 minutes). A validation failure the operator is still retrying (`ValidationFailed`), a Degraded backend alone, or any other retry reason is `202`. `detail` carries the operator's reason and message. For `kind: s3`, the console deletes the failed attempt before this response is returned, and the delete waits for its credential Secret (foreground deletion), so the removal finishes asynchronously: fix the input and POST again; an immediate repeat is answered `409` `STORAGE_SERVICE_REGISTRATION_DELETING` until it is complete. When the delete fails or is declined (for example the console's Role lacks `delete` on `s3backends`), the attempt is kept and `detail` ends with "the failed attempt could not be removed and was kept"; correct it with `PUT` instead of registering again. For `kind: azure`, the registration that was written stays; correct it with the `PUT` operation above. A `kind: azure` 422 with a `sub_code` means something else: the account was refused before anything was written (below). The request `name` is used as the S3Backend custom resource name. A repeated request with the *same* name and *identical* input resumes the existing attempt (no duplicate resources); it is safe to retry after a timeout or a lost connection. The same name with *different* input returns `409` — `STORAGE_SERVICE_REGISTRATION_EXISTS` when it names an unfinished attempt created through this API (read or correct it), and `STORAGE_SERVICE_ALREADY_EXISTS` for a name owned by something else or an already-`Ready` service (choose another name). `STORAGE_SERVICE_REGISTRATION_DELETING` means a registration with the name is being removed and its removal is still finishing: a rejected `kind: s3` attempt the console removed (including its credential Secret), or a registration of either kind that an administrator deleted; retry shortly. Request cancellation (client disconnect) stops the wait only; it never rolls back or cancels the attempt. On a console installed without storage (`abs.enabled: false`) there is no abs-operator or `abs` namespace to write to, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster. **Azure (`kind: azure`).** The body carries `azure` (account, cloud, account key, optional staging container) and no S3 field. An Azure account is checked before anything is written, in this order: 1. The console refuses an account another storage service already names (`409 AZURE_ACCOUNT_CONFLICT`). 2. When the staging container is empty, it reads this installation's default from ABS within 5 s: `409 AZURE_NO_FLEET` or `409 AZURE_BACKENDS_DISABLED` while a prerequisite of the platform is not met on the console cluster, `503 STORAGE_BACKEND_UNAVAILABLE` if the read fails. 3. It sends the S3Backend and the credential Secret to the cluster as dry runs, which store nothing. A refusal is answered as for `s3` (`422 STORAGE_SERVICE_INVALID`, `503 STORAGE_BACKEND_UNAVAILABLE`, or `409 STORAGE_SERVICE_REGISTRATION_DELETING` while a deleted registration's credential Secret is still being removed), and ABS is not asked. 4. It asks ABS to check the account with exactly the input it would write, and waits up to 50 s for the verdict. ABS runs its registration check against Azure and stores nothing. A refused account answers `422 STORAGE_SERVICE_REJECTED` with ABS's code in `sub_code` and ABS's message, followed by what to do next, in `detail`. A check that could not be run (ABS unreachable, or no verdict in time) answers `503 STORAGE_BACKEND_UNAVAILABLE`. None of these writes anything, so there is nothing to correct or remove: fix what the message names and send the request again. Only an accepted account is written. From then on it is registered: the abs-operator validates it again and keeps retrying for as long as that fails, and the console never removes it. The request waits for the abs-operator's verdict as it does for `s3` and answers with the state reached: `201`, `202` (for a `retrying` Azure registration `message` ends `AWC keeps retrying.`, or, when its credential Secret cannot be read, says so), or `422` without a `sub_code` when ABS refused the registration for good after it was written, which leaves it to be corrected. With Azure storage turned off on the console this returns `409 AZURE_STORAGE_NOT_ENABLED`. An Azure registration can take about 110 s: up to 5 s to read the default staging container, up to 40 s for ABS's check (the console gives up at 50 s), and up to 60 s waiting for the abs-operator's verdict. Whatever stands in front of the console must let a request run for 150 s.


/api/v1/console/storage-services

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/storage-services" \
 -d '{
  "secret_key" : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
  "endpoint" : "https://s3.example.com",
  "kind" : "s3",
  "access_key" : "AKIAIOSFODNN7EXAMPLE",
  "name" : "production-s3",
  "region" : "us-east-1",
  "azure" : {
    "cloud" : "public",
    "staging_container" : "awc-staging-ab12cd",
    "account_key" : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "protocols" : [ "s3" ],
    "account" : "contosolake"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        CreateStorageServiceRequest createStorageServiceRequest = ; // CreateStorageServiceRequest | 

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

final api_instance = DefaultApi();

final CreateStorageServiceRequest createStorageServiceRequest = new CreateStorageServiceRequest(); // CreateStorageServiceRequest | 

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        CreateStorageServiceRequest createStorageServiceRequest = ; // CreateStorageServiceRequest | 

        try {
            StorageService result = apiInstance.createStorageService(createStorageServiceRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#createStorageService");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
CreateStorageServiceRequest *createStorageServiceRequest = ; // 

// Register a new S3-compatible storage service
[apiInstance createStorageServiceWith:createStorageServiceRequest
              completionHandler: ^(StorageService output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var createStorageServiceRequest = ; // {CreateStorageServiceRequest} 

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

namespace Example
{
    public class createStorageServiceExample
    {
        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 StorageApi();
            var createStorageServiceRequest = new CreateStorageServiceRequest(); // CreateStorageServiceRequest | 

            try {
                // Register a new S3-compatible storage service
                StorageService result = apiInstance.createStorageService(createStorageServiceRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.createStorageService: " + 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\StorageApi();
$createStorageServiceRequest = ; // CreateStorageServiceRequest | 

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

# 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::StorageApi->new();
my $createStorageServiceRequest = WWW::OPenAPIClient::Object::CreateStorageServiceRequest->new(); # CreateStorageServiceRequest | 

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

try:
    # Register a new S3-compatible storage service
    api_response = api_instance.create_storage_service(createStorageServiceRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->createStorageService: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let createStorageServiceRequest = ; // CreateStorageServiceRequest

    let mut context = StorageApi::Context::default();
    let result = client.createStorageService(createStorageServiceRequest, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.
manage_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Body parameters
Name Description
createStorageServiceRequest *

Responses


createStorageServiceDatasets

Register buckets of a storage service as S3Datasets

Registers buckets on a storage service as datasets. For each bucket, awc-console writes an S3Dataset custom resource to the console cluster's `abs` namespace, referencing the service's S3Backend, with both `appBucket` and `backendBucket` set to the bucket name. It writes nothing to ABS. Each new name is checked before it is written, for `s3` buckets and `azure` containers alike: the console asks ABS whether a dataset with that name would register on the service (the bucket or container exists and can be served, and its name is free). ABS also accepts a bucket or container whose dataset it already holds, with the same storage service, app bucket and backend bucket: the abs-operator adopts such a dataset instead of creating it, so adding it ends with the dataset in place. ABS stores nothing. A name ABS refuses is answered `rejected` with ABS's `code` and message and is not written. A name ABS could not check against the storage, or whose check could not be run, is `failed` with `CONTAINER_CHECK_UNAVAILABLE` and is not written; add it again. Only an accepted name is written, and it is answered `created` without waiting for the abs-operator. Up to 10 names are checked at once and the checks of one request get 60 s; a name not checked by then is `failed` with `CONTAINER_CHECK_UNAVAILABLE`. Once the checks are over, the accepted names are written one after another, in request order. Before a name is answered with `CONTAINER_CHECK_UNAVAILABLE`, the console reads once more whether another request added it while the checks ran: a name an S3Dataset holds by then is answered from that S3Dataset instead. An `s3` storage service that is being deleted or is not `Ready` takes no name at all (`409`, below). While an `azure` storage service is not registered, every new name is `failed` with `STORAGE_SERVICE_NOT_READY` and nothing is written. An `azure` storage service that is being deleted takes no new name either: each name is `rejected` and nothing is written. On either kind, a storage service that starts being deleted, or is replaced by another of the same name, while the names are written answers the names not yet written `rejected`; a name written just then is removed again and answered `rejected` (`failed`, naming its S3Dataset, if that removal fails). For an `azure` storage service the names are container names and follow Azure's container-name rules. Writing an accepted name can fail. When the cluster refused the write, the name is `failed`: nothing was stored. When the failure does not say whether the S3Dataset was stored (a lost answer, a timeout), the console reads it back once. Stored: the name is `created`. Not found, or the read fails too, or the request's time has ended: the console does not know, since the write can still land after the read. The name is then `failed` with `CONTAINER_WRITE_UNCONFIRMED`, and it may or may not have been added. Add it again to find out: it is answered `already_exists` if it was. An accepted name whose write the request's time ended before gets the same answer, since another request may have added it. So does a name that an S3Dataset already holds when the console cannot read that S3Dataset: it does not know whether the name is added, so it does not say that it is not. So does a name the console could not check, when it cannot read either whether another request added it meanwhile. Nothing removes an S3Dataset once it is written. If the abs-operator's registration of an accepted name is refused after all (the container was deleted in between), the S3Dataset stays, and adding the same name again answers `rejected` with the code and message it carries. The abs-operator tries such a dataset again by itself, about every 5 minutes, unless ABS refused its spec as invalid. While it does, the name's result carries `retrying: true`; once ABS accepts the bucket or container, the name answers `already_exists`. The response reports one result per requested bucket, in request order. A request already underway finishes even if the client disconnects. On a console installed without storage (`abs.enabled: false`), storage cannot be registered, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster. New S3Datasets are named after the bucket alias, so concurrent console requests for the same alias contend on one Kubernetes object. An existing dataset with the same backend, physical bucket, and app bucket is left unchanged, is not checked again, and is reported as `already_exists` (or `rejected`, as above, when the abs-operator reports it refused), including datasets created under older naming conventions. A bucket that cannot be registered is skipped without affecting the rest of the request: `rejected` means the bucket cannot be registered as requested (invalid name, an existing conflicting mapping, or multiple existing datasets claiming the alias) and retrying will not help until the conflict is resolved. Each app bucket may belong to only one dataset. `failed` means the write failed, or an existing dataset is being deleted, and retrying may succeed.


/api/v1/console/storage-services/{storage_service_name}/datasets

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/storage-services/{storage_service_name}/datasets" \
 -d '{
  "buckets" : [ "finance-reports", "audit-logs" ]
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String storageServiceName = production-s3; // String | Storage service name (the S3Backend custom resource name)
        CreateStorageServiceDatasetsRequest createStorageServiceDatasetsRequest = ; // CreateStorageServiceDatasetsRequest | 

        try {
            CreateStorageServiceDatasetsResponse result = apiInstance.createStorageServiceDatasets(storageServiceName, createStorageServiceDatasetsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#createStorageServiceDatasets");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String storageServiceName = new String(); // String | Storage service name (the S3Backend custom resource name)
final CreateStorageServiceDatasetsRequest createStorageServiceDatasetsRequest = new CreateStorageServiceDatasetsRequest(); // CreateStorageServiceDatasetsRequest | 

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String storageServiceName = production-s3; // String | Storage service name (the S3Backend custom resource name)
        CreateStorageServiceDatasetsRequest createStorageServiceDatasetsRequest = ; // CreateStorageServiceDatasetsRequest | 

        try {
            CreateStorageServiceDatasetsResponse result = apiInstance.createStorageServiceDatasets(storageServiceName, createStorageServiceDatasetsRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#createStorageServiceDatasets");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *storageServiceName = production-s3; // Storage service name (the S3Backend custom resource name) (default to null)
CreateStorageServiceDatasetsRequest *createStorageServiceDatasetsRequest = ; // 

// Register buckets of a storage service as S3Datasets
[apiInstance createStorageServiceDatasetsWith:storageServiceName
    createStorageServiceDatasetsRequest:createStorageServiceDatasetsRequest
              completionHandler: ^(CreateStorageServiceDatasetsResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var storageServiceName = production-s3; // {String} Storage service name (the S3Backend custom resource name)
var createStorageServiceDatasetsRequest = ; // {CreateStorageServiceDatasetsRequest} 

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

namespace Example
{
    public class createStorageServiceDatasetsExample
    {
        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 StorageApi();
            var storageServiceName = production-s3;  // String | Storage service name (the S3Backend custom resource name) (default to null)
            var createStorageServiceDatasetsRequest = new CreateStorageServiceDatasetsRequest(); // CreateStorageServiceDatasetsRequest | 

            try {
                // Register buckets of a storage service as S3Datasets
                CreateStorageServiceDatasetsResponse result = apiInstance.createStorageServiceDatasets(storageServiceName, createStorageServiceDatasetsRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.createStorageServiceDatasets: " + 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\StorageApi();
$storageServiceName = production-s3; // String | Storage service name (the S3Backend custom resource name)
$createStorageServiceDatasetsRequest = ; // CreateStorageServiceDatasetsRequest | 

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

# 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::StorageApi->new();
my $storageServiceName = production-s3; # String | Storage service name (the S3Backend custom resource name)
my $createStorageServiceDatasetsRequest = WWW::OPenAPIClient::Object::CreateStorageServiceDatasetsRequest->new(); # CreateStorageServiceDatasetsRequest | 

eval {
    my $result = $api_instance->createStorageServiceDatasets(storageServiceName => $storageServiceName, createStorageServiceDatasetsRequest => $createStorageServiceDatasetsRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->createStorageServiceDatasets: $@\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.StorageApi()
storageServiceName = production-s3 # String | Storage service name (the S3Backend custom resource name) (default to null)
createStorageServiceDatasetsRequest =  # CreateStorageServiceDatasetsRequest | 

try:
    # Register buckets of a storage service as S3Datasets
    api_response = api_instance.create_storage_service_datasets(storageServiceName, createStorageServiceDatasetsRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->createStorageServiceDatasets: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let storageServiceName = production-s3; // String
    let createStorageServiceDatasetsRequest = ; // CreateStorageServiceDatasetsRequest

    let mut context = StorageApi::Context::default();
    let result = client.createStorageServiceDatasets(storageServiceName, createStorageServiceDatasetsRequest, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.
manage_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
storage_service_name*
String
Storage service name (the S3Backend custom resource name)
Required
Body parameters
Name Description
createStorageServiceDatasetsRequest *

Responses


deleteStorageServiceRegistration

Delete a storage service registration

Deletes a registered storage service, with its buckets and containers, when none of them is in use, or cleans up a failed registration. Allowed in the states `ready`, `retrying` and `rejected` (a `retrying` registration is one the abs-operator keeps retrying after a failure). A `pending` registration has no verdict yet and is refused with `409` `STORAGE_SERVICE_REGISTRATION_NOT_DELETABLE`; wait for its verdict, then delete it. The same refusal applies while the abs-operator has an ABS create in flight or unconfirmed for the service (it does not clean up in that state, so an accepted delete would only wait); the `detail` says so. Retry shortly; if it persists, an administrator must resolve the unconfirmed create (see the storage service registration guide). The service's buckets and containers (S3Datasets) are removed from AWC with it, but only if none of them is in use; otherwise the request is refused with `409` `STORAGE_SERVICE_IN_USE`, whose message names the used buckets (up to five) and what uses each. Nothing in use is ever removed, and normally nothing at all; the storage service registration guide lists the rare races in which unused buckets go before a refusal. Data in the cloud account is never touched. A bucket is in use while an engine deployment that still exists names it, for data (`s3Storage`) or for logs (`telemetry`), in any status, including one waiting for its cluster or being removed. Both the ACE Hub's engine deployments and the console's own deployment records are read, and a bucket either names is in use. A removed engine deployment does not count. If whether a bucket is in use cannot be established, the storage service is not deleted and the answer is `503` `STORAGE_SERVICE_USAGE_UNAVAILABLE`; try again. **Changed meaning of `409` `STORAGE_SERVICE_IN_USE`.** It used to mean that any dataset referenced the service, even an unused one, and the datasets had to be removed by hand first. It now means that a bucket or container is in use by an engine deployment; unused ones are deleted with the service. Deleting a registration that is already being deleted also removes its unused buckets and containers, for example one added while the first delete ran; with a used one it removes nothing and answers `202` with state `deletion_blocked`, naming it. When its live buckets and containers cannot be checked, it answers `503` `STORAGE_SERVICE_USAGE_UNAVAILABLE`. `202 Accepted` means the deletion was **accepted**, not that cleanup is complete. The abs-operator removes the backend from ABS asynchronously (its finalizer), and the credential Secrets are then removed by Kubernetes garbage collection. Poll `getStorageServiceRegistration` (or `listStorageServiceRegistrations`): the registration reports state `deleting` while removal runs and `deletion_blocked` when removal cannot finish yet (see `reason` and `message`); it is gone (`404`) once removal completes, and only then can the name be registered again. Until then `createStorageService` for the same name returns `409` `STORAGE_SERVICE_REGISTRATION_DELETING`. Repeating the delete of a registration that is already being deleted returns `202` again with its current state, or `503` `STORAGE_SERVICE_USAGE_UNAVAILABLE` when its live buckets and containers cannot be checked. **Changed from `204`.** This operation used to answer `204 No Content` (without a body) for a rejected registration, and hid that registration from `listStorageServiceRegistrations` and `getStorageServiceRegistration` at once. It now answers `202 Accepted` with the registration as the body, and the registration stays readable as `deleting` or `deletion_blocked` until removal completes. A caller that treated `204` as "deleted" must instead wait for `404` from `getStorageServiceRegistration`. Secrets written before owner references were added carry no owner and are not removed. On a console installed without storage (`abs.enabled: false`), storage cannot be registered, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster.


/api/v1/console/storage-service-registrations/{registration_name}

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/storage-service-registrations/{registration_name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

final api_instance = DefaultApi();

final String registrationName = new String(); // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


        try {
            StorageServiceRegistration result = apiInstance.deleteStorageServiceRegistration(registrationName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#deleteStorageServiceRegistration");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *registrationName = production-s3; // Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

// Delete a storage service registration
[apiInstance deleteStorageServiceRegistrationWith:registrationName
              completionHandler: ^(StorageServiceRegistration output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var registrationName = production-s3; // {String} Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

namespace Example
{
    public class deleteStorageServiceRegistrationExample
    {
        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 StorageApi();
            var registrationName = production-s3;  // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

            try {
                // Delete a storage service registration
                StorageServiceRegistration result = apiInstance.deleteStorageServiceRegistration(registrationName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.deleteStorageServiceRegistration: " + 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\StorageApi();
$registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

# 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::StorageApi->new();
my $registrationName = production-s3; # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


eval {
    my $result = $api_instance->deleteStorageServiceRegistration(registrationName => $registrationName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->deleteStorageServiceRegistration: $@\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.StorageApi()
registrationName = production-s3 # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

try:
    # Delete a storage service registration
    api_response = api_instance.delete_storage_service_registration(registrationName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->deleteStorageServiceRegistration: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let registrationName = production-s3; // String

    let mut context = StorageApi::Context::default();
    let result = client.deleteStorageServiceRegistration(registrationName, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.
manage_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
registration_name*
String
Name of the storage service registration attempt (the name supplied at registration, which is also the S3Backend custom resource name).
Required

Responses


getStorageServiceRegistration

Get a storage service registration attempt

Returns the current state of a registration attempt, including a late `Ready` with the ABS backend `id`. The state only reflects the abs-operator status computed for the attempt's *current* input: after a correction it is `pending` until the operator has observed the corrected resource, so a result from the previous input is never reported. A registration whose deletion was accepted (`deleteStorageServiceRegistration`) stays readable, with state `deleting` or `deletion_blocked`, until the abs-operator has finished removing it; it then returns `404`. On a console installed without storage (`abs.enabled: false`), storage cannot be registered, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster.


/api/v1/console/storage-service-registrations/{registration_name}

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/storage-service-registrations/{registration_name}"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

final api_instance = DefaultApi();

final String registrationName = new String(); // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


        try {
            StorageServiceRegistration result = apiInstance.getStorageServiceRegistration(registrationName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#getStorageServiceRegistration");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *registrationName = production-s3; // Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

// Get a storage service registration attempt
[apiInstance getStorageServiceRegistrationWith:registrationName
              completionHandler: ^(StorageServiceRegistration output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var registrationName = production-s3; // {String} Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

namespace Example
{
    public class getStorageServiceRegistrationExample
    {
        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 StorageApi();
            var registrationName = production-s3;  // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

            try {
                // Get a storage service registration attempt
                StorageServiceRegistration result = apiInstance.getStorageServiceRegistration(registrationName);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.getStorageServiceRegistration: " + 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\StorageApi();
$registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


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

# 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::StorageApi->new();
my $registrationName = production-s3; # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).


eval {
    my $result = $api_instance->getStorageServiceRegistration(registrationName => $registrationName);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->getStorageServiceRegistration: $@\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.StorageApi()
registrationName = production-s3 # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)

try:
    # Get a storage service registration attempt
    api_response = api_instance.get_storage_service_registration(registrationName)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->getStorageServiceRegistration: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let registrationName = production-s3; // String

    let mut context = StorageApi::Context::default();
    let result = client.getStorageServiceRegistration(registrationName, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
registration_name*
String
Name of the storage service registration attempt (the name supplied at registration, which is also the S3Backend custom resource name).
Required

Responses


listDiscoveredS3Buckets

List buckets discovered on a registered S3 backend

Wraps ABS's `listS3BackendBuckets`: calls AWS S3 `ListBuckets` against the backend's real, stored credentials and returns the discovered bucket list. Intended for the storage registration UI's "Discovered Buckets" section, shown once an S3 backend has been registered and validated. Requires the backend to already be `active` (validated) in ABS; returns 400 `BACKEND_NOT_ACTIVE` otherwise. An `azure` storage service has no bucket discovery: 409 `STORAGE_DISCOVERY_NOT_AVAILABLE`; add its containers by name. On a console installed without storage (`abs.enabled: false`) there is no ABS to ask, and this returns 409 `STORAGE_NOT_ENABLED`.


/api/v1/console/s3-backends/{backend_id}/discovered-buckets

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/s3-backends/{backend_id}/discovered-buckets?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String backendId = backend-034; // String | ABS S3 backend identifier
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listDiscoveredS3Buckets_200_response result = apiInstance.listDiscoveredS3Buckets(backendId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listDiscoveredS3Buckets");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String backendId = new String(); // String | ABS S3 backend identifier
final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String backendId = backend-034; // String | ABS S3 backend identifier
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listDiscoveredS3Buckets_200_response result = apiInstance.listDiscoveredS3Buckets(backendId, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listDiscoveredS3Buckets");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *backendId = backend-034; // ABS S3 backend identifier (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List buckets discovered on a registered S3 backend
[apiInstance listDiscoveredS3BucketsWith:backendId
    limit:limit
    offset:offset
              completionHandler: ^(listDiscoveredS3Buckets_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var backendId = backend-034; // {String} ABS S3 backend identifier
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listDiscoveredS3BucketsExample
    {
        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 StorageApi();
            var backendId = backend-034;  // String | ABS S3 backend identifier (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List buckets discovered on a registered S3 backend
                listDiscoveredS3Buckets_200_response result = apiInstance.listDiscoveredS3Buckets(backendId, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.listDiscoveredS3Buckets: " + 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\StorageApi();
$backendId = backend-034; // String | ABS S3 backend identifier
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::StorageApi->new();
my $backendId = backend-034; # String | ABS S3 backend identifier
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listDiscoveredS3Buckets(backendId => $backendId, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->listDiscoveredS3Buckets: $@\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.StorageApi()
backendId = backend-034 # String | ABS S3 backend identifier (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List buckets discovered on a registered S3 backend
    api_response = api_instance.list_discovered_s3_buckets(backendId, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->listDiscoveredS3Buckets: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let backendId = backend-034; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = StorageApi::Context::default();
    let result = client.listDiscoveredS3Buckets(backendId, limit, offset, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
backend_id*
String
ABS S3 backend identifier
Required
Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listStorageServiceBuckets

List registered buckets on a storage service

Thin proxy over ABS's `listS3Datasets?backend_id={id}`, renaming the dataset domain model to the UI's "bucket" terminology. These are the pre-registered datasets available to bind to an engine at deploy time — not the raw buckets physically present on the backend (see `discovered-buckets`). On a console installed without storage (`abs.enabled: false`) there is no ABS to ask, and this returns 409 `STORAGE_NOT_ENABLED`.


/api/v1/console/storage-services/{id}/buckets

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/storage-services/{id}/buckets?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String id = 550e8400-e29b-41d4-a716-446655440000; // String | Storage service identifier (ABS backend UUID)
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServiceBuckets_200_response result = apiInstance.listStorageServiceBuckets(id, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServiceBuckets");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String id = new String(); // String | Storage service identifier (ABS backend UUID)
final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String id = 550e8400-e29b-41d4-a716-446655440000; // String | Storage service identifier (ABS backend UUID)
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServiceBuckets_200_response result = apiInstance.listStorageServiceBuckets(id, limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServiceBuckets");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *id = 550e8400-e29b-41d4-a716-446655440000; // Storage service identifier (ABS backend UUID) (default to null)
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List registered buckets on a storage service
[apiInstance listStorageServiceBucketsWith:id
    limit:limit
    offset:offset
              completionHandler: ^(listStorageServiceBuckets_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var id = 550e8400-e29b-41d4-a716-446655440000; // {String} Storage service identifier (ABS backend UUID)
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listStorageServiceBucketsExample
    {
        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 StorageApi();
            var id = 550e8400-e29b-41d4-a716-446655440000;  // String | Storage service identifier (ABS backend UUID) (default to null)
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List registered buckets on a storage service
                listStorageServiceBuckets_200_response result = apiInstance.listStorageServiceBuckets(id, limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.listStorageServiceBuckets: " + 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\StorageApi();
$id = 550e8400-e29b-41d4-a716-446655440000; // String | Storage service identifier (ABS backend UUID)
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::StorageApi->new();
my $id = 550e8400-e29b-41d4-a716-446655440000; # String | Storage service identifier (ABS backend UUID)
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listStorageServiceBuckets(id => $id, limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->listStorageServiceBuckets: $@\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.StorageApi()
id = 550e8400-e29b-41d4-a716-446655440000 # String | Storage service identifier (ABS backend UUID) (default to null)
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List registered buckets on a storage service
    api_response = api_instance.list_storage_service_buckets(id, limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->listStorageServiceBuckets: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let id = 550e8400-e29b-41d4-a716-446655440000; // String
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = StorageApi::Context::default();
    let result = client.listStorageServiceBuckets(id, limit, offset, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
id*
String
Storage service identifier (ABS backend UUID)
Required
Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listStorageServiceRegistrations

List storage service registration attempts

Lists the registration attempts created through `POST /api/v1/console/storage-services`, including ones that are not yet `Ready`, ordered by name. Use it to rediscover an attempt after a timeout, a lost connection, a closed form or a page reload. Registrations being deleted are included, with state `deleting` or `deletion_blocked`, until their removal completes. Only a registration that was written is listed. An `azure` account that ABS refused when it was checked was never written, so it is not here. On a console installed without storage (`abs.enabled: false`), storage cannot be registered, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster.


/api/v1/console/storage-service-registrations

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/storage-service-registrations?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServiceRegistrations_200_response result = apiInstance.listStorageServiceRegistrations(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServiceRegistrations");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServiceRegistrations_200_response result = apiInstance.listStorageServiceRegistrations(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServiceRegistrations");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List storage service registration attempts
[apiInstance listStorageServiceRegistrationsWith:limit
    offset:offset
              completionHandler: ^(listStorageServiceRegistrations_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listStorageServiceRegistrationsExample
    {
        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 StorageApi();
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List storage service registration attempts
                listStorageServiceRegistrations_200_response result = apiInstance.listStorageServiceRegistrations(limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.listStorageServiceRegistrations: " + 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\StorageApi();
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::StorageApi->new();
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listStorageServiceRegistrations(limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->listStorageServiceRegistrations: $@\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.StorageApi()
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List storage service registration attempts
    api_response = api_instance.list_storage_service_registrations(limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->listStorageServiceRegistrations: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = StorageApi::Context::default();
    let result = client.listStorageServiceRegistrations(limit, offset, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


listStorageServices

List storage services

Thin proxy over ABS's `listS3Backends`, renaming the backend domain model to the UI's "storage service" terminology (`config.endpoint` → `endpoint`). Returns `503 ABS_UNAVAILABLE` when ABS reports that it is unavailable, distinct from the empty-state `200 {data: []}`. On a console installed without storage (`abs.enabled: false`) there is no ABS to ask, and this returns 409 `STORAGE_NOT_ENABLED`.


/api/v1/console/storage-services

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/storage-services?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServices_200_response result = apiInstance.listStorageServices(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServices");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listStorageServices_200_response result = apiInstance.listStorageServices(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#listStorageServices");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List storage services
[apiInstance listStorageServicesWith:limit
    offset:offset
              completionHandler: ^(listStorageServices_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listStorageServicesExample
    {
        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 StorageApi();
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List storage services
                listStorageServices_200_response result = apiInstance.listStorageServices(limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.listStorageServices: " + 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\StorageApi();
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::StorageApi->new();
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listStorageServices(limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->listStorageServices: $@\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.StorageApi()
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List storage services
    api_response = api_instance.list_storage_services(limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->listStorageServices: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = StorageApi::Context::default();
    let result = client.listStorageServices(limit, offset, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


updateStorageServiceRegistration

Correct the input of a registration attempt

Replaces the endpoint, region and credentials of an unfinished registration attempt, keeping its name. Returns `202 Accepted` immediately with the attempt's state, which is `pending` until the abs-operator observes the corrected input; poll `getStorageServiceRegistration` for the outcome. The credentials are written to a new Secret (existing Secrets are never overwritten) and the S3Backend is re-pointed at it. Sending the input the attempt already has is a no-op. An attempt that is already `Ready` cannot be changed this way (`409`), and a name that is not a registration attempt created through this API is `404` — an unrelated resource is never modified. **Azure (`kind: azure`).** The corrected input is checked before anything is written, as a new registration is: the console refuses an account another storage service names, reads the default staging container when the field is empty, sends the repointed S3Backend and the new Secret to the cluster as dry runs (a refusal is answered as for `s3`, and ABS is not asked), and asks ABS to check the corrected input under the registration's own name, so that a correction which keeps its account is not refused as a conflict with itself. A refused correction answers `422 STORAGE_SERVICE_REJECTED` with ABS's code in `sub_code`, and a check that could not be run answers `503 STORAGE_BACKEND_UNAVAILABLE`; both leave the registration exactly as it was. Only an accepted correction is written. On a console installed without storage (`abs.enabled: false`), storage cannot be registered, and this returns 409 `STORAGE_NOT_ENABLED` without touching the cluster.


/api/v1/console/storage-service-registrations/{registration_name}

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/storage-service-registrations/{registration_name}" \
 -d '{
  "secret_key" : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
  "endpoint" : "https://s3.example.com",
  "kind" : "s3",
  "access_key" : "AKIAIOSFODNN7EXAMPLE",
  "region" : "us-east-1",
  "azure" : {
    "cloud" : "public",
    "staging_container" : "awc-staging-ab12cd",
    "account_key" : "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "protocols" : [ "s3" ],
    "account" : "contosolake"
  }
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.StorageApi;

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

public class StorageApiExample {
    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
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

        UpdateStorageServiceRegistrationRequest updateStorageServiceRegistrationRequest = ; // UpdateStorageServiceRegistrationRequest | 

        try {
            StorageServiceRegistration result = apiInstance.updateStorageServiceRegistration(registrationName, updateStorageServiceRegistrationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#updateStorageServiceRegistration");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final String registrationName = new String(); // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

final UpdateStorageServiceRegistrationRequest updateStorageServiceRegistrationRequest = new UpdateStorageServiceRegistrationRequest(); // UpdateStorageServiceRegistrationRequest | 

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

import org.openapitools.client.api.StorageApi;

public class StorageApiExample {
    public static void main(String[] args) {
        StorageApi apiInstance = new StorageApi();
        String registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

        UpdateStorageServiceRegistrationRequest updateStorageServiceRegistrationRequest = ; // UpdateStorageServiceRegistrationRequest | 

        try {
            StorageServiceRegistration result = apiInstance.updateStorageServiceRegistration(registrationName, updateStorageServiceRegistrationRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling StorageApi#updateStorageServiceRegistration");
            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
StorageApi *apiInstance = [[StorageApi alloc] init];
String *registrationName = production-s3; // Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)
UpdateStorageServiceRegistrationRequest *updateStorageServiceRegistrationRequest = ; // 

// Correct the input of a registration attempt
[apiInstance updateStorageServiceRegistrationWith:registrationName
    updateStorageServiceRegistrationRequest:updateStorageServiceRegistrationRequest
              completionHandler: ^(StorageServiceRegistration output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.StorageApi()
var registrationName = production-s3; // {String} Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

var updateStorageServiceRegistrationRequest = ; // {UpdateStorageServiceRegistrationRequest} 

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

namespace Example
{
    public class updateStorageServiceRegistrationExample
    {
        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 StorageApi();
            var registrationName = production-s3;  // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)
            var updateStorageServiceRegistrationRequest = new UpdateStorageServiceRegistrationRequest(); // UpdateStorageServiceRegistrationRequest | 

            try {
                // Correct the input of a registration attempt
                StorageServiceRegistration result = apiInstance.updateStorageServiceRegistration(registrationName, updateStorageServiceRegistrationRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling StorageApi.updateStorageServiceRegistration: " + 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\StorageApi();
$registrationName = production-s3; // String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

$updateStorageServiceRegistrationRequest = ; // UpdateStorageServiceRegistrationRequest | 

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

# 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::StorageApi->new();
my $registrationName = production-s3; # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).

my $updateStorageServiceRegistrationRequest = WWW::OPenAPIClient::Object::UpdateStorageServiceRegistrationRequest->new(); # UpdateStorageServiceRegistrationRequest | 

eval {
    my $result = $api_instance->updateStorageServiceRegistration(registrationName => $registrationName, updateStorageServiceRegistrationRequest => $updateStorageServiceRegistrationRequest);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling StorageApi->updateStorageServiceRegistration: $@\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.StorageApi()
registrationName = production-s3 # String | Name of the storage service registration attempt (the name supplied at
registration, which is also the S3Backend custom resource name).
 (default to null)
updateStorageServiceRegistrationRequest =  # UpdateStorageServiceRegistrationRequest | 

try:
    # Correct the input of a registration attempt
    api_response = api_instance.update_storage_service_registration(registrationName, updateStorageServiceRegistrationRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling StorageApi->updateStorageServiceRegistration: %s\n" % e)
extern crate StorageApi;

pub fn main() {
    let registrationName = production-s3; // String
    let updateStorageServiceRegistrationRequest = ; // UpdateStorageServiceRegistrationRequest

    let mut context = StorageApi::Context::default();
    let result = client.updateStorageServiceRegistration(registrationName, updateStorageServiceRegistrationRequest, &context).wait();

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

Scopes

view_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.
manage_buckets HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Path parameters
Name Description
registration_name*
String
Name of the storage service registration attempt (the name supplied at registration, which is also the S3Backend custom resource name).
Required
Body parameters
Name Description
updateStorageServiceRegistrationRequest *

Responses


Upgrade

deleteUpgradeSchedule

Cancel pending scheduled upgrade

Clears the pending scheduled upgrade. The maintenance window configuration is preserved when present.


/api/v1/console/upgrade/schedule

Usage and SDK Samples

curl -X DELETE \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/problem+json" \
 "http://localhost:8080/api/v1/console/upgrade/schedule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UpgradeApi;

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();

        try {
            apiInstance.deleteUpgradeSchedule();
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#deleteUpgradeSchedule");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();


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

import org.openapitools.client.api.UpgradeApi;

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

        try {
            apiInstance.deleteUpgradeSchedule();
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#deleteUpgradeSchedule");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];

// Cancel pending scheduled upgrade
[apiInstance deleteUpgradeScheduleWithCompletionHandler: 
              ^(NSError* error) {
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteUpgradeSchedule(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class deleteUpgradeScheduleExample
    {
        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 UpgradeApi();

            try {
                // Cancel pending scheduled upgrade
                apiInstance.deleteUpgradeSchedule();
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.deleteUpgradeSchedule: " + 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\UpgradeApi();

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

# 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::UpgradeApi->new();

eval {
    $api_instance->deleteUpgradeSchedule();
};
if ($@) {
    warn "Exception when calling UpgradeApi->deleteUpgradeSchedule: $@\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.UpgradeApi()

try:
    # Cancel pending scheduled upgrade
    api_instance.delete_upgrade_schedule()
except ApiException as e:
    print("Exception when calling UpgradeApi->deleteUpgradeSchedule: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {

    let mut context = UpgradeApi::Context::default();
    let result = client.deleteUpgradeSchedule(&context).wait();

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

Scopes

manage_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Responses


getUpgradeSchedule

Get upgrade schedule

Returns the configured maintenance window and optional pending scheduled upgrade. Returns `204 No Content` when no schedule has been configured.


/api/v1/console/upgrade/schedule

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/upgrade/schedule"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UpgradeApi;

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.UpgradeApi;

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

        try {
            UpgradeScheduleResponse result = apiInstance.getUpgradeSchedule();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#getUpgradeSchedule");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];

// Get upgrade schedule
[apiInstance getUpgradeScheduleWithCompletionHandler: 
              ^(UpgradeScheduleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUpgradeSchedule(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUpgradeScheduleExample
    {
        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 UpgradeApi();

            try {
                // Get upgrade schedule
                UpgradeScheduleResponse result = apiInstance.getUpgradeSchedule();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.getUpgradeSchedule: " + 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\UpgradeApi();

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

# 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::UpgradeApi->new();

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

try:
    # Get upgrade schedule
    api_response = api_instance.get_upgrade_schedule()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpgradeApi->getUpgradeSchedule: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {

    let mut context = UpgradeApi::Context::default();
    let result = client.getUpgradeSchedule(&context).wait();

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

Scopes

view_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Responses


getUpgradeStatus

Get current upgrade status

Returns the current state of the Anywhere Cloud upgrade process, including ordered steps and substeps with their individual statuses. **Polling behavior:** - Call once on page load to determine if an upgrade is active. - If `status` is `in_progress`, poll every ~5 seconds. - Stop polling when `status` is `not_started`, `completed`, or `failed`. - After calling `POST /api/v1/console/upgrade`, begin polling. **Status semantics:** - `completed` requires both the Cloudera Cloud Factory umbrella deployment and all changed platform component releases to be healthy. Completion may lag umbrella readiness while components finish rolling out. - After umbrella readiness, the Rolling Upgrade step may gain additional dynamic substeps (one per upgraded component). Substep names vary by release and are not fixed across versions. - `completed` reflects the most recent upgrade attempt and persists until a new upgrade is started. - Failure detail is carried on step and substep `status_reason` fields. - The rollout workflow times out after 15 minutes; if Cloudera Cloud Factory completes later, call `POST /api/v1/console/upgrade` again with the same `target_version`. **Note:** During the upgrade, Anywhere Cloud may experience brief downtime. The client should handle connection failures gracefully and retry.


/api/v1/console/upgrade/status

Usage and SDK Samples

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

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();

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

final api_instance = DefaultApi();


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

import org.openapitools.client.api.UpgradeApi;

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

        try {
            UpgradeStatusResponse result = apiInstance.getUpgradeStatus();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#getUpgradeStatus");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];

// Get current upgrade status
[apiInstance getUpgradeStatusWithCompletionHandler: 
              ^(UpgradeStatusResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getUpgradeStatus(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUpgradeStatusExample
    {
        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 UpgradeApi();

            try {
                // Get current upgrade status
                UpgradeStatusResponse result = apiInstance.getUpgradeStatus();
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.getUpgradeStatus: " + 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\UpgradeApi();

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

# 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::UpgradeApi->new();

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

try:
    # Get current upgrade status
    api_response = api_instance.get_upgrade_status()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpgradeApi->getUpgradeStatus: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {

    let mut context = UpgradeApi::Context::default();
    let result = client.getUpgradeStatus(&context).wait();

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

Scopes

view_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Responses


listUpgradeVersions

List available Anywhere Cloud upgrade versions

Returns upgrade candidate versions newer than the currently running release, ordered by SemVer precedence descending (highest version first). Each item includes its release date, which is informational and not used for ordering, and the highest CVE severity fixed relative to its immediate predecessor. The running version is excluded from this list; `is_current` is reserved and always false on listed items.


/api/v1/console/upgrade/versions

Usage and SDK Samples

curl -X GET \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 "http://localhost:8080/api/v1/console/upgrade/versions?limit=50&offset=0"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UpgradeApi;

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listUpgradeVersions_200_response result = apiInstance.listUpgradeVersions(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#listUpgradeVersions");
            e.printStackTrace();
        }
    }
}
import 'package:openapi/api.dart';

final api_instance = DefaultApi();

final Integer limit = new Integer(); // Integer | Maximum number of items to return
final Integer offset = new Integer(); // Integer | Number of items to skip before the returned page

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

import org.openapitools.client.api.UpgradeApi;

public class UpgradeApiExample {
    public static void main(String[] args) {
        UpgradeApi apiInstance = new UpgradeApi();
        Integer limit = 50; // Integer | Maximum number of items to return
        Integer offset = 0; // Integer | Number of items to skip before the returned page

        try {
            listUpgradeVersions_200_response result = apiInstance.listUpgradeVersions(limit, offset);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#listUpgradeVersions");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];
Integer *limit = 50; // Maximum number of items to return (optional) (default to 50)
Integer *offset = 0; // Number of items to skip before the returned page (optional) (default to 0)

// List available Anywhere Cloud upgrade versions
[apiInstance listUpgradeVersionsWith:limit
    offset:offset
              completionHandler: ^(listUpgradeVersions_200_response output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var opts = {
  'limit': 50, // {Integer} Maximum number of items to return
  'offset': 0 // {Integer} Number of items to skip before the returned page
};

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

namespace Example
{
    public class listUpgradeVersionsExample
    {
        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 UpgradeApi();
            var limit = 50;  // Integer | Maximum number of items to return (optional)  (default to 50)
            var offset = 0;  // Integer | Number of items to skip before the returned page (optional)  (default to 0)

            try {
                // List available Anywhere Cloud upgrade versions
                listUpgradeVersions_200_response result = apiInstance.listUpgradeVersions(limit, offset);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.listUpgradeVersions: " + 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\UpgradeApi();
$limit = 50; // Integer | Maximum number of items to return
$offset = 0; // Integer | Number of items to skip before the returned page

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

# 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::UpgradeApi->new();
my $limit = 50; # Integer | Maximum number of items to return
my $offset = 0; # Integer | Number of items to skip before the returned page

eval {
    my $result = $api_instance->listUpgradeVersions(limit => $limit, offset => $offset);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling UpgradeApi->listUpgradeVersions: $@\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.UpgradeApi()
limit = 50 # Integer | Maximum number of items to return (optional) (default to 50)
offset = 0 # Integer | Number of items to skip before the returned page (optional) (default to 0)

try:
    # List available Anywhere Cloud upgrade versions
    api_response = api_instance.list_upgrade_versions(limit=limit, offset=offset)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpgradeApi->listUpgradeVersions: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {
    let limit = 50; // Integer
    let offset = 0; // Integer

    let mut context = UpgradeApi::Context::default();
    let result = client.listUpgradeVersions(limit, offset, &context).wait();

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

Scopes

view_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Query parameters
Name Description
limit
Integer
Maximum number of items to return
offset
Integer
Number of items to skip before the returned page

Responses


putUpgradeSchedule

Create or update upgrade schedule

Sets the recurring maintenance window and optionally schedules a pending upgrade at the next window occurrence. When `target_version` is provided, the version is locked at schedule time and `pending_upgrade.scheduled_at` is computed from the maintenance window.


/api/v1/console/upgrade/schedule

Usage and SDK Samples

curl -X PUT \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/upgrade/schedule" \
 -d '{
  "maintenance_window" : {
    "recurrence" : "weekly",
    "start_time" : "22:00",
    "timezone" : "America/New_York",
    "end_time" : "23:00",
    "day_of_month" : 3,
    "day_of_week" : "monday"
  },
  "target_version" : "2.5.0"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UpgradeApi;

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();
        UpgradeScheduleRequest upgradeScheduleRequest = ; // UpgradeScheduleRequest | 

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

final api_instance = DefaultApi();

final UpgradeScheduleRequest upgradeScheduleRequest = new UpgradeScheduleRequest(); // UpgradeScheduleRequest | 

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

import org.openapitools.client.api.UpgradeApi;

public class UpgradeApiExample {
    public static void main(String[] args) {
        UpgradeApi apiInstance = new UpgradeApi();
        UpgradeScheduleRequest upgradeScheduleRequest = ; // UpgradeScheduleRequest | 

        try {
            UpgradeScheduleResponse result = apiInstance.putUpgradeSchedule(upgradeScheduleRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#putUpgradeSchedule");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];
UpgradeScheduleRequest *upgradeScheduleRequest = ; // 

// Create or update upgrade schedule
[apiInstance putUpgradeScheduleWith:upgradeScheduleRequest
              completionHandler: ^(UpgradeScheduleResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var upgradeScheduleRequest = ; // {UpgradeScheduleRequest} 

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

namespace Example
{
    public class putUpgradeScheduleExample
    {
        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 UpgradeApi();
            var upgradeScheduleRequest = new UpgradeScheduleRequest(); // UpgradeScheduleRequest | 

            try {
                // Create or update upgrade schedule
                UpgradeScheduleResponse result = apiInstance.putUpgradeSchedule(upgradeScheduleRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.putUpgradeSchedule: " + 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\UpgradeApi();
$upgradeScheduleRequest = ; // UpgradeScheduleRequest | 

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

# 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::UpgradeApi->new();
my $upgradeScheduleRequest = WWW::OPenAPIClient::Object::UpgradeScheduleRequest->new(); # UpgradeScheduleRequest | 

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

try:
    # Create or update upgrade schedule
    api_response = api_instance.put_upgrade_schedule(upgradeScheduleRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpgradeApi->putUpgradeSchedule: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {
    let upgradeScheduleRequest = ; // UpgradeScheduleRequest

    let mut context = UpgradeApi::Context::default();
    let result = client.putUpgradeSchedule(upgradeScheduleRequest, &context).wait();

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

Scopes

manage_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Body parameters
Name Description
upgradeScheduleRequest *

Responses


upgradeConsole

Initiate Anywhere Cloud upgrade

Triggers an upgrade of the Anywhere Cloud control plane to the specified version. This endpoint is idempotent: calling it while an upgrade is already in progress (or has failed) acts as a retry. The upgrade is orchestrated asynchronously. Returns `202 Accepted` immediately; use `GET /api/v1/console/upgrade/status` to poll for progress.


/api/v1/console/upgrade

Usage and SDK Samples

curl -X POST \
 -H "Authorization: Bearer [[accessToken]]" \
 -H "Accept: application/json,application/problem+json" \
 -H "Content-Type: application/json" \
 "http://localhost:8080/api/v1/console/upgrade" \
 -d '{
  "target_version" : "2.5.0"
}'
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.UpgradeApi;

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

public class UpgradeApiExample {
    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
        UpgradeApi apiInstance = new UpgradeApi();
        InitiateUpgradeRequest initiateUpgradeRequest = ; // InitiateUpgradeRequest | 

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

final api_instance = DefaultApi();

final InitiateUpgradeRequest initiateUpgradeRequest = new InitiateUpgradeRequest(); // InitiateUpgradeRequest | 

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

import org.openapitools.client.api.UpgradeApi;

public class UpgradeApiExample {
    public static void main(String[] args) {
        UpgradeApi apiInstance = new UpgradeApi();
        InitiateUpgradeRequest initiateUpgradeRequest = ; // InitiateUpgradeRequest | 

        try {
            AcceptedResponse result = apiInstance.upgradeConsole(initiateUpgradeRequest);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling UpgradeApi#upgradeConsole");
            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
UpgradeApi *apiInstance = [[UpgradeApi alloc] init];
InitiateUpgradeRequest *initiateUpgradeRequest = ; // 

// Initiate Anywhere Cloud upgrade
[apiInstance upgradeConsoleWith:initiateUpgradeRequest
              completionHandler: ^(AcceptedResponse output, NSError* error) {
    if (output) {
        NSLog(@"%@", output);
    }
    if (error) {
        NSLog(@"Error: %@", error);
    }
}];
var AnywhereCloudConsoleApi = require('anywhere_cloud_console_api');
var defaultClient = AnywhereCloudConsoleApi.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 AnywhereCloudConsoleApi.UpgradeApi()
var initiateUpgradeRequest = ; // {InitiateUpgradeRequest} 

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

namespace Example
{
    public class upgradeConsoleExample
    {
        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 UpgradeApi();
            var initiateUpgradeRequest = new InitiateUpgradeRequest(); // InitiateUpgradeRequest | 

            try {
                // Initiate Anywhere Cloud upgrade
                AcceptedResponse result = apiInstance.upgradeConsole(initiateUpgradeRequest);
                Debug.WriteLine(result);
            } catch (Exception e) {
                Debug.Print("Exception when calling UpgradeApi.upgradeConsole: " + 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\UpgradeApi();
$initiateUpgradeRequest = ; // InitiateUpgradeRequest | 

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

# 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::UpgradeApi->new();
my $initiateUpgradeRequest = WWW::OPenAPIClient::Object::InitiateUpgradeRequest->new(); # InitiateUpgradeRequest | 

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

try:
    # Initiate Anywhere Cloud upgrade
    api_response = api_instance.upgrade_console(initiateUpgradeRequest)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UpgradeApi->upgradeConsole: %s\n" % e)
extern crate UpgradeApi;

pub fn main() {
    let initiateUpgradeRequest = ; // InitiateUpgradeRequest

    let mut context = UpgradeApi::Context::default();
    let result = client.upgradeConsole(initiateUpgradeRequest, &context).wait();

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

Scopes

manage_upgrades HTTP Authorization Bearer header using a JWT. Authentication is enforced upstream at the Knox gateway; the service runs no in-process auth middleware. Declared for documentation of the expected credential only.

Parameters

Body parameters
Name Description
initiateUpgradeRequest *

Responses