https://github.com/nutanixdev/python-categories
https://github.com/nutanixdev/python-categories
Last synced: about 23 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nutanixdev/python-categories
- Owner: nutanixdev
- Created: 2021-03-22T07:06:46.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T17:16:39.000Z (almost 3 years ago)
- Last Synced: 2026-04-21T11:58:43.180Z (7 days ago)
- Language: Python
- Size: 166 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nutanix Prism Central Category Management Demo
This small demo will create a collection of Prism Central category keys and values that are provided by accompanying JSON file.
## Usage
- Recommended Python version 3.8 or later. Testing for this script was done with Python 3.8 on Ubuntu Linux 20.04.
- Create and activate a virtual environment:
```
python3.8 -m venv venv
. venv/bin/activate
```
- Install the script dependencies:
```
pip3 install -r requirements.txt
```
- Rename `.env.example` to `.env`
- Edit `.env` to match your environment requirements i.e. Prism Central IP address & credentials
- Edit `categories.json` to match the category keys and values you want to create
- Run the script:
```
python ./categories.py
```
## Additional Info
By default, this script does not require a verified SSL connection to Prism Central. If you have configured Prism Central with a valid SSL certificate and require SSL certificate verification in your environment, please comment the following line:
```
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
```
## Screenshot

## Disclaimer
Please see the `.disclaimer` file that is distributed with this repository.