16 create firewall policy api (#17)

* Create firewall policy
This commit is contained in:
2025-04-19 00:01:37 +02:00
committed by GitHub
parent 0e9e9cb8a3
commit 508181d1ad
2 changed files with 142 additions and 1 deletions

View File

@@ -255,7 +255,7 @@ func (c *Client) do_versioned(ctx context.Context, version, method, relativeURL
c.csrf = resp.Header.Get("X-Csrf-Token")
}
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusOK && resp.StatusCode != http.StatusCreated {
errBody := struct {
Meta meta `json:"meta"`
Data []struct {