A Python-based command-line interface for natively managing and interacting with VMware Aria / vRealize Automation (vRA) API endpoints via direct REST integration.
This CLI abstracts away complex day-2 action lookups and handles dynamic payload patching efficiently. It implements robust built-in authorization flows, smart sanity checks, and custom blueprint inspections to overcome typical user-access (403 Forbidden) restrictions.
You can pass your credentials interactively in the terminal context, or you can streamline your session execution securely via systemic Environment Variables:
VDC_BASE_URL: Base URI for your instance (Defaults to:https://portal.vdc.cloud.sky)VDC_USERNAME: Standard username for OAuth validationVDC_PASSWORD: Raw user password string for automationVDC_REFRESH_TOKEN: Skips standard login and natively utilizes Token refreshREQUESTS_CA_BUNDLE: Local Certificate Authority paths if strict SSL isn't bypassed
Global Flags:
--base-url: Portal URL override.--user: Username override string.--ca-cert: Certificate CA bundle map.--insecure: Dynamically disables strict SSL verification completely.--json: Renders generic string outputs (like lists) as fully compliant JSON objects.
Fetches and structures all active deployments associated with your Role inside the selected Project namespace.
python vdc.py --insecure list-deployments --project "SevOne"Aria blocks limit inspections (403) from standard users traversing /iaas/ or /policies branches natively. This command circumvents that limitation by identifying recent evaluation payloads off recent blueprints to deduce your "Project Capacity" remaining allocations neatly.
python vdc.py --insecure show-capacity --project "SevOne"Resolves all available and specifically authorized "Day-2" execution actions attached to the target Cloud.vSphere.Machine instance alongside their system IDs mapping.
python vdc.py --insecure show-actions --project "SevOne" --vm "sovpastp01"Re-writes documentation descriptions natively over the deployment API without mandating rigid provisioning approvals.
python vdc.py --insecure update-description --project "SevOne" --vm "sovpastp01" --description "Capacity scaled for stress-test."Submits dynamic Resource Provisioning requests to dynamically expand or configure CPU & Memory allocations.
- Contains a core Capacity Integrity Check feature mathematically verifying your requested deltas against your Project's active Capacity Snapshot to prevent 10006 backend errors.
- Non-targeted properties seamlessly fallback to preserving their current allocations.
# Increase CPU cores independently
python vdc.py --insecure resize-vm --project "SevOne" --vm "sovpastp01" --cpu 10
# Increase Memory (In MBs) independently
python vdc.py --insecure resize-vm --project "SevOne" --vm "sovpastp01" --memory 122880