{"id":23147537,"url":"https://github.com/entraptaj/ts-vcenter","last_synced_at":"2025-10-09T21:37:33.887Z","repository":{"id":34932453,"uuid":"191823959","full_name":"EntraptaJ/TS-vCenter","owner":"EntraptaJ","description":"TypeScript Node Module for interacting with vCenter","archived":false,"fork":false,"pushed_at":"2023-01-12T01:42:47.000Z","size":1382,"stargazers_count":2,"open_issues_count":41,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-04T13:46:15.651Z","etag":null,"topics":["typescript","vcenter","vcenter-api","vmware"],"latest_commit_sha":null,"homepage":"https://kristianjones.dev/TSModules","language":"TypeScript","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/EntraptaJ.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2019-06-13T19:48:31.000Z","updated_at":"2023-05-16T07:03:55.000Z","dependencies_parsed_at":"2023-01-15T10:39:53.757Z","dependency_job_id":null,"html_url":"https://github.com/EntraptaJ/TS-vCenter","commit_stats":null,"previous_names":["kristinefj/ts-vcenter","kristianfjones/ts-vcenter"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/EntraptaJ/TS-vCenter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EntraptaJ%2FTS-vCenter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EntraptaJ%2FTS-vCenter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EntraptaJ%2FTS-vCenter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EntraptaJ%2FTS-vCenter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EntraptaJ","download_url":"https://codeload.github.com/EntraptaJ/TS-vCenter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EntraptaJ%2FTS-vCenter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002055,"owners_count":26083286,"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":["typescript","vcenter","vcenter-api","vmware"],"created_at":"2024-12-17T16:52:43.341Z","updated_at":"2025-10-09T21:37:33.871Z","avatar_url":"https://github.com/EntraptaJ.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TS-vCenter\n\nTS-vCenter is a NodeJS module for interacting with a vCenter Server via the Automation REST API\n\nTypeDoc [Documentation](https://kristianfjones.github.io/TS-vCenter/docs/classes/_vcenter_.vcenter.html)\n\n## Working\n\n- Combo method of Content Library, Items, and Info\n- VM Templates - List, Deployment\n- VMs\n- Hosts\n- Datastores\n- Most Content Library Stuff\n- Folders\n- Datacenters\n- Clusters\n\n## Usage\n\nFirst you need to get a session token\n\n```typescript\nimport { loginVCSA, vCenter } from 'ts-vcenter';\n\n\nconst Start = async () =\u003e {\n  const token = await loginVCSA({\n    username: 'Administrator@vsphere.local',\n    url: 'https://vsphere.local',\n    password: 'password',\n  });\n\n  const vcsa = new vCenter({ url: 'https://vsphere.local', token });\n\n  const VMs = await vcsa.getVMs();\n  console.log(VMs);\n}\n\nStart()\n};\n```\n\n### Get Hosts\n\n```typescript\nconst getHosts = async () =\u003e {\n  const Hosts = await vcsa.getHosts();\n  Hosts.map(host =\u003e console.log(host.name, host.connection_state, host.power_state));\n};\n```\n\nFor more examples checkout the JSDoc/TSDoc defs on each method.\n\n## Extras\n\nIf you need any more methods added just open an issue on the GitHub repo and I'll have it added within a day. Or open a PR if you would like.\n\nAll requests are done with the internal this.vCenterGetRequest or this.vCenterPostRequest methods in the vCenter class\n\nExample\n\n```typescript\n  public getHosts = async (filter?: HostsFilter): Promise\u003cHosts[]\u003e =\u003e this.vCenterGetRequest('/vcenter/host', filter);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentraptaj%2Fts-vcenter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentraptaj%2Fts-vcenter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentraptaj%2Fts-vcenter/lists"}