Skip to main content

Client library for vmware-sddc-manager APIs

Project description

The SDDC Manager module of the VMware Cloud Foundation SDK provides methods to manage and monitor the physical and virtual infrastructure deployed as part of a VMware Cloud Foundation deployment

Source code

Getting started

Prerequisites

  • Supported Python versions: 3.10, 3.11, 3.12, 3.13 and 3.14

Install the package

pip install vmware-sddc-manager
Connect to a SDDC Manager Server
import requests
import urllib3
from vmware.vapi.sddc_manager.client import create_sddc_manager_client

session = requests.session()
# Disable cert verification for demo purpose.
# This is not recommended in a production environment.
session.verify = False
# Connect to a SDDC Manager Server using username and password
sddc_client = create_sddc_manager_client(server='<sddc_manager_ip>', username='<username>', password='<password>', session=session)
# Get Domains
sddc_client.v1.Domains.get_domains()

Output in a Python Interpreter:

>>> import requests
>>> import urllib3
>>> from vmware.vapi.sddc_manager.client import create_sddc_manager_client
>>> session = requests.session()
>>> session.verify = False
>>> urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
>>> sddc_client = create_sddc_manager_client(server='<sddc_manager_ip>', username='<username>', password='<password>', session=session)
>>> sddc_client.v1.Domains.get_domains()
Domains Info :
{elements : [Domain(id='7277ed7e-3239-438b-b7c7-a735f1293c08', name='sddcId-1001', org_name='COM', status='ACTIVE', upgrade_state='AVAILABLE', upgrade_status=UpgradeStatus(status='UP_TO_DATE', completed_resources=None, total_resources=None), type='MANAGEMENT', vra_integration_status=None, vrops_integration_status=None
...}

NOTE: If you are using Bash, be sure to use single quote for username and password to preserve the values. If you use double quote, you will have to escape special characters, such as "$". See Bash manual

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vmware_sddc_manager-9.1.0.0-py3-none-any.whl (380.0 kB view details)

Uploaded Python 3

File details

Details for the file vmware_sddc_manager-9.1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vmware_sddc_manager-9.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b091428e78819447885ac92b44a60bdd381893a3538a57abe78718e71efda00
MD5 9d65f7ff57622e8593206b4fabc96bc6
BLAKE2b-256 0192c780e7667e269a6c5ba448f903b8c9e665f38ad1f0b1bd9d3becb167da13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page