Databricks v1.63.0 published on Thursday, Mar 13, 2025 by Pulumi
databricks.getRegisteredModelVersions
Explore with Pulumi AI
This resource can only be used with a workspace-level provider!
This resource allows you to get information about versions of Model in Unity Catalog.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = databricks.getRegisteredModelVersions({
fullName: "main.default.my_model",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_registered_model_versions(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.GetRegisteredModelVersions(ctx, &databricks.GetRegisteredModelVersionsArgs{
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.GetRegisteredModelVersions.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.GetRegisteredModelVersionsArgs;
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.getRegisteredModelVersions(GetRegisteredModelVersionsArgs.builder()
.fullName("main.default.my_model")
.build());
}
}
variables:
this:
fn::invoke:
function: databricks:getRegisteredModelVersions
arguments:
fullName: main.default.my_model
Related Resources
The following resources are often used in the same context:
- databricks.RegisteredModel data source to retrieve information about a model within Unity Catalog.
- 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 getRegisteredModelVersions
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 getRegisteredModelVersions(args: GetRegisteredModelVersionsArgs, opts?: InvokeOptions): Promise<GetRegisteredModelVersionsResult>
function getRegisteredModelVersionsOutput(args: GetRegisteredModelVersionsOutputArgs, opts?: InvokeOptions): Output<GetRegisteredModelVersionsResult>
def get_registered_model_versions(full_name: Optional[str] = None,
model_versions: Optional[Sequence[GetRegisteredModelVersionsModelVersion]] = None,
opts: Optional[InvokeOptions] = None) -> GetRegisteredModelVersionsResult
def get_registered_model_versions_output(full_name: Optional[pulumi.Input[str]] = None,
model_versions: Optional[pulumi.Input[Sequence[pulumi.Input[GetRegisteredModelVersionsModelVersionArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRegisteredModelVersionsResult]
func GetRegisteredModelVersions(ctx *Context, args *GetRegisteredModelVersionsArgs, opts ...InvokeOption) (*GetRegisteredModelVersionsResult, error)
func GetRegisteredModelVersionsOutput(ctx *Context, args *GetRegisteredModelVersionsOutputArgs, opts ...InvokeOption) GetRegisteredModelVersionsResultOutput
> Note: This function is named GetRegisteredModelVersions
in the Go SDK.
public static class GetRegisteredModelVersions
{
public static Task<GetRegisteredModelVersionsResult> InvokeAsync(GetRegisteredModelVersionsArgs args, InvokeOptions? opts = null)
public static Output<GetRegisteredModelVersionsResult> Invoke(GetRegisteredModelVersionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRegisteredModelVersionsResult> getRegisteredModelVersions(GetRegisteredModelVersionsArgs args, InvokeOptions options)
public static Output<GetRegisteredModelVersionsResult> getRegisteredModelVersions(GetRegisteredModelVersionsArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getRegisteredModelVersions:getRegisteredModelVersions
arguments:
# arguments dictionary
The following arguments are supported:
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Model
Versions List<GetRegistered Model Versions Model Version> - list of objects describing the model versions. Each object consists of following attributes:
- Full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - Model
Versions []GetRegistered Model Versions Model Version - list of objects describing the model versions. Each object consists of following attributes:
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - model
Versions List<GetRegistered Model Versions Model Version> - list of objects describing the model versions. Each object consists of following attributes:
- full
Name string - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - model
Versions GetRegistered Model Versions Model Version[] - list of objects describing the model versions. Each object consists of following attributes:
- full_
name str - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - model_
versions Sequence[GetRegistered Model Versions Model Version] - list of objects describing the model versions. Each object consists of following attributes:
- full
Name String - The fully-qualified name of the registered model (
catalog_name.schema_name.name
). - model
Versions List<Property Map> - list of objects describing the model versions. Each object consists of following attributes:
getRegisteredModelVersions 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
Versions List<GetRegistered Model Versions Model Version> - list of objects describing the model versions. Each object consists of following attributes:
- 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
Versions []GetRegistered Model Versions Model Version - list of objects describing the model versions. Each object consists of following attributes:
- 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
Versions List<GetRegistered Model Versions Model Version> - list of objects describing the model versions. Each object consists of following attributes:
- 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
Versions GetRegistered Model Versions Model Version[] - list of objects describing the model versions. Each object consists of following attributes:
- 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_
versions Sequence[GetRegistered Model Versions Model Version] - list of objects describing the model versions. Each object consists of following attributes:
- 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
Versions List<Property Map> - list of objects describing the model versions. Each object consists of following attributes:
Supporting Types
GetRegisteredModelVersionsModelVersion
- Aliases
List<Get
Registered Model Versions Model Version 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
- Id string
- The unique identifier of the model version
- Metastore
Id string - the unique identifier of the metastore
- Model
Name string - Model
Version List<GetDependencies Registered Model Versions Model Version Model Version Dependency> - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- Run
Id string - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - Run
Workspace intId - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- Schema
Name string - The name of the schema where the registered model resides.
- Source string
- URI indicating the location of the source artifacts (files) for the model version.
- Status string
- Current status of the model version.
- 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
- Version int
- Integer model version number, used to reference the model version in API requests.
- Aliases
[]Get
Registered Model Versions Model Version 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
- Id string
- The unique identifier of the model version
- Metastore
Id string - the unique identifier of the metastore
- Model
Name string - Model
Version []GetDependencies Registered Model Versions Model Version Model Version Dependency - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- Run
Id string - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - Run
Workspace intId - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- Schema
Name string - The name of the schema where the registered model resides.
- Source string
- URI indicating the location of the source artifacts (files) for the model version.
- Status string
- Current status of the model version.
- 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
- Version int
- Integer model version number, used to reference the model version in API requests.
- aliases
List<Get
Registered Model Versions Model Version 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
- id String
- The unique identifier of the model version
- metastore
Id String - the unique identifier of the metastore
- model
Name String - model
Version List<GetDependencies Registered Model Versions Model Version Model Version Dependency> - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- run
Id String - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - run
Workspace IntegerId - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- schema
Name String - The name of the schema where the registered model resides.
- source String
- URI indicating the location of the source artifacts (files) for the model version.
- status String
- Current status of the model version.
- 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
- version Integer
- Integer model version number, used to reference the model version in API requests.
- aliases
Get
Registered Model Versions Model Version 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
- id string
- The unique identifier of the model version
- metastore
Id string - the unique identifier of the metastore
- model
Name string - model
Version GetDependencies Registered Model Versions Model Version Model Version Dependency[] - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- run
Id string - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - run
Workspace numberId - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- schema
Name string - The name of the schema where the registered model resides.
- source string
- URI indicating the location of the source artifacts (files) for the model version.
- status string
- Current status of the model version.
- 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
- version number
- Integer model version number, used to reference the model version in API requests.
- aliases
Sequence[Get
Registered Model Versions Model Version 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
- id str
- The unique identifier of the model version
- metastore_
id str - the unique identifier of the metastore
- model_
name str - model_
version_ Sequence[Getdependencies Registered Model Versions Model Version Model Version Dependency] - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- run_
id str - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - run_
workspace_ intid - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- schema_
name str - The name of the schema where the registered model resides.
- source str
- URI indicating the location of the source artifacts (files) for the model version.
- status str
- Current status of the model version.
- 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
- version int
- Integer model version number, used to reference the model version in API requests.
- 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
- id String
- The unique identifier of the model version
- metastore
Id String - the unique identifier of the metastore
- model
Name String - model
Version List<Property Map>Dependencies - block describing model version dependencies, for feature-store packaged models. Consists of following attributes:
- run
Id String - MLflow run ID used when creating the model version, if
source
was generated by an experiment run stored in an MLflow tracking server - run
Workspace NumberId - ID of the Databricks workspace containing the MLflow run that generated this model version, if applicable
- schema
Name String - The name of the schema where the registered model resides.
- source String
- URI indicating the location of the source artifacts (files) for the model version.
- status String
- Current status of the model version.
- 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
- version Number
- Integer model version number, used to reference the model version in API requests.
GetRegisteredModelVersionsModelVersionAlias
- 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
GetRegisteredModelVersionsModelVersionModelVersionDependency
- Dependencies
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency> - list of dependencies consisting of following attributes:
- Dependencies
[]Get
Registered Model Versions Model Version Model Version Dependency Dependency - list of dependencies consisting of following attributes:
- dependencies
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency> - list of dependencies consisting of following attributes:
- dependencies
Get
Registered Model Versions Model Version Model Version Dependency Dependency[] - list of dependencies consisting of following attributes:
- dependencies
Sequence[Get
Registered Model Versions Model Version Model Version Dependency Dependency] - list of dependencies consisting of following attributes:
- dependencies List<Property Map>
- list of dependencies consisting of following attributes:
GetRegisteredModelVersionsModelVersionModelVersionDependencyDependency
- Functions
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency Function> - A function that is dependent on a SQL object:
- Tables
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency Table> - A table that is dependent on a SQL object
- Functions
[]Get
Registered Model Versions Model Version Model Version Dependency Dependency Function - A function that is dependent on a SQL object:
- Tables
[]Get
Registered Model Versions Model Version Model Version Dependency Dependency Table - A table that is dependent on a SQL object
- functions
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency Function> - A function that is dependent on a SQL object:
- tables
List<Get
Registered Model Versions Model Version Model Version Dependency Dependency Table> - A table that is dependent on a SQL object
- functions
Get
Registered Model Versions Model Version Model Version Dependency Dependency Function[] - A function that is dependent on a SQL object:
- tables
Get
Registered Model Versions Model Version Model Version Dependency Dependency Table[] - A table that is dependent on a SQL object
- functions
Sequence[Get
Registered Model Versions Model Version Model Version Dependency Dependency Function] - A function that is dependent on a SQL object:
- tables
Sequence[Get
Registered Model Versions Model Version Model Version Dependency Dependency Table] - A table that is dependent on a SQL object
- functions List<Property Map>
- A function that is dependent on a SQL object:
- tables List<Property Map>
- A table that is dependent on a SQL object
GetRegisteredModelVersionsModelVersionModelVersionDependencyDependencyFunction
- Function
Full stringName - Full name of the dependent function
- Function
Full stringName - Full name of the dependent function
- function
Full StringName - Full name of the dependent function
- function
Full stringName - Full name of the dependent function
- function_
full_ strname - Full name of the dependent function
- function
Full StringName - Full name of the dependent function
GetRegisteredModelVersionsModelVersionModelVersionDependencyDependencyTable
- Table
Full stringName - Full name of the dependent table
- Table
Full stringName - Full name of the dependent table
- table
Full StringName - Full name of the dependent table
- table
Full stringName - Full name of the dependent table
- table_
full_ strname - Full name of the dependent table
- table
Full StringName - Full name of the dependent table
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.