GetSemaphore
Fetches a semaphore by name. Does not list holders themselves — use ListSemaphoreHolders for that.
Safe to retry.
Request
{
"namespace_name": "third_parties",
"semaphore_name": "partner_1"
}
Response
- Returns
NotFoundif the namespace does not exist. - Returns
NotFoundif the semaphore does not exist. - Returned
active_holdsandactive_holders_countreflect any holders whose lease has expired by the time of the call. metadatais the optional, opaque map stored with the semaphore — see Metadata.
{
"semaphore": {
"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"
}
}
}