1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. SecretScope
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Import

    The secret resource scope can be imported using the scope name. initial_manage_principal state won’t be imported, because the underlying API doesn’t include it in the response. bash

     $ pulumi import databricks:index/secretScope:SecretScope object <scopeName>
    

    Create SecretScope Resource

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

    Constructor syntax

    new SecretScope(name: string, args?: SecretScopeArgs, opts?: CustomResourceOptions);
    @overload
    def SecretScope(resource_name: str,
                    args: Optional[SecretScopeArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecretScope(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    backend_type: Optional[str] = None,
                    initial_manage_principal: Optional[str] = None,
                    keyvault_metadata: Optional[SecretScopeKeyvaultMetadataArgs] = None,
                    name: Optional[str] = None)
    func NewSecretScope(ctx *Context, name string, args *SecretScopeArgs, opts ...ResourceOption) (*SecretScope, error)
    public SecretScope(string name, SecretScopeArgs? args = null, CustomResourceOptions? opts = null)
    public SecretScope(String name, SecretScopeArgs args)
    public SecretScope(String name, SecretScopeArgs args, CustomResourceOptions options)
    
    type: databricks:SecretScope
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecretScopeArgs
    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 SecretScopeArgs
    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 SecretScopeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretScopeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretScopeArgs
    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 secretScopeResource = new Databricks.SecretScope("secretScopeResource", new()
    {
        BackendType = "string",
        InitialManagePrincipal = "string",
        KeyvaultMetadata = new Databricks.Inputs.SecretScopeKeyvaultMetadataArgs
        {
            DnsName = "string",
            ResourceId = "string",
        },
        Name = "string",
    });
    
    example, err := databricks.NewSecretScope(ctx, "secretScopeResource", &databricks.SecretScopeArgs{
    	BackendType:            pulumi.String("string"),
    	InitialManagePrincipal: pulumi.String("string"),
    	KeyvaultMetadata: &databricks.SecretScopeKeyvaultMetadataArgs{
    		DnsName:    pulumi.String("string"),
    		ResourceId: pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    })
    
    var secretScopeResource = new SecretScope("secretScopeResource", SecretScopeArgs.builder()
        .backendType("string")
        .initialManagePrincipal("string")
        .keyvaultMetadata(SecretScopeKeyvaultMetadataArgs.builder()
            .dnsName("string")
            .resourceId("string")
            .build())
        .name("string")
        .build());
    
    secret_scope_resource = databricks.SecretScope("secretScopeResource",
        backend_type="string",
        initial_manage_principal="string",
        keyvault_metadata={
            "dns_name": "string",
            "resource_id": "string",
        },
        name="string")
    
    const secretScopeResource = new databricks.SecretScope("secretScopeResource", {
        backendType: "string",
        initialManagePrincipal: "string",
        keyvaultMetadata: {
            dnsName: "string",
            resourceId: "string",
        },
        name: "string",
    });
    
    type: databricks:SecretScope
    properties:
        backendType: string
        initialManagePrincipal: string
        keyvaultMetadata:
            dnsName: string
            resourceId: string
        name: string
    

    SecretScope 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 SecretScope resource accepts the following input properties:

    BackendType string
    Either DATABRICKS or AZURE_KEYVAULT
    InitialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    KeyvaultMetadata SecretScopeKeyvaultMetadata
    Name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    BackendType string
    Either DATABRICKS or AZURE_KEYVAULT
    InitialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    KeyvaultMetadata SecretScopeKeyvaultMetadataArgs
    Name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType String
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal String
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata SecretScopeKeyvaultMetadata
    name String
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType string
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata SecretScopeKeyvaultMetadata
    name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backend_type str
    Either DATABRICKS or AZURE_KEYVAULT
    initial_manage_principal str
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvault_metadata SecretScopeKeyvaultMetadataArgs
    name str
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType String
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal String
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata Property Map
    name String
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecretScope 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 SecretScope Resource

    Get an existing SecretScope 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?: SecretScopeState, opts?: CustomResourceOptions): SecretScope
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backend_type: Optional[str] = None,
            initial_manage_principal: Optional[str] = None,
            keyvault_metadata: Optional[SecretScopeKeyvaultMetadataArgs] = None,
            name: Optional[str] = None) -> SecretScope
    func GetSecretScope(ctx *Context, name string, id IDInput, state *SecretScopeState, opts ...ResourceOption) (*SecretScope, error)
    public static SecretScope Get(string name, Input<string> id, SecretScopeState? state, CustomResourceOptions? opts = null)
    public static SecretScope get(String name, Output<String> id, SecretScopeState state, CustomResourceOptions options)
    resources:  _:    type: databricks:SecretScope    get:      id: ${id}
    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.
    The following state arguments are supported:
    BackendType string
    Either DATABRICKS or AZURE_KEYVAULT
    InitialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    KeyvaultMetadata SecretScopeKeyvaultMetadata
    Name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    BackendType string
    Either DATABRICKS or AZURE_KEYVAULT
    InitialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    KeyvaultMetadata SecretScopeKeyvaultMetadataArgs
    Name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType String
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal String
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata SecretScopeKeyvaultMetadata
    name String
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType string
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal string
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata SecretScopeKeyvaultMetadata
    name string
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backend_type str
    Either DATABRICKS or AZURE_KEYVAULT
    initial_manage_principal str
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvault_metadata SecretScopeKeyvaultMetadataArgs
    name str
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.
    backendType String
    Either DATABRICKS or AZURE_KEYVAULT
    initialManagePrincipal String
    The principal with the only possible value users that is initially granted MANAGE permission to the created scope. If it's omitted, then the databricks.SecretAcl with MANAGE permission applied to the scope is assigned to the API request issuer's user identity (see documentation). This part of the state cannot be imported.
    keyvaultMetadata Property Map
    name String
    Scope name requested by the user. Must be unique within a workspace. Must consist of alphanumeric characters, dashes, underscores, and periods, and may not exceed 128 characters.

    Supporting Types

    SecretScopeKeyvaultMetadata, SecretScopeKeyvaultMetadataArgs

    DnsName string
    ResourceId string
    DnsName string
    ResourceId string
    dnsName String
    resourceId String
    dnsName string
    resourceId string
    dnsName String
    resourceId String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v0.4.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.