Create a policy

Creates a shared policy for a specific Cloudlet type. Currently, you can create a shared policy for the API Prioritization, Edge Redirector, Forward Rewrite, Request Control, Phased Release, and Audience Segmentation Cloudlets. You can then add match rules by creating a policy version. If a policy already exists with the same policy name, you receive a 409 status response that contains data for the existing policy.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params
string
enum
required

The two-letter code of the Cloudlet that the shared policy is for. Shared policies are available for API Prioritization (AP), Edge Redirector (ER), Forward Rewrite (FR), Audience Segmentation (AS), Request Control (IG), and Phased Release (CD).

Allowed:
string

A human-readable label for the policy.

integer
required

Identifies the group where you want to create the policy. See About group IDs.

string
required

The name of the policy. You use this value to refer to this policy in Property Manager.

string
enum

The type of policy that you want to create. This API lets you create only SHARED policies.

Allowed:
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json