Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync vcenter tags #344

Open
bl4ko opened this issue Nov 26, 2024 · 3 comments
Open

Sync vcenter tags #344

bl4ko opened this issue Nov 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@bl4ko
Copy link
Owner

bl4ko commented Nov 26, 2024

Add feature of also syncing tags from vcenter.

@bl4ko bl4ko added the enhancement New feature or request label Nov 26, 2024
@bl4ko
Copy link
Owner Author

bl4ko commented Nov 27, 2024

Related to #339

@bl4ko
Copy link
Owner Author

bl4ko commented Nov 27, 2024

@bb-Ricardo for which object types is the goal of syncing tags from vmware?

@bb-Ricardo
Copy link

Hi,

First I believe you need to use the https://github.com/vmware/vsphere-automation-sdk-go as tags are not part of the vpshere SOAP API and rather the REST API.

this initiates the session: https://github.com/bb-Ricardo/netbox-sync/blob/main/module/sources/vmware/connection.py#L203

This retrieves all tags for a vCenter object: https://github.com/bb-Ricardo/netbox-sync/blob/main/module/sources/vmware/connection.py#L649

This reads tags for a certain object: https://github.com/bb-Ricardo/netbox-sync/blob/main/module/sources/vmware/connection.py#L701
and compiles a list based on the tag settings for this object:
https://github.com/bb-Ricardo/netbox-sync/blob/3c07a4c001443f50d95ae4668c931599e41efeae/settings-example.ini#L288-L301

hope this is sufficient. Let me know if you are missing anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants