Skip to content

Go

goFalcon is the CrowdStrike Falcon SDK for Go. Generated from the CrowdStrike API OpenAPI specification, it provides idiomatic Go access to the full Falcon API surface. The SDK handles OAuth2 authentication and is periodically updated to reflect new API additions.

goFalcon follows semantic versioning in the v0.x.x stage - pin to specific patch versions in your go.mod for stability.

View on GitHub
Terminal window
go get github.com/crowdstrike/gofalcon/falcon
package main
import (
"context"
"fmt"
"os"
"github.com/crowdstrike/gofalcon/falcon"
"github.com/crowdstrike/gofalcon/falcon/client/sensor_download"
)
func main() {
client, err := falcon.NewClient(&falcon.ApiConfig{
ClientId: os.Getenv("FALCON_CLIENT_ID"),
ClientSecret: os.Getenv("FALCON_CLIENT_SECRET"),
Context: context.Background(),
})
if err != nil {
panic(err)
}
res, err := client.SensorDownload.GetSensorInstallersCCIDByQuery(
&sensor_download.GetSensorInstallersCCIDByQueryParams{
Context: context.Background(),
},
)
if err != nil {
panic(err)
}
fmt.Println(res.Payload.Resources)
}