-
Notifications
You must be signed in to change notification settings - Fork 32
/
doc.go
37 lines (30 loc) · 1.08 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Package prismacloud is an SDK meant to assist in interacting with the Palo
Alto Networks Prisma Cloud API.
To connect, create a client connetion with the desired params and then
initialize the connection:
package main
import (
"log"
"github.com/paloaltonetworks/prisma-cloud-go"
"github.com/paloaltonetworks/prisma-cloud-go/compliance/standard"
)
func main() {
client := &prismacloud.Client{}
if err := c.Initialize("creds.json"); err != nil {
log.Fatalf("Failed to connect: %s", err)
}
listing, err := standard.List(client)
if err != nil {
log.Fatalf("Failed to get compliance standards: %s", err)
}
log.Printf("Compliance standards:")
for _, elm := range listing {
log.Printf("* (%s) %s", elm.Id, elm.Name)
}
}
In most cases the struct and types match what the Prisma Cloud API
specifies, so you may find it useful to refer to the Prisma Cloud API
for further information: https://api.docs.prismacloud.io/reference
*/
package prismacloud