List Service Instances
GET/registry-svc/instances
Retrieves a list of all instances or filters them by specific criteria (e.g., host, IP).
Request
Query Parameters
Scheme to filter by
IP to filter by
Deployment ID to filter by
Host to filter by
IP to filter by
Id to filter by
Slug to filter by
Responses
- 200
- 400
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
- Be deployed by OpenOrch
- Declare the OpenOrch daemon URL when registering its instance
]
instances
object[]
The ID of the deployment that this instance is an instance of. Only instances deployed by OpenOrch have a DeploymentId. Services can be deployed through other means (Docker Compose, K8s, anything), in that case they self-register and will not have a DeploymentId.
Details
Host of the instance address. Required if URL is not provided
Required: ID of the instance
IP of the instance address. Optional: to register by IP instead of host
Last time the instance gave a sign of life
NodeURL is the URL of the OpenOrch daemon the instance is running on. To have a NodeURL the instance must either:
Path of the instance address. Optional (e.g., "/api")
Port of the instance address. Required if URL is not provided
Scheme of the instance address. Required if URL is not provided.
Slug of the account that owns this instance Services that want to be proxied by their slug are advised to self register their instance at startup. Keep in mind, instances might be deployed by OpenOrch yet they still won't be OpenOrch services and they won't have slugs. Think NGINX, MySQL, etc.
Possible values: [Unknown
, Healthy
, Degraded
, Unreachable
, Error
]
Tags are used to filter instances
Full address URL of the instance.
{
"instances": [
{
"deploymentId": "depl_deBUCtJirc",
"details": "Instance is healthy",
"host": "myserver.com",
"id": "inst_di9riJEvH2",
"ip": "8.8.8.8",
"lastHeartbeat": "string",
"nodeUrl": "https://myserver.com:58231",
"path": "/your-svc",
"port": 8080,
"scheme": "https",
"slug": "my-svc",
"status": "Unknown",
"tags": [
"tag1",
"tag2"
],
"url": "https://myserver.com:5981"
}
]
}
Invalid filters
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}