Skip to content

ListControlProcesses

POST
/hopbox.admin.v1.ServerService/ListControlProcesses
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.

Connect-Protocol-Version
Connect-Protocol-Version

Define the version of the Connect protocol

number
Allowed value: 1

Define the version of the Connect protocol

Example

1
Connect-Timeout-Ms
Connect-Timeout-Ms

Define the timeout, in ms

number

Define the timeout, in ms

Example

1000
Media typeapplication/json
ListControlProcessesRequest

ListControlProcessesRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
ListControlProcessesResponse

ListControlProcessesResponse holds the control processes, live or not. A process that ended without its stop keeps its record for 24 hours.

object
processes
processes
Array<object>
ControlProcess

ControlProcess is one process of the control role. It renews its record every 5 seconds, and deletes it at its stop.

object
id
id

Id is the ID of the process, a UUID. Each start of the control role has a new one.

string
serverId
server_id

Server_id is the ID of the enrolled server of the same hopboxd, or empty when no role of that hopboxd enrolled.

string
hostname
hostname

Hostname is the host name of the server of the process.

string
internalUrl
internal_url

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.

string
release
release

Release is the version of hopboxd of the process, such as v0.2.0.

string
schemaVersion
schema_version

Schema_version is the number of the newest migration that the hopboxd of the process knows.

integer format: int32
kekIds
kek_ids

Kek_ids are the key-encryption keys that the process can open, staged keys too.

Array<string>
kekCurrent
kek_current

Kek_current is the key-encryption key with which the process seals new values.

string
maintenance
maintenance

Maintenance is true when the process applies maintenance mode.

boolean
drained
drained

Drained is true in maintenance mode once no call, control channel, or leader job of the process runs.

boolean
startTime
start_time

Start_time is the start of the process.

string format: date-time
renewTime
renew_time

Renew_time is the last renewal of the record.

string format: date-time
live
live

Live is true when the record was renewed in the last 20 seconds.

boolean
version
version

Version grows by 1 with each renewal.

string format: int64
stopTime
stop_time

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.

string format: date-time
kekFingerprints
kek_fingerprints

Kek_fingerprints are the fingerprints of the key files of kek_ids, each =, such as file:2=9f86d081884c7d659a2feaa0c55ad015. A fingerprint tells whether two key files hold the same key, and nothing of the key.

Array<string>

Example

{
"processes": [
{
"startTime": "2023-01-15T01:30:15.01Z",
"renewTime": "2023-01-15T01:30:15.01Z",
"stopTime": "2023-01-15T01:30:15.01Z"
}
]
}

Error

Media typeapplication/json
Connect Error
object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

string
Allowed values: canceled unknown invalid_argument deadline_exceeded not_found already_exists permission_denied resource_exhausted failed_precondition aborted out_of_range unimplemented internal unavailable data_loss unauthenticated
message

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.

string
details

A list of messages that carry the error details. There is no limit on the number of messages.

Array<object>

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
type

A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.

string
value

The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

string format: byte
debug
Debug

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
key
additional properties
any
key
additional properties
any
key
additional properties
any

Example

{
"code": "canceled"
}