ListControlProcesses
const url = 'https://example.com/hopbox.admin.v1.ServerService/ListControlProcesses';const options = { method: 'POST', headers: { 'Connect-Protocol-Version': '1', 'Connect-Timeout-Ms': '1000', 'Content-Type': 'application/json' }, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/hopbox.admin.v1.ServerService/ListControlProcesses \ --header 'Connect-Protocol-Version: 1' \ --header 'Connect-Timeout-Ms: 1000' \ --header 'Content-Type: application/json' \ --data '{}'ListControlProcesses returns the control processes that recorded themselves in the control store, oldest start first. The control role never enrolls, so ListServers does not show it.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Define the version of the Connect protocol
Define the version of the Connect protocol
Example
1Define the timeout, in ms
Define the timeout, in ms
Example
1000Request Bodyrequired
Section titled “Request Bodyrequired”ListControlProcessesRequest has no fields.
object
Example generated
{}Responses
Section titled “Responses”Success
ListControlProcessesResponse holds the control processes, live or not. A process that ended without its stop keeps its record for 24 hours.
object
ControlProcess is one process of the control role. It renews its record every 5 seconds, and deletes it at its stop.
object
Id is the ID of the process, a UUID. Each start of the control role has a new one.
Server_id is the ID of the enrolled server of the same hopboxd, or empty when no role of that hopboxd enrolled.
Hostname is the host name of the server of the process.
Internal_url is the URL of the internal listener of the process, such as https://172.31.0.11:7443. It is empty when the listener listens on every address.
Release is the version of hopboxd of the process, such as v0.2.0.
Schema_version is the number of the newest migration that the hopboxd of the process knows.
Kek_ids are the key-encryption keys that the process can open, staged keys too.
Kek_current is the key-encryption key with which the process seals new values.
Maintenance is true when the process applies maintenance mode.
Drained is true in maintenance mode once no call, control channel, or leader job of the process runs.
Start_time is the start of the process.
Renew_time is the last renewal of the record.
Live is true when the record was renewed in the last 20 seconds.
Version grows by 1 with each renewal.
Stop_time is the clean stop of the process. It is absent while the process runs, and after an end without a stop. A stopped process keeps its record for 24 hours.
Kek_fingerprints are the fingerprints of the key files of kek_ids, each
Example
{ "processes": [ { "startTime": "2023-01-15T01:30:15.01Z", "renewTime": "2023-01-15T01:30:15.01Z", "stopTime": "2023-01-15T01:30:15.01Z" } ]}default
Section titled “default”Error
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
object
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
Deserialized error detail payload. The ‘type’ field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.
object
Example
{ "code": "canceled"}