Skip to main content

kobana dashboards portal-custom-domains

Commands of kobana dashboards portal-custom-domains. Every global option (Global options) applies here.

CommandHTTPDescription
portal-custom-domains listGET /v1/portal_custom_domainsList custom domains
portal-custom-domains createPOST /v1/portal_custom_domainsAdd custom domain
portal-custom-domains deleteDELETE /v1/portal_custom_domains/{id}Delete custom domain
portal-custom-domains dns-statusGET /v1/portal_custom_domains/{id}/dns_statusCheck custom domain DNS
portal-custom-domains verifyPOST /v1/portal_custom_domains/{id}/verifyVerify and provision custom domain

portal-custom-domains list​

List custom domains

kobana dashboards portal-custom-domains list [OPTIONS]

GET /v1/portal_custom_domains

Lists the custom domains of the workspace's portal (the whole set, unpaginated). Empty where custom domains are not supported.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The portal's custom domains.
404Resource not found in the current organization.

portal-custom-domains create​

Add custom domain

kobana dashboards portal-custom-domains create [OPTIONS]

POST /v1/portal_custom_domains

Registers a custom domain as pending_verification, without touching AWS, and returns the DNS records to publish. Then call POST /portal_custom_domains/{id}/verify. Registering is only a claim: the domain goes to the first portal that publishes its verification TXT (the other unproven claims are released), and an unproven claim expires after 7 days. A portal holds at most 10 domains. Platform domains (kobana.com.br, kobana.tech and the shared portal domains) are refused.

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Request body

NameTypeRequiredDescription
hostnamestringyesFully qualified hostname, e.g. portal.example.com.

More fields and nested objects: kobana schema dashboards.portal-custom-domains.create.

Responses

HTTPDescription
201The custom domain.
400Request body failed validation.
404Resource not found in the current organization.
409This domain is already registered (proven by another portal, or already claimed by this one).
422Reserved platform domain (hostname_reserved) or the portal reached its domain limit (domain_limit_reached).

portal-custom-domains delete​

Delete custom domain

kobana dashboards portal-custom-domains delete [ID] [OPTIONS]

DELETE /v1/portal_custom_domains/{id}

Removes the custom domain and tears down its CloudFront tenant and certificate when provisioned. The portal stops answering on that hostname.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200Removed.
404Resource not found in the current organization.

portal-custom-domains dns-status​

Check custom domain DNS

kobana dashboards portal-custom-domains dns-status [ID] [OPTIONS]

GET /v1/portal_custom_domains/{id}/dns_status

Read-only lookup of the required CNAMEs, record by record, without changing anything on AWS.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200DNS status.
404Resource not found in the current organization.

portal-custom-domains verify​

Verify and provision custom domain

kobana dashboards portal-custom-domains verify [ID] [OPTIONS]

POST /v1/portal_custom_domains/{id}/verify

While pending, checks the DNS and provisions the domain on AWS (certificate and CloudFront tenant); once provisioned, refreshes its status. Returns the domain with its new status.

Path arguments: id

Headers

NameTypeRequiredDescription
X-Workspace-IdstringnoWorkspace the call acts on: the id or the public_id shown under Workspaces on the dashboard. Inside the token's organization, data lives in workspaces. It may be omitted while the organization has a single workspace; with two or more, leaving it out returns 400 workspace_required. A workspace outside the organization returns 403 unknown_workspace. With a person token, only the workspaces that person has access to are reachable (organization owners reach all of them); any other returns 403 workspace_access_denied.

Responses

HTTPDescription
200The custom domain.
404Resource not found in the current organization.