Policy > Security > Service Insertion > Redirection Policies

Associated URIs:

API Description API Path

List redirection policys for a domain


List redirection policys for a domain
GET /policy/api/v1/infra/domains/<domain-id>/redirection-policies

Delete redirection policy


Delete redirection policy.
DELETE /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>

Read redirection policy


Read redirection policy.
GET /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>

Create or update redirection policy


Create or update the redirection policy.
Performance Note: If you want to edit several rules in a redirection policy
use this API. It will perform better than several individual rule APIs.
Just pass all the rules which you wish to edit as embedded rules to it.
PATCH /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>

Create or update redirection policy


Create or update the redirection policy.
Performance Note: If you want to edit several rules in a redirection policy
use this API. It will perform better than several individual rule APIs.
Just pass all the rules which you wish to edit as embedded rules to it.
PUT /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>

List rules


List rules
GET /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules

Delete RedirectionRule


Delete RedirectionRule
DELETE /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules/<rule-id>

Read rule


Read rule
GET /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules/<rule-id>

Update redirection rule


Create a rule with the rule-id is not already present, otherwise update the rule.
Performance Note: If you want to edit several rules in a redirection
policy, prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/domains/<domain-id>/redirection-policies/<red-policy-id>
PATCH /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules/<rule-id>

Update redirection rule


Create a rule with the rule-id is not already present, otherwise update the rule.
Performance Note: If you want to edit several rules in a redirection
policy,prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/domains/<domain-id>/redirection-policies/<red-policy-id>
PUT /policy/api/v1/infra/domains/<domain-id>/redirection-policies/<redirection-policy-id>/rules/<rule-id>

List redirection policys


List all redirection policys across all domains ordered by precedence.
GET /policy/api/v1/infra/domains/redirection-policies