Clone a Patch Policy to a list of Zones/Organizations

Clone a Patch Policy to a list of Zones/Organizations See Using Global API Keys for more information on permission and scope requirements.

SecuritybearerAuth
Request
path Parameters
policyId
required
integer <int64>

ID of the specified policy. Note: The specified policy can only be a patch policy.

Example: 123456
Request Body schema: application/json
required

Request body for cloning a policy to target zones

target_zone_ids
required
Array of strings <uuid> [ 1 .. 500 ] items

The zone IDs of the target zones

Responses
201

Successful Operation

4XX

Invalid Request

post/policies/{policyId}/clone
Request samples
application/json
{
  • "target_zone_ids": [
    • "66d5a6fe-449e-4122-b4a6-a14fceaf1a62",
    • "880cdda6-90fd-4161-8e4d-28fe7d3c520b"
    ]
}
Response samples
application/json
{
  • "summary": "Clone policy response example",
  • "description": "Example response after successfully cloning a policy to multiple zones, showing the created policy IDs",
  • "value": {
    • "policy_name": "my Test Policy",
    • "policy_type_name": "patch",
    • "data": [
      • {
        • "policy_id": 12346,
        • "zone_id": "ccdbdca3-0eba-4b58-a3a3-d0871208b0fa",
        • "org_id": 67890
        },
      • {
        • "policy_id": 12345,
        • "zone_id": "4c0f1b2a-3d7e-4b8e-8c5f-9a6d1f2b0c3b",
        • "org_id": 67890
        }
      ]
    }
}