{"id":20648285,"url":"https://github.com/nutanixdev/move_vms_from_pd_to_category","last_synced_at":"2025-07-01T04:33:31.942Z","repository":{"id":93817123,"uuid":"218174412","full_name":"nutanixdev/move_vms_from_pd_to_category","owner":"nutanixdev","description":"Project in progress with Dwayne Lessner - please DO NOT modify","archived":false,"fork":false,"pushed_at":"2021-03-22T07:21:17.000Z","size":480,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-16T19:59:04.551Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nutanixdev.png","metadata":{"files":{"readme":"readme.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-29T00:57:47.000Z","updated_at":"2021-03-22T07:21:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c15d91ea-2d3a-4b9a-9b6f-e2f0806bbe82","html_url":"https://github.com/nutanixdev/move_vms_from_pd_to_category","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nutanixdev/move_vms_from_pd_to_category","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_from_pd_to_category","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_from_pd_to_category/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_from_pd_to_category/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_from_pd_to_category/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nutanixdev","download_url":"https://codeload.github.com/nutanixdev/move_vms_from_pd_to_category/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_from_pd_to_category/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262897719,"owners_count":23381461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T17:07:32.300Z","updated_at":"2025-07-01T04:33:31.931Z","avatar_url":"https://github.com/nutanixdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========================================\nMove VM from Protection Domain to Category\n==========================================\n\n- Use included params.json as API request parameters\n- List all VMs that are entities within an existing Protection Domain\n- Remove those VMs from an existing Protection Domain\n- Assign the same VMs to an existing category\n\n---------------\nImportant Notes\n---------------\n\n- This script has been written for demo purposes only.  *Please* make sure to add appropriate error-checking and exception handling before using it in production.\n- For use in production it would advisable to add checks for making the PD and Category exist.\n\n------------\nRequirements\n------------\n\n- Python \u003e=3.6 (lower versions will NOT work)\n- pip3 (for dependencies installation)\n- Tested on Python 3.6, 3.7 and 3.8\n\n-----\nUsage\n-----\n\n- Clone repo to your local machine\n- Setup a virtual environment on Linux or Mac (strongly recommended):\n\n   .. code-block:: python\n\n      python3.8 -m venv venv\n      . venv/bin/activate\n\n- Setup a virtual environment on Windows (strongly recommended):\n\n   .. note:: See https://docs.python.org/3/library/venv.html for Windows instructions\n\n- Install the dependencies:\n\n   .. code-block:: python\n\n      pip3 install -e .\n\n- Adjust values in **params.json** to match your Prism Element, Prism Central, Protection Domain and category settings\n- Run the script:\n\n   .. code-block:: python\n\n      python3.8 move_vms.py params.json\n\n----------\nScreenshot\n----------\n\nAn example of the script running is shown below.\n\n.. figure:: ./screenshot.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutanixdev%2Fmove_vms_from_pd_to_category","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnutanixdev%2Fmove_vms_from_pd_to_category","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutanixdev%2Fmove_vms_from_pd_to_category/lists"}