Inventory

1. List Inventories

Retrieves a list of inventories for a given tenant. ID in the output is referred as Inventory ID

Syntax
(.venv)$ corestack inventories-list

Parameters

None

Sample Output

2. View Inventory

Retrieves a Inventory by its ID. Inventory ID can be fetched from the output of inventories-list command. Name, Resource Name, Resource Type, Created At etc., will be available as output

Syntax
(.venv)$ corestack inventory-show <inventory_id>

Parameters

Attributes Description
inventory_id Required.ID of the CoreStack Inventory to be retrieved

Sample Output

3. Create Inventory

Creates an inventory in the given tenant. Inventory ID will be returned as output.

Syntax
(.venv)$ corestack inventory-create <body>

Parameters

Attributes Description
body Required.JSON content with the needed inputs to create an inventory

Example:
{
“status”: “active”,
“attribute_values”: {
“SSH_port”: “22”,
“FQDN”: “”,
“location”: “”
},
“resource”: “Servers”,
“name”: “newsk3”,
“auth_values”: {
“username”: “arunp”,
“ip”: “192.168.1.39”,
“password”: “Cloud@123”,
“operating_system”: “ubuntu”
},
“make”: “Dell”,
“metadata”: {},
“description”: “”
}

Sample Output

4. Delete Inventory

Deletes a Environment by its ID. Environment once deleted cannot be reverted. Delete Status will be displayed as output

Syntax
(.venv)$ corestack inventory-delete <inventory_id>

Parameters

Attributes Description
inventory_id Required.ID of the CoreStack Inventory to be deleted

Sample Output