Use this API to retrieve metadata about a GitLab instance, including its version, its revision, whether it is Enterprise Edition, and the configuration of the GitLab agent server for Kubernetes (KAS).

Retrieve metadata information for this GitLab instance

GET /api/v4/metadata

Retrieves metadata information for the GitLab instance.

Responses

CodeDescriptionSchema
200OKAPIEntitiesMetadata
401Unauthorized—

Retrieves version information for the GitLab instance

GET /api/v4/version

This feature was introduced in GitLab 8.13 and deprecated in 15.5. We recommend you instead use the Metadata API.

Responses

CodeDescriptionSchema
200OKAPIEntitiesMetadata
401Unauthorized—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesMetadata

PropertyTypeDescription
enterpriseBoolean—
kasObject—
kas.enabledBoolean—
kas.externalK8sProxyUrlStringExample: https://gitlab.example.com:8150/k8s-proxy
kas.externalUrlStringExample: grpc://gitlab.example.com:8150
kas.versionStringExample: 15.0.0
revisionStringExample: c401a659d0c
versionStringExample: 15.2-pre