Oracle Container Engine for Kubernetes Credentials API

Kubeconfig and cluster credentials

OpenAPI Specification

oracle-container-engine-credentials-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Oracle Container Engine for Kubernetes (OKE) Add-ons Credentials API
  description: Oracle Container Engine for Kubernetes (OKE) is a managed Kubernetes service on Oracle Cloud Infrastructure. The API exposes endpoints for managing Kubernetes clusters, node pools, virtual node pools, add-ons, work requests, and cluster credentials within OCI compartments.
  version: 20180222
  contact:
    name: Oracle Cloud Infrastructure Support
    url: https://support.oracle.com
  license:
    name: Oracle Cloud Services Agreement
    url: https://www.oracle.com/cloud/cloud-services-agreements/
servers:
- url: https://containerengine.{region}.oci.oraclecloud.com/20180222
  description: OCI Container Engine regional endpoint
  variables:
    region:
      default: us-ashburn-1
      description: OCI region identifier
security:
- ociAuth: []
tags:
- name: Credentials
  description: Kubeconfig and cluster credentials
paths:
  /clusters/{clusterId}/kubeconfig/content:
    post:
      tags:
      - Credentials
      summary: Create kubeconfig content
      operationId: createKubeconfig
      parameters:
      - $ref: '#/components/parameters/ClusterId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                tokenVersion:
                  type: string
                  default: 2.0.0
                expiration:
                  type: integer
                  description: Token expiration in seconds
      responses:
        '200':
          description: Kubeconfig YAML
          content:
            application/x-yaml:
              schema:
                type: string
components:
  parameters:
    ClusterId:
      name: clusterId
      in: path
      required: true
      schema:
        type: string
      description: OCID of the cluster
  securitySchemes:
    ociAuth:
      type: apiKey
      in: header
      name: Authorization
      description: OCI request signing (RFC 7615) using API key pair
externalDocs:
  description: OCI Container Engine API Reference
  url: https://docs.oracle.com/en-us/iaas/api/#/en/containerengine/