1. Packages
  2. Databricks Provider
  3. API Docs
  4. SystemSchema
Databricks v1.67.0 published on Thursday, Apr 17, 2025 by Pulumi

databricks.SystemSchema

Explore with Pulumi AI

This feature is in Public Preview.

This resource can only be used with a workspace-level provider!

Certain system schemas (such as billing) may be auto-enabled once GA and should not be manually declared in Pulumi configurations.

Manages system tables enablement. System tables are a Databricks-hosted analytical store of your account’s operational data. System tables can be used for historical observability across your account. System tables must be enabled by an account admin.

Example Usage

Enable the system schema access

import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";

const _this = new databricks.SystemSchema("this", {schema: "access"});
Copy
import pulumi
import pulumi_databricks as databricks

this = databricks.SystemSchema("this", schema="access")
Copy
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.NewSystemSchema(ctx, "this", &databricks.SystemSchemaArgs{
			Schema: pulumi.String("access"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;

return await Deployment.RunAsync(() => 
{
    var @this = new Databricks.SystemSchema("this", new()
    {
        Schema = "access",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.SystemSchema;
import com.pulumi.databricks.SystemSchemaArgs;
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) {
        var this_ = new SystemSchema("this", SystemSchemaArgs.builder()
            .schema("access")
            .build());

    }
}
Copy
resources:
  this:
    type: databricks:SystemSchema
    properties:
      schema: access
Copy

Create SystemSchema Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SystemSchema(name: string, args?: SystemSchemaArgs, opts?: CustomResourceOptions);
@overload
def SystemSchema(resource_name: str,
                 args: Optional[SystemSchemaArgs] = None,
                 opts: Optional[ResourceOptions] = None)

@overload
def SystemSchema(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 schema: Optional[str] = None,
                 state: Optional[str] = None)
func NewSystemSchema(ctx *Context, name string, args *SystemSchemaArgs, opts ...ResourceOption) (*SystemSchema, error)
public SystemSchema(string name, SystemSchemaArgs? args = null, CustomResourceOptions? opts = null)
public SystemSchema(String name, SystemSchemaArgs args)
public SystemSchema(String name, SystemSchemaArgs args, CustomResourceOptions options)
type: databricks:SystemSchema
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemSchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemSchemaArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemSchemaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemSchemaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemSchemaArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var systemSchemaResource = new Databricks.SystemSchema("systemSchemaResource", new()
{
    Schema = "string",
    State = "string",
});
Copy
example, err := databricks.NewSystemSchema(ctx, "systemSchemaResource", &databricks.SystemSchemaArgs{
	Schema: pulumi.String("string"),
	State:  pulumi.String("string"),
})
Copy
var systemSchemaResource = new SystemSchema("systemSchemaResource", SystemSchemaArgs.builder()
    .schema("string")
    .state("string")
    .build());
Copy
system_schema_resource = databricks.SystemSchema("systemSchemaResource",
    schema="string",
    state="string")
Copy
const systemSchemaResource = new databricks.SystemSchema("systemSchemaResource", {
    schema: "string",
    state: "string",
});
Copy
type: databricks:SystemSchema
properties:
    schema: string
    state: string
Copy

SystemSchema Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SystemSchema resource accepts the following input properties:

Schema string
name of the system schema.
State string
The current state of enablement for the system schema.
Schema string
name of the system schema.
State string
The current state of enablement for the system schema.
schema String
name of the system schema.
state String
The current state of enablement for the system schema.
schema string
name of the system schema.
state string
The current state of enablement for the system schema.
schema str
name of the system schema.
state str
The current state of enablement for the system schema.
schema String
name of the system schema.
state String
The current state of enablement for the system schema.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemSchema resource produces the following output properties:

AutoEnabled bool
FullName string
the full name of the system schema, in form of system.<schema>.
Id string
The provider-assigned unique ID for this managed resource.
MetastoreId string
AutoEnabled bool
FullName string
the full name of the system schema, in form of system.<schema>.
Id string
The provider-assigned unique ID for this managed resource.
MetastoreId string
autoEnabled Boolean
fullName String
the full name of the system schema, in form of system.<schema>.
id String
The provider-assigned unique ID for this managed resource.
metastoreId String
autoEnabled boolean
fullName string
the full name of the system schema, in form of system.<schema>.
id string
The provider-assigned unique ID for this managed resource.
metastoreId string
auto_enabled bool
full_name str
the full name of the system schema, in form of system.<schema>.
id str
The provider-assigned unique ID for this managed resource.
metastore_id str
autoEnabled Boolean
fullName String
the full name of the system schema, in form of system.<schema>.
id String
The provider-assigned unique ID for this managed resource.
metastoreId String

Look up Existing SystemSchema Resource

Get an existing SystemSchema 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?: SystemSchemaState, opts?: CustomResourceOptions): SystemSchema
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_enabled: Optional[bool] = None,
        full_name: Optional[str] = None,
        metastore_id: Optional[str] = None,
        schema: Optional[str] = None,
        state: Optional[str] = None) -> SystemSchema
func GetSystemSchema(ctx *Context, name string, id IDInput, state *SystemSchemaState, opts ...ResourceOption) (*SystemSchema, error)
public static SystemSchema Get(string name, Input<string> id, SystemSchemaState? state, CustomResourceOptions? opts = null)
public static SystemSchema get(String name, Output<String> id, SystemSchemaState state, CustomResourceOptions options)
resources:  _:    type: databricks:SystemSchema    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AutoEnabled bool
FullName string
the full name of the system schema, in form of system.<schema>.
MetastoreId string
Schema string
name of the system schema.
State string
The current state of enablement for the system schema.
AutoEnabled bool
FullName string
the full name of the system schema, in form of system.<schema>.
MetastoreId string
Schema string
name of the system schema.
State string
The current state of enablement for the system schema.
autoEnabled Boolean
fullName String
the full name of the system schema, in form of system.<schema>.
metastoreId String
schema String
name of the system schema.
state String
The current state of enablement for the system schema.
autoEnabled boolean
fullName string
the full name of the system schema, in form of system.<schema>.
metastoreId string
schema string
name of the system schema.
state string
The current state of enablement for the system schema.
auto_enabled bool
full_name str
the full name of the system schema, in form of system.<schema>.
metastore_id str
schema str
name of the system schema.
state str
The current state of enablement for the system schema.
autoEnabled Boolean
fullName String
the full name of the system schema, in form of system.<schema>.
metastoreId String
schema String
name of the system schema.
state String
The current state of enablement for the system schema.

Import

This resource can be imported by the metastore id and schema name

bash

$ pulumi import databricks:index/systemSchema:SystemSchema this '<metastore_id>|<schema_name>'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
databricks pulumi/pulumi-databricks
License
Apache-2.0
Notes
This Pulumi package is based on the databricks Terraform Provider.