Code sample to demonstrate use of the Categories v4 APIs via Python client.
Requires Prism Central 2024.3 or later and AOS 6.8 or later.
-
Create and activate a Python virtual environment:
python -m venv venv . venv/bin/activate -
Install required packages:
pip install -r requirements.txt -
Run script:
python categories_v4_workflow.py --pc_ip <PRISM_CENTRAL_IP> --username <USERNAME>
Note:
-
Password for the provided username: You will be prompted to enter the password associated with the specified username.
-
Cluster name: Ensure you provide the correct Cluster name. This will be used to create the VM, and it must be accurate to avoid any configuration errors.
-
New owner extId (UUID): Provide the
IAM user extId (UUID)to update theowner_uuidof the category. TheextIdmust be correct for the script to execute successfully.