Skip to content

UpdateInstallConfig

POST
/hopbox.admin.v1.InstallConfigService/UpdateInstallConfig
curl --request POST \
--url https://example.com/hopbox.admin.v1.InstallConfigService/UpdateInstallConfig \
--header 'Connect-Protocol-Version: 1' \
--header 'Connect-Timeout-Ms: 1000' \
--header 'Content-Type: application/json' \
--data '{ "domain": "example", "expectedVersion": "example", "publicAddresses": { "addresses": [ "example" ] }, "acmeDirectoryUrl": "example", "acmeEmail": "example", "acmeTermsAgreed": true, "mailTransport": "MAIL_TRANSPORT_UNSPECIFIED", "signUpMode": "SIGN_UP_MODE_UNSPECIFIED", "grafanaUrl": "example", "abuseThresholds": { "cpuPercent": 1, "cpuFor": "example", "egressBytesPerSecond": "example", "egressFor": "example", "scanConnectionsPerSecond": 1, "scanFor": "example", "orgBurst": 1, "apiKeyBurst": 1, "machineBurst": 1, "urlChurn": 1, "newAccountAge": "example", "longApiKeyBurst": 1 } }'

UpdateInstallConfig changes the settings that the request sets, and keeps the others.

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
UpdateInstallConfigRequest

UpdateInstallConfigRequest holds the settings to change.

object
domain
domain

Domain is the new domain of the install: a lowercase DNS name with at least two labels, such as hop.example.org. Leave it out to keep the domain.

string | null
expectedVersion
expected_version

Expected_version is the version of the settings that the caller read. If the settings have another version now, the call fails with ABORTED and changes nothing. Leave it out to change the settings at any version.

string | null format: int64
publicAddresses
public_addresses

Public_addresses replaces the public addresses of the install. Leave it out to keep them. An empty list removes them.

object
addresses
addresses

Addresses holds at most 16 IPv4 or IPv6 addresses, none twice. An address must not be unspecified, multicast, or link-local, and must not have an IPv6 zone.

Array<string>
acmeDirectoryUrl
acme_directory_url

Acme_directory_url is the new ACME directory: an https URL of at most 2048 characters, without user info or a fragment. Leave it out to keep the directory. A new directory names another CA, so it also sets acme_terms_agreed to false, unless the request sets acme_terms_agreed too.

string | null
acmeEmail
acme_email

Acme_email is the new contact email of the ACME account. An empty string removes the contact. Leave it out to keep the email.

string | null
acmeTermsAgreed
acme_terms_agreed

Acme_terms_agreed set to true records that the caller agrees to the terms of the CA of the directory. Set to false, it stops new certificates. Leave it out to keep it.

boolean | null
mailTransport
One of:
MailTransport

MailTransport says how the install delivers its mail.

string
Allowed values: MAIL_TRANSPORT_UNSPECIFIED MAIL_TRANSPORT_SMTP MAIL_TRANSPORT_FILE
signUpMode
One of:
SignUpMode

SignUpMode says how a new person gets an account.

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 new URL of Grafana: an http or https URL of at most 2048 characters, without user info, a query, or a fragment, such as http://127.0.0.1:3000 behind an SSH tunnel. An empty string removes it. Leave it out to keep the URL.

string | null
abuseThresholds
abuse_thresholds

Abuse_thresholds changes the thresholds of the detection of abuse that it sets. A value out of its bounds fails with INVALID_ARGUMENT. Leave it out to keep every threshold.

object
cpuPercent
cpu_percent
integer | null format: int32
cpuFor
cpu_for
string format: duration
egressBytesPerSecond
egress_bytes_per_second
string | null format: int64
egressFor
egress_for
string format: duration
scanConnectionsPerSecond
scan_connections_per_second
integer | null format: int32
scanFor
scan_for
string format: duration
orgBurst
org_burst
integer | null format: int32
apiKeyBurst
api_key_burst
integer | null format: int32
machineBurst
machine_burst
integer | null format: int32
urlChurn
url_churn
integer | null format: int32
newAccountAge
new_account_age
string format: duration
longApiKeyBurst
long_api_key_burst
integer | null format: int32

Success

Media typeapplication/json
UpdateInstallConfigResponse

UpdateInstallConfigResponse holds the settings after the change.

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