Generate a token for API access: Navigate through
Tokens/Keys, click the button
Generate New Token
Give it a name and write permission.
The key will only show once after confirming the key details, so make a good copy for it
Find firewall for management, or create one if there isn’t one Use the API to list all policies and look for a policy named
mgmtin the response that should be similar to the following:
If there’s one, update the policy Use update_firewall to update the policy we found, in which the new policy should be closed to this:
If there isn’t one, create a new policy with create_policy. Its parameters should be the same as in step 3.
Retrive the firewall policy again to confirm the detail.