mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
15 lines
430 B
Go
15 lines
430 B
Go
package service
|
|
|
|
func (c *Client) CreateGlobalPolicy(name, query, description, resolution, platform string) error {
|
|
req := globalPolicyRequest{
|
|
Name: name,
|
|
Query: query,
|
|
Description: description,
|
|
Resolution: resolution,
|
|
Platform: platform,
|
|
}
|
|
verb, path := "POST", "/api/v1/fleet/global/policies"
|
|
var responseBody globalPolicyResponse
|
|
return c.authenticatedRequest(req, verb, path, &responseBody)
|
|
}
|