{"id":22379131,"url":"https://github.com/sky-uk/govrealize","last_synced_at":"2025-07-31T01:31:46.659Z","repository":{"id":57519815,"uuid":"77526133","full_name":"sky-uk/govrealize","owner":"sky-uk","description":"A Go library for interacting with vRealize Automation 6.2 REST API","archived":false,"fork":false,"pushed_at":"2017-12-04T14:36:18.000Z","size":18,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-06-20T05:23:22.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sky-uk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-28T10:54:58.000Z","updated_at":"2024-06-20T05:23:22.483Z","dependencies_parsed_at":"2022-09-05T11:51:58.772Z","dependency_job_id":null,"html_url":"https://github.com/sky-uk/govrealize","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/sky-uk%2Fgovrealize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fgovrealize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fgovrealize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-uk%2Fgovrealize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky-uk","download_url":"https://codeload.github.com/sky-uk/govrealize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228204606,"owners_count":17884711,"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-04T23:09:04.042Z","updated_at":"2024-12-04T23:09:04.710Z","avatar_url":"https://github.com/sky-uk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# govrealize\nA Go library for interacting with vRealize Automation 6.2 REST API\n\n## Introduction\ngovrealize is a Golang client library for interacting with the vRealize REST API detailed here: https://developercenter.vmware.com/web/sdk/6.2.0/vrealize-automation. Currently only the creation, reading and deletion of machines is implemented.\n\n## Usage\nCreate a vRealize client\n```golang\nclient := m.(*govrealize.Client)\n```\n\nCreate a machine\n```golang\nentries := []govrealize.MachineRequestDataEntry{}\n\nmrde := govrealize.MachineRequestDataEntry{\n\tKey: key,\n\tValue: govrealize.MachineRequestDataEntryValue{\n\t\tType:  \"string\",\n\t\tValue: \"value\",\n\t},\n}\nentries = append(entries, mrde)\n\nopts := \u0026govrealize.MachineCreateRequest{\n  Type: \"CatalogItemRequest\",\n\tCatalogItemRef: govrealize.MachineCreateRequestCatalogItemRef{\n\t\tID: \"xxxx-xxxxx-xxxxx-xxxx\",\n\t},\n\tOrganization: govrealize.MachineCreateRequestOrganization{\n\t\tTenantRef:    \"tenant\",\n\t\tSubtenantRef: \"subtenant\",\n\t},\n\tState:         \"SUBMITTED\",\n\tRequestNumber: 0,\n\tRequestData: govrealize.MachineCreateRequestRequestData{\n\t\tEntries: entries,\n\t},\n}\n\nmachine, resp, err := client.Machine.CreateMachine(opts)\n```\n\nGet a machine\n```golang\nmachine, resp, err := client.Machine.GetMachine(\"xxxx-xxxx-xxxx-xxxx\")\n```\n\nDestroy a machine\n```golang\ndestroyed, resp, err := client.Machine.DestroyMachine(\"xxxx-xxxx-xxxx-xxxx\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-uk%2Fgovrealize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-uk%2Fgovrealize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-uk%2Fgovrealize/lists"}