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

Closed
bl4ko opened this issue Nov 26, 2024 · 4 comments
Closed

Sync vcenter tags #344

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

Comments

@bl4ko
Copy link
Member

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
Member Author

bl4ko commented Nov 27, 2024

Related to #339

@bl4ko
Copy link
Member 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.

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@bl4ko bl4ko self-assigned this Jan 27, 2025
@bl4ko bl4ko closed this as completed in 1c133f9 Jan 27, 2025
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