stable_urls
Creates, updates, deletes, gets or lists a stable_urls resource.
Overview​
| Name | stable_urls |
| Type | Resource |
| Id | databricks_account.disasterrecovery.stable_urls |
Fields​
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Fully qualified resource name. Format: accounts/{account_id}/stable-urls/{stable_url_id}. |
effective_workspace_id | string | The workspace this stable URL currently routes to. Set to ``initial_workspace_id`` at creation, advanced to the failover group's primary while attached (including across a failover), and preserved when the stable URL is detached from its failover group. Read this to see where an unattached stable URL points: after a failover followed by a detach it reflects the post-failover primary, not ``initial_workspace_id``. |
initial_workspace_id | string | The workspace this stable URL is initially bound to. Used only in Create requests to associate the stable URL with a workspace. Not returned in responses. |
stable_workspace_id | string | The stable workspace ID for this stable URL. Generated on creation and immutable thereafter; identifies the URL across failovers and is the same value embedded in the ``url`` (as the ``w=`` query parameter for SPOG URLs, or in the ``conn-<id>`` hostname for Private-Link URLs). |
failover_group_name | string | Fully qualified resource name of the FailoverGroup this stable URL is currently linked to, in the format ``accounts/{account_id}/failover-groups/{failover_group_id}``. Empty when the stable URL is not attached to any failover group. |
url | string | The stable URL endpoint. Generated on creation and immutable thereafter. For non-Private-Link workspaces this is ``https://<spog_host>/?w=<connection_id>``. For Private-Link workspaces this is the per-connection hostname. |
| Name | Datatype | Description |
|---|---|---|
name | string | Fully qualified resource name. Format: accounts/{account_id}/stable-urls/{stable_url_id}. |
effective_workspace_id | string | The workspace this stable URL currently routes to. Set to ``initial_workspace_id`` at creation, advanced to the failover group's primary while attached (including across a failover), and preserved when the stable URL is detached from its failover group. Read this to see where an unattached stable URL points: after a failover followed by a detach it reflects the post-failover primary, not ``initial_workspace_id``. |
initial_workspace_id | string | The workspace this stable URL is initially bound to. Used only in Create requests to associate the stable URL with a workspace. Not returned in responses. |
stable_workspace_id | string | The stable workspace ID for this stable URL. Generated on creation and immutable thereafter; identifies the URL across failovers and is the same value embedded in the ``url`` (as the ``w=`` query parameter for SPOG URLs, or in the ``conn-<id>`` hostname for Private-Link URLs). |
failover_group_name | string | Fully qualified resource name of the FailoverGroup this stable URL is currently linked to, in the format ``accounts/{account_id}/failover-groups/{failover_group_id}``. Empty when the stable URL is not attached to any failover group. |
url | string | The stable URL endpoint. Generated on creation and immutable thereafter. For non-Private-Link workspaces this is ``https://<spog_host>/?w=<connection_id>``. For Private-Link workspaces this is the per-connection hostname. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_id, stable_url_id, account_host | Get a stable URL. | |
list | select | account_id, account_host | page_size, page_token | List stable URLs for an account. |
create | insert | account_id, stable_url_id, account_host, initial_workspace_id | validate_only | Create a new stable URL. |
delete | delete | account_id, stable_url_id, account_host | Delete a stable URL. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_host | string | The Databricks account console host. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws), or set explicitly with DATABRICKS_ACCOUNT_HOST (bare host, no scheme). (default: accounts.cloud.databricks.com, x-stackQL-envVar: DATABRICKS_ACCOUNT_HOST, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"accounts.cloud.databricks.com","azure":"accounts.azuredatabricks.net","gcp":"accounts.gcp.databricks.com"}}) |
account_id | string | The account_id segment of the name resource name (accounts/{account_id}/stable-urls/{stable_url_id}). The fully qualified resource name. Format: accounts/{account_id}/stable-urls/{stable_url_id}. |
stable_url_id | string | The stable_url_id segment of the name resource name (accounts/{account_id}/stable-urls/{stable_url_id}). The fully qualified resource name. Format: accounts/{account_id}/stable-urls/{stable_url_id}. |
page_size | integer | Maximum number of stable URLs to return per page: - when set to a value greater than 0, the page length is the minimum of this value and a server configured value; - when set to 0 or unset, the page length is set to a server configured value (recommended); - when set to a value less than 0, an invalid parameter error is returned. |
page_token | string | Page token received from a previous ListStableUrls call. Provide this to retrieve the subsequent page. |
validate_only | boolean | When true, validates the request without creating the stable URL. |
SELECT examples​
- get
- list
Get a stable URL.
SELECT
name,
effective_workspace_id,
initial_workspace_id,
stable_workspace_id,
failover_group_name,
url
FROM databricks_account.disasterrecovery.stable_urls
WHERE account_id = '{{ account_id }}' -- required
AND stable_url_id = '{{ stable_url_id }}' -- required
AND account_host = '{{ account_host }}' -- required
;
List stable URLs for an account.
SELECT
name,
effective_workspace_id,
initial_workspace_id,
stable_workspace_id,
failover_group_name,
url
FROM databricks_account.disasterrecovery.stable_urls
WHERE account_id = '{{ account_id }}' -- required
AND account_host = '{{ account_host }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;
INSERT examples​
- create
- Manifest
Create a new stable URL.
INSERT INTO databricks_account.disasterrecovery.stable_urls (
initial_workspace_id,
effective_workspace_id,
failover_group_name,
name,
stable_workspace_id,
url,
account_id,
stable_url_id,
account_host,
validate_only
)
SELECT
'{{ initial_workspace_id }}' /* required */,
'{{ effective_workspace_id }}',
'{{ failover_group_name }}',
'{{ name }}',
'{{ stable_workspace_id }}',
'{{ url }}',
'{{ account_id }}',
'{{ stable_url_id }}',
'{{ account_host }}',
'{{ validate_only }}'
RETURNING
name,
effective_workspace_id,
initial_workspace_id,
stable_workspace_id,
failover_group_name,
url
;
# Description fields are for documentation purposes
- name: stable_urls
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the stable_urls resource.
- name: stable_url_id
value: "{{ stable_url_id }}"
description: Required parameter for the stable_urls resource.
- name: account_host
value: "{{ account_host }}"
description: Required parameter for the stable_urls resource.
- name: initial_workspace_id
value: "{{ initial_workspace_id }}"
description: |
The workspace this stable URL is initially bound to. Used only in Create requests to associate the stable URL with a workspace. Not returned in responses.
- name: effective_workspace_id
value: "{{ effective_workspace_id }}"
description: |
The workspace this stable URL currently routes to. Set to ``initial_workspace_id`` at creation, advanced to the failover group's primary while attached (including across a failover), and preserved when the stable URL is detached from its failover group. Read this to see where an unattached stable URL points: after a failover followed by a detach it reflects the post-failover primary, not ``initial_workspace_id``.
- name: failover_group_name
value: "{{ failover_group_name }}"
description: |
Fully qualified resource name of the FailoverGroup this stable URL is currently linked to, in the format ``accounts/{account_id}/failover-groups/{failover_group_id}``. Empty when the stable URL is not attached to any failover group.
- name: name
value: "{{ name }}"
description: |
Fully qualified resource name. Format: accounts/{account_id}/stable-urls/{stable_url_id}.
- name: stable_workspace_id
value: "{{ stable_workspace_id }}"
description: |
The stable workspace ID for this stable URL. Generated on creation and immutable thereafter; identifies the URL across failovers and is the same value embedded in the ``url`` (as the ``w=`` query parameter for SPOG URLs, or in the ``conn-<id>`` hostname for Private-Link URLs).
- name: url
value: "{{ url }}"
description: |
The stable URL endpoint. Generated on creation and immutable thereafter. For non-Private-Link workspaces this is ``https://<spog_host>/?w=<connection_id>``. For Private-Link workspaces this is the per-connection hostname.
- name: validate_only
value: {{ validate_only }}
description: When true, validates the request without creating the stable URL.
description: When true, validates the request without creating the stable URL.
DELETE examples​
- delete
Delete a stable URL.
DELETE FROM databricks_account.disasterrecovery.stable_urls
WHERE account_id = '{{ account_id }}' --required
AND stable_url_id = '{{ stable_url_id }}' --required
AND account_host = '{{ account_host }}' --required
;