STACKIT V2beta API

The V2beta API from STACKIT — 4 operation(s) for v2beta.

Operations 5

GET /v2beta/command-templates List command templates #
GET /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName} Get command template #
GET /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/commands List commands #
POST /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/commands Create command #
GET /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId} Get command #

Specifications

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-load-balancer-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-load-balancer-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-load-balancer-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-quota-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-target-pool-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-target-pool-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-wafpayload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-wafpayload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-wafresponse-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-patch-managed-rule-set-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-managed-rule-set-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-custom-rule-group-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-members-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-members-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-role-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-add-role-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-add-custom-role-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-roles-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-volume-automation-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-volume-execution-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-volume-template-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-volume-automation-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-automations-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-executions-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-distribution-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-logs-search-filters-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-put-custom-domain-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-put-custom-domain-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-custom-domain-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-cache-info-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-certificate-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-certificate-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-certificates-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-delete-certificate-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-project-cost-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-zone-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-zone-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-record-set-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-clone-zone-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-record-set-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-move-zone-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-dremio-user-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-dremio-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-dremio-user-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-dremio-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-dremio-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-dremio-users-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-instance-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-kubernetes-release-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-instance-by-name-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-instance-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-revision-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-function-revision-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-function-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-function-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-pull-credential-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-pull-credential-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-authentication-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-server-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-route-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-nic-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-nic-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-image-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-image-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-intake-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-intake-runner-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-intake-user-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-intake-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-intake-runner-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-intake-user-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-key-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-wrapping-key-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-version-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-key-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-key-ring-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-wrapping-key-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-upload-iplist-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-iplist-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-iplists-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-delete-iplist-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-metrics-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-updates-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-updates-settings-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-updates-settings-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-logs-instance-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-access-token-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-logs-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-logs-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-access-token-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-access-policy-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-instance-token-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-instance-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-instance-token-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-instance-tokens-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-instances-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-token-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-partial-update-token-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-models-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-token-resp-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-embeddings-model-resp-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-chat-model-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-user-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-user-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-user-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-access-key-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-project-status-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-default-retention-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-delete-credentials-group-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-delete-access-key-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-alert-configs-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-scrape-config-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-scrape-config-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-alert-config-route-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-alert-config-route-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-alert-config-receiver-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-search-skus-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-public-sku-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-public-marketing-data-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-public-product-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-public-category-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-meta-information-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-instance-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-topic-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-subscription-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-subscription-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-topic-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-subscription-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-topic-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-artifactory-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-artifactory-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-replication-adapter-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-artifactory-list-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-patch-artifactory-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-organizations-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-folders-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-project-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-project-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-organization-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-folder-details-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-command-details-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-command-template-schema-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-command-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-command-template-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-get-commands-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-new-command-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-application-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-application-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-update-application-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-create-environment-payload-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-environment-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-list-applications-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-quota-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-organization-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-org-manager-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-org-manager-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-space-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-platforms-schema.json
📊
JSONSchema
https://artifacts.apis.io/stackit/json-schema/stackit-approle-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stackit:stackit-v2beta-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stackit-v2beta-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@stackit.de
  description: API endpoints for the STACKIT Run Commands Service API
  termsOfService: https://stackit.de/en/imprint
  title: STACKIT Run Commands Service V2beta API
  version: 2beta.0
servers:
- url: https://run-command.api.stackit.cloud
  variables:
    region:
      default: global
security:
- bearerAuth: []
tags:
- name: V2beta
paths:
  /v2beta/command-templates:
    get:
      description: Returns a list of command templates
      operationId: ListCommandTemplates
      parameters:
      - description: The type of the Operating System (windows or linux). If not provided will return data for all OS types.
        in: query
        name: osType
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                commandTemplatesExample:
                  $ref: '#/components/examples/commandTemplatesResponseExample'
              schema:
                $ref: '#/components/schemas/CommandTemplateResponse'
          description: response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
      security: []
      x-stackit-authorization:
        disabled: true
      tags:
      - V2beta
      summary: List command templates
      x-summary-source: derived
  /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/command-templates/{commandTemplateName}:
    get:
      description: Returns details about a command template
      operationId: GetCommandTemplate
      parameters:
      - description: ID of the project
        explode: false
        in: path
        name: projectId
        required: true
        schema:
          type: string
        style: simple
      - description: Server ID of the machine
        explode: false
        in: path
        name: serverId
        required: true
        schema:
          type: string
        style: simple
      - description: Name of the template
        explode: false
        in: path
        name: commandTemplateName
        required: true
        schema:
          type: string
        style: simple
      - description: region
        in: path
        name: region
        required: true
        schema:
          description: Name of the region.
          example: eu01
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                runShellTemplateExample:
                  $ref: '#/components/examples/runShellTemplateResponseExample'
              schema:
                $ref: '#/components/schemas/CommandTemplateSchema'
          description: response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
      x-stackit-authorization:
        actions:
        - run-command.command-template.get
        resource-id: projectId
        resource-id-type: dynamic
        resource-type: project
      tags:
      - V2beta
      summary: Get command template
      x-summary-source: derived
  /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/commands:
    get:
      description: Returns a list of commands
      operationId: ListCommands
      parameters:
      - description: ID of the project
        explode: false
        in: path
        name: projectId
        required: true
        schema:
          type: string
        style: simple
      - description: Server ID of the machine
        explode: false
        in: path
        name: serverId
        required: true
        schema:
          type: string
        style: simple
      - description: region
        in: path
        name: region
        required: true
        schema:
          description: Name of the region.
          example: eu01
          type: string
      responses:
        '200':
          content:
            application/json:
              examples:
                commandsResponseExample:
                  $ref: '#/components/examples/commandsResponseExample'
              schema:
                $ref: '#/components/schemas/GetCommandsResponse'
          description: response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
      x-stackit-authorization:
        actions:
        - run-command.command.list
        resource-id: projectId
        resource-id-type: dynamic
        resource-type: project
      tags:
      - V2beta
      summary: List commands
      x-summary-source: derived
    post:
      description: Creates a new command for execution
      operationId: CreateCommand
      parameters:
      - description: ID of the project
        explode: false
        in: path
        name: projectId
        required: true
        schema:
          type: string
        style: simple
      - description: Server ID of the machine
        explode: false
        in: path
        name: serverId
        required: true
        schema:
          type: string
        style: simple
      - description: region
        in: path
        name: region
        required: true
        schema:
          description: Name of the region.
          example: eu01
          type: string
      requestBody:
        content:
          application/json:
            examples:
              RunShellScript:
                $ref: '#/components/examples/RunShellScriptCommandRequestExample'
              winResetPass:
                $ref: '#/components/examples/winResetPassCommandRequestExample'
            schema:
              $ref: '#/components/schemas/CreateCommandPayload'
        description: Command to post
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewCommandResponse'
          description: ok
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
      x-stackit-authorization:
        actions:
        - run-command.command.create
        resource-id: projectId
        resource-id-type: dynamic
        resource-type: project
        service-enablement:
          services:
          - cloud.stackit.run-command
      tags:
      - V2beta
      summary: Create command
      x-summary-source: derived
  /v2beta/projects/{projectId}/regions/{region}/servers/{serverId}/commands/{commandId}:
    get:
      description: Returns details about a command
      operationId: GetCommand
      parameters:
      - description: ID of the project
        explode: false
        in: path
        name: projectId
        required: true
        schema:
          type: string
        style: simple
      - description: region
        in: path
        name: region
        required: true
        schema:
          description: Name of the region.
          example: eu01
          type: string
      - description: Server ID of the machine
        explode: false
        in: path
        name: serverId
        required: true
        schema:
          type: string
        style: simple
      - description: ID of the command
        explode: false
        in: path
        name: commandId
        required: true
        schema:
          type: string
        style: simple
      responses:
        '200':
          content:
            application/json:
              examples:
                commandDetailsResponseExample:
                  $ref: '#/components/examples/commandDetailsResponseExample'
              schema:
                $ref: '#/components/schemas/CommandDetails'
          description: response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found
      x-stackit-authorization:
        actions:
        - run-command.command.get
        resource-id: projectId
        resource-id-type: dynamic
        resource-type: project
      tags:
      - V2beta
      summary: Get command
      x-summary-source: derived
components:
  examples:
    commandDetailsResponseExample:
      value:
        commandTemplateName: RunShellScript
        commandTemplateTitle: Run Shell Script
        exitCode: 0
        finishedAt: ''
        id: 1
        output: ''
        script: echo hello
        startedAt: '2023-06-14T09:54:57Z'
        status: pending
    RunShellScriptCommandRequestExample:
      summary: Run Shell Script
      value:
        commandTemplateName: RunShellScript
        parameters:
          script: echo hello-world
    commandTemplatesResponseExample:
      value:
        items:
        - name: RunShellScript
          osType:
          - linux
          title: Run Shell Script
    runShellTemplateResponseExample:
      value:
        description: Run Custom Shell Script
        name: RunShellScript
        osType:
        - linux
        parametersSchema:
          properties:
            script:
              title: Script
              type: string
        title: Run Shell Script
    commandsResponseExample:
      value:
        items:
        - commandTemplateName: RunShellScript
          commandTemplateTitle: Run Shell Script
          finishedAt: ''
          id: 1
          startedAt: '2023-06-14T09:54:57Z'
          status: pending
    winResetPassCommandRequestExample:
      summary: Windows Reset Password
      value:
        commandTemplateName: ResetPassword
        parameters:
          password: '********'
          username: username
  schemas:
    CommandTemplateSchema:
      properties:
        description:
          type: string
        name:
          type: string
        osType:
          items:
            type: string
          type: array
        parameterSchema:
          $ref: '#/components/schemas/ParametersSchema'
        title:
          type: string
      type: object
    ErrorResponse:
      properties:
        message:
          description: Details about the error
          type: string
        status:
          description: The string representation of the http status code (i.e. Not Found, Bad Request, etc)
          type: string
      required:
      - status
      - message
      type: object
    CommandTemplateResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/CommandTemplate'
          type: array
      type: object
    GetCommandsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/Commands'
          type: array
      type: object
    NewCommandResponse:
      properties:
        id:
          format: int32
          type: integer
      type: object
    CommandDetails:
      properties:
        commandTemplateName:
          type: string
        commandTemplateTitle:
          type: string
        exitCode:
          format: int32
          type: integer
        finishedAt:
          type: string
        id:
          format: int32
          type: integer
        output:
          type: string
        script:
          type: string
        startedAt:
          type: string
        status:
          enum:
          - pending
          - running
          - completed
          - failed
          type: string
      type: object
    CreateCommandPayload:
      properties:
        commandTemplateName:
          type: string
        parameters:
          additionalProperties:
            type: string
          type: object
      required:
      - commandTemplateName
      type: object
    ParametersSchema:
      properties:
        properties:
          $ref: '#/components/schemas/Properties'
      type: object
    Field:
      properties:
        default:
          type: string
        description:
          type: string
        maxLen:
          format: int32
          type: integer
        minLen:
          format: int32
          type: integer
        readOnly:
          type: boolean
        title:
          type: string
        type:
          type: string
      type: object
    CommandTemplate:
      properties:
        name:
          type: string
        osType:
          items:
            type: string
          type: array
        title:
          type: string
      type: object
    Commands:
      properties:
        commandTemplateName:
          type: string
        commandTemplateTitle:
          type: string
        finishedAt:
          type: string
        id:
          format: int32
          type: integer
        startedAt:
          type: string
        status:
          enum:
          - pending
          - running
          - completed
          - failed
          type: string
      type: object
    Properties:
      properties:
        ConfirmPassword:
          $ref: '#/components/schemas/Field'
        Password:
          $ref: '#/components/schemas/Field'
        Script:
          $ref: '#/components/schemas/Field'
        Username:
          $ref: '#/components/schemas/Field'
        required:
          items:
            type: string
          type: array
        type:
          type: string
      type: object