Skip to content

GetInstallConfig

POST
/hopbox.admin.v1.InstallConfigService/GetInstallConfig
curl --request POST \
--url https://example.com/hopbox.admin.v1.InstallConfigService/GetInstallConfig \
--header 'Connect-Protocol-Version: 1' \
--header 'Connect-Timeout-Ms: 1000' \
--header 'Content-Type: application/json' \
--data '{}'

GetInstallConfig returns the settings of the install.

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
GetInstallConfigRequest

GetInstallConfigRequest has no fields.

object

Example generated

{}

Success

Media typeapplication/json
GetInstallConfigResponse

GetInstallConfigResponse holds the settings.

object
config
config
object
domain
domain

Domain is the domain of the install, for example hop.example.org. It is empty until an instance admin sets it.

string
version
version

Version grows by 1 with each change.

string format: int64
updateTime
update_time

Update_time is the time of the last change.

string format: date-time
publicAddresses
public_addresses

Public_addresses are the IPv4 and IPv6 addresses at which the edge servers take traffic. The DNS role points the domain, ns1, ns2, and every machine name at them. It is empty until an instance admin sets it.

Array<string>
acmeDirectoryUrl
acme_directory_url

Acme_directory_url is the ACME directory of the CA that issues the wildcard certificate of the install. The default is the production CA of Let’s Encrypt, https://acme-v02.api.letsencrypt.org/directory.

string
acmeEmail
acme_email

Acme_email is the contact email of the ACME account of the install. It is empty when the account has no contact.

string
acmeTermsAgreed
acme_terms_agreed

Acme_terms_agreed is true once an instance admin agreed to the terms of the CA of acme_directory_url. The install asks for no certificate before that.

boolean
mailTransport
mail_transport

Mail_transport is how the install delivers its mail. The default is MAIL_TRANSPORT_SMTP.

string
Allowed values: MAIL_TRANSPORT_UNSPECIFIED MAIL_TRANSPORT_SMTP MAIL_TRANSPORT_FILE
maintenance
maintenance

Maintenance is true while the install is in maintenance mode. SetMaintenance changes it.

boolean
signUpMode
sign_up_mode

Sign_up_mode is how a new person gets an account. The default is SIGN_UP_MODE_APPROVAL.

string
Allowed values: SIGN_UP_MODE_UNSPECIFIED SIGN_UP_MODE_OPEN SIGN_UP_MODE_APPROVAL SIGN_UP_MODE_INVITE_ONLY
grafanaUrl
grafana_url

Grafana_url is the Grafana of the monitoring bundle, for the links of the console to its dashboards. It is empty until an instance admin sets it, and the console then shows no link.

string
abuseThresholds
abuse_thresholds

Abuse_thresholds are the thresholds of the detection of abuse inside hopboxd.

object
cpuPercent
cpu_percent

Cpu_percent is the share of its vCPUs, averaged over 30 minutes, that a machine uses for cpu_for: 1 to 100. The default is 90.

integer format: int32
cpuFor
cpu_for

Cpu_for is how long the machine uses that share: 10 minutes to 6 hours. The default is 2 hours.

string format: duration
egressBytesPerSecond
egress_bytes_per_second

Egress_bytes_per_second is the rate over 5 minutes at which a machine sends for egress_for: 1 to 100,000,000,000. The default is 50,000,000.

string format: int64
egressFor
egress_for

Egress_for is how long the machine sends at that rate: 5 minutes to 6 hours. The default is 30 minutes.

string format: duration
scanConnectionsPerSecond
scan_connections_per_second

Scan_connections_per_second is the rate over 5 minutes at which a machine opens new outbound connections for scan_for: 1 to 1,000,000. The default is 100.

integer format: int32
scanFor
scan_for

Scan_for is how long the machine opens connections at that rate: 5 minutes to 6 hours. The default is 10 minutes.

string format: duration
orgBurst
org_burst

Org_burst is the number of orgs that one account makes in 1 hour: 1 to 10,000. The default is 5.

integer format: int32
apiKeyBurst
api_key_burst

Api_key_burst is the number of API keys that one account makes in 1 hour: 1 to 10,000. The default is 5.

integer format: int32
machineBurst
machine_burst

Machine_burst is the number of machines that one account makes in 1 hour: 1 to 10,000. The default is 10.

integer format: int32
urlChurn
url_churn

Url_churn is the number of changes of the port or the visibility of machine URLs that one account makes in 1 hour: 1 to 10,000. The default is 20.

integer format: int32
newAccountAge
new_account_age

New_account_age is the age below which an account that makes a machine URL public is new: 1 hour to 90 days. The default is 7 days.

string format: duration
longApiKeyBurst
long_api_key_burst

Long_api_key_burst is the number of API keys with the preset lifetime of 365 days that one account makes in 1 hour: 1 to 10,000. The default is 2.

integer format: int32

Example

{
"config": {
"updateTime": "2023-01-15T01:30:15.01Z",
"mailTransport": "MAIL_TRANSPORT_UNSPECIFIED",
"signUpMode": "SIGN_UP_MODE_UNSPECIFIED"
}
}

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"
}