databricks.getApp
Explore with Pulumi AI
This feature is in Public Preview.
Databricks Apps run directly on a customer’s Databricks instance, integrate with their data, use and extend Databricks services, and enable users to interact through single sign-on. This resource creates the application but does not handle app deployment, which should be handled separately as part of your CI/CD pipeline.
This data source allows you to fetch information about a Databricks App.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const this = databricks.getApp({
name: "my-custom-app",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_app(name="my-custom-app")
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.LookupApp(ctx, &databricks.LookupAppArgs{
Name: "my-custom-app",
}, 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.GetApp.Invoke(new()
{
Name = "my-custom-app",
});
});
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.GetAppArgs;
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.getApp(GetAppArgs.builder()
.name("my-custom-app")
.build());
}
}
variables:
this:
fn::invoke:
function: databricks:getApp
arguments:
name: my-custom-app
Related Resources
The following resources are used in the same context:
- databricks.App to manage Databricks Apps.
- databricks.SqlEndpoint to manage Databricks SQL Endpoints.
- databricks.ModelServing to serve this model on a Databricks serving endpoint.
- databricks.Secret to manage secrets in Databricks workspace.
- databricks.Job to manage Databricks Jobs to run non-interactive code.
Using getApp
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 getApp(args: GetAppArgs, opts?: InvokeOptions): Promise<GetAppResult>
function getAppOutput(args: GetAppOutputArgs, opts?: InvokeOptions): Output<GetAppResult>
def get_app(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAppResult
def get_app_output(name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAppResult]
func LookupApp(ctx *Context, args *LookupAppArgs, opts ...InvokeOption) (*LookupAppResult, error)
func LookupAppOutput(ctx *Context, args *LookupAppOutputArgs, opts ...InvokeOption) LookupAppResultOutput
> Note: This function is named LookupApp
in the Go SDK.
public static class GetApp
{
public static Task<GetAppResult> InvokeAsync(GetAppArgs args, InvokeOptions? opts = null)
public static Output<GetAppResult> Invoke(GetAppInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAppResult> getApp(GetAppArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getApp:getApp
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the app.
- Name string
- The name of the app.
- name String
- The name of the app.
- name string
- The name of the app.
- name str
- The name of the app.
- name String
- The name of the app.
getApp Result
The following output properties are available:
- app Property Map
- attribute
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the serving endpoint to grant permission on.
Supporting Types
GetAppApp
- Active
Deployment GetApp App Active Deployment - App
Status GetApp App App Status - attribute
- Compute
Status GetApp App Compute Status - attribute
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Default
Source stringCode Path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- Name string
- The name of the app.
- Pending
Deployment GetApp App Pending Deployment - Service
Principal stringClient Id - Service
Principal intId - id of the app service principal
- Service
Principal stringName - name of the app service principal
- Update
Time string - The update time of the app.
- Updater string
- The email of the user that last updated the app.
- Url string
- The URL of the app once it is deployed.
- Description string
- The description of the resource.
- Resources
List<Get
App App Resource> - A list of resources that the app have access to.
- Active
Deployment GetApp App Active Deployment - App
Status GetApp App App Status - attribute
- Compute
Status GetApp App Compute Status - attribute
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Default
Source stringCode Path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- Name string
- The name of the app.
- Pending
Deployment GetApp App Pending Deployment - Service
Principal stringClient Id - Service
Principal intId - id of the app service principal
- Service
Principal stringName - name of the app service principal
- Update
Time string - The update time of the app.
- Updater string
- The email of the user that last updated the app.
- Url string
- The URL of the app once it is deployed.
- Description string
- The description of the resource.
- Resources
[]Get
App App Resource - A list of resources that the app have access to.
- active
Deployment GetApp App Active Deployment - app
Status GetApp App App Status - attribute
- compute
Status GetApp App Compute Status - attribute
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- default
Source StringCode Path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- name String
- The name of the app.
- pending
Deployment GetApp App Pending Deployment - service
Principal StringClient Id - service
Principal IntegerId - id of the app service principal
- service
Principal StringName - name of the app service principal
- update
Time String - The update time of the app.
- updater String
- The email of the user that last updated the app.
- url String
- The URL of the app once it is deployed.
- description String
- The description of the resource.
- resources
List<Get
App App Resource> - A list of resources that the app have access to.
- active
Deployment GetApp App Active Deployment - app
Status GetApp App App Status - attribute
- compute
Status GetApp App Compute Status - attribute
- create
Time string - The creation time of the app.
- creator string
- The email of the user that created the app.
- default
Source stringCode Path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- name string
- The name of the app.
- pending
Deployment GetApp App Pending Deployment - service
Principal stringClient Id - service
Principal numberId - id of the app service principal
- service
Principal stringName - name of the app service principal
- update
Time string - The update time of the app.
- updater string
- The email of the user that last updated the app.
- url string
- The URL of the app once it is deployed.
- description string
- The description of the resource.
- resources
Get
App App Resource[] - A list of resources that the app have access to.
- active_
deployment GetApp App Active Deployment - app_
status GetApp App App Status - attribute
- compute_
status GetApp App Compute Status - attribute
- create_
time str - The creation time of the app.
- creator str
- The email of the user that created the app.
- default_
source_ strcode_ path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- name str
- The name of the app.
- pending_
deployment GetApp App Pending Deployment - service_
principal_ strclient_ id - service_
principal_ intid - id of the app service principal
- service_
principal_ strname - name of the app service principal
- update_
time str - The update time of the app.
- updater str
- The email of the user that last updated the app.
- url str
- The URL of the app once it is deployed.
- description str
- The description of the resource.
- resources
Sequence[Get
App App Resource] - A list of resources that the app have access to.
- active
Deployment Property Map - app
Status Property Map - attribute
- compute
Status Property Map - attribute
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- default
Source StringCode Path - The default workspace file system path of the source code from which app deployment are created. This field tracks the workspace source code path of the last active deployment.
- name String
- The name of the app.
- pending
Deployment Property Map - service
Principal StringClient Id - service
Principal NumberId - id of the app service principal
- service
Principal StringName - name of the app service principal
- update
Time String - The update time of the app.
- updater String
- The email of the user that last updated the app.
- url String
- The URL of the app once it is deployed.
- description String
- The description of the resource.
- resources List<Property Map>
- A list of resources that the app have access to.
GetAppAppActiveDeployment
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Deployment
Artifacts GetApp App Active Deployment Deployment Artifacts - Status
Get
App App Active Deployment Status - Update
Time string - The update time of the app.
- Deployment
Id string - Mode string
- Source
Code stringPath
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Deployment
Artifacts GetApp App Active Deployment Deployment Artifacts - Status
Get
App App Active Deployment Status - Update
Time string - The update time of the app.
- Deployment
Id string - Mode string
- Source
Code stringPath
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- deployment
Artifacts GetApp App Active Deployment Deployment Artifacts - status
Get
App App Active Deployment Status - update
Time String - The update time of the app.
- deployment
Id String - mode String
- source
Code StringPath
- create
Time string - The creation time of the app.
- creator string
- The email of the user that created the app.
- deployment
Artifacts GetApp App Active Deployment Deployment Artifacts - status
Get
App App Active Deployment Status - update
Time string - The update time of the app.
- deployment
Id string - mode string
- source
Code stringPath
- create_
time str - The creation time of the app.
- creator str
- The email of the user that created the app.
- deployment_
artifacts GetApp App Active Deployment Deployment Artifacts - status
Get
App App Active Deployment Status - update_
time str - The update time of the app.
- deployment_
id str - mode str
- source_
code_ strpath
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- deployment
Artifacts Property Map - status Property Map
- update
Time String - The update time of the app.
- deployment
Id String - mode String
- source
Code StringPath
GetAppAppActiveDeploymentDeploymentArtifacts
- Source
Code stringPath
- Source
Code stringPath
- source
Code StringPath
- source
Code stringPath
- source_
code_ strpath
- source
Code StringPath
GetAppAppActiveDeploymentStatus
GetAppAppAppStatus
GetAppAppComputeStatus
GetAppAppPendingDeployment
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Deployment
Artifacts GetApp App Pending Deployment Deployment Artifacts - Status
Get
App App Pending Deployment Status - Update
Time string - The update time of the app.
- Deployment
Id string - Mode string
- Source
Code stringPath
- Create
Time string - The creation time of the app.
- Creator string
- The email of the user that created the app.
- Deployment
Artifacts GetApp App Pending Deployment Deployment Artifacts - Status
Get
App App Pending Deployment Status - Update
Time string - The update time of the app.
- Deployment
Id string - Mode string
- Source
Code stringPath
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- deployment
Artifacts GetApp App Pending Deployment Deployment Artifacts - status
Get
App App Pending Deployment Status - update
Time String - The update time of the app.
- deployment
Id String - mode String
- source
Code StringPath
- create
Time string - The creation time of the app.
- creator string
- The email of the user that created the app.
- deployment
Artifacts GetApp App Pending Deployment Deployment Artifacts - status
Get
App App Pending Deployment Status - update
Time string - The update time of the app.
- deployment
Id string - mode string
- source
Code stringPath
- create_
time str - The creation time of the app.
- creator str
- The email of the user that created the app.
- deployment_
artifacts GetApp App Pending Deployment Deployment Artifacts - status
Get
App App Pending Deployment Status - update_
time str - The update time of the app.
- deployment_
id str - mode str
- source_
code_ strpath
- create
Time String - The creation time of the app.
- creator String
- The email of the user that created the app.
- deployment
Artifacts Property Map - status Property Map
- update
Time String - The update time of the app.
- deployment
Id String - mode String
- source
Code StringPath
GetAppAppPendingDeploymentDeploymentArtifacts
- Source
Code stringPath
- Source
Code stringPath
- source
Code StringPath
- source
Code stringPath
- source_
code_ strpath
- source
Code StringPath
GetAppAppPendingDeploymentStatus
GetAppAppResource
- Name string
- The name of the app.
- Description string
- The description of the resource.
- Job
Get
App App Resource Job - attribute
- Secret
Get
App App Resource Secret - attribute
- Serving
Endpoint GetApp App Resource Serving Endpoint - attribute
- Sql
Warehouse GetApp App Resource Sql Warehouse - attribute
- Name string
- The name of the app.
- Description string
- The description of the resource.
- Job
Get
App App Resource Job - attribute
- Secret
Get
App App Resource Secret - attribute
- Serving
Endpoint GetApp App Resource Serving Endpoint - attribute
- Sql
Warehouse GetApp App Resource Sql Warehouse - attribute
- name String
- The name of the app.
- description String
- The description of the resource.
- job
Get
App App Resource Job - attribute
- secret
Get
App App Resource Secret - attribute
- serving
Endpoint GetApp App Resource Serving Endpoint - attribute
- sql
Warehouse GetApp App Resource Sql Warehouse - attribute
- name string
- The name of the app.
- description string
- The description of the resource.
- job
Get
App App Resource Job - attribute
- secret
Get
App App Resource Secret - attribute
- serving
Endpoint GetApp App Resource Serving Endpoint - attribute
- sql
Warehouse GetApp App Resource Sql Warehouse - attribute
- name str
- The name of the app.
- description str
- The description of the resource.
- job
Get
App App Resource Job - attribute
- secret
Get
App App Resource Secret - attribute
- serving_
endpoint GetApp App Resource Serving Endpoint - attribute
- sql_
warehouse GetApp App Resource Sql Warehouse - attribute
- name String
- The name of the app.
- description String
- The description of the resource.
- job Property Map
- attribute
- secret Property Map
- attribute
- serving
Endpoint Property Map - attribute
- sql
Warehouse Property Map - attribute
GetAppAppResourceJob
- Id string
- Id of the job to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- Id string
- Id of the job to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id String
- Id of the job to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id string
- Id of the job to grant permission on.
- permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id str
- Id of the job to grant permission on.
- permission str
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id String
- Id of the job to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
GetAppAppResourceSecret
- Key string
- Key of the secret to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - Scope string
- Scope of the secret to grant permission on.
- Key string
- Key of the secret to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - Scope string
- Scope of the secret to grant permission on.
- key String
- Key of the secret to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - scope String
- Scope of the secret to grant permission on.
- key string
- Key of the secret to grant permission on.
- permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - scope string
- Scope of the secret to grant permission on.
- key str
- Key of the secret to grant permission on.
- permission str
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - scope str
- Scope of the secret to grant permission on.
- key String
- Key of the secret to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
. - scope String
- Scope of the secret to grant permission on.
GetAppAppResourceServingEndpoint
- Name string
- The name of the app.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- Name string
- The name of the app.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- name String
- The name of the app.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- name string
- The name of the app.
- permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- name str
- The name of the app.
- permission str
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- name String
- The name of the app.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
GetAppAppResourceSqlWarehouse
- Id string
- Id of the job to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- Id string
- Id of the job to grant permission on.
- Permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id String
- Id of the job to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id string
- Id of the job to grant permission on.
- permission string
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id str
- Id of the job to grant permission on.
- permission str
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
- id String
- Id of the job to grant permission on.
- permission String
- Permissions to grant on the Job. Supported permissions are:
CAN_MANAGE
,IS_OWNER
,CAN_MANAGE_RUN
,CAN_VIEW
.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.