Manage external site-prober actions va API and Dashboard
This commit is contained in:
1 parent
f22ad569b6
commit
42f584dd3c
28 files changed
+717
-32
No files matched your search
@@ -213,3 +213,16 @@ func (c *client) PutOrchestratorSettings(ctx context.Context, fipSettleSeconds i
|
||||
orchestratorSettingsDTO{FIPSettleSeconds: fipSettleSeconds}, &out)
|
||||
return out, err
|
||||
}
|
||||
|
||||
func (c *client) GetInboundChecks(ctx context.Context) (inboundChecksDTO, error) {
|
||||
var out inboundChecksDTO
|
||||
err := c.do(ctx, http.MethodGet, "/api/v1/admin/config/inbound-checks", nil, &out)
|
||||
return out, err
|
||||
}
|
||||
|
||||
func (c *client) PutInboundChecks(ctx context.Context, ports []int, icmp bool) (inboundChecksDTO, error) {
|
||||
var out inboundChecksDTO
|
||||
err := c.do(ctx, http.MethodPut, "/api/v1/admin/config/inbound-checks",
|
||||
inboundChecksDTO{Ports: ports, ICMP: icmp}, &out)
|
||||
return out, err
|
||||
}
|
||||
Reference in new issue
Block a user