mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
12 lines
328 B
Go
12 lines
328 B
Go
package service
|
|
|
|
func (c *Client) CreatePolicy(queryID uint, resolution string) error {
|
|
req := globalPolicyRequest{
|
|
QueryID: queryID,
|
|
Resolution: resolution,
|
|
}
|
|
verb, path := "POST", "/api/v1/fleet/global/policies"
|
|
var responseBody globalPolicyResponse
|
|
return c.authenticatedRequest(req, verb, path, &responseBody)
|
|
}
|