Kion Organizational Units API

Manage organizational units (OUs) for hierarchical organization

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/account.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/project.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/ou.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/cloud-rule.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/compliance-check.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/compliance-standard.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/funding-source.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/label.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/user.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/user-group.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/cloud-access-role.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/aws-iam-policy.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/service-control-policy.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/cloudformation-template.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/webhook.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/kion/refs/heads/main/json-schema/custom-variable.json

Other Resources

OpenAPI Specification

kion-organizational-units-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Kion Cloud Operations Accounts Organizational Units API
  description: The Kion Public API provides programmatic access to manage cloud operations, governance, compliance, and financial management across AWS, Azure, GCP, and OCI. Kion is a self-hosted cloud operations platform that consolidates account provisioning, access management, compliance enforcement, and FinOps into a single interface. The API uses Bearer token authentication via Kion App API Keys and is accessible at the /api/v3/ path of your Kion instance.
  version: 3.10.0
  contact:
    name: Kion Support
    url: https://support.kion.io
  license:
    name: Proprietary
    url: https://kion.io/why-kion/pricing-and-licensing/
servers:
- url: https://{kion-instance}/api/v3
  description: Kion Instance API Server
  variables:
    kion-instance:
      default: your-kion-instance.example.com
      description: Your Kion deployment hostname
security:
- bearerAuth: []
tags:
- name: Organizational Units
  description: Manage organizational units (OUs) for hierarchical organization
paths:
  /ou:
    get:
      operationId: listOUs
      summary: Kion List organizational units
      description: Returns a list of all organizational units.
      tags:
      - Organizational Units
      parameters:
      - $ref: '#/components/parameters/PageParam'
      - $ref: '#/components/parameters/PageSizeParam'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/OU'
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      operationId: createOU
      summary: Kion Create an organizational unit
      description: Creates a new organizational unit.
      tags:
      - Organizational Units
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OUCreate'
      responses:
        '201':
          description: OU created
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    $ref: '#/components/schemas/OU'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /ou/{id}:
    get:
      operationId: getOU
      summary: Kion Get an organizational unit
      description: Returns details for a specific organizational unit.
      tags:
      - Organizational Units
      parameters:
      - $ref: '#/components/parameters/IdParam'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    $ref: '#/components/schemas/OU'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    patch:
      operationId: updateOU
      summary: Kion Update an organizational unit
      description: Updates an existing organizational unit.
      tags:
      - Organizational Units
      parameters:
      - $ref: '#/components/parameters/IdParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OUUpdate'
      responses:
        '200':
          description: OU updated
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
    delete:
      operationId: deleteOU
      summary: Kion Delete an organizational unit
      description: Deletes an organizational unit.
      tags:
      - Organizational Units
      parameters:
      - $ref: '#/components/parameters/IdParam'
      responses:
        '204':
          description: OU deleted
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Authentication failed or API key is missing/invalid
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 401
              message:
                type: string
                example: Unauthorized
    NotFound:
      description: The requested resource was not found
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: integer
                example: 404
              message:
                type: string
                example: Not found
  parameters:
    PageParam:
      name: page
      in: query
      required: false
      description: Page number for pagination
      schema:
        type: integer
        default: 1
    PageSizeParam:
      name: page_size
      in: query
      required: false
      description: Number of items per page
      schema:
        type: integer
        default: 50
    IdParam:
      name: id
      in: path
      required: true
      description: The unique identifier of the resource in Kion
      schema:
        type: integer
  schemas:
    OU:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        parent_ou_id:
          type: integer
          description: Parent organizational unit ID
        permission_scheme_id:
          type: integer
        labels:
          type: object
          additionalProperties:
            type: string
        created_at:
          type: string
          format: date-time
    OUCreate:
      type: object
      required:
      - name
      - parent_ou_id
      properties:
        name:
          type: string
        description:
          type: string
        parent_ou_id:
          type: integer
        permission_scheme_id:
          type: integer
        labels:
          type: object
          additionalProperties:
            type: string
    OUUpdate:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        parent_ou_id:
          type: integer
        permission_scheme_id:
          type: integer
        labels:
          type: object
          additionalProperties:
            type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Kion App API Key. Generate in Kion under your user profile settings. Use in the Authorization header as: Bearer YOUR_API_KEY'