https://github.com/nutanixdev/php-categories
https://github.com/nutanixdev/php-categories
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nutanixdev/php-categories
- Owner: nutanixdev
- Created: 2021-03-22T07:11:06.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T07:11:22.000Z (almost 5 years ago)
- Last Synced: 2025-03-16T19:58:46.287Z (12 months ago)
- Language: PHP
- Size: 91.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
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
- Install [PHP composer](https://getcomposer.org/)
- Install the script dependencies:
```
composer install
```
- 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:
```
php ./categories.php
```
**Note**: This script was developed on a Linux system. Occurrences of `\n` that indicate a newline/carriage return may need to be adjusted on OS X and Windows systems.
## Additional Info
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 change all occurrences of this:
```
'verify' => false,
```
to this:
```
'verify' => true,
```
## Screenshot

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