{"id":17280324,"url":"https://github.com/paskal/go-prisma","last_synced_at":"2025-02-25T03:31:05.451Z","repository":{"id":57512161,"uuid":"240081584","full_name":"paskal/go-prisma","owner":"paskal","description":"Tiny library for Prisma Cloud API access.","archived":true,"fork":false,"pushed_at":"2024-12-02T04:12:53.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T06:34:42.432Z","etag":null,"topics":["prisma","prisma-cloud-api"],"latest_commit_sha":null,"homepage":"https://api.docs.prismacloud.io/reference","language":"Go","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/paskal.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}},"created_at":"2020-02-12T18:10:47.000Z","updated_at":"2024-12-02T04:13:21.000Z","dependencies_parsed_at":"2024-06-21T16:45:10.322Z","dependency_job_id":null,"html_url":"https://github.com/paskal/go-prisma","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paskal%2Fgo-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paskal%2Fgo-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paskal%2Fgo-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paskal%2Fgo-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paskal","download_url":"https://codeload.github.com/paskal/go-prisma/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240597103,"owners_count":19826708,"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":["prisma","prisma-cloud-api"],"created_at":"2024-10-15T09:20:01.609Z","updated_at":"2025-02-25T03:31:05.396Z","avatar_url":"https://github.com/paskal.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Palo Alto Prisma Cloud library  [![Build Status](https://github.com/paskal/go-prisma/actions/workflows/ci-test.yml/badge.svg)](https://github.com/paskal/go-prisma/actions) [![Go Report Card](https://goreportcard.com/badge/github.com/paskal/go-prisma)](https://goreportcard.com/report/github.com/paskal/go-prisma)[![Coverage Status](https://coveralls.io/repos/github/paskal/go-prisma/badge.svg?branch=master)](https://coveralls.io/github/paskal/go-prisma?branch=master)[![GoDoc](https://godoc.org/github.com/paskal/go-prisma?status.svg)](https://pkg.go.dev/github.com/paskal/go-prisma?tab=doc)\n\nTiny library for [Prisma Cloud API](https://api.docs.prismacloud.io/reference) access.\n\nIt takes care of authorization and token renewal, and let you concentrate on issuing requests.\n\n## How to install\n\n```console\ngo get github.com/paskal/go-prisma\n```\n\n## Usage example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"os\"\n\n\t\"github.com/jessevdk/go-flags\"\n\n\t\"github.com/paskal/go-prisma\"\n)\n\nfunc main() {\n\tvar opts struct {\n\t\tPrismAPIUrl      string `long:\"prisma_api_url\" default:\"https://api.eu.prismacloud.io\" description:\"Prisma API URL\"`\n\t\tPrismAPIKey      string `long:\"prisma_api_key\" required:\"true\" description:\"Prisma API key\"`\n\t\tPrismAPIPassword string `long:\"prisma_api_password\" required:\"true\" description:\"Prisma API password\"`\n\t}\n\tif _, err := flags.Parse(\u0026opts); err != nil {\n\t\tos.Exit(1)\n\t}\n\n\tlog.SetFlags(log.Ldate | log.Ltime)\n\tlog.Printf(\"[INFO] Initialising Prisma connection with API key %s\", opts.PrismAPIKey)\n\n\tp := prisma.NewClient(opts.PrismAPIKey, opts.PrismAPIPassword, opts.PrismAPIUrl)\n\thealthCheckResult, err := p.Call(\"GET\", \"/check\", nil)\n\tif err != nil {\n\t\tlog.Printf(\"[ERROR] Can't check Prisma health, %s\", err)\n\t\treturn\n\t}\n\tlog.Printf(\"[INFO] Prisma /check endpoint answer: %s\", healthCheckResult)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaskal%2Fgo-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaskal%2Fgo-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaskal%2Fgo-prisma/lists"}