{"id":22535260,"url":"https://github.com/danielwhatmuff/vcloud-director-shutdown","last_synced_at":"2025-03-28T06:16:15.447Z","repository":{"id":22247330,"uuid":"25580832","full_name":"danielwhatmuff/vcloud-director-shutdown","owner":"danielwhatmuff","description":"Script to shutdown vApps when not in use e.g. evenings/weekends","archived":false,"fork":false,"pushed_at":"2014-11-25T11:40:41.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T07:12:56.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielwhatmuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-22T12:44:18.000Z","updated_at":"2014-11-25T11:40:42.000Z","dependencies_parsed_at":"2022-08-20T10:50:36.459Z","dependency_job_id":null,"html_url":"https://github.com/danielwhatmuff/vcloud-director-shutdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fvcloud-director-shutdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fvcloud-director-shutdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fvcloud-director-shutdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielwhatmuff%2Fvcloud-director-shutdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielwhatmuff","download_url":"https://codeload.github.com/danielwhatmuff/vcloud-director-shutdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978280,"owners_count":20703678,"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-12-07T10:06:57.562Z","updated_at":"2025-03-28T06:16:15.412Z","avatar_url":"https://github.com/danielwhatmuff.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"vcloud-director-shutdown\n=================\n\nSimple Ruby script to shutdown/startup a collection of vApps when not in use e.g. during evenings/weekends\n\nRequirements\n-----------\n\nRequires Ruby and the fog Ruby gem.\n\n*gem install fog*\n\nInstallation\n-----------\n\n1. Copy the script to somewhere sensible e.g. /usr/local/bin onto a server or machine which has access to your vcloud director API.\n\n2. Configure your vcloud director api credentials\n\nvcloud_director_username='abc@abc'\n\nvcloud_director_password='password'\n\nvcloud_director_host='api.vcd.example.com'\n\n3. Configure the vApps you wish to power off/on with the script, and specify the org and vdc they are contained in.\n\nselected_org = \"org1\"\n\nselected_vdc = \"vdc1\"\n\nselected_vapps_to_shutdown = ['vapp1', 'vapp2', 'vapp3', 'vapp4']\n\nUsage\n-----------\n\npower off the vApps\n\nruby vcloud-director-shutdown.rb *off*\n\npower on the vApps\n\nruby vcloud-director-shutdown.rb *on*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fvcloud-director-shutdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielwhatmuff%2Fvcloud-director-shutdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielwhatmuff%2Fvcloud-director-shutdown/lists"}