Global Policies
About this task
Global policies are a set of policies associated globally with all APIs or a selected set of APIs.
When you create an API, you can enforce a policy only at the API level. If an organisation wants to enforce a policy for multiple APIs, API Gateway provides the capability of creating a global policy that can be applied across all APIs or a selected set of APIs depending on the requirement. By associating policies globally to all APIs or a selected set of APIs, as an administrator you can ensure that a set of policies is consistently applied to all APIs or a set of APIs by default. For example, you can apply a threat protection policy to all APIs by creating a global policy that addresses data protection and security concerns.
API Gateway provides a default system policy Transaction logging, which has log invocation policy and filters associated to log request or response payloads to a specified destination. These transactions are monitored and logged across all APIs in API Gateway. When you activate Transaction logging, Logging Invocation policy is enforced on all APIs.
Let’s look at a sample scenario, where you create a global policy Transport Global. This global policy has the Enable HTTP/HTTPS policy configured and applied to all APIs that do not have ODATA in their name.
Ensure that you have the Manage global policies functional privilege to create a global policy.
To create a global policy and apply it to a set of APIs