create-recipe¶
- subtitle
Creates recipe. A recipe is a script that runs on all nodes of a specified instance group.
- version
0.9.126
Description¶
Creates recipe. A recipe is a script that runs on all nodes of a specified instance group.
Synopsis¶
create-recipe
--recipe-name <value>
--recipe-content <value>
--type <value>
[--description <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]
Options¶
--recipe-name
(string)
The name of the recipe. This name must be unique, must have between 5 and 100 characters, and must contain only lowercase letters, numbers and hyphens. Names are case-sensitive.
--recipe-content
(string)
The content of the recipe.
--type
(string)
The type of recipe. Supported values are : PRE_SERVICE_DEPLOYMENT, PRE_TERMINATION, POST_SERVICE_DEPLOYMENT, POST_CLOUDERA_MANAGER_START.
--description
(string)
The description of the recipe. The description can have a maximum of 1000 characters.
--cli-input-json
(string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by
--generate-cli-skeleton
. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.
--generate-cli-skeleton
(boolean)
Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for
--cli-input-json
.
Output¶
recipe -> (object)
Information about a recipe.
recipeName -> (string)
The name of the recipe.
crn -> (string)
The CRN of the recipe.
recipeContent -> (string)
The content of the recipe.
type -> (string)
The type of recipe. Supported values are : PRE_SERVICE_DEPLOYMENT, PRE_TERMINATION, POST_SERVICE_DEPLOYMENT, POST_CLOUDERA_MANAGER_START.
creatorCrn -> (string)
The CRN of the creator of the recipe.
description -> (string)
The description of the recipe.
Form Factors¶
public