IBM Cloud Kubernetes OAUTH Access Type API

The oauth-access-type API from IBM Cloud Kubernetes — 2 operation(s) for oauth-access-type.

GitHub OpenAPI

Operations 2

GET /network/v2/oauth-access-type/{idOrName} Get the OAuth access type for a VPC cluster #
POST /network/v2/oauth-access-type/{idOrName}/set Set the OAuth access type for a VPC cluster #

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/ibm-cloud-kubernetes:ibm-cloud-kubernetes-oauth-access-type-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

ibm-cloud-kubernetes-oauth-access-type-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ibm Cloud Kubernetes OAUTH Access Type API
  version: '1.1'
  description: 'Operations tagged oauth-access-type across 2 of this provider''s published API definitions: ibm-cloud-kubernetes-swagger.json, ibm-cloud-kubernetes-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /global
- url: https://containers.cloud.ibm.com/global
tags:
- name: oauth-access-type
paths:
  /network/v2/oauth-access-type/{idOrName}:
    get:
      tags:
      - oauth-access-type
      summary: Get the OAuth access type for a VPC cluster
      operationId: GetOauthAccessType
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The name or ID of the cluster. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Ok. The OAuth access type for the specified cluster is returned.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OauthAccessTypeJSON'
        '401':
          description: Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ibm-events:
        description: Get the OAuth access type for a cluster.
        events:
        - name: oauth-access-type.get
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.read
        description: To get the action, the user must have the Viewer platform role to Kubernetes Service in IAM.
    servers:
    - url: /global
  /network/v2/oauth-access-type/{idOrName}/set:
    post:
      tags:
      - oauth-access-type
      summary: Set the OAuth access type for a VPC cluster
      operationId: SetOauthAccessType
      parameters:
      - description: Your IBM Cloud Identity and Access Management (IAM) token.
        name: Authorization
        in: header
        required: true
        schema:
          type: string
      - description: The name or ID of the cluster. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
        name: idOrName
        in: path
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted. The request to set the OAuth access type was successful.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
        '400':
          description: The OAuth access type you specified is not supported.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found. The specified cluster could not be found. To list the clusters that you have access to, use the `GET /v1/clusters` API or run `ibmcloud ks cluster ls`.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error. IBM Cloud Kubernetes Service is currently unavailable. Your request could not be processed. Please wait a few minutes and try again. If you still encounter this problem, note the incident ID and contact IBM Cloud support.
          headers:
            X-Request-Id:
              description: Unique ID for this request
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ibm-events:
        description: A cluster's OAuth access type is updated or configured
        events:
        - name: oauth-access-type.set
      x-ibm-permissions:
        actions:
        - name: containers-kubernetes.cluster.update
        description: To get the action, the user must have the Editor platform role to Kubernetes Service in IAM.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OauthAccessTypeJSON'
        description: Specify the OAuth access type that you want to use. Accepted values are `vpegw` or `legacy`.
        required: true
    servers:
    - url: /global
components:
  schemas:
    ErrorResponse:
      description: ErrorResponse error response to end users
      type: object
      properties:
        code:
          type: string
          x-go-name: ID
        description:
          type: string
          x-go-name: Err
        incidentID:
          type: string
          x-go-name: ReqID
        recoveryCLI:
          type: string
          x-go-name: RecoveryCLI
        terseDescription:
          type: string
          x-go-name: TerseErr
        type:
          $ref: '#/components/schemas/ErrorType'
      x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
    ErrorType:
      description: ErrorType error type
      type: string
      x-go-package: github.ibm.com/alchemy-containers/armada-model/errors
    OauthAccessTypeJSON:
      description: OauthAccessTypeJSON for request and response
      type: object
      properties:
        oauth_access_type:
          type: string
          x-go-name: OauthAccessType
      x-go-name: _OauthAccessTypeJSON
      x-go-package: github.ibm.com/alchemy-containers/armada-global-api/server/swagger
x-refined-from:
- ibm-cloud-kubernetes-swagger.json
- ibm-cloud-kubernetes-openapi.yml