w.domains: Domains.v1¶
- class databricks.sdk.service.domains.DomainsAPI¶
Manage domains for organizing and discovering data assets.
- create_domain(domain: Domain [, domain_id: Optional[str]]) Domain¶
Create a domain. If
domain_idis omitted, the server generates one.
- delete_domain(name: str [, force: Optional[bool]])¶
Delete a domain. By default the request fails if the domain still has Glossary pages; set
forceto delete those pages along with the domain.- Parameters:
name – str Full resource name of the domain to delete. Format:
domains/{domain_id}force – bool (optional) When false (default), DeleteDomain is rejected with FAILED_PRECONDITION if the domain still has Glossary pages. When true, those pages are deleted first and then the domain is removed.
- get_domain(name: str) Domain¶
Get a domain by resource name.
Authorization: external callers must have the
MANAGE DISCOVERYpermission.- Parameters:
name – str Full resource name of the domain to retrieve. Format:
domains/{domain_id}- Returns:
- list_domains([, page_size: Optional[int], page_token: Optional[str], parent_domain_id: Optional[str]]) Iterator[Domain]¶
List domains in the account. Set
parent_domain_idto return only the direct subdomains of a given domain.Authorization: external callers must have the
MANAGE DISCOVERYpermission; only domains the caller is authorized to read are returned.- Parameters:
page_size – int (optional)
page_token – str (optional)
parent_domain_id –
str (optional) Filter by parent domain.
Absent: return all domains regardless of hierarchy.
Present: return only direct children of the specified domain.
- Returns:
Iterator over
Domain
- update_domain(name: str, domain: Domain, update_mask: FieldMask) Domain¶
Update a domain.
update_maskselects which fields to modify; the domain is identified by its resourcename.- Parameters:
name – str Full resource name of the domain. The primary identifier for this resource. Format:
domains/{domain_id}Identifies the domain on get, update, and delete. Not an input on create — to choose the id, setCreateDomainRequest.domain_id.domain –
Domainupdate_mask –
FieldMask The field mask must be a single string, with multiple fields separated by commas (no spaces). The field path is relative to the resource object, using a dot (
.) to navigate sub-fields (e.g.,author.given_name). Specification of elements in sequence or map fields is not allowed, as only the entire collection field can be specified. Field names must exactly match the resource field names.A field mask of
*indicates full replacement. It’s recommended to always explicitly list the fields being updated and avoid using*wildcards, as it can lead to unintended results if the API changes in the future.
- Returns: