atproto blogging
1{
2 "lexicon": 1,
3 "id": "com.atproto.sync.getHostStatus",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Returns information about a specified upstream host, as consumed by the server. Implemented by relays.",
8 "parameters": {
9 "type": "params",
10 "required": [
11 "hostname"
12 ],
13 "properties": {
14 "hostname": {
15 "type": "string",
16 "description": "Hostname of the host (eg, PDS or relay) being queried."
17 }
18 }
19 },
20 "output": {
21 "encoding": "application/json",
22 "schema": {
23 "type": "object",
24 "required": [
25 "hostname"
26 ],
27 "properties": {
28 "accountCount": {
29 "type": "integer",
30 "description": "Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts."
31 },
32 "hostname": {
33 "type": "string"
34 },
35 "seq": {
36 "type": "integer",
37 "description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)."
38 },
39 "status": {
40 "type": "ref",
41 "ref": "com.atproto.sync.defs#hostStatus"
42 }
43 }
44 }
45 },
46 "errors": [
47 {
48 "name": "HostNotFound"
49 }
50 ]
51 }
52 }
53}