The domains of one of the caller's instances: its platform subdomain and any custom domain. Customers only.
Parameters
Output
application/jsondomains
array
Required
The custom domains, at most one today.
platform
ref#platformDomain
Required
No description available.
requestedPrimary
string
Optional
The hostname the primary is switching to, while a switch is in flight. Absent otherwise. The primary flags keep describing the live primary until the instance has restarted onto it.
Errors
AuthRequired
This endpoint requires an authenticated caller. Forbidden
The caller is not a HappyProto customer, or the provisioner refused them. InvalidRequest
instanceId is not a UUID. NotFound
No such instance or domain, or it is not the caller's. The cases are indistinguishable. NotAvailable
Custom domains are not switched on yet. InvalidSlug
Passed through from the provisioner. SlugTaken
Passed through from the provisioner. NotEntitled
Passed through from the provisioner. InstanceLimit
Passed through from the provisioner. NoCapacity
Passed through from the provisioner. OperationInProgress
Passed through from the provisioner: the instance is already changing, or a request with this idempotencyKey is still running. InvalidHostname
Passed through from the provisioner. PlatformHostname
Passed through from the provisioner. DomainExists
Passed through from the provisioner. DomainLimit
Passed through from the provisioner. TooSoon
Passed through from the provisioner. DomainIsPrimary
Passed through from the provisioner. NotVerified
Passed through from the provisioner. CertificateNotReady
Passed through from the provisioner. VersionTooOld
Passed through from the provisioner. Upstream
The provisioner is unreachable, not configured, or answered with an error it does not explain to callers, or the job could not be started. Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "The domains of one of the caller's instances: its platform subdomain and any custom domain. Customers only.",
"errors": [
{
"description": "This endpoint requires an authenticated caller.",
"name": "AuthRequired"
},
{
"description": "The caller is not a HappyProto customer, or the provisioner refused them.",
"name": "Forbidden"
},
{
"description": "instanceId is not a UUID.",
"name": "InvalidRequest"
},
{
"description": "No such instance or domain, or it is not the caller's. The cases are indistinguishable.",
"name": "NotFound"
},
{
"description": "Custom domains are not switched on yet.",
"name": "NotAvailable"
},
{
"description": "Passed through from the provisioner.",
"name": "InvalidSlug"
},
{
"description": "Passed through from the provisioner.",
"name": "SlugTaken"
},
{
"description": "Passed through from the provisioner.",
"name": "NotEntitled"
},
{
"description": "Passed through from the provisioner.",
"name": "InstanceLimit"
},
{
"description": "Passed through from the provisioner.",
"name": "NoCapacity"
},
{
"description": "Passed through from the provisioner: the instance is already changing, or a request with this idempotencyKey is still running.",
"name": "OperationInProgress"
},
{
"description": "Passed through from the provisioner.",
"name": "InvalidHostname"
},
{
"description": "Passed through from the provisioner.",
"name": "PlatformHostname"
},
{
"description": "Passed through from the provisioner.",
"name": "DomainExists"
},
{
"description": "Passed through from the provisioner.",
"name": "DomainLimit"
},
{
"description": "Passed through from the provisioner.",
"name": "TooSoon"
},
{
"description": "Passed through from the provisioner.",
"name": "DomainIsPrimary"
},
{
"description": "Passed through from the provisioner.",
"name": "NotVerified"
},
{
"description": "Passed through from the provisioner.",
"name": "CertificateNotReady"
},
{
"description": "Passed through from the provisioner.",
"name": "VersionTooOld"
},
{
"description": "The provisioner is unreachable, not configured, or answered with an error it does not explain to callers, or the job could not be started.",
"name": "Upstream"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"domains": {
"description": "The custom domains, at most one today.",
"items": {
"ref": "#domain",
"type": "ref"
},
"type": "array"
},
"platform": {
"ref": "#platformDomain",
"type": "ref"
},
"requestedPrimary": {
"description": "The hostname the primary is switching to, while a switch is in flight. Absent otherwise. The primary flags keep describing the live primary until the instance has restarted onto it.",
"type": "string"
}
},
"required": [
"platform",
"domains"
],
"type": "object"
}
},
"parameters": {
"properties": {
"instanceId": {
"description": "The instance's UUID.",
"type": "string"
}
},
"required": [
"instanceId"
],
"type": "params"
},
"type": "query"
}