Blueprints

1. List Blueprints

Retrieves a list of blueprints for a given tenant. Blueprints list can be filtered using scope, category etc., ID in the output is referred as Blueprint ID

Syntax
(.venv)$ corestack blueprints-list

Parameters

Attributes Description
scope Optional.Blueprint Scope can be Global or Tenant
category Optional.Blueprint Category to be filtered
limit Optional.Limits the number of blueprints that can be retrieved
page_number Optional.Page number of the blueprint list to be retrieved

Sample Output

2. View Blueprint

Retrieves a CoreStack Blueprint by its ID. Blueprint ID can be fetched from the output of blueprints-list command. Name, Scope, Execution Type (On-demand or Scheduled), Created By User, Updated By User etc., will be available as output

Syntax
(.venv)$ corestack blueprint-show <blueprint_id>

Parameters

Attributes Description
blueprint_id Required.ID of the CoreStack Blueprint to be retrieved

Sample Output

3. Execute Blueprint

Executes a blueprint by its ID with the inputs (Request Body). Request body is expected to vary for each blueprint and the same can be identified using blueprint content retrieved as part of blueprint-show command

Syntax
(.venv)$ corestack blueprint-execute <blueprint_id > <body>

Parameters

Attributes Description
blueprint_id Required.ID of the CoreStack Blueprint to be executed
body Required. JSON content with the needed inputs to execute a blueprint
Example:
{
“resources”: [{
“execution”: {
“service_accounts”: [{
“tenant_id”: “d51d7a4a8bf2458f95b41d05f7f5105c”,
“id”: “592bbe7007e3121bc7a8e936”
}],
“resource_elements”: [],
“inventory_elements”: [],
“args”: {
“Image”: “df41a3d8223446dbbf55c47ec59e5f6f”,
“KeyPair_Name”: “auro”,
“Instance_Name”: “My_Server”,
“SecurityGroup_Name”: “54c24e5383d64bccb79fc60128d16038”,
“Public_Network”: “17c59340d0ad4e4595209e62a22348d8”,
“Private_Network”: “e7d17c0c84a54138b5f208f2182d7098”,
“Flavor”: “fb07d39622274facacf79a962e536668”
}
},
“resource_id”: “592ba82907e31207d3495f32”
}, {
“execution”: {
“service_accounts”: [{
“id”: “592bbdd807e3121bc7a8e934”
}],
“resource_elements”: [],
“inventory_elements”: [],
“args”: {
“Contact_Name”: “Provision_Instance_Public.Username”,
“Contact_Email_ID”: “arun.p@cloudenablers.com”,
“IP_Address”: “192.168.1.130”
}
},
“resource_id”: “592ba82a07e31207d3495f34”
}]
}

Sample Output