Request For Access
The access request destinations resolved for each principal and securable in the batch.
BatchCreateAccessRequestsResponse object
The access request destinations resolved for each principal and securable in the batch.
- responsesarray of objectPublic Preview
The access request destinations for each securable object the principal requested.
Show child attributesHide child attributes
- behalf_ofobjectPublic Preview
The principal the request was made on behalf of.
Show child attributesHide child attributes
- idstringPublic Preview
<Databricks> user, group or service principal ID.
- principal_typestringPublic Preview
The type of principal that id identifies: a user, a group, or a service principal.
USER_PRINCIPALGROUP_PRINCIPALSERVICE_PRINCIPAL
- request_destinationsarray of objectPublic Preview
The access request destinations for all the securables the principal requested.
Show child attributesHide child attributes
- destinationsarray of objectPublic PreviewUnordered list
The access request destinations for the securable.
Show child attributesHide child attributes
- destination_idstringPublic Preview
The identifier for the destination. This is the email address for EMAIL destinations, the URL for URL destinations, or the unique <Databricks> notification destination ID for all other external destinations.
- destination_typestringPublic Preview
The type of the destination.
EMAILSLACKGENERIC_WEBHOOKMICROSOFT_TEAMSURL
- special_destinationstringPublic Preview
This field is used to denote whether the destination is the email of the owner of the securable object. The special destination cannot be assigned to a securable and only represents the default destination of the securable. The securable types that support default special destinations are: "catalog", "external_location", "connection", "credential", and "metastore". The destination_type of a special_destination is always EMAIL.
SPECIAL_DESTINATION_CATALOG_OWNERSPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNERSPECIAL_DESTINATION_CONNECTION_OWNERSPECIAL_DESTINATION_CREDENTIAL_OWNERSPECIAL_DESTINATION_METASTORE_OWNERSPECIAL_DESTINATION_SCHEMA_OWNERBetaSPECIAL_DESTINATION_TABLE_OWNERBetaSPECIAL_DESTINATION_VOLUME_OWNERBetaSPECIAL_DESTINATION_FUNCTION_OWNERBetaSPECIAL_DESTINATION_REGISTERED_MODEL_OWNERBeta
- securableobjectPublic Preview
The securable for which the access request destinations are being modified or read.
Show child attributesHide child attributes
- typestringPublic Preview
Required. The type of securable (catalog/schema/table). Optional if resource_name is present.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- full_namestringPublic Preview
Required. The full name of the catalog/schema/table. Optional if resource_name is present.
- destination_source_securableobjectPublic PreviewOutput only
The source securable from which the destinations are inherited. Either the same value as securable (if destination is set directly on the securable) or the nearest parent securable with destinations set.
Show child attributesHide child attributes
- typestringPublic Preview
Required. The type of securable (catalog/schema/table). Optional if resource_name is present.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- full_namestringPublic Preview
Required. The full name of the catalog/schema/table. Optional if resource_name is present.
- securable_typestringPublic PreviewOutput only
The type of the securable, repeated from securable as a plain string.
- full_namestringPublic PreviewOutput only
The full name of the securable, repeated from securable.
- url_configurationobjectBeta
The access request URLs shared by every workspace in the metastore. Only set when the securable is a metastore. These URLs are used when neither the requested securable nor its parents have an explicit destination or a default owner email destination, and they take precedence over metastore destinations.
A dynamic_url and default owner email destinations cannot both be on: saving one turns the other off. Saving a dynamic_url while they are on requires a metastore admin.
Setting this field removes the metastore destinations in this workspace. The first save also removes the metastore URL destinations of other workspaces. Once set, the configuration can be cleared but not removed.
Show child attributesHide child attributes
- redirect_urlstringBeta
The URL for access requests on the metastore and on securables outside catalogs, such as external locations, connections, and credentials. Also used for catalogs and the securables inside them when dynamic_url is not set or cannot produce a valid URL. Must start with
http://orhttps://, contain only printable ASCII characters without spaces or backslashes, and be at most 2,048 characters.
- dynamic_urlstringBeta
The URL template for access requests on catalogs and the securables inside them, such as schemas, tables, volumes, functions, and registered models. Placeholders are replaced with percent-encoded values from the requested securable:
{catalog}with the catalog name (main),{catalog.schema}with the catalog and schema names (main.sales),{catalog.schema.object}with the full name (main.sales.orders),{securable_type}with the securable type (TABLE), and{securable_id}with the securable ID. Name placeholders leave out levels the securable does not have, so{catalog.schema.object}ismain.salesfor a schema. When the deepest name placeholder stops above the requested securable, such as{catalog.schema}for a table,{securable_type}and{securable_id}describe that parent. If the filled-in URL is longer than 4,096 characters, the redirect_url is used instead.Must start with
http://orhttps://, contain only printable ASCII characters without spaces or backslashes, and be at most 2,048 characters. Braces are only allowed around a placeholder.
- syntax_versionint32Beta
The version of the placeholder syntax used in dynamic_url. The only supported version is
1.
Create Access Requests Public Preview
POST
Creates access requests for Unity Catalog permissions for a specified principal on a securable object. This Batch API can take in multiple principals, securable objects, and permissions as the input and returns the access request destinations for each. Principals must be unique across the API call.
The supported securable types are: "metastore", "catalog", "schema", "table", "external_location", "connection", "credential", "function", "registered_model", and "volume".
API scopes: unity-catalog
Request body
- requestsarray of object
A list of individual access requests, where each request corresponds to a set of permissions being requested on a list of securables for a specified principal.
At most 30 requests per API call.
Show child attributesHide child attributes
- behalf_ofobject
Optional. The principal this request is for. Empty
behalf_ofdefaults to the requester's identity.Principals must be unique across the API call.
Show child attributesHide child attributes
- idstring
<Databricks> user, group or service principal ID.
- principal_typestring
The type of principal that id identifies: a user, a group, or a service principal.
USER_PRINCIPALGROUP_PRINCIPALSERVICE_PRINCIPAL
- commentstring
Optional. Comment associated with the request.
At most 200 characters, can only contain lowercase/uppercase letters (a-z, A-Z), numbers (0-9), punctuation, and spaces.
- securable_permissionsarray of object
List of securables and their corresponding requested UC privileges.
At most 30 securables can be requested for a principal per batched call. Each securable can only be requested once per principal.
Show child attributesHide child attributes
- securableobject
The securable on which the permissions are requested.
Show child attributesHide child attributes
- typestring
Required. The type of securable (catalog/schema/table). Optional if resource_name is present.
Show 24 possible values
CATALOGSCHEMATABLESTORAGE_CREDENTIALEXTERNAL_LOCATIONFUNCTIONSHAREPROVIDERRECIPIENTCLEAN_ROOMMETASTOREPIPELINEVOLUMECONNECTIONCREDENTIALEXTERNAL_METADATASTAGING_TABLEMODELMODEL_SERVICEMCP_SERVICEMODEL_PROVIDER_SERVICEAGENT_SERVICEBetaSKILLBetaFEATURE
- full_namestring
Required. The full name of the catalog/schema/table. Optional if resource_name is present.
- permissionsarray of string
List of requested Unity Catalog permissions.