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
| Name | Description |
|---|---|
| createBlueprintDeploymentRequest * |
| 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.
|