{"id":50978983,"url":"https://github.com/selectel/public-net-api-go","last_synced_at":"2026-06-19T12:03:55.930Z","repository":{"id":365663448,"uuid":"1265974111","full_name":"selectel/public-net-api-go","owner":"selectel","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-18T09:13:58.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-18T11:15:55.788Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selectel.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,"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-06-11T08:17:43.000Z","updated_at":"2026-06-18T09:14:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/selectel/public-net-api-go","commit_stats":null,"previous_names":["selectel/public-net-api-go"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/selectel/public-net-api-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fpublic-net-api-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fpublic-net-api-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fpublic-net-api-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fpublic-net-api-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selectel","download_url":"https://codeload.github.com/selectel/public-net-api-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fpublic-net-api-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34530302,"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-19T02:00:06.005Z","response_time":61,"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-19T12:03:55.252Z","updated_at":"2026-06-19T12:03:55.923Z","avatar_url":"https://github.com/selectel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# public-net-api-go\n\nGo SDK for the Selectel Cloud Public Net API service for managing networking resources - direct public IP addresses (which are represented as public ports).\n\nFor example, it is used the [Selectel Terraform Provider](https://github.com/selectel/terraform-provider-selectel).\n\n## Getting started\n\n### Installation\n\nYou can install needed `public-net-api-go` packages via `go get` command:\n\n```bash\ngo get github.com/selectel/public-net-api-go\n```\n\n## Authentication\n\nTo work with the Selectel Public Net API you first need to:\n\n* Create a Selectel account: [registration page](https://my.selectel.ru/registration).\n* Create a project in Selectel Cloud Platform [projects](https://my.selectel.ru/vpc/projects).\n* Retrieve a Keystone token for your project via API or [go-selvpcclient](https://github.com/selectel/go-selvpcclient).\n\n## Endpoints\n\nYou can find available endpoints [here](https://docs.selectel.ru/en/api/urls/).\n\n## Usage example\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\tpublicnetapi \"github.com/selectel/public-net-api-go/pkg/v1\"\n)\n\nfunc main() {\n\tcfg := \u0026publicnetapi.Config{\n\t\tAuthToken: \"...\",\n\t\tURL:       \"https://ru-3.cloud.api.selcloud.ru/public-net/\",\n\t}\n\n\tclient, err := publicnetapi.NewPublicNetAPIClient(cfg)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tports, err := client.ListPorts(context.Background(), nil)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfor _, port := range ports {\n\t\tfmt.Printf(\"Port %s: %s\\n\", port.ID, port.IPAddress)\n\t}\n}\n```\n\n## Supported operations\n\n* **Port** — List, Get, Create, Update, Delete\n* **Project quotas** — Get\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fpublic-net-api-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselectel%2Fpublic-net-api-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fpublic-net-api-go/lists"}