1. Packages
  2. Databricks
  3. API Docs
  4. getInstanceProfiles
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

databricks.getInstanceProfiles

Explore with Pulumi AI

databricks logo
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

    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);
    
    import pulumi
    import pulumi_databricks as databricks
    
    all = databricks.get_instance_profiles()
    pulumi.export("allInstanceProfiles", all.instance_profiles)
    
    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
    	})
    }
    
    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),
        };
    });
    
    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();
    
            ctx.export("allInstanceProfiles", all.applyValue(getInstanceProfilesResult -> getInstanceProfilesResult.instanceProfiles()));
        }
    }
    
    variables:
      all:
        fn::invoke:
          Function: databricks:getInstanceProfiles
          Arguments: {}
    outputs:
      allInstanceProfiles: ${all.instanceProfiles}
    

    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>
    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]
    func GetInstanceProfiles(ctx *Context, args *GetInstanceProfilesArgs, opts ...InvokeOption) (*GetInstanceProfilesResult, error)
    func GetInstanceProfilesOutput(ctx *Context, args *GetInstanceProfilesOutputArgs, opts ...InvokeOption) GetInstanceProfilesResultOutput

    > 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)
    }
    public static CompletableFuture<GetInstanceProfilesResult> getInstanceProfiles(GetInstanceProfilesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: databricks:index/getInstanceProfiles:getInstanceProfiles
      arguments:
        # arguments dictionary

    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 string
    ARN of the instance profile.
    IsMeta bool
    Whether the instance profile is a meta instance profile or not.
    Name string
    Name of the instance profile.
    RoleArn string
    ARN of the role attached to the instance profile.
    Arn string
    ARN of the instance profile.
    IsMeta bool
    Whether the instance profile is a meta instance profile or not.
    Name string
    Name of the instance profile.
    RoleArn string
    ARN of the role attached to the instance profile.
    arn String
    ARN of the instance profile.
    isMeta Boolean
    Whether the instance profile is a meta instance profile or not.
    name String
    Name of the instance profile.
    roleArn String
    ARN of the role attached to the instance profile.
    arn string
    ARN of the instance profile.
    isMeta boolean
    Whether the instance profile is a meta instance profile or not.
    name string
    Name of the instance profile.
    roleArn string
    ARN of the role attached to the instance profile.
    arn str
    ARN of the instance profile.
    is_meta bool
    Whether the instance profile is a meta instance profile or not.
    name str
    Name of the instance profile.
    role_arn str
    ARN of the role attached to the instance profile.
    arn String
    ARN of the instance profile.
    isMeta Boolean
    Whether the instance profile is a meta instance profile or not.
    name String
    Name of the instance profile.
    roleArn 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.
    databricks logo
    Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi