Skip to content

Instantly share code, notes, and snippets.

View vinops's full-sized avatar

Vincent vinops

  • France
View GitHub Profile
@em2er
em2er / vmware_tags_rest_api.py
Last active February 15, 2024 09:51
Getting categories and tags for all VM in VMWare vCenter using REST API
from requests import Session
from typing import List, Dict
VALUE_KEY = 'value'
class VMTagReader:
def __init__(self, vcenter_url: str, login: str, password: str):
self.host = vcenter_url
self.session = Session()