diff --git a/cmd/discard.go b/cmd/discard.go index be74243..a832be6 100644 --- a/cmd/discard.go +++ b/cmd/discard.go @@ -58,8 +58,16 @@ var discardCmd = &cobra.Command{ URL = EUCIURL case "us": URL = USCIURL + case "au": + URL = AUCIURL + case "in": + URL = INCIURL + case "ca": + URL = CACIURL + case "ae": + URL = AECIURL default: - fmt.Printf("Invalid region %s, expected eu or us\n", region) + fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region) os.Exit(1) } diff --git a/cmd/enforce.go b/cmd/enforce.go index 5595da6..9463b76 100644 --- a/cmd/enforce.go +++ b/cmd/enforce.go @@ -62,8 +62,16 @@ var enforceCmd = &cobra.Command{ URL = EUCIURL case "us": URL = USCIURL + case "au": + URL = AUCIURL + case "in": + URL = INCIURL + case "ca": + URL = CACIURL + case "ae": + URL = AECIURL default: - fmt.Printf("Invalid region %s, expected eu or us\n", region) + fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region) os.Exit(1) } diff --git a/cmd/publish.go b/cmd/publish.go index 3a5845f..653c84a 100644 --- a/cmd/publish.go +++ b/cmd/publish.go @@ -67,8 +67,16 @@ var publishCmd = &cobra.Command{ URL = EUCIURL case "us": URL = USCIURL + case "au": + URL = AUCIURL + case "in": + URL = INCIURL + case "ca": + URL = CACIURL + case "ae": + URL = AECIURL default: - fmt.Printf("Invalid region %s, expected eu or us\n", region) + fmt.Printf("Invalid region %s, expected eu, us, au, in, ca or ae\n", region) os.Exit(1) } diff --git a/cmd/root.go b/cmd/root.go index 32e71a9..65b9648 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -11,6 +11,10 @@ import ( const ( EUCIURL = "https://cloudinfra-gw.portal.checkpoint.com" USCIURL = "https://cloudinfra-gw-us.portal.checkpoint.com" + AUCIURL = "https://cloudinfra-gw.ap.portal.checkpoint.com" + INCIURL = "https://cloudinfra-gw.in.portal.checkpoint.com" + AECIURL = "https://cloudinfra-gw.ae.portal.checkpoint.com" + CACIURL = "https://cloudinfra-gw.ca.portal.checkpoint.com" CIAuthPath = "/auth/external" appIDClaim = "appId" wafAppID = "64488de9-f813-42a7-93e7-f3fe25dd9011"