This is a cache of https://docs.openshift.com/container-platform/3.9/rest_api/api/v1.APIVersions.html. It is a snapshot of the page at 2024-11-22T03:06:02.464+0000.
v1.<strong>api</strong>Versions - /<strong>api</strong>/v1 | REST <strong>api</strong> Reference | OpenShift Container Platform 3.9
×

Description

apiVersions lists the versions that are available, to allow clients to discover the api at /api, which is the root path of the legacy v1 api.

Object Schema

Expand or mouse-over a field for more information about it.

apiVersion:
kind:
serverAddressByClientCIDRs:
- clientCIDR:
serverAddress:
versions:
- [string]:

Operations

Get all apiVersions

Get available api versions

HTTP request

GET /api/ HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close

Curl request

$ curl -k \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    https://$ENDPOINT/api/

Responses

HTTP Code Schema

200 OK

v1.apiVersions

401 Unauthorized

Consumes

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all apiVersions

Get available api versions

HTTP request

GET /oapi/ HTTP/1.1
Authorization: Bearer $TOKEN
Accept: application/json
Connection: close

Curl request

$ curl -k \
    -H "Authorization: Bearer $TOKEN" \
    -H 'Accept: application/json' \
    https://$ENDPOINT/oapi/

Responses

HTTP Code Schema

200 OK

v1.apiVersions

401 Unauthorized

Consumes

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf