Skip to content

amarnathpv/MyNuggets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VDC Aria Direct CLI

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.

Authentication & Configuration

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 validation
  • VDC_PASSWORD: Raw user password string for automation
  • VDC_REFRESH_TOKEN: Skips standard login and natively utilizes Token refresh
  • REQUESTS_CA_BUNDLE: Local Certificate Authority paths if strict SSL isn't bypassed

CLI Usage

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.

List Deployments

Fetches and structures all active deployments associated with your Role inside the selected Project namespace.

python vdc.py --insecure list-deployments --project "SevOne"

Show Capacity Attributes

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"

Show Actions

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"

Update Description

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."

Resize VM

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages