Path: blob/master/src/packages/next/lib/api/schema/compute/get-api-key.ts
1451 views
import { z } from "../../framework";12import { FailedAPIOperationSchema } from "../common";34import { ComputeServerIdSchema } from "./common";56// OpenAPI spec7//8export const GetComputeServerAPIKeyInputSchema = z9.object({10id: ComputeServerIdSchema,11})12.describe(13`Gets the api key of the compute server. This operation always invalidates14any existing key for this server and creates a new one. Only allowed for on-prem15servers.`,16);1718export const GetComputeServerAPIKeyOutputSchema = z.union([19FailedAPIOperationSchema,20z.string().describe("API key for the compute server."),21]);2223export type GetComputeServerAPIKeyInput = z.infer<24typeof GetComputeServerAPIKeyInputSchema25>;26export type GetComputeServerAPIKeyOutput = z.infer<27typeof GetComputeServerAPIKeyOutputSchema28>;293031