Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Kyverno Policies API

Policy listing and detail endpoints

Kyverno Policies API is one of 9 APIs that Kyverno publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Policies. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, and a GitHub repository.

This API exposes 4 operations across 4 paths, and defines 3 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, http://localhost:8080.

4 operations 4 paths 3 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Server
http://localhost:8080
Terms of Service
Resource Areas
1

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Policies 4

Policy listing and detail endpoints

GET
/api/v1/targets
Kyverno List notification targets
listTargets → 200
GET
/api/v1/policies
Kyverno List policies
listPolicies 3 params → 200
GET
/api/v1/rules
Kyverno List policy rules
listRules 2 params → 200
GET
/api/v1/categories
Kyverno List policy categories
listCategories 1 param → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are PolicySummary (6 properties), ResultCounts (5 properties), Target (4 properties). Each schema is shown below with its type and property counts.

ResultCounts
object
Aggregated counts of policy results grouped by status
5 properties
PolicySummary
object
A policy with aggregated result counts
6 properties
Target
object
A notification target configured to receive policy results
4 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

kyverno-policies-api-openapi.yml Raw ↑

Other APIs Kyverno publishes across the network.

Kyverno CLI
Kyverno ClusterPolicyReports API
Kyverno Health API
Kyverno Namespaces API
Kyverno PolicyReports API
Kyverno Results API
Kyverno Sources API