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

databricks.getInstanceProfiles

Explore with Pulumi AI

Lists all available databricks_instance_profiles.

Example Usage

Get all instance profiles:

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

const all = databricks.getInstanceProfiles({});
export const allInstanceProfiles = all.then(all => all.instanceProfiles);
Copy
import pulumi
import pulumi_databricks as databricks

all = databricks.get_instance_profiles()
pulumi.export("allInstanceProfiles", all.instance_profiles)
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 {
		all, err := databricks.GetInstanceProfiles(ctx, &databricks.GetInstanceProfilesArgs{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("allInstanceProfiles", all.InstanceProfiles)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;

return await Deployment.RunAsync(() => 
{
    var all = Databricks.GetInstanceProfiles.Invoke();

    return new Dictionary<string, object?>
    {
        ["allInstanceProfiles"] = all.Apply(getInstanceProfilesResult => getInstanceProfilesResult.InstanceProfiles),
    };
});
Copy
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.GetInstanceProfilesArgs;
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 all = DatabricksFunctions.getInstanceProfiles(GetInstanceProfilesArgs.builder()
            .build());

        ctx.export("allInstanceProfiles", all.instanceProfiles());
    }
}
Copy
variables:
  all:
    fn::invoke:
      function: databricks:getInstanceProfiles
      arguments: {}
outputs:
  allInstanceProfiles: ${all.instanceProfiles}
Copy

Using getInstanceProfiles

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 getInstanceProfiles(args: GetInstanceProfilesArgs, opts?: InvokeOptions): Promise<GetInstanceProfilesResult>
function getInstanceProfilesOutput(args: GetInstanceProfilesOutputArgs, opts?: InvokeOptions): Output<GetInstanceProfilesResult>
Copy
def get_instance_profiles(instance_profiles: Optional[Sequence[GetInstanceProfilesInstanceProfile]] = None,
                          opts: Optional[InvokeOptions] = None) -> GetInstanceProfilesResult
def get_instance_profiles_output(instance_profiles: Optional[pulumi.Input[Sequence[pulumi.Input[GetInstanceProfilesInstanceProfileArgs]]]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetInstanceProfilesResult]
Copy
func GetInstanceProfiles(ctx *Context, args *GetInstanceProfilesArgs, opts ...InvokeOption) (*GetInstanceProfilesResult, error)
func GetInstanceProfilesOutput(ctx *Context, args *GetInstanceProfilesOutputArgs, opts ...InvokeOption) GetInstanceProfilesResultOutput
Copy

> Note: This function is named GetInstanceProfiles in the Go SDK.

public static class GetInstanceProfiles 
{
    public static Task<GetInstanceProfilesResult> InvokeAsync(GetInstanceProfilesArgs args, InvokeOptions? opts = null)
    public static Output<GetInstanceProfilesResult> Invoke(GetInstanceProfilesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetInstanceProfilesResult> getInstanceProfiles(GetInstanceProfilesArgs args, InvokeOptions options)
public static Output<GetInstanceProfilesResult> getInstanceProfiles(GetInstanceProfilesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: databricks:index/getInstanceProfiles:getInstanceProfiles
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceProfiles List<GetInstanceProfilesInstanceProfile>
Set of objects for a databricks_instance_profile. This contains the following attributes:
InstanceProfiles []GetInstanceProfilesInstanceProfile
Set of objects for a databricks_instance_profile. This contains the following attributes:
instanceProfiles List<GetInstanceProfilesInstanceProfile>
Set of objects for a databricks_instance_profile. This contains the following attributes:
instanceProfiles GetInstanceProfilesInstanceProfile[]
Set of objects for a databricks_instance_profile. This contains the following attributes:
instance_profiles Sequence[GetInstanceProfilesInstanceProfile]
Set of objects for a databricks_instance_profile. This contains the following attributes:
instanceProfiles List<Property Map>
Set of objects for a databricks_instance_profile. This contains the following attributes:

getInstanceProfiles Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
InstanceProfiles List<GetInstanceProfilesInstanceProfile>
Set of objects for a databricks_instance_profile. This contains the following attributes:
Id string
The provider-assigned unique ID for this managed resource.
InstanceProfiles []GetInstanceProfilesInstanceProfile
Set of objects for a databricks_instance_profile. This contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
instanceProfiles List<GetInstanceProfilesInstanceProfile>
Set of objects for a databricks_instance_profile. This contains the following attributes:
id string
The provider-assigned unique ID for this managed resource.
instanceProfiles GetInstanceProfilesInstanceProfile[]
Set of objects for a databricks_instance_profile. This contains the following attributes:
id str
The provider-assigned unique ID for this managed resource.
instance_profiles Sequence[GetInstanceProfilesInstanceProfile]
Set of objects for a databricks_instance_profile. This contains the following attributes:
id String
The provider-assigned unique ID for this managed resource.
instanceProfiles List<Property Map>
Set of objects for a databricks_instance_profile. This contains the following attributes:

Supporting Types

GetInstanceProfilesInstanceProfile

Arn This property is required. string
ARN of the instance profile.
IsMeta This property is required. bool
Whether the instance profile is a meta instance profile or not.
Name This property is required. string
Name of the instance profile.
RoleArn This property is required. string
ARN of the role attached to the instance profile.
Arn This property is required. string
ARN of the instance profile.
IsMeta This property is required. bool
Whether the instance profile is a meta instance profile or not.
Name This property is required. string
Name of the instance profile.
RoleArn This property is required. string
ARN of the role attached to the instance profile.
arn This property is required. String
ARN of the instance profile.
isMeta This property is required. Boolean
Whether the instance profile is a meta instance profile or not.
name This property is required. String
Name of the instance profile.
roleArn This property is required. String
ARN of the role attached to the instance profile.
arn This property is required. string
ARN of the instance profile.
isMeta This property is required. boolean
Whether the instance profile is a meta instance profile or not.
name This property is required. string
Name of the instance profile.
roleArn This property is required. string
ARN of the role attached to the instance profile.
arn This property is required. str
ARN of the instance profile.
is_meta This property is required. bool
Whether the instance profile is a meta instance profile or not.
name This property is required. str
Name of the instance profile.
role_arn This property is required. str
ARN of the role attached to the instance profile.
arn This property is required. String
ARN of the instance profile.
isMeta This property is required. Boolean
Whether the instance profile is a meta instance profile or not.
name This property is required. String
Name of the instance profile.
roleArn This property is required. String
ARN of the role attached to the instance profile.

Package Details

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