Skip to content

Commit

Permalink
refactor(api): remove access to API v1 + default to v2
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune committed Jun 27, 2023
1 parent 3a7c0d4 commit 0b1c4dc
Show file tree
Hide file tree
Showing 159 changed files with 53 additions and 724 deletions.
2 changes: 1 addition & 1 deletion api/_examples/agent-access-token/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/alert-channels-v2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/alert-profiles/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/alert-rules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/aws-cloudwatch-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/aws-s3-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/cisco-webex-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/aws-cfg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/aws-ct-sqs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/aws-eks-audit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/gcp-al-pub-sub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/gcp-gke-audit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/cloud-accounts/oci-cfg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/container-registries/inline_scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/container-registries/proxy_scanner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/container-vuln-search/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/data-export-rules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/datadog-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/feature-flags/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2())
)
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/gcp_pub_sub-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2())
)
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/microsoft-teams-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/new-relic-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2())
)
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/pagerduty-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2())
)
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/pagination/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/policy-exceptions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/policy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/qradar-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/report-definitions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/report-distributions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/report-rules/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/reports/aws/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/reports/azure/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/reports/gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/resource-groups/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/service-now-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/slack-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/splunk-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/team-members-org/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
api.WithOrgAccess(),
)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion api/_examples/team-members/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
1 change: 0 additions & 1 deletion api/_examples/vulnerability-exceptions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithSubaccount(os.Getenv("LW_SUBACCOUNT")),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")),
api.WithApiV2(),
)
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion api/_examples/webhook-alert-channel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func main() {
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"), api.WithApiV2(),
lacework, err := api.NewClient(os.Getenv("LW_ACCOUNT"),
api.WithApiKeys(os.Getenv("LW_API_KEY"), os.Getenv("LW_API_SECRET")))
if err != nil {
log.Fatal(err)
Expand Down
Loading

0 comments on commit 0b1c4dc

Please sign in to comment.