You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -217,7 +219,8 @@ The configuration of the STACKIT webhook can be accomplished through command lin
217
219
Below are the options that are available.
218
220
219
221
-`--project-id`/`PROJECT_ID` (required): Specifies the project id of the STACKIT project.
220
-
-`--auth-token`/`AUTH_TOKEN` (required): Defines the authentication token for the STACKIT API.
222
+
-`--auth-token`/`AUTH_TOKEN` (required if `auth-key-path` is not set): Defines the authentication token for the STACKIT API. Mutually exclusive with 'auth-key-path'.
223
+
-`--auth-key-path`/`AUTH_KEY_PATH` (required if `auth-token` is not set): Defines the file path of the service account key for the STACKIT API. Mutually exclusive with 'auth-token'.
221
224
-`--worker`/`WORKER` (optional): Specifies the number of workers to employ for querying the API. Given that we
222
225
need to iterate over all zones and records, it can be parallelized. However, it is important to avoid
223
226
setting this number excessively high to prevent receiving 429 rate limiting from the API (default 10).
rootCmd.PersistentFlags().StringVar(&apiPort, "api-port", "8888", "Specifies the port to listen on.")
113
-
rootCmd.PersistentFlags().StringVar(&authBearerToken, "auth-token", "", "Defines the authentication token for the STACKIT API.")
116
+
rootCmd.PersistentFlags().StringVar(&authBearerToken, "auth-token", "", "Defines the authentication token for the STACKIT API. Mutually exclusive with 'auth-key-path'.")
117
+
rootCmd.PersistentFlags().StringVar(&authKeyPath, "auth-key-path", "", "Defines the file path of the service account key for the STACKIT API. Mutually exclusive with 'auth-token'.")
114
118
rootCmd.PersistentFlags().StringVar(&baseUrl, "base-url", "https://dns.api.stackit.cloud", " Identifies the Base URL for utilizing the API.")
115
119
rootCmd.PersistentFlags().StringVar(&projectID, "project-id", "", "Specifies the project id of the STACKIT project.")
116
120
rootCmd.PersistentFlags().IntVar(&worker, "worker", 10, "Specifies the number "+
0 commit comments