post
{scheme}://{host}/{basePath}/polaris/v1//namespaces//policies
Creates a policy within the specified namespace.
A policy defines a set of rules governing actions on specified resources under predefined conditions.
In Apache Polaris, policies are created, stored, and later referenced by external engines to enforce access controls on associated resources.
User provides the following inputs when creating a policy
name(REQUIRED): The name of the policy.type(REQUIRED): The type of the policy.- Predefined Policies: policies have a
system.*prefix in their type, such assystem.data_compaction
- Predefined Policies: policies have a
description(OPTIONAL): Provides details about the policy's purpose and functionalitycontent(OPTIONAL): Defines the rules that control actions and access conditions on resources. The format can be JSON, SQL, or any other format.
The content field in the request body is validated using the policy's corresponding validator. The policy is created only if the content passes validation.
Upon successful creation, the new policy's version will be 0.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…