@@ -87,28 +87,41 @@ Example configuration file (clientconfig.json):
87
87
88
88
``` json
89
89
{
90
- "Auth" : {
91
- "ClientID" : " client-id" ,
92
- "ClientSecret" : " client-secret" ,
93
- "Username" : " username" ,
94
- "Password" : " password"
90
+ "Auth" : {
91
+ "ClientID" : " client-id" , // set this for oauth2 based authentication
92
+ "ClientSecret" : " client-secret" , // set this for oauth2 based authentication
93
+ "Username" : " username" , // set this for basic auth
94
+ "Password" : " password" // set this for basic auth
95
95
},
96
96
"Environment" : {
97
- "InstanceName" : " yourinstance" ,
98
- "OverrideBaseDomain" : " " ,
99
- "APIType" : " " // "jamfpro" / "msgraph"
97
+ "APIType" : " " , // define the api integration e.g "jamfpro" / "msgraph"
98
+ "InstanceName" : " yourinstance" , // used for "jamfpro"
99
+ "OverrideBaseDomain" : " " , // used for "jamfpro"
100
+ "TenantID" : " tenant-id" , // used for "msgraph"h
101
+ "TenantName " : " resource" , // used for "msgraph"
100
102
},
101
103
"ClientOptions" : {
102
- "LogLevel" : " LogLevelDebug" , // "LogLevelDebug" / "LogLevelInfo" / "LogLevelWarn" / "LogLevelError" / "LogLevelFatal" / "LogLevelPanic"
103
- "LogOutputFormat" : " console" , // "console" / "json"
104
- "LogConsoleSeparator" : " " , // " " / "\t" / "," / etc.
105
- "LogExportPath" : " /path/to/export/your/logs" ,
106
- "HideSensitiveData" : true , // redacts sensitive data from logs
107
- "MaxRetryAttempts" : 5 , // set number of retry attempts
108
- "MaxConcurrentRequests" : 3 , // set number of concurrent requests
109
- "EnableCookieJar" : false , // enable cookie jar support
110
- "FollowRedirects" : true , // follow redirects
111
- "MaxRedirects" : 5 // set number of redirects to follow
104
+ "Logging" : {
105
+ "LogLevel" : " LogLevelDebug" , // "LogLevelDebug" / "LogLevelInfo" / "LogLevelWarn" / "LogLevelError" / "LogLevelFatal" / "LogLevelPanic"
106
+ "LogOutputFormat" : " console" , // "console" / "json"
107
+ "LogConsoleSeparator" : " " , // " " / "\t" / "," / etc.
108
+ "LogExportPath" : " /your/log/path/folder" ,
109
+ "HideSensitiveData" : true // redacts sensitive data from logs
110
+ },
111
+ "Cookie" : {
112
+ "EnableCookieJar" : true // enable cookie jar support
113
+ },
114
+ "Retry" : {
115
+ "MaxRetryAttempts" : 5 , // set number of retry attempts
116
+ "EnableDynamicRateLimiting" : true // enable dynamic rate limiting
117
+ },
118
+ "Concurrency" : {
119
+ "MaxConcurrentRequests" : 3 // set number of concurrent requests
120
+ },
121
+ "Redirect" : {
122
+ "FollowRedirects" : true , // follow redirects
123
+ "MaxRedirects" : 5 // set number of redirects to follow
124
+ }
112
125
}
113
126
}
114
127
```
0 commit comments