Skip to main content

Client library for vmware-sddc-manager Automation APIs

Project description

VMware SDDC Manager library contains client bindings for VMware SDDC Manager Automation APIs for managing software-defined data center (SDDC) infrastructure components. This library is part of VMware Cloud Foundation SDK for Python.

Source code

Getting started

Prerequisites

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

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:

(venv) het-m03:vsphere-automation-sdk-python het$ python
Python 3.9.8 (main, Nov 10 2021, 06:03:50)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 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.0.0.0-py3-none-any.whl (323.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for vmware_sddc_manager-9.0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67e1ec1e55ce1ab518ebff046b7f9d4314828dc9919de679fd62a95db7e1a7c3
MD5 220aa0052b9f6ea052604c348cda4367
BLAKE2b-256 a3e6a41a6fc470fbdf5f0f12bbdfc07eecb2318e75feea358f8681b07f2aca81

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