Skip to main content

/sys/internal/counters

The /sys/internal/counters endpoints are used to return data about the number of Tokens and Entities in OpenBao. They return information for the entire cluster.

Entities​

This endpoint returns the total number of Entities.

MethodPath
GET/sys/internal/counters/entities

Sample request​

$ curl \
--header "X-Vault-Token: ..." \
--request GET \
http://127.0.0.1:8200/v1/sys/internal/counters/entities

Sample response​

{
"request_id": "75cbaa46-e741-3eba-2be2-325b1ba8f03f",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"counters": {
"entities": {
"total": 1
}
}
},
"wrap_info": null,
"warnings": null,
"auth": null
}

Tokens​

This endpoint returns the total number of Tokens.

MethodPath
GET/sys/internal/counters/tokens

Sample request​

$ curl \
--header "X-Vault-Token: ..." \
--request GET \
http://127.0.0.1:8200/v1/sys/internal/counters/tokens

Sample response​

{
"request_id": "75cbaa46-e741-3eba-2be2-325b1ba8f03f",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"counters": {
"service_tokens": {
"total": 1
}
}
},
"wrap_info": null,
"warnings": null,
"auth": null
}