CDNs

Creates a custom security rule.

Creates a custom security rule for a subscription.

post/subscriptions/{subscriptionUuid}/config/security/custom-rules

Request

Path parameters

subscriptionUuidstring required

The unique identifier of the subscription.

Request body

display_namestring required

The display name of the custom security rule.

action'block' | 'allow' | 'alert' required

The action applied when the rule matches.

priorityinteger

The priority order for the rule.

domainsstring[] required

The domains the rule applies to.

pathsstring[] required

The paths the rule applies to.

Response

OK

_embeddedobject

Embedded resources (optional)

message'The custom security rule has been created.' required

Confirmation message

Example response

{
  "_links": {
    "self": {
      "href": "https://api.acquia.com/v3/resources/1"
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.