ListSemaphores
Lists all semaphores in a given namespace. This is a paginated API. When pagination_token is empty it returns the first
page. Non-empty next_pagination_token and previous_pagination_token in the response indicate that there are other
pages available before or after the current page.
Request:
{
"namespace_name": "mynamespace",
"pagination_token": "bXlsb25ndG9rZW4xCg==",
"limit": 100
}
Response:
{
"semaphores": [
{
"name": "semaphore_1",
"description": "description",
"created_at": 1695826239671432000,
"updated_at": 1695826239671432000,
"permits": 20,
"semaphore_holders": [
{
"process_id": "host-123/thread-123456",
"locked_at": 1695826239671432000,
"expires_at": 1695826539671432000
}
]
}
],
"next_pagination_token": "bXlsb25ndG9rZW4yCg==",
"previous_pagination_token": "bXlsb25ndG9rZW4xCg=="
}