This is a cache of https://docs.okd.io/3.7/rest_api/api/v1.APIVersions.html. It is a snapshot of the page at 2024-11-18T04:52:04.415+0000.
v1.<strong>api</strong>Versions - /<strong>api</strong>/v1 | REST <strong>api</strong> Reference | OKD 3.7
×

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