A service record can expose fields such as:
- id : will be required to interact with it directly
- type
- version
- name
- host
- port
- state : running or unreachable
- uptime
- current_time
List all services
GET /v1/servicesReturned data
curl --request GET \
--url http://localhost:12340/v1/services \
--header 'Accept: application/json'Count services
HEAD /v1/servicesThis is useful when you only need the caldera-total-results header.
curl --head \
--url http://localhost:12340/v1/servicesGet a specific service
Access to one specific service data.
GET /v1/services/{serviceId}curl --request GET \
--url http://localhost:12340/v1/services{serviceId} \
--header 'Accept: application/json'Filtering and pagination
Services endpoint support:
- pagination through `limit` and the `link` header
- sorting through the `sort` parameter
- field filtering using query values
Examples
curl 'http://localhost:12340/v1/services?limit=50'curl 'http://localhost:12340/v1/services?name=*RIP*'See also: Pagination, Sorting and Filtering.