Skip to content

Commit

Permalink
d3: regenerate admin sm api docs, vNext
Browse files Browse the repository at this point in the history
  • Loading branch information
pepopowitz committed Dec 19, 2024
1 parent c3dc312 commit d6e24a3
Show file tree
Hide file tree
Showing 6 changed files with 330 additions and 104 deletions.
2 changes: 1 addition & 1 deletion docs/apis-tools/administration-sm-api/sidebar-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
"apis-tools/administration-sm-api/administration-sm-api-overview",
"apis-tools/administration-sm-api/administration-sm-api-authentication",
{
Specifications: require("./specifications/sidebar.js"),
Specifications: require("./specifications/sidebar"),
},
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,33 @@ custom_edit_url: null
---

import ApiLogo from "@theme/ApiLogo";
import Heading from "@theme/Heading";
import SchemaTabs from "@theme/SchemaTabs";
import TabItem from "@theme/TabItem";
import Export from "@theme/ApiExplorer/Export";

<h1 className={"openapi__heading"}>Administration API (Self-Managed)</h1>
<span
className={"theme-doc-version-badge badge badge--secondary"}

>

</span>

<Heading
as={"h1"}
className={"openapi__heading"}
children={"Administration API (Self-Managed)"}
></Heading>

Access the administration API of Console Self-Managed.

<div style={{ marginBottom: "2rem" }}>
<h2 id={"authentication"} style={{ marginBottom: "1rem" }}>
Authentication
</h2>
<Heading
id={"authentication"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Authentication"}
></Heading>
<SchemaTabs className={"openapi-tabs__security-schemes"}>
<TabItem label={"HTTP: Bearer Auth"} value={"bearer"}>
<div>
Expand Down Expand Up @@ -53,9 +68,7 @@ Access the administration API of Console Self-Managed.
>
<h3 style={{ marginBottom: "0.25rem" }}>Contact</h3>
<span></span>
<span>
URL: <a href={"https://www.camunda.com"}>https://www.camunda.com</a>
</span>
<span>URL: [https://www.camunda.com](https://www.camunda.com)</span>
</div>
<div style={{ marginBottom: "var(--ifm-paragraph-margin-bottom)" }}>
<h3 style={{ marginBottom: "0.25rem" }}>License</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,162 @@ description: "Returns a list of all automation and management clusters. Each clu
sidebar_label: "Get current clusters"
hide_title: true
hide_table_of_contents: true
api: eJzFV9uO2zYQ/RViXtoCXNu9AYFQFHAXSbBFtgmyXgSo4QeaGluMKVJLUus4hv69GFKW5cvuGujtyRI1PJw5M3M43oKt0ImgrLnJIYMlhmtd+4DOAweHvrLGo4dsCz+MRvSTo5dOVbQDMni/Ag7SmoAm0FdRVVrJiDf87MlkC14WWAp6UgHLiFU5OjaohFzXKqffsKkQMvDBKbMEfnTUvVEPNTKVowlqodAxu2ChQCaTw9BwMKLEl5H+ECU+sdlXQl6IEE37GEx55mpjlFkyZQYE6YMItT+l7cbkxBJ6phZM9AEKFDoUG2YdMzYAP3EETV1CNoXWEDjUpv+8MnZtYMYhqKBp57U13mq8ux3npTLjSg3uklcNhyWaNvsvxzwplCcPY8S1c2gCe0TnlTU7MnfR90hNmMfxf8JvHLJc+aDMsla+oF1zDGtEw0QdbBmdYsLkrBRGLLGk41pcP2C3p4tMGanrHFmvBslbEZiQgS21nQutN0wRLFPGB6E15ixW75fAmVYrZC1bxP+tzVGjG7Dx3qHuMOFS7v9EnOOxDxTNgRcR+n3sNORsIvxKKx9ieO+roEr1FQfP5HrPCHDY8/F8lts+nhBmw6kz/TM9+ESeInv7SA5LvF/8LX2RDn4aKmeDwXMRfqV9V3NnV+iAt69LEXAtqKyTSCEBtIBxMTFHnKRUJS0iHoBDEopwcVeMq2rH1d+Sox5dl0uAOWb5v9WB2ulLBABZVc+1kuz+47snwv2XFOXoFIciVwa9v8zrzvwZx0sMTskLAVvjJ+Giiw+1cphTjiJgLKuuHhLnB3zNuiTb+WeUlHSR54q+Cf2h160LoT2+UMp77QXhXGyi0zCiCNnFoVad7++TmOKl3d64/buzF2EvNr7jIMrQPxfp9fFN00bbNOTvT6MfTxvvjXVzlecYs/7zuaHmDt0juiuvcmTonE3BH9p8xFA745nYk6j1RVfXayGL7sZHE9wmXkFCGX9c8j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method"
info_path: docs/apis-tools/administration-sm-api/specifications/administration-api-self-managed
custom_edit_url: null
hide_send_button: true
---

import ApiTabs from "@theme/ApiTabs";
import DiscriminatorTabs from "@theme/DiscriminatorTabs";
import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import SecuritySchemes from "@theme/ApiExplorer/SecuritySchemes";
import MimeTabs from "@theme/MimeTabs";
import ParamsItem from "@theme/ParamsItem";
import ResponseSamples from "@theme/ResponseSamples";
import SchemaItem from "@theme/SchemaItem";
import SchemaTabs from "@theme/SchemaTabs";
import Markdown from "@theme/Markdown";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<h1 className={"openapi__heading"}>Get current clusters</h1>
<Heading
as={"h1"}
className={"openapi__heading"}
children={"Get current clusters"}
></Heading>

<MethodEndpoint method={"get"} path={"/admin-api/clusters"}></MethodEndpoint>
<MethodEndpoint
method={"get"}
path={"/admin-api/clusters"}
context={"endpoint"}
></MethodEndpoint>

Returns a list of all automation and management clusters. Each cluster entry contains the running apps and their status.

## Request
<Heading
id={"request"}
as={"h2"}
className={"openapi-tabs__heading"}
children={"Request"}
></Heading>

<div><div><ApiTabs label={undefined} id={undefined}><TabItem label={"200"} value={"200"}><div>
<ParamsDetails parameters={[]}></ParamsDetails>

Ok
<RequestSchema title={"Body"} body={undefined}></RequestSchema>

</div><div><MimeTabs className={"openapi-tabs__mime"} schemaType={"response"}><TabItem label={"application/json"} value={"application/json"}><SchemaTabs className={"openapi-tabs__schema"}><TabItem label={"Schema"} value={"Schema"}><details style={{}} className={"openapi-markdown__details response"} data-collapsed={false} open={true}><summary style={{}} className={"openapi-markdown__details-summary-response"}><strong>Schema</strong></summary><div style={{"textAlign":"left","marginLeft":"1rem"}}></div><ul style={{"marginLeft":"1rem"}}><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}>Array [</div></li><SchemaItem collapsible={false} name={"uuid"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"Unique identifier of the cluster"}}></SchemaItem><SchemaItem collapsible={false} name={"name"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"Name of the cluster"}}></SchemaItem><SchemaItem collapsible={false} name={"namespace"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"Namespace the cluster is running in."}}></SchemaItem><SchemaItem collapsible={false} name={"status"} required={true} schemaName={"ConsoleSMAdminApi.Status"} qualifierMessage={"**Possible values:** [`healthy`, `unhealthy`, `unknown`]"} schema={{"description":"Indicates if a cluster is healthy or not","type":"string","enum":["healthy","unhealthy","unknown"],"title":"ConsoleSMAdminApi.Status"}}></SchemaItem><SchemaItem collapsible={false} name={"generation"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"This is the current version of the running cluster"}}></SchemaItem><SchemaItem collapsible={false} name={"type"} required={true} schemaName={"ConsoleSMAdminApi.ClusterType"} qualifierMessage={"**Possible values:** [`automation`, `management`]"} schema={{"description":"We're distinguishing between automation and management clusters. Management clusters include applications that act globally in an installed context, like Console or Modeler. Automation clusters are the Zeebe clusters including applications like Operate, Tasklist and Optimize.","type":"string","enum":["automation","management"],"title":"ConsoleSMAdminApi.ClusterType"}}></SchemaItem><SchemaItem collapsible={true} className={"schemaItem"}><details style={{}} className={"openapi-markdown__details"}><summary style={{}}><span className={"openapi-schema__container"}><strong className={"openapi-schema__property"}>apps</strong><span className={"openapi-schema__name"}> object[]</span><span className={"openapi-schema__divider"}></span><span className={"openapi-schema__required"}>required</span></span></summary><div style={{"marginLeft":"1rem"}}><div style={{"marginTop":".5rem","marginBottom":".5rem"}}>

The list of applications running in the cluster

</div><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem","paddingBottom":".5rem"}}>Array [</div></li><SchemaItem collapsible={false} name={"type"} required={true} schemaName={"ConsoleSMAdminApi.AppType"} qualifierMessage={"**Possible values:** [`zeebe-broker`, `zeebe-gateway`, `operate`, `tasklist`, `optimize`, `modeler`, `console`, `identity`, `unknown`]"} schema={{"description":"What application is running in the cluster, like Zeebe, Operate, Tasklist, ...","type":"string","enum":["zeebe-broker","zeebe-gateway","operate","tasklist","optimize","modeler","console","identity","unknown"],"title":"ConsoleSMAdminApi.AppType"}}></SchemaItem><SchemaItem collapsible={false} name={"id"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"Unique identifier of the application"}}></SchemaItem><SchemaItem collapsible={false} name={"status"} required={true} schemaName={"ConsoleSMAdminApi.Status"} qualifierMessage={"**Possible values:** [`healthy`, `unhealthy`, `unknown`]"} schema={{"description":"Indicates if an application is healthy or not","type":"string","enum":["healthy","unhealthy","unknown"],"title":"ConsoleSMAdminApi.Status"}}></SchemaItem><SchemaItem collapsible={false} name={"url"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The public URL of the application"}}></SchemaItem><SchemaItem collapsible={false} name={"generation"} required={true} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"This is the current version of the running application"}}></SchemaItem><SchemaItem collapsible={false} name={"readiness"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The readiness URL of the application"}}></SchemaItem><SchemaItem collapsible={false} name={"metrics"} required={false} schemaName={"string"} qualifierMessage={undefined} schema={{"type":"string","description":"The metrics URL of the application"}}></SchemaItem><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}>]</div></li></div></details></SchemaItem><li><div style={{"fontSize":"var(--ifm-code-font-size)","opacity":"0.6","marginLeft":"-.5rem"}}>]</div></li></ul></details></TabItem><TabItem label={"Example (from schema)"} value={"Example (from schema)"}><ResponseSamples responseExample={"[\n {\n \"uuid\": \"string\",\n \"name\": \"string\",\n \"namespace\": \"string\",\n \"status\": \"healthy\",\n \"generation\": \"string\",\n \"type\": \"automation\",\n \"apps\": [\n {\n \"type\": \"zeebe-broker\",\n \"id\": \"string\",\n \"status\": \"healthy\",\n \"url\": \"string\",\n \"generation\": \"string\",\n \"readiness\": \"string\",\n \"metrics\": \"string\"\n }\n ]\n }\n]"} language={"json"}></ResponseSamples></TabItem></SchemaTabs></TabItem></MimeTabs></div></TabItem><TabItem label={"403"} value={"403"}><div>

Forbidden

</div><div></div></TabItem><TabItem label={"500"} value={"500"}><div>

Server-side error

</div><div></div></TabItem></ApiTabs></div></div>
<StatusCodes
id={undefined}
label={undefined}
responses={{
"200": {
description: "Ok",
content: {
"application/json": {
schema: {
items: {
properties: {
uuid: {
type: "string",
description: "Unique identifier of the cluster",
},
name: { type: "string", description: "Name of the cluster" },
namespace: {
type: "string",
description: "Namespace the cluster is running in.",
},
status: {
description: "Indicates if a cluster is healthy or not",
type: "string",
enum: ["healthy", "unhealthy", "unknown"],
title: "ConsoleSMAdminApi.Status",
},
generation: {
type: "string",
description:
"This is the current version of the running cluster",
},
type: {
description:
"We're distinguishing between automation and management clusters. Management clusters include applications that act globally in an installed context, like Console or Modeler. Automation clusters are the Zeebe clusters including applications like Operate, Tasklist and Optimize.",
type: "string",
enum: ["automation", "management"],
title: "ConsoleSMAdminApi.ClusterType",
},
apps: {
items: {
properties: {
type: {
description:
"What application is running in the cluster, like Zeebe, Operate, Tasklist, ...",
type: "string",
enum: [
"zeebe-broker",
"zeebe-gateway",
"operate",
"tasklist",
"optimize",
"modeler",
"console",
"identity",
"unknown",
],
title: "ConsoleSMAdminApi.AppType",
},
id: {
type: "string",
description: "Unique identifier of the application",
},
status: {
description:
"Indicates if an application is healthy or not",
type: "string",
enum: ["healthy", "unhealthy", "unknown"],
title: "ConsoleSMAdminApi.Status",
},
url: {
type: "string",
description: "The public URL of the application",
},
generation: {
type: "string",
description:
"This is the current version of the running application",
},
readiness: {
type: "string",
description: "The readiness URL of the application",
},
metrics: {
type: "string",
description: "The metrics URL of the application",
},
},
required: ["type", "id", "status", "url", "generation"],
type: "object",
additionalProperties: false,
title: "ConsoleSMAdminApi.App",
},
type: "array",
description:
"The list of applications running in the cluster",
},
},
required: [
"uuid",
"name",
"namespace",
"status",
"generation",
"type",
"apps",
],
type: "object",
additionalProperties: false,
title: "ConsoleSMAdminApi.Cluster",
},
type: "array",
},
},
},
},
"403": { description: "Forbidden" },
"500": { description: "Server-side error" },
}}
></StatusCodes>
Loading

0 comments on commit d6e24a3

Please sign in to comment.