databricks.Permissions
Explore with Pulumi AI
Import
Import Example Configuration filehcl resource “databricks_mlflow_model” “model” {
name
= “example_model”
description = “MLflow registered model” } resource “databricks_permissions” “model_usage” {
registered_model_id = databricks_mlflow_model.model.registered_model_id
access_control {
group_name
= “users”
permission_level = “CAN_READ”
} } Import commandbash
$ pulumi import databricks:index/permissions:Permissions model_usage /registered-models/<registered_model_id>
Create Permissions Resource
new Permissions(name: string, args: PermissionsArgs, opts?: CustomResourceOptions);
@overload
def Permissions(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_controls: Optional[Sequence[PermissionsAccessControlArgs]] = None,
authorization: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_policy_id: Optional[str] = None,
directory_id: Optional[str] = None,
directory_path: Optional[str] = None,
experiment_id: Optional[str] = None,
instance_pool_id: Optional[str] = None,
job_id: Optional[str] = None,
notebook_id: Optional[str] = None,
notebook_path: Optional[str] = None,
object_type: Optional[str] = None,
pipeline_id: Optional[str] = None,
registered_model_id: Optional[str] = None,
repo_id: Optional[str] = None,
repo_path: Optional[str] = None,
sql_alert_id: Optional[str] = None,
sql_dashboard_id: Optional[str] = None,
sql_endpoint_id: Optional[str] = None,
sql_query_id: Optional[str] = None,
workspace_file_id: Optional[str] = None,
workspace_file_path: Optional[str] = None)
@overload
def Permissions(resource_name: str,
args: PermissionsArgs,
opts: Optional[ResourceOptions] = None)
func NewPermissions(ctx *Context, name string, args PermissionsArgs, opts ...ResourceOption) (*Permissions, error)
public Permissions(string name, PermissionsArgs args, CustomResourceOptions? opts = null)
public Permissions(String name, PermissionsArgs args)
public Permissions(String name, PermissionsArgs args, CustomResourceOptions options)
type: databricks:Permissions
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args PermissionsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PermissionsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PermissionsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PermissionsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Permissions Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Permissions resource accepts the following input properties:
- Access
Controls List<PermissionsAccess Control Args> - string
- Cluster
Id string cluster id
- Cluster
Policy stringId cluster policy id
- Directory
Id string directory id
- Directory
Path string path of directory
- Experiment
Id string MLflow experiment id
- Instance
Pool stringId instance pool id
- Job
Id string job id
- Notebook
Id string ID of notebook within workspace
- Notebook
Path string path of notebook
- Object
Type string type of permissions.
- Pipeline
Id string pipeline id
- Registered
Model stringId MLflow registered model id
- Repo
Id string repo id
- Repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- Sql
Alert stringId SQL alert id
- Sql
Dashboard stringId SQL dashboard id
- Sql
Endpoint stringId SQL warehouse id
- Sql
Query stringId SQL query id
- Workspace
File stringId - Workspace
File stringPath
- Access
Controls []PermissionsAccess Control Args - string
- Cluster
Id string cluster id
- Cluster
Policy stringId cluster policy id
- Directory
Id string directory id
- Directory
Path string path of directory
- Experiment
Id string MLflow experiment id
- Instance
Pool stringId instance pool id
- Job
Id string job id
- Notebook
Id string ID of notebook within workspace
- Notebook
Path string path of notebook
- Object
Type string type of permissions.
- Pipeline
Id string pipeline id
- Registered
Model stringId MLflow registered model id
- Repo
Id string repo id
- Repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- Sql
Alert stringId SQL alert id
- Sql
Dashboard stringId SQL dashboard id
- Sql
Endpoint stringId SQL warehouse id
- Sql
Query stringId SQL query id
- Workspace
File stringId - Workspace
File stringPath
- access
Controls List<PermissionsAccess Control Args> - String
- cluster
Id String cluster id
- cluster
Policy StringId cluster policy id
- directory
Id String directory id
- directory
Path String path of directory
- experiment
Id String MLflow experiment id
- instance
Pool StringId instance pool id
- job
Id String job id
- notebook
Id String ID of notebook within workspace
- notebook
Path String path of notebook
- object
Type String type of permissions.
- pipeline
Id String pipeline id
- registered
Model StringId MLflow registered model id
- repo
Id String repo id
- repo
Path String path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert StringId SQL alert id
- sql
Dashboard StringId SQL dashboard id
- sql
Endpoint StringId SQL warehouse id
- sql
Query StringId SQL query id
- workspace
File StringId - workspace
File StringPath
- access
Controls PermissionsAccess Control Args[] - string
- cluster
Id string cluster id
- cluster
Policy stringId cluster policy id
- directory
Id string directory id
- directory
Path string path of directory
- experiment
Id string MLflow experiment id
- instance
Pool stringId instance pool id
- job
Id string job id
- notebook
Id string ID of notebook within workspace
- notebook
Path string path of notebook
- object
Type string type of permissions.
- pipeline
Id string pipeline id
- registered
Model stringId MLflow registered model id
- repo
Id string repo id
- repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert stringId SQL alert id
- sql
Dashboard stringId SQL dashboard id
- sql
Endpoint stringId SQL warehouse id
- sql
Query stringId SQL query id
- workspace
File stringId - workspace
File stringPath
- access_
controls Sequence[PermissionsAccess Control Args] - str
- cluster_
id str cluster id
- cluster_
policy_ strid cluster policy id
- directory_
id str directory id
- directory_
path str path of directory
- experiment_
id str MLflow experiment id
- instance_
pool_ strid instance pool id
- job_
id str job id
- notebook_
id str ID of notebook within workspace
- notebook_
path str path of notebook
- object_
type str type of permissions.
- pipeline_
id str pipeline id
- registered_
model_ strid MLflow registered model id
- repo_
id str repo id
- repo_
path str path of databricks repo directory(
/Repos/<username>/...
)- sql_
alert_ strid SQL alert id
- sql_
dashboard_ strid SQL dashboard id
- sql_
endpoint_ strid SQL warehouse id
- sql_
query_ strid SQL query id
- workspace_
file_ strid - workspace_
file_ strpath
- access
Controls List<Property Map> - String
- cluster
Id String cluster id
- cluster
Policy StringId cluster policy id
- directory
Id String directory id
- directory
Path String path of directory
- experiment
Id String MLflow experiment id
- instance
Pool StringId instance pool id
- job
Id String job id
- notebook
Id String ID of notebook within workspace
- notebook
Path String path of notebook
- object
Type String type of permissions.
- pipeline
Id String pipeline id
- registered
Model StringId MLflow registered model id
- repo
Id String repo id
- repo
Path String path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert StringId SQL alert id
- sql
Dashboard StringId SQL dashboard id
- sql
Endpoint StringId SQL warehouse id
- sql
Query StringId SQL query id
- workspace
File StringId - workspace
File StringPath
Outputs
All input properties are implicitly available as output properties. Additionally, the Permissions resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Permissions Resource
Get an existing Permissions resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PermissionsState, opts?: CustomResourceOptions): Permissions
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_controls: Optional[Sequence[PermissionsAccessControlArgs]] = None,
authorization: Optional[str] = None,
cluster_id: Optional[str] = None,
cluster_policy_id: Optional[str] = None,
directory_id: Optional[str] = None,
directory_path: Optional[str] = None,
experiment_id: Optional[str] = None,
instance_pool_id: Optional[str] = None,
job_id: Optional[str] = None,
notebook_id: Optional[str] = None,
notebook_path: Optional[str] = None,
object_type: Optional[str] = None,
pipeline_id: Optional[str] = None,
registered_model_id: Optional[str] = None,
repo_id: Optional[str] = None,
repo_path: Optional[str] = None,
sql_alert_id: Optional[str] = None,
sql_dashboard_id: Optional[str] = None,
sql_endpoint_id: Optional[str] = None,
sql_query_id: Optional[str] = None,
workspace_file_id: Optional[str] = None,
workspace_file_path: Optional[str] = None) -> Permissions
func GetPermissions(ctx *Context, name string, id IDInput, state *PermissionsState, opts ...ResourceOption) (*Permissions, error)
public static Permissions Get(string name, Input<string> id, PermissionsState? state, CustomResourceOptions? opts = null)
public static Permissions get(String name, Output<String> id, PermissionsState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Controls List<PermissionsAccess Control Args> - string
- Cluster
Id string cluster id
- Cluster
Policy stringId cluster policy id
- Directory
Id string directory id
- Directory
Path string path of directory
- Experiment
Id string MLflow experiment id
- Instance
Pool stringId instance pool id
- Job
Id string job id
- Notebook
Id string ID of notebook within workspace
- Notebook
Path string path of notebook
- Object
Type string type of permissions.
- Pipeline
Id string pipeline id
- Registered
Model stringId MLflow registered model id
- Repo
Id string repo id
- Repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- Sql
Alert stringId SQL alert id
- Sql
Dashboard stringId SQL dashboard id
- Sql
Endpoint stringId SQL warehouse id
- Sql
Query stringId SQL query id
- Workspace
File stringId - Workspace
File stringPath
- Access
Controls []PermissionsAccess Control Args - string
- Cluster
Id string cluster id
- Cluster
Policy stringId cluster policy id
- Directory
Id string directory id
- Directory
Path string path of directory
- Experiment
Id string MLflow experiment id
- Instance
Pool stringId instance pool id
- Job
Id string job id
- Notebook
Id string ID of notebook within workspace
- Notebook
Path string path of notebook
- Object
Type string type of permissions.
- Pipeline
Id string pipeline id
- Registered
Model stringId MLflow registered model id
- Repo
Id string repo id
- Repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- Sql
Alert stringId SQL alert id
- Sql
Dashboard stringId SQL dashboard id
- Sql
Endpoint stringId SQL warehouse id
- Sql
Query stringId SQL query id
- Workspace
File stringId - Workspace
File stringPath
- access
Controls List<PermissionsAccess Control Args> - String
- cluster
Id String cluster id
- cluster
Policy StringId cluster policy id
- directory
Id String directory id
- directory
Path String path of directory
- experiment
Id String MLflow experiment id
- instance
Pool StringId instance pool id
- job
Id String job id
- notebook
Id String ID of notebook within workspace
- notebook
Path String path of notebook
- object
Type String type of permissions.
- pipeline
Id String pipeline id
- registered
Model StringId MLflow registered model id
- repo
Id String repo id
- repo
Path String path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert StringId SQL alert id
- sql
Dashboard StringId SQL dashboard id
- sql
Endpoint StringId SQL warehouse id
- sql
Query StringId SQL query id
- workspace
File StringId - workspace
File StringPath
- access
Controls PermissionsAccess Control Args[] - string
- cluster
Id string cluster id
- cluster
Policy stringId cluster policy id
- directory
Id string directory id
- directory
Path string path of directory
- experiment
Id string MLflow experiment id
- instance
Pool stringId instance pool id
- job
Id string job id
- notebook
Id string ID of notebook within workspace
- notebook
Path string path of notebook
- object
Type string type of permissions.
- pipeline
Id string pipeline id
- registered
Model stringId MLflow registered model id
- repo
Id string repo id
- repo
Path string path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert stringId SQL alert id
- sql
Dashboard stringId SQL dashboard id
- sql
Endpoint stringId SQL warehouse id
- sql
Query stringId SQL query id
- workspace
File stringId - workspace
File stringPath
- access_
controls Sequence[PermissionsAccess Control Args] - str
- cluster_
id str cluster id
- cluster_
policy_ strid cluster policy id
- directory_
id str directory id
- directory_
path str path of directory
- experiment_
id str MLflow experiment id
- instance_
pool_ strid instance pool id
- job_
id str job id
- notebook_
id str ID of notebook within workspace
- notebook_
path str path of notebook
- object_
type str type of permissions.
- pipeline_
id str pipeline id
- registered_
model_ strid MLflow registered model id
- repo_
id str repo id
- repo_
path str path of databricks repo directory(
/Repos/<username>/...
)- sql_
alert_ strid SQL alert id
- sql_
dashboard_ strid SQL dashboard id
- sql_
endpoint_ strid SQL warehouse id
- sql_
query_ strid SQL query id
- workspace_
file_ strid - workspace_
file_ strpath
- access
Controls List<Property Map> - String
- cluster
Id String cluster id
- cluster
Policy StringId cluster policy id
- directory
Id String directory id
- directory
Path String path of directory
- experiment
Id String MLflow experiment id
- instance
Pool StringId instance pool id
- job
Id String job id
- notebook
Id String ID of notebook within workspace
- notebook
Path String path of notebook
- object
Type String type of permissions.
- pipeline
Id String pipeline id
- registered
Model StringId MLflow registered model id
- repo
Id String repo id
- repo
Path String path of databricks repo directory(
/Repos/<username>/...
)- sql
Alert StringId SQL alert id
- sql
Dashboard StringId SQL dashboard id
- sql
Endpoint StringId SQL warehouse id
- sql
Query StringId SQL query id
- workspace
File StringId - workspace
File StringPath
Supporting Types
PermissionsAccessControl
- Permission
Level string permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- Group
Name string name of the group. We recommend setting permissions on groups.
- Service
Principal stringName Application ID of the service_principal.
- User
Name string name of the user.
- Permission
Level string permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- Group
Name string name of the group. We recommend setting permissions on groups.
- Service
Principal stringName Application ID of the service_principal.
- User
Name string name of the user.
- permission
Level String permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- group
Name String name of the group. We recommend setting permissions on groups.
- service
Principal StringName Application ID of the service_principal.
- user
Name String name of the user.
- permission
Level string permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- group
Name string name of the group. We recommend setting permissions on groups.
- service
Principal stringName Application ID of the service_principal.
- user
Name string name of the user.
- permission_
level str permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- group_
name str name of the group. We recommend setting permissions on groups.
- service_
principal_ strname Application ID of the service_principal.
- user_
name str name of the user.
- permission
Level String permission level according to specific resource. See examples above for the reference.
Exactly one of the below arguments is required:
- group
Name String name of the group. We recommend setting permissions on groups.
- service
Principal StringName Application ID of the service_principal.
- user
Name String name of the user.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
databricks
Terraform Provider.