Manages a Kosli policy. Policies define artifact compliance requirements (provenance, trail-compliance, attestations) that can be attached to environments. Policies are versioned and immutable: updatingDocumentation Index
Fetch the complete documentation index at: https://docs.kosli.com/llms.txt
Use this file to discover all available pages before exploring further.
content or description creates a new version rather than modifying the existing one.
Example usage
Import
Policies can be imported using their name:Schema
Required
content(String) YAML content of the policy, conforming to the Kosli policy schema (_schema: https://docs.kosli.com/schemas/policy/v1). Supports heredoc syntax for multi-line YAML. Updating this value creates a new policy version.name(String) Name of the policy. Must be unique within the organization. Changing this will force recreation of the resource.
Optional
description(String) Description of the policy.
Read-only
created_at(Number) Unix timestamp of when the policy was first created.latest_version(Number) The version number of the latest policy version. Null if the policy has no versions.