Cloudbreak CLI Reference
Also available as:
PDF

blueprint create

Adds a new blueprint from a file or from a URL.

Sub-commands

from-url Creates a blueprint by downloading it from a URL location

from-file Creates a blueprint by reading it from a local file

Required options

Options required for from-url sub-command:

--name <value> Name for the blueprint

--url <value> URL location of the Ambari blueprint JSON file

Options required for from-file sub-command:

--name <value> Name for the blueprint

--file <value> Location of the Ambari blueprint JSON file on the local machine

Options

--description <value> Description of the resource

--datalake Marks the blueprint with "Data Lake Ready" tag

--server <value> Cloudbreak server address [$CB_SERVER_ADDRESS]

--username <value> Cloudbreak user name (e-mail address) [$CB_USER_NAME]

--password <value> Cloudbreak password [$CB_PASSWORD]

--workspace <value> Name of the workspace where to create the resource

--profile <value> Selects a config profile to use [$CB_PROFILE]

--auth-type <value> Authentication method to use. Values: oauth2, basic [$CB_AUTH_TYPE]

Examples

Adds a blueprint from a URL:

cb blueprint create from-url --url https://someurl.com/test.bp --name test1

Adds a blueprint from a local file:

cb blueprint create from-file --file /Users/test/Documents/blueprints/test.bp --name test2

Adds a blueprint from a local file and marks it as "Data Lake Ready":

cb blueprint create from-file --file /Users/test/Documents/blueprints/testdl.bp --name testdl --datalake