mirror of https://github.com/databricks/cli.git
Merge b151ed7572
into 8d849fe868
This commit is contained in:
commit
95673233b9
|
@ -10,6 +10,8 @@ description: Learn about resources supported by Databricks Asset Bundles and how
|
||||||
|
|
||||||
This article outlines supported resource types for bundles and provides details and an example for each supported type. For additional examples, see [_](/dev-tools/bundles/resource-examples.md).
|
This article outlines supported resource types for bundles and provides details and an example for each supported type. For additional examples, see [_](/dev-tools/bundles/resource-examples.md).
|
||||||
|
|
||||||
|
.. tip:: To generate YAML for any existing resource, use the `databricks bundle generate` command. See [_](/dev-tools/cli/bundle-commands.md#generate).
|
||||||
|
|
||||||
## <a id="resource-types"></a> Supported resources
|
## <a id="resource-types"></a> Supported resources
|
||||||
|
|
||||||
The following table lists supported resource types for bundles. Some resources can be created by defining them in a bundle and deploying the bundle, and some resources only support referencing an existing resource to include in the bundle.
|
The following table lists supported resource types for bundles. Some resources can be created by defining them in a bundle and deploying the bundle, and some resources only support referencing an existing resource to include in the bundle.
|
||||||
|
@ -19,6 +21,8 @@ Resources are defined using the corresponding [Databricks REST API](/api/workspa
|
||||||
.. tip:: The `databricks bundle validate` command returns warnings if unknown resource properties are found in bundle configuration files.
|
.. tip:: The `databricks bundle validate` command returns warnings if unknown resource properties are found in bundle configuration files.
|
||||||
|
|
||||||
|
|
||||||
|
.. azure-aws::
|
||||||
|
|
||||||
.. list-table::
|
.. list-table::
|
||||||
:header-rows: 1
|
:header-rows: 1
|
||||||
|
|
||||||
|
@ -26,15 +30,72 @@ Resources are defined using the corresponding [Databricks REST API](/api/workspa
|
||||||
- Create support
|
- Create support
|
||||||
- Corresponding REST API object
|
- Corresponding REST API object
|
||||||
|
|
||||||
* - [cluster](#cluster)
|
* - [app](#apps)
|
||||||
|
- ✓
|
||||||
|
- [App object](/api/workspace/apps/create)
|
||||||
|
|
||||||
|
* - [cluster](#clusters)
|
||||||
- ✓
|
- ✓
|
||||||
- [Cluster object](/api/workspace/clusters/create)
|
- [Cluster object](/api/workspace/clusters/create)
|
||||||
|
|
||||||
* - [dashboard](#dashboard)
|
* - [dashboard](#dashboards)
|
||||||
-
|
-
|
||||||
- [Dashboard object](/api/workspace/lakeview/create)
|
- [Dashboard object](/api/workspace/lakeview/create)
|
||||||
|
|
||||||
* - [experiment](#experiment)
|
* - [experiment](#experiments)
|
||||||
|
- ✓
|
||||||
|
- [Experiment object](/api/workspace/experiments/createexperiment)
|
||||||
|
|
||||||
|
* - [job](#jobs)
|
||||||
|
- ✓
|
||||||
|
- [Job object](/api/workspace/jobs/create)
|
||||||
|
|
||||||
|
* - [model (legacy)](#models)
|
||||||
|
- ✓
|
||||||
|
- [Model (legacy) object](/api/workspace/modelregistry/createmodel)
|
||||||
|
|
||||||
|
* - [model_serving_endpoint](#model_serving_endpoints)
|
||||||
|
- ✓
|
||||||
|
- [Model serving endpoint object](/api/workspace/servingendpoints/create)
|
||||||
|
|
||||||
|
* - [pipeline](#pipelines)
|
||||||
|
- ✓
|
||||||
|
- [Pipeline object]](/api/workspace/pipelines/create)
|
||||||
|
|
||||||
|
* - [quality_monitor](#quality_monitors)
|
||||||
|
- ✓
|
||||||
|
- [Quality monitor object](/api/workspace/qualitymonitors/create)
|
||||||
|
|
||||||
|
* - [registered_model](#registered_models) (<UC>)
|
||||||
|
- ✓
|
||||||
|
- [Registered model object](/api/workspace/registeredmodels/create)
|
||||||
|
|
||||||
|
* - [schema](#schemas) (<UC>)
|
||||||
|
- ✓
|
||||||
|
- [Schema object](/api/workspace/schemas/create)
|
||||||
|
|
||||||
|
* - [volume](#volumes) (<UC>)
|
||||||
|
- ✓
|
||||||
|
- [Volume object](/api/workspace/volumes/create)
|
||||||
|
|
||||||
|
.. gcp::
|
||||||
|
|
||||||
|
.. list-table::
|
||||||
|
:header-rows: 1
|
||||||
|
|
||||||
|
* - Resource
|
||||||
|
- Create support
|
||||||
|
- Corresponding REST API object
|
||||||
|
|
||||||
|
* - [cluster](#clusters)
|
||||||
|
- ✓
|
||||||
|
- [Cluster object](/api/workspace/clusters/create)
|
||||||
|
|
||||||
|
* - [dashboard](#dashboards)
|
||||||
|
-
|
||||||
|
- [Dashboard object](/api/workspace/lakeview/create)
|
||||||
|
|
||||||
|
* - [experiment](#experiments)
|
||||||
- ✓
|
- ✓
|
||||||
- [Experiment object](/api/workspace/experiments/createexperiment)
|
- [Experiment object](/api/workspace/experiments/createexperiment)
|
||||||
|
|
||||||
|
@ -42,30 +103,30 @@ Resources are defined using the corresponding [Databricks REST API](/api/workspa
|
||||||
- ✓
|
- ✓
|
||||||
- [Job object](/api/workspace/jobs/create)
|
- [Job object](/api/workspace/jobs/create)
|
||||||
|
|
||||||
* - [model (legacy)](#model-legacy)
|
* - [model (legacy)](#models)
|
||||||
- ✓
|
- ✓
|
||||||
- [Model (legacy) object](/api/workspace/modelregistry/createmodel)
|
- [Model (legacy) object](/api/workspace/modelregistry/createmodel)
|
||||||
|
|
||||||
* - [model_serving_endpoint](#model-serving-endpoint)
|
* - [model_serving_endpoint](#model_serving_endpoints)
|
||||||
- ✓
|
- ✓
|
||||||
- [Model serving endpoint object](/api/workspace/servingendpoints/create)
|
- [Model serving endpoint object](/api/workspace/servingendpoints/create)
|
||||||
|
|
||||||
* - [pipeline](#pipeline)
|
* - [pipeline](#pipelines)
|
||||||
- ✓
|
- ✓
|
||||||
- [Pipeline object](/api/workspace/pipelines/create)
|
- [Pipeline object]](/api/workspace/pipelines/create)
|
||||||
|
|
||||||
* - [quality_monitor](#quality-monitor)
|
* - [quality_monitor](#quality_monitors)
|
||||||
- ✓
|
- ✓
|
||||||
- [Quality monitor object](/api/workspace/qualitymonitors/create)
|
- [Quality monitor object](/api/workspace/qualitymonitors/create)
|
||||||
|
|
||||||
* - [registered_model](#registered-model) (<UC>)
|
* - [registered_model](#registered_models) (<UC>)
|
||||||
- ✓
|
- ✓
|
||||||
- [Registered model object](/api/workspace/registeredmodels/create)
|
- [Registered model object](/api/workspace/registeredmodels/create)
|
||||||
|
|
||||||
* - [schema](#schema) (<UC>)
|
* - [schema](#schemas) (<UC>)
|
||||||
- ✓
|
- ✓
|
||||||
- [Schema object](/api/workspace/schemas/create)
|
- [Schema object](/api/workspace/schemas/create)
|
||||||
|
|
||||||
* - [volume](#volume) (<UC>)
|
* - [volume](#volumes) (<UC>)
|
||||||
- ✓
|
- ✓
|
||||||
- [Volume object](/api/workspace/volumes/create)
|
- [Volume object](/api/workspace/volumes/create)
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
github.com/databricks/cli/bundle/config.Artifact:
|
github.com/databricks/cli/bundle/config.Artifact:
|
||||||
"build":
|
"build":
|
||||||
"description": |-
|
"description": |-
|
||||||
An optional set of non-default build commands to run locally before deployment.
|
An optional set of build commands to run locally before deployment.
|
||||||
"executable":
|
"executable":
|
||||||
"description": |-
|
"description": |-
|
||||||
The executable type. Valid values are `bash`, `sh`, and `cmd`.
|
The executable type. Valid values are `bash`, `sh`, and `cmd`.
|
||||||
"files":
|
"files":
|
||||||
"description": |-
|
"description": |-
|
||||||
The source files for the artifact.
|
The relative or absolute path to the built artifact files.
|
||||||
"path":
|
"path":
|
||||||
"description": |-
|
"description": |-
|
||||||
The location where the built artifact will be saved.
|
The local path of the directory for the artifact.
|
||||||
"type":
|
"type":
|
||||||
"description": |-
|
"description": |-
|
||||||
Required. The type of the artifact.
|
Required if the artifact is a Python wheel. The type of the artifact. Valid values are `whl` and `jar`.
|
||||||
"markdown_description": |-
|
"markdown_description": |-
|
||||||
Required. The type of the artifact. Valid values are `whl`.
|
Required. The type of the artifact. Valid values are `whl`.
|
||||||
github.com/databricks/cli/bundle/config.ArtifactFile:
|
github.com/databricks/cli/bundle/config.ArtifactFile:
|
||||||
"source":
|
"source":
|
||||||
"description": |-
|
"description": |-
|
||||||
Required. The path of the files used to build the artifact.
|
Required. The artifact source file.
|
||||||
github.com/databricks/cli/bundle/config.Bundle:
|
github.com/databricks/cli/bundle/config.Bundle:
|
||||||
"cluster_id":
|
"cluster_id":
|
||||||
"description": |-
|
"description": |-
|
||||||
|
@ -28,7 +28,7 @@ github.com/databricks/cli/bundle/config.Bundle:
|
||||||
The ID of a cluster to use to run the bundle. See [_](/dev-tools/bundles/settings.md#cluster_id).
|
The ID of a cluster to use to run the bundle. See [_](/dev-tools/bundles/settings.md#cluster_id).
|
||||||
"compute_id":
|
"compute_id":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
Deprecated. The ID of the compute to use to run the bundle.
|
||||||
"databricks_cli_version":
|
"databricks_cli_version":
|
||||||
"description": |-
|
"description": |-
|
||||||
The Databricks CLI version to use for the bundle.
|
The Databricks CLI version to use for the bundle.
|
||||||
|
@ -225,7 +225,7 @@ github.com/databricks/cli/bundle/config.Root:
|
||||||
"description": |-
|
"description": |-
|
||||||
Specifies a list of path globs that contain configuration files to include within the bundle.
|
Specifies a list of path globs that contain configuration files to include within the bundle.
|
||||||
"markdown_description": |-
|
"markdown_description": |-
|
||||||
Specifies a list of path globs that contain configuration files to include within the bundle. See [_](/dev-tools/bundles/settings.md#include)
|
Specifies a list of path globs that contain configuration files to include within the bundle. See [_](/dev-tools/bundles/settings.md#include).
|
||||||
"permissions":
|
"permissions":
|
||||||
"description": |-
|
"description": |-
|
||||||
Defines a permission for a specific entity.
|
Defines a permission for a specific entity.
|
||||||
|
@ -414,57 +414,47 @@ github.com/databricks/cli/bundle/config/resources.Permission:
|
||||||
"user_name":
|
"user_name":
|
||||||
"description": |-
|
"description": |-
|
||||||
The name of the user that has the permission set in level.
|
The name of the user that has the permission set in level.
|
||||||
github.com/databricks/cli/bundle/config/resources.Pipeline:
|
|
||||||
"allow_duplicate_names":
|
|
||||||
"description": |-
|
|
||||||
PLACEHOLDER
|
|
||||||
"dry_run":
|
|
||||||
"description": |-
|
|
||||||
PLACEHOLDER
|
|
||||||
"run_as":
|
|
||||||
"description": |-
|
|
||||||
PLACEHOLDER
|
|
||||||
github.com/databricks/cli/bundle/config/variable.Lookup:
|
github.com/databricks/cli/bundle/config/variable.Lookup:
|
||||||
"alert":
|
"alert":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the alert for which to retrieve an ID.
|
||||||
"cluster":
|
"cluster":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the cluster for which to retrieve an ID.
|
||||||
"cluster_policy":
|
"cluster_policy":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the cluster_policy for which to retrieve an ID.
|
||||||
"dashboard":
|
"dashboard":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the dashboard for which to retrieve an ID.
|
||||||
"instance_pool":
|
"instance_pool":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the instance_pool for which to retrieve an ID.
|
||||||
"job":
|
"job":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the job for which to retrieve an ID.
|
||||||
"metastore":
|
"metastore":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the metastore for which to retrieve an ID.
|
||||||
"notification_destination":
|
"notification_destination":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the notification_destination for which to retrieve an ID.
|
||||||
"pipeline":
|
"pipeline":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the pipeline for which to retrieve an ID.
|
||||||
"query":
|
"query":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the query for which to retrieve an ID.
|
||||||
"service_principal":
|
"service_principal":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the service_principal for which to retrieve an ID.
|
||||||
"warehouse":
|
"warehouse":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The name of the warehouse for which to retrieve an ID.
|
||||||
github.com/databricks/cli/bundle/config/variable.TargetVariable:
|
github.com/databricks/cli/bundle/config/variable.TargetVariable:
|
||||||
"default":
|
"default":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The default value for the variable.
|
||||||
"description":
|
"description":
|
||||||
"description": |-
|
"description": |-
|
||||||
The description of the variable.
|
The description of the variable.
|
||||||
|
@ -485,7 +475,7 @@ github.com/databricks/cli/bundle/config/variable.Variable:
|
||||||
Defines a custom variable for the bundle. See [_](/dev-tools/bundles/settings.md#variables).
|
Defines a custom variable for the bundle. See [_](/dev-tools/bundles/settings.md#variables).
|
||||||
"default":
|
"default":
|
||||||
"description": |-
|
"description": |-
|
||||||
PLACEHOLDER
|
The default value for the variable.
|
||||||
"description":
|
"description":
|
||||||
"description": |-
|
"description": |-
|
||||||
The description of the variable
|
The description of the variable
|
||||||
|
|
Loading…
Reference in New Issue