mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05:00
misc: added cert alerts to doc
This commit is contained in:
@@ -23,6 +23,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "Create a new PKI alert",
|
description: "Create a new PKI alert",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
body: CreatePkiAlertV2Schema.extend({
|
body: CreatePkiAlertV2Schema.extend({
|
||||||
@@ -90,6 +91,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "List PKI alerts for a project",
|
description: "List PKI alerts for a project",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
querystring: z.object({
|
querystring: z.object({
|
||||||
@@ -150,6 +152,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "Get a PKI alert by ID",
|
description: "Get a PKI alert by ID",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
params: z.object({
|
params: z.object({
|
||||||
@@ -214,6 +217,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "Update a PKI alert",
|
description: "Update a PKI alert",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
params: z.object({
|
params: z.object({
|
||||||
@@ -283,6 +287,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "Delete a PKI alert",
|
description: "Delete a PKI alert",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
params: z.object({
|
params: z.object({
|
||||||
@@ -347,6 +352,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "List certificates that match an alert's filter rules",
|
description: "List certificates that match an alert's filter rules",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
params: z.object({
|
params: z.object({
|
||||||
@@ -397,6 +403,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
|
|||||||
},
|
},
|
||||||
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
description: "Preview certificates that would match the given filter rules",
|
description: "Preview certificates that would match the given filter rules",
|
||||||
tags: [ApiDocsTags.PkiAlerting],
|
tags: [ApiDocsTags.PkiAlerting],
|
||||||
body: z.object({
|
body: z.object({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
title: "Create"
|
title: "Create"
|
||||||
openapi: "POST /api/v2/pki/alerts"
|
openapi: "POST /api/v1/cert-manager/alerts"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
title: "Delete"
|
title: "Delete"
|
||||||
openapi: "DELETE /api/v2/pki/alerts/{alertId}"
|
openapi: "DELETE /api/v1/cert-manager/alerts/{alertId}"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
title: "Retrieve"
|
title: "Retrieve"
|
||||||
openapi: "GET /api/v2/pki/alerts/{alertId}"
|
openapi: "GET /api/v1/cert-manager/alerts/{alertId}"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
title: "Update"
|
title: "Update"
|
||||||
openapi: "PATCH /api/v2/pki/alerts/{alertId}"
|
openapi: "PATCH /api/v1/cert-manager/alerts/{alertId}"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2581,6 +2581,15 @@
|
|||||||
"api-reference/endpoints/certificate-profiles/get-latest-active-bundle"
|
"api-reference/endpoints/certificate-profiles/get-latest-active-bundle"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"group": "Certificate Alerts",
|
||||||
|
"pages": [
|
||||||
|
"api-reference/endpoints/pki-alerts/create",
|
||||||
|
"api-reference/endpoints/pki-alerts/read",
|
||||||
|
"api-reference/endpoints/pki-alerts/update",
|
||||||
|
"api-reference/endpoints/pki-alerts/delete"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"group": "Certificate Syncs",
|
"group": "Certificate Syncs",
|
||||||
"pages": [
|
"pages": [
|
||||||
|
|||||||
Reference in New Issue
Block a user