Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi
databricks.getRegisteredModel
Explore with Pulumi AI
This resource can only be used with a workspace-level provider!
This resource allows you to get information about Model in Unity Catalog in Databricks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getRegisteredModel({
fullName: "main.default.my_model",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_registered_model(full_name="main.default.my_model")
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.LookupRegisteredModel(ctx, &databricks.LookupRegisteredModelArgs{
FullName: "main.default.my_model",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetRegisteredModel.Invoke(new()
{
FullName = "main.default.my_model",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetRegisteredModelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = DatabricksFunctions.getRegisteredModel(GetRegisteredModelArgs.builder()
.fullName("main.default.my_model")
.build());
}
}
variables:
this:
fn::invoke:
function: databricks:getRegisteredModel
arguments:
fullName: main.default.my_model
Related Resources
The following resources are often used in the same context:
- databricks.RegisteredModel resource to manage models within Unity Catalog.
- databricks.ModelServing to serve this model on a Databricks serving endpoint.
- databricks.MlflowExperiment to manage MLflow experiments in Databricks.
Using getRegisteredModel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegisteredModel(args: GetRegisteredModelArgs, opts?: InvokeOptions): Promise<GetRegisteredModelResult>
function getRegisteredModelOutput(args: GetRegisteredModelOutputArgs, opts?: InvokeOptions): Output<GetRegisteredModelResult>
def get_registered_model(full_name: Optional[str] = None,
include_aliases: Optional[bool] = None,
include_browse: Optional[bool] = None,
model_infos: Optional[Sequence[GetRegisteredModelModelInfo]] = None,
opts: Optional[InvokeOptions] = None) -> GetRegisteredModelResult
def get_registered_model_output(full_name: Optional[pulumi.Input[str]] = None,
include_aliases: Optional[pulumi.Input[bool]] = None,
include_browse: Optional[pulumi.Input[bool]] = None,
model_infos: Optional[pulumi.Input[Sequence[pulumi.Input[GetRegisteredModelModelInfoArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegisteredModelResult]
func LookupRegisteredModel(ctx *Context, args *LookupRegisteredModelArgs, opts ...InvokeOption) (*LookupRegisteredModelResult, error)
func LookupRegisteredModelOutput(ctx *Context, args *LookupRegisteredModelOutputArgs, opts ...InvokeOption) LookupRegisteredModelResultOutput
> Note: This function is named LookupRegisteredModel
in the Go SDK.
public static class GetRegisteredModel
{
public static Task<GetRegisteredModelResult> InvokeAsync(GetRegisteredModelArgs args, InvokeOptions? opts = null)
public static Output<GetRegisteredModelResult> Invoke(GetRegisteredModelInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegisteredModelResult> getRegisteredModel(GetRegisteredModelArgs args, InvokeOptions options)
public static Output<GetRegisteredModelResult> getRegisteredModel(GetRegisteredModelArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getRegisteredModel:getRegisteredModel
arguments:
# arguments dictionary
The following arguments are supported:
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Include
Aliases bool - flag to specify if list of aliases should be included into output.
- Include
Browse bool - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- Model
Infos List<GetRegistered Model Model Info> - block with information about the model in Unity Catalog:
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Include
Aliases bool - flag to specify if list of aliases should be included into output.
- Include
Browse bool - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- Model
Infos []GetRegistered Model Model Info - block with information about the model in Unity Catalog:
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - include
Aliases Boolean - flag to specify if list of aliases should be included into output.
- include
Browse Boolean - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- model
Infos List<GetRegistered Model Model Info> - block with information about the model in Unity Catalog:
- full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - include
Aliases boolean - flag to specify if list of aliases should be included into output.
- include
Browse boolean - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- model
Infos GetRegistered Model Model Info[] - block with information about the model in Unity Catalog:
- full_
name str - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - include_
aliases bool - flag to specify if list of aliases should be included into output.
- include_
browse bool - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- model_
infos Sequence[GetRegistered Model Model Info] - block with information about the model in Unity Catalog:
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - include
Aliases Boolean - flag to specify if list of aliases should be included into output.
- include
Browse Boolean - flag to specify if include registered models in the response for which the principal can only access selective metadata for.
- model
Infos List<Property Map> - block with information about the model in Unity Catalog:
getRegisteredModel Result
The following output properties are available:
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Id string
- The provider-assigned unique ID for this managed resource.
- Model
Infos List<GetRegistered Model Model Info> - block with information about the model in Unity Catalog:
- Include
Aliases bool - Include
Browse bool
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Id string
- The provider-assigned unique ID for this managed resource.
- Model
Infos []GetRegistered Model Model Info - block with information about the model in Unity Catalog:
- Include
Aliases bool - Include
Browse bool
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - id String
- The provider-assigned unique ID for this managed resource.
- model
Infos List<GetRegistered Model Model Info> - block with information about the model in Unity Catalog:
- include
Aliases Boolean - include
Browse Boolean
- full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - id string
- The provider-assigned unique ID for this managed resource.
- model
Infos GetRegistered Model Model Info[] - block with information about the model in Unity Catalog:
- include
Aliases boolean - include
Browse boolean
- full_
name str - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - id str
- The provider-assigned unique ID for this managed resource.
- model_
infos Sequence[GetRegistered Model Model Info] - block with information about the model in Unity Catalog:
- include_
aliases bool - include_
browse bool
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - id String
- The provider-assigned unique ID for this managed resource.
- model
Infos List<Property Map> - block with information about the model in Unity Catalog:
- include
Aliases Boolean - include
Browse Boolean
Supporting Types
GetRegisteredModelModelInfo
- Aliases
List<Get
Registered Model Model Info Alias> - the list of aliases associated with this model. Each item is object consisting of following attributes:
- Browse
Only bool - Catalog
Name string - The name of the catalog where the schema and the registered model reside.
- Comment string
- The comment attached to the registered model.
- Created
At int - the Unix timestamp at the model's creation
- Created
By string - the identifier of the user who created the model
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Metastore
Id string - the unique identifier of the metastore
- Name string
- The name of the registered model.
- Owner string
- Name of the registered model owner.
- Schema
Name string - The name of the schema where the registered model resides.
- Storage
Location string - The storage location under which model version data files are stored.
- Updated
At int - the timestamp of the last time changes were made to the model
- Updated
By string - the identifier of the user who updated the model last time
- Aliases
[]Get
Registered Model Model Info Alias - the list of aliases associated with this model. Each item is object consisting of following attributes:
- Browse
Only bool - Catalog
Name string - The name of the catalog where the schema and the registered model reside.
- Comment string
- The comment attached to the registered model.
- Created
At int - the Unix timestamp at the model's creation
- Created
By string - the identifier of the user who created the model
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Metastore
Id string - the unique identifier of the metastore
- Name string
- The name of the registered model.
- Owner string
- Name of the registered model owner.
- Schema
Name string - The name of the schema where the registered model resides.
- Storage
Location string - The storage location under which model version data files are stored.
- Updated
At int - the timestamp of the last time changes were made to the model
- Updated
By string - the identifier of the user who updated the model last time
- aliases
List<Get
Registered Model Model Info Alias> - the list of aliases associated with this model. Each item is object consisting of following attributes:
- browse
Only Boolean - catalog
Name String - The name of the catalog where the schema and the registered model reside.
- comment String
- The comment attached to the registered model.
- created
At Integer - the Unix timestamp at the model's creation
- created
By String - the identifier of the user who created the model
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - metastore
Id String - the unique identifier of the metastore
- name String
- The name of the registered model.
- owner String
- Name of the registered model owner.
- schema
Name String - The name of the schema where the registered model resides.
- storage
Location String - The storage location under which model version data files are stored.
- updated
At Integer - the timestamp of the last time changes were made to the model
- updated
By String - the identifier of the user who updated the model last time
- aliases
Get
Registered Model Model Info Alias[] - the list of aliases associated with this model. Each item is object consisting of following attributes:
- browse
Only boolean - catalog
Name string - The name of the catalog where the schema and the registered model reside.
- comment string
- The comment attached to the registered model.
- created
At number - the Unix timestamp at the model's creation
- created
By string - the identifier of the user who created the model
- full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - metastore
Id string - the unique identifier of the metastore
- name string
- The name of the registered model.
- owner string
- Name of the registered model owner.
- schema
Name string - The name of the schema where the registered model resides.
- storage
Location string - The storage location under which model version data files are stored.
- updated
At number - the timestamp of the last time changes were made to the model
- updated
By string - the identifier of the user who updated the model last time
- aliases
Sequence[Get
Registered Model Model Info Alias] - the list of aliases associated with this model. Each item is object consisting of following attributes:
- browse_
only bool - catalog_
name str - The name of the catalog where the schema and the registered model reside.
- comment str
- The comment attached to the registered model.
- created_
at int - the Unix timestamp at the model's creation
- created_
by str - the identifier of the user who created the model
- full_
name str - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - metastore_
id str - the unique identifier of the metastore
- name str
- The name of the registered model.
- owner str
- Name of the registered model owner.
- schema_
name str - The name of the schema where the registered model resides.
- storage_
location str - The storage location under which model version data files are stored.
- updated_
at int - the timestamp of the last time changes were made to the model
- updated_
by str - the identifier of the user who updated the model last time
- aliases List<Property Map>
- the list of aliases associated with this model. Each item is object consisting of following attributes:
- browse
Only Boolean - catalog
Name String - The name of the catalog where the schema and the registered model reside.
- comment String
- The comment attached to the registered model.
- created
At Number - the Unix timestamp at the model's creation
- created
By String - the identifier of the user who created the model
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - metastore
Id String - the unique identifier of the metastore
- name String
- The name of the registered model.
- owner String
- Name of the registered model owner.
- schema
Name String - The name of the schema where the registered model resides.
- storage
Location String - The storage location under which model version data files are stored.
- updated
At Number - the timestamp of the last time changes were made to the model
- updated
By String - the identifier of the user who updated the model last time
GetRegisteredModelModelInfoAlias
- Alias
Name string - string with the name of alias
- Version
Num int - associated model version
- Alias
Name string - string with the name of alias
- Version
Num int - associated model version
- alias
Name String - string with the name of alias
- version
Num Integer - associated model version
- alias
Name string - string with the name of alias
- version
Num number - associated model version
- alias_
name str - string with the name of alias
- version_
num int - associated model version
- alias
Name String - string with the name of alias
- version
Num Number - associated model version
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.