Environments

1. List Environments

Retrieves a list of environments for a given tenant. ID in the output is referred as Environment ID

Syntax
(.venv)$ corestack environments-list

Parameters

None

Sample Output

2. View Environment

Retrieves an Environment by its ID. Environment ID can be fetched from the output of environments-list command. Name, Type, Created By and Updated At etc., will be available as output

Syntax
(.venv)$ corestack environment-show <environment_id>

Parameters

Attributes Description
environment_id Required.ID of the Environment to be retrieved

Sample Output

3. Delete Environment

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

Syntax
(.venv)$ corestack environment-delete <environment_id >

Parameters

Attributes Description
environment_id Required.ID of the Environment to be deleted

Sample Output

4. Create Environment

Creates an environment in the given tenant. Environment ID will be returned as output.

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

Parameters

Attributes Description
body Required.JSON content with the needed inputs to create an environment
Example:
{
“name”: “Staging”,
“environment_type”: “BusinessServices”,
“description”: “”
}

Sample Output