ListSemaphores
Lists all semaphores in a namespace. Paginated.
Read-only and safe to retry.
Request
- Leave
pagination_tokenempty for the first page. limitsets the number of entries per page.
{
"namespace_name": "third_parties",
"pagination_token": "",
"limit": 100
}
Response
- Returns
NotFoundif the namespace does not exist. - Non-empty
next_pagination_tokenindicates more pages are available. - Returns current values of
active_holdsandactive_holders_count. metadatais the optional, opaque map stored with each semaphore — see Metadata.
{
"semaphores": [
{
"name": "partner_1",
"description": "Partner 1 API",
"permits": 20,
"active_holds": 3,
"active_holders_count": 1,
"version": 1,
"created_at": 1695826239671432000,
"updated_at": 1695826239671432000,
"last_activity_at": 1695826239671432000,
"metadata": {
"vendor": "partner-1"
}
}
],
"next_pagination_token": "bXlsb25ndG9rZW4yCg==",
"previous_pagination_token": ""
}