{"id":20648289,"url":"https://github.com/nutanixdev/move_vms_extract_categories","last_synced_at":"2025-10-09T02:44:42.642Z","repository":{"id":110538680,"uuid":"221358545","full_name":"nutanixdev/move_vms_extract_categories","owner":"nutanixdev","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-23T05:20:11.000Z","size":233,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T13:07:49.926Z","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-11-13T02:49:11.000Z","updated_at":"2021-03-23T05:20:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bb910ea-76ec-4cb2-8313-609aa236ab83","html_url":"https://github.com/nutanixdev/move_vms_extract_categories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nutanixdev/move_vms_extract_categories","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_extract_categories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_extract_categories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_extract_categories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_extract_categories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nutanixdev","download_url":"https://codeload.github.com/nutanixdev/move_vms_extract_categories/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nutanixdev%2Fmove_vms_extract_categories/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000769,"owners_count":26082906,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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.924Z","updated_at":"2025-10-09T02:44:42.615Z","avatar_url":"https://github.com/nutanixdev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===================================\nList VMs Matching Category Criteria\n===================================\n\n- Use included params.json as API request parameters\n- List all VMs that are currently assigned to the specified category (see formatting notes in next section)\n- Email completed list to specified email address\n\n----------------------------\nSpecifying Category Criteria\n----------------------------\n\n- VMs with no category assigned: use **{}** in parameters file\n- VMs in specific category: use **{\"category_name_demo\":\"category_value_demo\"}** in parameters file\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 better exception handling for email/SMTP errors.\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 Central, category and SMTP settings\n- Run the script:\n\n   .. code-block:: python\n\n      python3.8 list_vms.py params.json\n\n-------\nSupport\n-------\n\nPlease be advised this script is **unofficial** and meant for demo/reference purposes only.  It is not officially supported by Nutanix in any way.\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_extract_categories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnutanixdev%2Fmove_vms_extract_categories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnutanixdev%2Fmove_vms_extract_categories/lists"}