{"id":33512349,"url":"https://github.com/aziontech/azionapi-v4-go-sdk-dev","last_synced_at":"2026-03-06T05:48:34.647Z","repository":{"id":302125475,"uuid":"1007159569","full_name":"aziontech/azionapi-v4-go-sdk-dev","owner":"aziontech","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-13T17:50:31.000Z","size":3067,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-13T19:27:09.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/aziontech.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":"2025-06-23T14:52:15.000Z","updated_at":"2025-11-13T17:50:20.000Z","dependencies_parsed_at":"2025-07-23T22:28:35.953Z","dependency_job_id":"d0f6456d-9dea-4d6d-ba72-19998d595ac5","html_url":"https://github.com/aziontech/azionapi-v4-go-sdk-dev","commit_stats":null,"previous_names":["aziontech/azionapi-v4-go-sdk-dev"],"tags_count":96,"template":false,"template_full_name":null,"purl":"pkg:github/aziontech/azionapi-v4-go-sdk-dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Fazionapi-v4-go-sdk-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Fazionapi-v4-go-sdk-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Fazionapi-v4-go-sdk-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Fazionapi-v4-go-sdk-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aziontech","download_url":"https://codeload.github.com/aziontech/azionapi-v4-go-sdk-dev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aziontech%2Fazionapi-v4-go-sdk-dev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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-11-26T02:00:06.075Z","response_time":193,"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":"2025-11-26T05:03:41.583Z","updated_at":"2025-11-26T05:03:44.223Z","avatar_url":"https://github.com/aziontech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azionapi-v4-go-sdk\n\nGolang SDK for Azion APIs (v4)\n\n\n## Azion Go SDK Usage Example - Edge Connectors API (v4)\n\nThis example demonstrates how to use the Azion API Go SDK v4 to manage **Edge Connectors** via Azion's API. It includes authentication, creating, retrieving, updating, listing, and deleting Edge Connectors.\n\n### 📦 Installation\n\nFirst, install the Azion API Go SDK v4 for Stage:\n\n```bash\ngo get github.com/aziontech/azionapi-v4-go-sdk-dev\n```\n\n---\n\n### 🔑 Authentication\n\nYou need a valid Personal Token from Azion. Set it in the `Authorization` header.\n\n---\n\n### 🛠️ Example Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"\n\n\tsdk \"github.com/aziontech/azionapi-v4-go-sdk-dev/edge\"\n)\n\nfunc main() {\n\ttoken := \"YOUR_PERSONAL_TOKEN\"\n\tbaseURL := \"https://api.azionapi.net\"\n\n\t// Setup configuration\n\tconf := sdk.NewConfiguration()\n\tconf.HTTPClient = \u0026http.Client{Timeout: 50 * time.Second}\n\tconf.AddDefaultHeader(\"Authorization\", \"token \" + token)\n\tconf.AddDefaultHeader(\"Accept\", \"application/json\")\n\tconf.UserAgent = \"ExampleClient/1.0\"\n\tconf.Servers = sdk.ServerConfigurations{\n\t\t{URL: baseURL},\n\t}\n\n\tclient := sdk.NewAPIClient(conf)\n\tctx := context.Background()\n\n\t// --- Create an Edge Connector ---\n\tcreateReq := sdk.EdgeConnectorPolymorphicRequest{\n\t\t// Fill with required fields, e.g.:\n\t\t// Name: \"my-connector\",\n\t}\n\tcreateResp, httpResp, err := client.EdgeConnectorsAPI.CreateEdgeConnector(ctx).\n\t\tEdgeConnectorPolymorphicRequest(createReq).\n\t\tExecute()\n\tif err != nil {\n\t\tfmt.Println(\"Error creating Edge Connector:\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Created Edge Connector ID: %s\\n\", createResp.Data.GetUuid())\n\n\t// --- Retrieve an Edge Connector ---\n\tid := createResp.Data.GetUuid()\n\tgetResp, httpResp, err := client.EdgeConnectorsAPI.RetrieveEdgeConnector(ctx, id).Execute()\n\tif err != nil {\n\t\tfmt.Println(\"Error retrieving Edge Connector:\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Retrieved Edge Connector Name: %s\\n\", getResp.Data.GetName())\n\n\t// --- Update an Edge Connector ---\n\tupdateReq := sdk.PatchedEdgeConnectorPolymorphicRequest{\n\t\t// Name: sdk.PtrString(\"updated-connector-name\"),\n\t}\n\tupdateResp, httpResp, err := client.EdgeConnectorsAPI.PartialUpdateEdgeConnector(ctx, id).\n\t\tPatchedEdgeConnectorPolymorphicRequest(updateReq).\n\t\tExecute()\n\tif err != nil {\n\t\tfmt.Println(\"Error updating Edge Connector:\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Updated Edge Connector Name: %s\\n\", updateResp.Data.GetName())\n\n\t// --- List Edge Connectors ---\n\tlistResp, httpResp, err := client.EdgeConnectorsAPI.ListEdgeConnectors(ctx).\n\t\tPage(1).\n\t\tPageSize(10).\n\t\tOrdering(\"id\").\n\t\tExecute()\n\tif err != nil {\n\t\tfmt.Println(\"Error listing Edge Connectors:\", err)\n\t\treturn\n\t}\n\tfor _, connector := range listResp.Results {\n\t\tfmt.Printf(\"Connector ID: %s | Name: %s\\n\", connector.GetUuid(), connector.GetName())\n\t}\n\n\t// --- Delete Edge Connector ---\n\t_, httpResp, err = client.EdgeConnectorsAPI.DestroyEdgeConnector(ctx, id).Execute()\n\tif err != nil {\n\t\tfmt.Println(\"Error deleting Edge Connector:\", err)\n\t\treturn\n\t}\n\tfmt.Println(\"Edge Connector deleted.\")\n}\n```\n\n---\n\n### 📘 Resources\n\n- [Azion API Documentation](https://api.azion.com)\n- [Azion CLI (azion-cli)](https://github.com/aziontech/azion)\n- [Production Azion API Go SDK v4](https://github.com/aziontech/azionapi-v4-go-sdk)\n\n---\n\n### ⚠️ Notes\n\n- Always set the appropriate `Accept` and `Authorization` headers.\n- Make sure the fields required in your specific connector implementation are set.\n- The SDK uses polymorphic request/response types, so adjust based on connector type.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziontech%2Fazionapi-v4-go-sdk-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faziontech%2Fazionapi-v4-go-sdk-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faziontech%2Fazionapi-v4-go-sdk-dev/lists"}