{"id":50822444,"url":"https://github.com/client-api/pdm-go","last_synced_at":"2026-06-13T15:03:44.807Z","repository":{"id":359817705,"uuid":"1247558450","full_name":"client-api/pdm-go","owner":"client-api","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-23T15:15:06.000Z","size":970,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T17:09:07.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/client-api.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T13:29:49.000Z","updated_at":"2026-05-23T15:15:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/client-api/pdm-go","commit_stats":null,"previous_names":["client-api/pdm-go"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/client-api/pdm-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpdm-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpdm-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpdm-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpdm-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/client-api","download_url":"https://codeload.github.com/client-api/pdm-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/client-api%2Fpdm-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34288666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"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":"2026-06-13T15:03:43.908Z","updated_at":"2026-06-13T15:03:44.802Z","avatar_url":"https://github.com/client-api.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pdm-go\n\nGo SDK for the Proxmox Datacenter Manager API. Generated from\nthe upstream `apidoc.js` from Proxmox Datacenter Manager via [openapi-generator-cli][gen] with custom\nMustache template overrides.\n\n\u003e **Not an official Proxmox project.** Community SDK derived from the\n\u003e upstream `apidoc.js`. Always verify against the upstream API viewer.\n\u003e \u003chttps://pdm.proxmox.com/\u003e.\n\nRequires Go ≥ 1.22.\n\n## Install\n\n```bash\ngo get github.com/client-api/pdm-go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n\n    \"github.com/client-api/pdm-go\"\n)\n\nfunc main() {\n    cfg := openapi.NewConfiguration()\n    cfg.Servers[0].URL = \"https://pdm1.example.com:8443/api2/json\"\n    cfg.AddDefaultHeader(\"Authorization\", \"PDMAPIToken=user@realm!tokenid:uuid-secret\")\n\n    pve := openapi.NewPdm(cfg)\n\n    status, _, err := pve.QemuAPI.QemuVmStatus(context.Background(), \"pdm1\", 100).Execute()\n    if err != nil {\n        panic(err)\n    }\n    fmt.Printf(\"%+v\\n\", status)\n}\n```\n\n`Pdm` is a brand alias for the generator's `*APIClient`, which already\nexposes every per-tag API as a struct field\n(`QemuAPI`, `LxcAPI`, `ClusterAPI`, …).\n\n## Compound configs\n\nPVE encodes many fields as CLI-style shorthand strings\n(`net0=virtio,bridge=vmbr0,firewall=1`). Round-trip helpers are\nemitted for every compound config schema:\n\n```go\ncfg := openapi.PveQemuNetConfig{\n    Model:    \"virtio\",\n    Bridge:   stringPtr(\"vmbr0\"),\n    Firewall: int32Ptr(1),\n}\nshorthand := cfg.ToShorthand()\n// → \"virtio,bridge=vmbr0,firewall=1\"\n```\n\n## License\n\nApache 2.0 — see [LICENSE](./LICENSE).\n\n[gen]: https://openapi-generator.tech\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient-api%2Fpdm-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclient-api%2Fpdm-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclient-api%2Fpdm-go/lists"}